突然,“发布”按钮消失了,新帖子上出现了“发送以供审核”按钮。单击“保存草稿”按钮时,我收到“不允许...”消息。我在 WordPress 上启用了调试,当我导航到新的帖子页面时,我得到:
WordPress database error: [Incorrect datetime value: '0000-00-00 00:00:00' for column 'post_date_gmt' at row 1]
INSERT INTO 'wp_posts' ('post_author','post_date','post_date_gmt','post_content','post_content_filtered','post_title','post_excerpt','post_status','post_type','comment_status','ping_status','post_password','post_name','to_ping','pinged','post_modified','post_modified_gmt','post_parent','menu_order','guid')
VALUES
(1,'2019-07-14 12:53:19','0000-00-00 00:00:00','','','autodraft','','auto-draft','post','open','closed','','','','','2019-07-14 12:53:19','0000-00-00 00:00:00',0,0
在新帖子页面的顶部。我也收到了一堆警告和通知,但我认为这些不太可能导致问题:
Warning: Creating default object from empty value in wp-admin\includes\post.php on line 475
Notice: Undefined property: stdClass::$ID in wp-admin\post-new.php on line 64
Notice: Undefined property: stdClass::$post_date in wp-admin\edit-form-advanced.php on line 49
.
.
.
我是 php 和 WordPress 的新手,所以有没有 WP 老手知道这些是否正常,或者这些是否与无法创建新帖子或保存新帖子草稿有关?
慕森王