使用NextGen Gallery将Wordpress站点从本地迁移到实时的问题

时间:2013-09-01 00:26:44

标签: php mysql wordpress migration

我已经将Wordpress网站的本地测试迁移到了实时服务器,但我遇到了一个奇怪的问题。一切正常,但我正在使用的插件之一(NextGEN Gallery)正试图从127.0.0.1/powwptest.1/的旧位置下载一些CSS和JS文件。

对于我的生活,我无法解决这个问题。我已经通过phpMyAdmin在数据库中重复搜索了127.0.0.1localhostpowwptest.1powwptest,我已经使用Sublime Text手动搜索了.SQL文件,并进行了搜索所有1600多个带有Sublime Text的PHP文件都无济于事。绝对没有找到任何东西。

如果数据库或任何文件中没有127.0.0.1/powwptest.1的记录,为什么它仍然试图从本地服务器下载?

一些电话,例如:

http://127.0.0.1/powwptest.1/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/fancybox/jquery.fancybox-1.3.4.css?ver=3.6
http://127.0.0.1/powwptest.1/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/fancybox/jquery.easing-1.3.pack.js?ver=3.6
http://127.0.0.1/powwptest.1/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/fancybox/jquery.fancybox-1.3.4.pack.js?ver=3.6
http://127.0.0.1/powwptest.1/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/fancybox/nextgen_fancybox_init.js?ver=3.6
http://127.0.0.1/powwptest.1/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/fancybox/jquery.fancybox-1.3.4.pack.js?ver=3.6
http://127.0.0.1/powwptest.1/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/fancybox/nextgen_fancybox_init.js?ver=3.6

我已经清除缓存,cookie,在多个浏览器中尝试过,甚至使用第三方(Pingdom)来确保我不会疯狂。他们都在检测连接错误。我试过在实时服务器上更新Wordpress插件,但无济于事。有什么想法吗?

3 个答案:

答案 0 :(得分:3)

一直在开发NextGen Gallery的新团队似乎打破了很多东西。我遇到了一些关于这个插件和网站移动的疯狂问题。

尝试重置永久链接以及插件设置(如果我没记错的话,您可以从WordPress的插件设置页面进行操作)。这不会清除您的图库,只会在插件设置中设置设置。

答案 1 :(得分:1)

我终于弄明白了,希望这适用于其他与NextGen Gallery有问题的人。从您的WordPress仪表板,转到图库 - >其他选项 - >灯箱效果 - > (显示高级设置)。此时,您可以完全从每个条目中删除http://127.0.0.1/等。对于每种类型的灯箱,你都必须这样做一次。

在我看来,这些信息存储在第三方服务器上,否则没有理由再次出现在数据库中。

答案 2 :(得分:0)

我刚刚花了3个小时解决同样的问题。最后,我发现了,看看DB

select * from wp_postmeta where meta_value like '%127.0.0.1%';