Title: Error adding new page
Last modified: April 20, 2023

---

# Error adding new page

 *  [sedelstein](https://wordpress.org/support/users/sedelstein/)
 * (@sedelstein)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-adding-new-page/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-adding-new-page%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [sedelstein](https://wordpress.org/support/users/sedelstein/)
 * (@sedelstein)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-adding-new-page/#post-16670850)
 * 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**
 *  [Shariful Islam](https://wordpress.org/support/users/sharif200/)
 * (@sharif200)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-adding-new-page/#post-16680345)
 * Hi, [@sedelstein](https://wordpress.org/support/users/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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Shariful Islam](https://wordpress.org/support/users/sharif200/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/error-adding-new-page/#post-16680345)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
