Wordpress图像被破坏了

时间:2017-05-11 18:13:58

标签: php wordpress wordpress-theming brokenimage

我的wordpress工作正常,然后突然我的图像不再显示了。它们看起来像是破碎的图像我已禁用插件,更改主题,更改了文件权限但它确实解决了我的问题。 Network error Example of image not loading

服务器错误日志

    [Thu May 11 17:02:42 2017] [crit] [client 96.43.225.68] [host afaccra.org] (13)Permission denied: /homez.47/afaccraons/www/wp-content/uploads/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, 
    [Thu May 11 17:02:42 2017] [crit] [client 96.43.225.68] [host afaccra.org] (13)Permission denied: /homez.47/afaccraons/www/wp-content/uploads/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, 
    [Thu May 11 17:02:42 2017] [crit] [client 96.43.225.68] [host afaccra.org] (13)Permission denied: /homez.47/afaccraons/www/wp-content/uploads/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, 
    [Thu May 11 17:02:42 2017] [crit] [client 96.43.225.68] [host afaccra.org] (13)Permission denied: /homez.47/afaccraons/www/wp-content/uploads/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, 
[Thu May 11 19:45:06 2017] [error] [client 197.234.219.17] [host afaccra.org] (104)Connection reset by peer: FastCGI: comm with server "/homez.47/afaccraons/www/wp-admin/admin-ajax.php" aborted: read failed, referer: http://afaccra.org/wp-admin/tools.php?page=regenerate-thumbnails
[Thu May 11 19:45:06 2017] [error] [client 197.234.219.17] [host afaccra.org] FastCGI: incomplete headers (0 bytes) received from server "/homez.47/afaccraons/www/wp-admin/admin-ajax.php", referer: http://afaccra.org/wp-admin/tools.php?page=regenerate-thumbnails

我真的不知道该怎么做。任何解决方法都可以解决这个问题吗?

3 个答案:

答案 0 :(得分:0)

首先检查上传媒体库中的图像是否可见。 如果它不可见,请尝试这些命令。

同时检查apache可读的htaccess文件: chmod 644 /var/www/abc/.htaccess

然后它所在的目录是可读和可执行的: chmod 755 / var / www / abc /

答案 1 :(得分:0)

这是一个许可问题。您需要确保执行脚本的用户具有所有文件夹的读取权限。路径中的文件。这不应该超过半小时,只需确保您不对文件夹授予太多权限(例如,访客不应该访问它们)。另外,请确保路径正确。

答案 2 :(得分:0)

如果通过CHMOD更改文件或文件夹的权限不起作用,请尝试使用chown命令更改或添加用户/组的权限。如果您无法通过SSH访问,请联系您的托管技术支持。