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