GG资源网

无法在WordPress中创建新帖子

问题描述:

Suddently the \"publish\" button has vanished, and there is the \"send for review\" button instead on new posts.
When clicking the \"save draft\" button I get \"you are not allowed to...\" message.
I enabled debugging on WordPress, and when I navigate to the new post page, I get:

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

at the top of the new post page. I also get a bunch of warnings and notices too, but I figured it\'s unlikely these are causing the problem:

I\'m new to php and WordPress, so does any WP veteran know if these are normal, or do these have to do anything to do with being unable to create new posts or save a new post draft?

图片转代码服务由CSDN问答提供

感谢您的意见,我们尽快改进~
功能建议

突然,“发布”按钮消失了,而“新发帖”则显示“发送审核”按钮。
当点击“保存草稿”按钮时,我得到“你不被允许......”消息。
我在WordPress上启用了调试,当我导航到新帖子页面时,我得到:</ p>
\\ n

  WordPress数据库错误:[第1行的\'post_date_gmt\'列的日期时间值不正确:\'0000-00-00 00:00:00\']
</ code> </ pre>
\\ n

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\',\'00:00:00\',\'\',\'\',\'autodraft\',\'\',\'自动选秀\',\'发布\', \'open\',\'closed\',\'\',\'\',\'\',\'\',\'\'2019-07-14 12:53:19\',\'00:00:00\',0,0 < / code> </ p>

位于顶部 新帖子。 我也得到了一堆警告和通知,但我认为这不太可能导致问题:</ p>

 警告:在wp-admin \\ includes中从空值创建默认对象 第475行\\ post.php 

注意:未定义的属性:第64行的wp-admin \\ post-new.php中的stdClass :: $ ID

注意:未定义的属性:wd-admin中的stdClass :: $ post_date \\ edit-form-advanced.php第49行



</ code> </ pre>

我是php和WordPress的新手,任何WP都是 老手知道这些是否正常,或者这些是否与无法创建新帖子或保存新帖子草稿有关?</ p>
</ div>

网友观点:

I\'ve resolved this issue by changing all core files inside WordPress since that inside the files can be a malware. This is not a solution for the custom-designed theme because then is probably some mistake inside the theme.

You can download a fresh new install, remove the wp-content folder, and wp-config.php file and just merge via FTP/SFTP to your root folder where is the WordPress install.

I would suggest you create a backup first.

由于网站搬家,部分链接失效,如无法下载,请联系站长!谢谢支持!
1. 带 [亲测] 说明源码已经被站长亲测过!
2. 下载后的源码请在24小时内删除,仅供学习用途!
3. 分享目的仅供大家学习和交流,请不要用于商业用途!
4. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
5. 本站所有资源来源于站长上传和网络,如有侵权请邮件联系站长!
6. 没带 [亲测] 代表站长时间紧促,站长会保持每天更新 [亲测] 源码 !
7. 盗版ripro用户购买ripro美化无担保,若设置不成功/不生效我们不支持退款!
8. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
9. 如果你也有好源码或者教程,可以到审核区发布,分享有金币奖励和额外收入!
10.如果您购买了某个产品,而我们还没来得及更新,请联系站长或留言催更,谢谢理解 !
GG资源网 » 无法在WordPress中创建新帖子

发表回复

CAPTCHAis initialing...
© 2021-GG资源网 - www.ggplus.cn. All rights reserved