【发布时间】:2020-09-05 00:40:33
【问题描述】:
我最近从 php 5 升级到 7.2 并且我的 wp 站点没有工作,服务暂时不可用错误。所以我登录到后端,WP 5.4 告诉我需要检查安全问题,我自动解决了 3 个中的 2 个,但 1 个不能,即“限制对文件和文件夹的访问”。所以我尝试更新 2017 主题,当我这样做时,我得到了一堆这些(尽管它是相同的错误):
Selected items were updated with errors:
- Unable to update theme 'twentyseventeen_1.7_1_', details: PHP Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168
Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168
PHP Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168
Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168...
在结尾处写着:
Warning: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions. "front-page.php, rtl.css, 404.php...
那么最后它当然不会更新。 Wordpress Toolkit 对 plesk 的建议是:
我正在使用 filezilla 并更改这些文件的权限,但我得到“不允许操作”。
【问题讨论】: