• Resolved npkastelein

    (@npkastelein)


    I have a Neve themed site. When I try to add a new post or page it is suddenly doing this:

    Warning: Creating default object from empty value in /home/customer/www/npkastelein.com/public_html/wp-admin/includes/post.php on line 736

    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/npkastelein.com/public_html/wp-admin/includes/post.php:736) in /home/customer/www/npkastelein.com/public_html/wp-admin/admin-header.php on line 9

    When I try to add new media that is also not working and I get: “Could not insert attachment into the database.”

    My site is only a couple of weeks old, still getting it set up and I am fairly new to wordpress.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and switch to the default Twenty Twenty-One theme. If the problem goes away, enable them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter npkastelein

    (@npkastelein)

    I tried that manually already, as it is recommended several times on this forum. Unfortunately it didn’t work work; changing theme and disabling any/all plugins hasn’t made any change to the error that’s occurring.

    Thanks for the recommendation of installing Health Check, though. I was able to install it, which made the process easier.

    But it still didn’t work…

    Moderator James Huff

    (@macmanx)

    Ok, try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter npkastelein

    (@npkastelein)

    That worked! I stuffed it up a bit and had more rework than I would have liked… but its all working now 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Add new post causes ‘Creating default object from empty value’’ is closed to new replies.