如何修复wp-login.php在迁移后出现错误500?

时间:2018-12-03 作者:blu

我已经将一个word press站点迁移到一个自托管linux服务器。我的首页和所有其他页面都加载了,但是图像仍然指向我的旧服务器。我的wp登录。php页面还提供了一个错误500。

我已经使用mysql终端将数据库中的siteurl和home更改为我的新数据库。

我还将PHP ini文件更改为512M

如果我更改“wp\\u posts”表中的guid,我可以获得要显示的图像。

编辑:

enabling debug showed the following:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Translation_Entry has a deprecated constructor in /var/www/MYSITE/wp-includes/pomo/entry.php on line 14

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_Reader has a deprecated constructor in /var/www/MYSITE/wp-includes/pomo/streams.php on line 12

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_FileReader has a deprecated constructor in /var/www/MYSITE/wp-includes/pomo/streams.php on line 120

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_StringReader has a deprecated constructor in /var/www/MYSITE/wp-includes/pomo/streams.php on line 175

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_CachedFileReader has a deprecated constructor in /var/www/MYSITE/wp-includes/pomo/streams.php on line 221

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_CachedIntFileReader has a deprecated constructor in /var/www/MYSITE/wp-includes/pomo/streams.php on line 236

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Factory has a deprecated constructor in /var/www/MYSITE/wp-includes/widgets.php on line 544

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Acf has a deprecated constructor in /var/www/MYSITE/wp-content/plugins/advanced-custom-fields/acf.php on line 17

1 个回复
最合适的回答,由SO网友:dado 整理而成

启用wp调试,然后访问您的登录名,让我知道上面说了什么。https://codex.wordpress.org/WP_DEBUG

相关推荐

常量WP_CRON_LOCK_TIMEOUT已在/htdocs/wp-config.php中定义

我遇到以下PHP错误:注意:常量WP_CRON_LOCK_TIMEOUT 已在/htdocs/wp config中定义。php在线195我不明白,因为当我用这个词在wordpress项目中搜索时WP_CRON_LOCK_TIMEOUT 我得到的结果是:PHP如何说WP_CRON_LOCK_TIMEOUT 如果中的第二个代码行default-constants.php 被如下条件包裹:if ( !defined( \'WP_CRON_LOCK_TIMEOUT\' ) ) define(\'W