0

We recently moved a client's website from DigitalOcean $5 droplet LEMP stack to a friend's private server to minimise expenses. It supposed to fly faster but instead of started dropping off some weird errors for some reason and works really slow even comparing to the previous instance. Unfortunately, the server administrator is either not quite sure what's the cause. Someone on a forum suggested changing the permissions of the plugin folder to 775, however, I'm very sceptical that it would help with that.

When we try out to update around 20 plugins it ends up with this error: 504 Gateway Time-out nginx

Updating one plugin:

The update process is starting. This process may take a while on some hosts, so please be patient.

Enabling Maintenance mode…
Updating Plugin Contact Form 7 (1/1)

Downloading update from http://downloads.wordpress.org/plugin/contact-form-7.5.1.7.zip…

An error occurred while updating Contact Form 7: Download failed. A valid URL was not provided.

Disabling Maintenance mode…

All updates have been completed.

Return to Plugins page | Return to WordPress Updates page 
1
  • I agree, I don't see what file permissions has in relation to this
    – Tom J Nowell
    Mar 19, 2020 at 20:56

1 Answer 1

2

you can use this code in functions.php to avoid ssl check :

add_filter( 'http_request_args', function ( $args ) {

    $args['reject_unsafe_urls'] = false;
    
    return $args;
}, 999 );
4
  • Thanks mate, I'll try it out when will get access to the server.
    – organic
    Dec 13, 2020 at 14:48
  • Did this work @organic ?
    – Sam Bruton
    Dec 4, 2021 at 11:59
  • This has not worked for me.
    – Sam Bruton
    Dec 4, 2021 at 12:04
  • Hi mate, it appears to be that guy just limited resources on his server and it encountered this issue. After a while he's given us a bit more resources therefore the error disappeared. What's you stack right now? PHP, MySQL, Nginx versions. Actually a few websites work pretty fine on my own server with PHP 8, MySQL 8, Nginx 1.21. Try to update && upgrade your server then bring new packages. I guess it should work out well :)
    – organic
    Dec 5, 2021 at 13:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.