Sublime text error when uploading (gaierror: [Errno 11001] getaddrinfo failed) - php

Im use ftpsync in sublime text 2, this is working good before and suddenly got this error.. Im googling and still got no working solution.. This is the console:
Traceback (most recent call last):
File ".\FTPSync.py", line 957, in makeConnection
File ".\ftpsyncwrapper.py", line 318, in connect
File ".\ftpsyncwrapper.py", line 290, in retryingCommand
File ".\ftpsyncwrapper.py", line 284, in call
File ".\lib2\ftplib.py", line 140, in connect
File ".\socket.py", line 500, in create_connection
gaierror: [Errno 11001] getaddrinfo failed

Related

cPanel PHP Update

I have currently become the administrator of an website. The first thing I wanted to do was to update the PHP version from 5.6 to 8.1. In cPanel, I chose MultiPHP Manager and tried to apply the new version to the selected domain. This is the error I got:
Error: “/usr/local/cpanel/bin/python-packman” reported error code “1” when it ended: Traceback (most recent call last): File "/usr/local/cpanel/bin/packman_get_info_json", line 16, in packman.init_yum() File "/usr/local/cpanel/bin/packman_lib/yum_impl.py", line 78, in init_yum yb.repos.populateSack() File "/usr/lib/python2.7/site-packages/yum/repos.py", line 347, in populateSack self.doSetup() File "/usr/lib/python2.7/site-packages/yum/repos.py", line 157, in doSetup self.retrieveAllMD() File "/usr/lib/python2.7/site-packages/yum/repos.py", line 88, in retrieveAllMD dl = repo._async and repo._commonLoadRepoXML(repo) File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1482, in _commonLoadRepoXML result = self._getFileRepoXML(local, text) File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1259, in _getFileRepoXML size=102400) # setting max size as 100K File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1025, in _getFile result = self.grab.urlgrab(misc.to_utf8(relative), local, File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 703, in grab = property(lambda self: self._getgrab()) File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 698, in _getgrab self._setupGrab() File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 635, in _setupGrab urls = self.urls File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 881, in urls = property(fget=lambda self: self._geturls(), File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 878, in _geturls self._baseurlSetup() File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 844, in _baseurlSetup self.check() File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 562, in check 'Cannot find a valid baseurl for repo: %s' % self.ui_id yum.Errors.RepoError: Cannot find a valid baseurl for repo: base/7/x86_64 w/ /usr/local/cpanel/bin/packman_get_info_json ea-php81-php-fpm Often errors like this can be resolved by running yum makecache
Running yum makecache in the terminal raised another error. I wasn't able to find anything helpful on the internet. What am I doing wrong?

FPDF font error on production server But working on local server

Warning: include(timesb.php): failed to open stream: No such file or directory in /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php on line 1140
Warning: include(): Failed opening 'timesb.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php on line 1140
Fatal error: Uncaught Exception: FPDF error: Could not include font definition file in /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php:271 Stack trace: #0 /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php(1142): FPDF->Error('Could not inclu...') #1 /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php(459): FPDF->_loadfont('timesb.php') #2 /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php(507): FPDF->AddFont('times', 'B') #3 /var/www/html/tn_poly_lateral/candidate-portal/application/application.php(259): FPDF->SetFont('times', 'B', 12) #4 {main} thrown in /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php on line 271
This fpdf error shows on production server But when I execute file on locally using xampp everything works fine and pdf is downloading. Anyone help to resolve the problem
depending on your error it appears that there is missing files
timesb.php doesn't exist on your hosting you can check on your hosting search that file if it doesn't exist add it

how to give permission to web server in windows 7 to write to a network folder

so my script is running in my localhost(pc1) and i am trying to save an excel file using phpexcel in a network folder (\\pc2\c$\myfolder) but it gives me an error saying that i dont have permission in that particular folder eventhough i have a full access. I can manually create, edit or deleta a file in that folder.
error msg:
Warning: fopen(\\pc2\c$\myfolder\12122014.xls) [function.fopen]: failed to open stream: Permission denied in C:\wamp\www\receivables\PHPExcel\Shared\OLE\PPS\Root.php on line 90
Fatal error: Uncaught exception 'PHPExcel_Writer_Exception' with message 'Can't open \\pc2\c$\myfolder\12122014.xls. It may be in use or protected.' in C:\wamp\www\receivables\PHPExcel\Shared\OLE\PPS\Root.php:93 Stack trace: #0 C:\wamp\www\receivables\PHPExcel\Writer\Excel5.php(226): PHPExcel_Shared_OLE_PPS_Root->save('\\ipcsvs001\c...') #1 C:\wamp\www\receivables\index.php(241): PHPExcel_Writer_Excel5->save('\\ipcsvs001\c...') #2 {main} thrown in C:\wamp\www\receivables\PHPExcel\Shared\OLE\PPS\Root.php on line 93
note: i am using wamp server(not sure if this matters)

Connecting to XMPP with SSL throws exception "error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group"

I'm using xmpppy on a Fedora 19 computer for connecting to xmpp server which requires ssl connection.
Code:
client = xmpp.Client(self.domain, debug=[])
server = (self.server, 5222)
client.connect(server)
It was working fine, I didn't change anything in code. Then I installed some applications and updated Fedora, now it gives this error:
Traceback (most recent call last):
File "chat.py", line 20, in connect
client.connect(server)
File "/usr/lib/python2.7/site-packages/xmpp/client.py", line 205, in connect
while not self.TLS.starttls and self.Process(1): pass
File "/usr/lib/python2.7/site-packages/xmpp/dispatcher.py", line 303, in dispatch
handler['func'](session,stanza)
File "/usr/lib/python2.7/site-packages/xmpp/transports.py", line 337, in StartTLSHandler
self._startSSL()
File "/usr/lib/python2.7/site-packages/xmpp/transports.py", line 315, in _startSSL
tcpsock._sslObj = socket.ssl(tcpsock._sock, None, None)
File "/usr/lib64/python2.7/socket.py", line 64, in ssl
return _realssl.sslwrap_simple(sock, keyfile, certfile)
File "/usr/lib64/python2.7/ssl.py", line 477, in sslwrap_simple
ssl_sock.do_handshake()
ssl.SSLError: [Errno 1] _ssl.c:504: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group
I also tried to connect to XMPP server using PHP
$this->send_xml($this->START_TLS);
$xml = $this->recv_xml();
stream_socket_enable_crypto($this->fp, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
but it throws
PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group
error:1408D010:SSL routines:SSL3_GET_KEY_EXCHANGE:EC lib in /var/www/html/libs/xmpp.php on line 71

Trying to get drupal's Code Sniffer working with Sublime Text 2, what am I doing wrong?

I followed this tutorial, but when I hit cmd-B in Sublime, I get this error:
Warning: include_once(PHP/CodeSniffer/CLI.php): failed to open stream: No such file or directory in /usr/local/bin/phpcs on line 31
Warning: include_once(): Failed opening 'PHP/CodeSniffer/CLI.php' for inclusion (include_path='.:') in /usr/local/bin/phpcs on line 31
Fatal error: Class 'PHP_CodeSniffer_CLI' not found in /usr/local/bin/phpcs on line 34
I'm just working with general PHP files, not in MAMP or anything, and I just want to check if they follow the drupal coding standards. What's going wrong?

Categories