0

我已将 magento 安装从一台服务器转移到另一台服务器。一切运行顺利,但我的 magento wordpress 集成没有在博客中显示我的图像。我检查了源代码,它说加载图像失败,而图像在那里,即使我尝试加载新帖子,但媒体上传器(缩略图)中的图像没有显示,当单击插入时,它显示一个损坏的图像图标。

4

2 回答 2

0

I believe the following MySQL queries need to be run to change the domain names for WordPress in its database (if my assumption of the domain name being different is correct)

UPDATE wp_posts set post_content=REPLACE(post_content, 'old-domain.com', 'new-domain.com');

UPDATE wp_postmeta SET meta_value= replace(meta_value, 'old-domain.com', 'new-domain.com');

UPDATE wp_options SET option_value = replace(option_value, 'old-domain.com', 'new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
于 2013-05-19T23:59:37.810 回答
0

检查存储 wp 图像的媒体文件夹的权限。如果不是 make 是 644,它应该是可读的,如果 644 不起作用,也尝试 777

于 2013-05-20T06:25:24.810 回答