• Greetings!

    I’m not sure when the issue occurred. I haven’t posted anything to my site for about a year, but have tried to keep it updated. My website is running WordPress version 4.4.2–en. I believe my Current PHP version is native (5.4). When I try to post, I get the following error:

    Warning: Creating default object from empty value in /home/reenajacobs/public_html/blog/wp-admin/includes/post.php on line 632

    Line 632 shows $post->post_content = apply_filters( ‘default_content’, $post_content, $post );

    I’ve read through a few of the forums for similar issues. However, I haven’t found a solution that works for me. I’ve taken the following steps:

    Uninstalled and deleted all plugins
    Activated Twenty-Fifteen Theme
    Deleted the wp-admin & wp-include folders & manually uploaded the latest version of WordPress
    Optimized Tables in phpMyAdmin
    Repaired Tables in phpMyAdmin

    My website is http://reenajacobs.com/blog. Any assistance is much appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • When you deactivated all plugins, did you deactivate them all at the same time?

    Did you try going to Dashboard > Updates and then clicking on “Re-install now” to re-install WordPress that way?

    Thread Starter reenajacobs

    (@reenajacobs)

    Thank you for responding, Codente. I deactivated all the plugins at once then deleted them all. There are no plugins in my file manager. I tried reinstalling WordPress through the Dashboard a few times and finally tried to reinstall it manually by downloading with the zip file provided in the update page.

    Do you have WP_DEBUG enabled in your wp-config file?

    Thread Starter reenajacobs

    (@reenajacobs)

    I have tried enabling it. However, I don’t understand what the errors mean or how to fix them.

    These errors that appear at the top of the page when I try to do a new post.

    WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’]
    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, post_mime_type, guid) VALUES (1, ‘2016-02-23 13:05:21’, ‘0000-00-00 00:00:00’, ”, ”, ‘Auto Draft’, ”, ‘auto-draft’, ‘post’, ‘open’, ‘open’, ”, ”, ”, ”, ‘2016-02-23 13:05:21’, ‘0000-00-00 00:00:00’, 0, 0, ”, ”)

    Notice: Trying to get property of non-object in /home/lrdavis/public_html/blog/wp-admin/includes/post.php on line 600

    Warning: Creating default object from empty value in /home/lrdavis/public_html/blog/wp-admin/includes/post.php on line 632

    Notice: Undefined property: stdClass::$ID in /home/lrdavis/public_html/blog/wp-admin/post-new.php on line 84

    Notice: Undefined property: stdClass::$post_date in /home/lrdavis/public_html/blog/wp-admin/edit-form-advanced.php on line 133

    Notice: Undefined property: stdClass::$post_status in /home/lrdavis/public_html/blog/wp-admin/edit-form-advanced.php on line 185

    Notice: Undefined property: stdClass::$post_status in /home/lrdavis/public_html/blog/wp-admin/edit-form-advanced.php on line 219

    Notice: Undefined property: stdClass::$post_type in /home/lrdavis/public_html/blog/wp-includes/taxonomy.php on line 180

    Notice: Undefined property: stdClass::$post_type in /home/lrdavis/public_html/blog/wp-includes/taxonomy.php on line 182

    There are also other errors that are scattered throughout.

    Hello reenajacobs and codente ,
    I have the same trouble. I can not add any page, any image, any menu voice. Have you find a solution?
    My wordpress is running the 4.4.2 version.
    I have tried to fix by deactivating all plugins and reactivating them one by one, without success. (my plug in are: Crafty Social Buttons, Contact Form 7 , Slider Revolution, WP Google Maps , WP-Optimize )
    I have also deleted the wp-admin & wp-includes folders and manually uploaded the latest version of WordPress by ftp just like you. It has not been useful.
    The debug file reports that:

    [07-Mar-2016 17:07:46 Europe/Stockholm] running wpo_cron_deactivate()
    [07-Mar-2016 17:07:48 Europe/Stockholm] WordPress errore sul database Duplicate entry ‘0’ for key ‘PRIMARY’ per la query 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, post_mime_type, guid) VALUES (1, ‘2016-03-07 17:07:48’, ‘0000-00-00 00:00:00’, ”, ”, ‘Bozza automatica’, ”, ‘auto-draft’, ‘post’, ‘open’, ‘open’, ”, ”, ”, ”, ‘2016-03-07 17:07:48’, ‘0000-00-00 00:00:00’, 0, 0, ”, ”) fatta da get_default_post_to_edit, wp_insert_post
    [07-Mar-2016 17:07:48 Europe/Stockholm] PHP Warning: Creating default object from empty value in /public_html/wp-admin/includes/post.php on line 632
    [07-Mar-2016 17:07:54 Europe/Stockholm] running wpo_cron_deactivate()
    [07-Mar-2016 17:07:56 Europe/Stockholm] WordPress errore sul database Duplicate entry ‘0’ for key ‘PRIMARY’ per la query 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, post_mime_type, guid) VALUES (1, ‘2016-03-07 17:07:56’, ‘0000-00-00 00:00:00’, ”, ”, ‘Bozza automatica’, ”, ‘auto-draft’, ‘page’, ‘closed’, ‘closed’, ”, ”, ”, ”, ‘2016-03-07 17:07:56’, ‘0000-00-00 00:00:00’, 0, 0, ”, ”) fatta da get_default_post_to_edit, wp_insert_post
    [07-Mar-2016 17:07:56 Europe/Stockholm] PHP Warning: Creating default object from empty value in /public_html/wp-admin/includes/post.php on line 632

    I also must tell you that I have got this trouble since the website is online ( about 10 days)
    I am not familiar with php and database at all. Would you please help me? I would appreciate it very much. Thank you very much indeed.

    Thread Starter reenajacobs

    (@reenajacobs)

    I’m not able to help you. I don’t have a solution for my own website. I’m not sure what to do. I started my website the end of 2009/beginning of 2010 and have quite a bit of content. The export file is too large to import into a fresh copy of WordPress, so I’m not sure that’s even a possible solution. I can’t imagine starting it from fresh after all this time. Until I figure out a solution, it’s stagnant though.

    I understand. Anyway,Thank you for answering. I do hope that someone in this forum who is knowledgeable about this kind of stuff will help both of us.

    Thread Starter reenajacobs

    (@reenajacobs)

    Ditto

    Did you get the solution for that? I am also facing same error, cant add any page/plugins etc, please let me know

    Hello. My English is bad. But I want to share the decision:

    • Dump wp_posts table;
    • From there, remove the lines with the index 0;
    • Create an (PRIMARY) index for the ID column;
    • ALTER TABLE wp_posts CHANGE ID ID INT(20) NOT NULL AUTO_INCREMENT;
    • Restore table;
    • This reply was modified 9 years, 5 months ago by crud.
Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Warning: Creating default object from empty value in’ is closed to new replies.