admin管理员组文章数量:1125449
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 .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
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
Share
Improve this question
asked Mar 19, 2020 at 20:32
organicnzorganicnz
231 silver badge5 bronze badges
1
- I agree, I don't see what file permissions has in relation to this – Tom J Nowell ♦ Commented Mar 19, 2020 at 20:56
2 Answers
Reset to default 0I have deployed WordPress on Kubernetes. Once I update host mapping it starts working.
hostAliases:
- ip: "66.155.40.202"
hostnames:
- "api.wordpress.org"
- ip: "198.143.164.250"
hostnames:
- "downloads.wordpress.org"
On the server we can do same way in /etc/hosts
file for linux:
66.155.40.202 api.wordpress.org
198.143.164.250 downloads.wordpress.org
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 );
本文标签:
版权声明:本文标题:Plugins fail to update: Download failed. A valid URL was not provided 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736662772a1946499.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论