【问题标题】:Tried to Move a WordPress site now I get these weird errors尝试移动 WordPress 网站现在我得到了这些奇怪的错误
【发布时间】:2011-08-25 15:24:44
【问题描述】:

我将一个 wordpress 网站从共享环境移到了 media Temple 上的专用虚拟服务器。我一开始是空白页,但是当我打开错误报告时,我得到了这些奇怪的错误。

我该如何解决?

网站网址:https://64.207.147.116/

错误消息

不推荐使用:在第 219 行的 /var/www/vhosts/herondance.org/httpdocs/wp-settings.php 中不推荐使用通过引用分配新的返回值 不推荐使用:通过引用分配新的返回值在/var/www/vhosts/herondance.org/httpdocs/wp-settings.php 第 234 行已弃用:通过引用分配 new 的返回值在 /var/www/vhosts/herondance.org/httpdocs/wp-settings 中已弃用第 241 行的 .php 已弃用:通过引用分配 new 的返回值在第 248 行的 /var/www/vhosts/herondance.org/httpdocs/wp-settings.php 中已弃用 已弃用:通过引用分配 new 的返回值是在第 273 行的 /var/www/vhosts/herondance.org/httpdocs/wp-settings.php 中已弃用 已弃用:函数 set_magic_quotes_runtime() 在 /var/www/vhosts/herondance.org/httpdocs/wp-settings.php 中已弃用在第 27 行注意:未定义的变量:/var/www/vhosts/herondance.org/httpdocs/wp-content/plugins/1-click-retweetsharelike/la-click-and-share-中的 wp_version第 4 行的实用程序-fns.php 注意:未定义索引:第 723 行 /var/www/vhosts/herondance.org/httpdocs/wp-content/plugins/blip-slideshow/blip.php 中的 PATH_INFO 注意:调用了 register_uninstall_hook 不正确。卸载挂钩中只能使用静态类方法或函数。 (此消息是在 3.1 版中添加的。)在 /var/www/vhosts/herondance.org/httpdocs/wp-includes/functions.php 的第 3422 行

【问题讨论】:

    标签: php wordpress content-management-system migration


    【解决方案1】:

    解决方案:我使用 phpmyadmin 进入数据库并禁用了所有插件。然后我将它们一一安装在后端并快速安装。生活,工作现场。不过还是感谢大家的回复。

    【讨论】:

      【解决方案2】:

      您是否可以在 /var/www/vhosts/herondance.org/httpdocs/wp-settings.php 中设置设置

      查看导致错误的受影响行

      使用drupal,移动到另一台服务器要容易得多,只需复制并粘贴整个服务器就可以了

      【讨论】:

        【解决方案3】:

        检查您使用的 WordPress 和 PHP 版本。看起来您可能正在使用一个非常旧的 WordPress 版本,它使用了不再支持的 PHP 功能。如果是这种情况,我建议将 WordPress 升级到最新版本。

        权宜之计是通过将以下代码行放在 web 根目录中 index.php 文件的开头来禁用这些警告。

        error_reporting(E_ALL & ~E_DEPRECATED);
        

        这将阻止显示这些消息,但您真的不应该忽略它们。

        【讨论】:

        • PHP: 5.3.4 / WP: WordPress 3.1.1./ 它们对我来说似乎都很更新。我打开了错误报告。这比不得不处理空白的白页要好得多。然后,我知道发生了什么。
        • 尝试阅读与您的问题类似的帖子:stackoverflow.com/questions/1242871/wordpress-and-php-5-3
        猜你喜欢
        • 1970-01-01
        • 2015-10-13
        • 2010-11-16
        • 1970-01-01
        • 1970-01-01
        • 2014-10-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多