简体   繁体   English

Wordpress, Woocommerce 网站部分产品图片未显示

[英]Wordpress, Woocommerce site some of products images not showing

Can anyone help, why my website products images not showing, even when i try to see them in media folder its show blank space, But All images are still exists in upload folder.谁能帮忙,为什么我的网站产品图像没有显示,即使我尝试在媒体文件夹中查看它们显示空白,但所有图像仍然存在于上传文件夹中。 When i inspect and find the image url and open it, It shows the page not found.当我检查并找到图像 url 并打开它时,它显示找不到页面。 For you reference Please check the website: enter link description here供您参考请查看网站:在此处输入链接描述

Help me to resolve this issue.帮我解决这个问题。

Update: I think your thumbnail files exist (even though WordPress shows page not found ), I mean, I tried visiting a non-existing-file link and Apache shows 404 error (and I do not know which version of WordPress your site is using) but in my experience Apache never shows 404 error directly and transfers the request to WordPress which then shows " page not found " (maybe your .htaccess file has some issues too). Update: I think your thumbnail files exist (even though WordPress shows page not found ), I mean, I tried visiting a non-existing-file link and Apache shows 404 error (and I do not know which version of WordPress your site is using )但根据我的经验, Apache从不直接显示404错误,并将请求传输到WordPress ,然后显示“ page not found ”(可能您的.htaccess文件也存在一些问题)。

  1. Ensure your uploads directory and files have correct permissions (see related post about how to do that).确保您的uploads目录和文件具有正确的权限(请参阅有关如何执行此操作的相关帖子)。
  2. Ensure your .htaccess file redirects correctly to WordPress (try visiting a non-existing-file link by your self, until fixed).确保您的.htaccess文件正确重定向到WordPress (尝试自行访问不存在的文件链接,直到修复为止)。
  3. If security is an issue you should not disclose further information here (else open another question with more details).如果安全是一个问题,您不应该在此处披露更多信息(否则请打开另一个问题以提供更多详细信息)。

Example .htaccess file:示例.htaccess文件:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM