首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >显示了以下“警告:尝试读取/var/www/html/blog/wp-包括/post.php在第7589行中的null属性"post_type”“

显示了以下“警告:尝试读取/var/www/html/blog/wp-包括/post.php在第7589行中的null属性"post_type”“
EN

Stack Overflow用户
提问于 2022-04-23 03:45:28
回答 1查看 1.1K关注 0票数 -1

最近,我将我的网站迁移到了新的AWS实例。Php8.0,MySql8.0,所有页面都正常工作。Wordpress数据库从Mysql5.7导出并导入到MySql8.0。博客显示和Wordpress的其他部分工作得很好。但是,当我点击‘添加新的帖子’,我会得到这些错误。Wordpress是最新的5.9.3。

代码语言:javascript
运行
复制
Warning: Attempt to read property "post_type" on null in /var/www/html/blog/wp-includes/post.php on line 7589

Warning: Attempt to read property "post_type" on null in /var/www/html/blog/wp-includes/post.php on line 7590

Warning: Attempt to read property "ID" on null in /var/www/html/blog/wp-includes/post.php on line 7594

Warning: Attempt to read property "post_type" on null in /var/www/html/blog/wp-includes/post.php on line 7837

Warning: Attempt to read property "post_type" on null in /var/www/html/blog/wp-includes/theme.php on line 3502

Warning: Attempt to read property "post_type" on null in /var/www/html/blog/wp-content/mu-plugins/endurance-page-cache.php on line 544

Warning: Attempt to read property "public" on null in /var/www/html/blog/wp-content/mu-plugins/endurance-page-cache.php on line 544

Warning: Attempt to read property "ID" on null in /var/www/html/blog/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/modules/class-posts.php on line 557

Warning: Attempt to read property "post_type" on null in /var/www/html/blog/wp-includes/theme.php on line 3727

Warning: Attempt to read property "post_type" on null in /var/www/html/blog/wp-includes/post.php on line 5375

Warning: Attempt to read property "ID" on null in /var/www/html/blog/wp-includes/post.php on line 5375

Warning: Attempt to read property "post_type" on null in /var/www/html/blog/wp-includes/post.php on line 4676

Fatal error: Uncaught Error: Attempt to assign property "post_content" on null in /var/www/html/blog/wp-admin/includes/post.php:742 Stack trace: #0 /var/www/html/blog/wp-admin/post-new.php(66): get_default_post_to_edit('post', true) #1 {main} thrown in /var/www/html/blog/wp-admin/includes/post.php on line 742

如果我禁用my.conf中的错误,页面将进入一个无穷无尽的循环,并最终显示“网关超时”。

EN

回答 1

Stack Overflow用户

发布于 2022-05-04 04:32:09

我从服务器上完全删除了WordPress,并使用WPEngine插件将我的WordPress网站迁移到新的主机服务器。幸运的是,我仍然可以访问旧的服务器和网站文件,所以我可以这样做。一切都很好。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71976648

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档