【问题标题】:How to fix chmod errors when updating wordpress theme?更新 wordpress 主题时如何修复 chmod 错误?
【发布时间】: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 并更改这些文件的权限,但我得到“不允许操作”。

【问题讨论】:

    标签: wordpress chmod


    【解决方案1】:

    [已解决](至少对我而言)

    我也在 Cloudways 和 Digital Ocean 上。

    只需重新启动服务器,错误就消失了。

    【讨论】:

    • 我重新启动了它,但它没有工作。我仍然收到 503 错误。
    • 更新最新的WordPress版本,
    猜你喜欢
    • 2022-10-24
    • 1970-01-01
    • 2019-01-31
    • 1970-01-01
    • 1970-01-01
    • 2017-07-21
    • 1970-01-01
    • 1970-01-01
    • 2016-09-18
    相关资源
    最近更新 更多