• All of a sudden I’m not able to add new pages and posts. I get the error below. I’m not aware of doing anything that would cause this. I was able to add some pages when I installed WordPress last eeek but then something changed. Please help.

    I tried deactivating all plugins but that did not help.

    Steve

    This is the error when I try to add a page:

    Warning default object from empty value in /home/customer/www/matthews337.sg-host.com/public_html/wp-admin/includes/post.php on line 762

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sedelstein

    (@sedelstein)

    IPS

    also get this error:

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

    Hi, @sedelstein

    The error message suggests an issue with a PHP file in the wp-admin folder of your WordPress installation. Specifically, it seems like the issue is with the file “post.php” in the “includes” folder.

    One possible cause of this error is whitespace or other characters being output before the headers are sent, which can prevent new pages and posts from being created. This can happen if there are blank lines or spaces before the opening PHP tag “<?php” or after the closing PHP tag “?>” or if there are characters outside the PHP tags.

    To fix this, try opening the “post.php” file and checking for any whitespace or characters outside the PHP tags. Make sure there are no blank lines before the opening PHP tag or after the closing PHP tag and that there are no characters outside the PHP tags. If you find any whitespace or characters, remove them and save the file.

    If that doesn’t work, you can try replacing the “post.php” file with a fresh copy from a WordPress installation package. Make sure to back up the original file before doing this.
    Thank you.

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

The topic ‘Error adding new page’ is closed to new replies.