• Hello,
    I woke up to find the errors below after I tried to edit the functions.php file with code to include the image node in my rss feed. After several attempts that were unsuccessful, I took out the code, revert to what it was (i made a back up) and even published a number of posts, only to wake up and now I can’t make a post, I get the error below whe I get on the ‘new post’ page. I have tried everything mentioned in the forum – ABSOLUTELY EVERYTHING OR ALMOST including deactiavting all plug-ins to upload new functions.php and even changing tp every of ‘twenty’ theme and error still arises, nothing seems to work.

    Somebody assist, please.

    Error i get on the ‘new post’ page is:

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

    Warning: Cannot modify header information – headers already sent by (output started at /home/cityofsound/public_html/wp-admin/includes/post.php:639) in /home/cityofsound/public_html/wp-includes/option.php on line 823

    Warning: Cannot modify header information – headers already sent by (output started at /home/cityofsound/public_html/wp-admin/includes/post.php:639) in /home/cityofsound/public_html/wp-includes/option.php on line 824

    thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You tried DB repair?
    wp config:
    define(‘WP_ALLOW_REPAIR’, true);

    Then
    https://www.yoursite.com/wp-admin/maint/repair.php

    Make sure its all backed up etc.

    Thread Starter themac

    (@themac)

    Yes i have, several times.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    A DB repair can’t do anything for the headers already sent error.

    I woke up to find the errors below after I tried to edit the functions.php file with code to include the image node in my rss feed.

    Can you get an unmodified version of that functions.php file and put it back? Odds are your edit is causing this new problem.

    Thread Starter themac

    (@themac)

    Hello +Jan,
    I have returned the unmodified version.
    New development, I included the code in my wp-config.php file and the errors are gone but the field to type my post now displaying and no ‘publish’ buttin, just ‘submit to review’.

    I have too this problem… And NOTHING helped… I dont know what it make, I think olda plugin Hide My WP 5.1 plugin, but its no 100%.

    I must all page export, then drop tables, and new install WP, then import pages, and theme again make from 0

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘'Creating default object from empty value in' while creating new post’ is closed to new replies.