Download failure when trying to update plugins in Wordpress

2

I installed Wordpress locally, installed some plugins and now I'm trying to update the translations. What happens is that it does not update.

Note: use EasyPHP and WP 4.6.1

It displays the following message:

  

Download failed. No working transports found

    
asked by anonymous 03.12.2016 / 14:19

1 answer

6

Wordpress uses the Curl and Openssl extensions to download the plugins, in case the extensions were disabled like this:

If it's windows:

;extension=php_curl.dll
;extension=php_openssl.dll

If it is like-unix (eg linux, mac osx, bsd):

;extension=curl.so
;extension=openssl.so

The Curl extension is used to access pages via HTTP and the Openssl extension is used to access Curl to access HTTPS pages, Wordpress plugins are in the Wordpress servers / repositories and are under the https:// protocol, so that PHP is able to download it is necessary to have both extensions enabled, so just remove the semicolon ( ; ) from the front and restart Apache afterwards.

If it's Windows leave it like this:

extension=php_curl.dll
extension=php_openssl.dll

If it's like-unix (linux, mac osx, bsd):

extension=curl.so
extension=openssl.so

Remember, for it to take effect you must restart Apache (or Nginx)

How to Restart Apache / Nginx

If it is Windows and Mac it will depend a lot on with installed, whether it was manually or whether it was with packages ready and whether it was installed as a service or not

To restart Apache on Linux:

  • Generally Red Hat:

    sudo service apache2 restart
    
  • Other distros:

    sudo restart apache2
    

    or:

    sudo apache2 restart
    
      

    Note: If the Apache path is not Global you may have to type /etc/init.d/apache2 , but it depends on where you installed it

Restart Nginx:

  • In Ubuntu generally:

    sudo systemctl restart nginx
    
  • Other distros:

    sudo service nginx restart
    

    or:

    sudo /etc/init.d/nginx restart
    
03.12.2016 / 16:09