Title: Error creating post/page on my site
Last modified: July 9, 2026

---

# Error creating post/page on my site

 *  [JOHN S.](https://wordpress.org/support/users/emergencyloan/)
 * (@emergencyloan)
 * [23 hours, 49 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/)
 * Hello,
 * I can’t create a new post or page.
 * It happened unexpectedly. I hadn’t published anything on the site for about a
   year. Then, when I decided to create a new page, I saw this error.
 * I’m seeing this error: “There has been a critical error on this website. Please
   check your site admin email inbox for instructions. If you continue to have problems,
   please try the support forums.”.
 * Running the latest version of WordPress.
   All plugins are updated (I also tried
   renaming the plugins folder).PHP version 8.2.
 * What could be the issue?

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [23 hours, 11 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18960556)
 * The reason for the error should be visible in the error log. You can find it 
   in your hosting area. If necessary, the support of your hosting can help you.
 * Alternatively, you could also enable debugging in WordPress. How to do this is
   described here: [https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)–
   also here the support of your hosting can help you if necessary to edit the file
   accordingly.
 * In both cases you should be able to see what the cause is in the logfile.
 *  Thread Starter [JOHN S.](https://wordpress.org/support/users/emergencyloan/)
 * (@emergencyloan)
 * [21 hours, 3 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18960679)
 * I added “WP_DEBUG” to the wp-config.php file, but the error log file didn’t appear.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [20 hours, 7 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18960733)
 * In addition to setting `WP_DEBUG`, you must also set `WP_DEBUG_LOG`. Then, reload
   the page to trigger the error. After that, a `debug.log` file should appear in
   the `wp-content` directory.
 *  Thread Starter [JOHN S.](https://wordpress.org/support/users/emergencyloan/)
 * (@emergencyloan)
 * [4 hours, 45 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18961238)
 * > > After that, a debug.log file should appear in the wp-content directory.
 * No such file((
 * I tried adding these lines:
 * // Enable Debug logging to the /wp-content/debug.log file
   define( ‘WP_DEBUG_LOG’,
   true );
 * // Enable Debug logging to the /wp-content/debug.log file
   define( ‘WP_DEBUG_LOG’,
   true );
 * And these too:
 * // Disable display of errors and warnings
   define( ‘WP_DEBUG_DISPLAY’, false );@
   ini_set( ‘display_errors’, 0 );
 * // Use dev versions of core JS and CSS files (only needed if you are modifying
   these core files)
   define( ‘SCRIPT_DEBUG’, true );
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 hours, 4 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18961317)
 * I don’t know if you just copied it wrong, but something’s still off. The correct
   version would be:
 *     ```wp-block-code
       // Enable Debug loggingdefine( 'WP_DEBUG', true );// Enable Debug logging to the /wp-content/debug.log filedefine( 'WP_DEBUG_LOG', true );
       ```
   
 * And if that just won’t work, contact your hosting provider’s support team to 
   request their error log, which should actually contain that information.
 *  Thread Starter [JOHN S.](https://wordpress.org/support/users/emergencyloan/)
 * (@emergencyloan)
 * [1 hour, 52 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18961387)
 * Oh my god, really… Thanks so much for your help!
 * Judging by the errors, it seems like the problem is with the theme? That’s odd,
   since I didn’t make any changes. The problem with creating new pages/posts just
   appeared out of the blue.
 *  Thread Starter [JOHN S.](https://wordpress.org/support/users/emergencyloan/)
 * (@emergencyloan)
 * [1 hour, 49 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18961391)
 *     ```wp-block-code
       [10-Jul-2026 08:32:01 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:32:01 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 7961[10-Jul-2026 08:32:01 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 7962[10-Jul-2026 08:32:01 UTC] PHP Warning: Attempt to read property "ID" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 7966[10-Jul-2026 08:32:01 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 8228[10-Jul-2026 08:32:01 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/theme.php on line 3642[10-Jul-2026 08:32:01 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/theme.php on line 3868[10-Jul-2026 08:32:01 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 5883[10-Jul-2026 08:32:01 UTC] PHP Warning: Attempt to read property "ID" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 5883[10-Jul-2026 08:32:01 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 5182[10-Jul-2026 08:32:01 UTC] PHP Warning: Trying to access array offset on value of type null in /var/www/site_user/data/www/***/wp-content/mu-plugins/wpengine-common/plugin.php on line 1648[10-Jul-2026 08:32:01 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property "post_content" on null in /var/www/site_user/data/www/***/wp-admin/includes/post.php:817Stack trace: 0 /var/www/site_user/data/www/***/wp-admin/includes/dashboard.php(563): get_default_post_to_edit('post', true) 1 /var/www/site_user/data/www/***/wp-admin/includes/template.php(1458): wp_dashboard_quick_press('', Array) 2 /var/www/site_user/data/www/***/wp-admin/includes/dashboard.php(274): do_meta_boxes(Object(WP_Screen), 'side', '') 3 /var/www/site_user/data/www/***/wp-admin/index.php(204): wp_dashboard() 4 {main}thrown in /var/www/site_user/data/www/***/wp-admin/includes/post.php on line 817[10-Jul-2026 08:32:20 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:32:21 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:32:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:32:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:32:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:32:24 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 7961[10-Jul-2026 08:32:24 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 7962[10-Jul-2026 08:32:24 UTC] PHP Warning: Attempt to read property "ID" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 7966[10-Jul-2026 08:32:24 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 8228[10-Jul-2026 08:32:24 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/theme.php on line 3642[10-Jul-2026 08:32:24 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/theme.php on line 3868[10-Jul-2026 08:32:24 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 5883[10-Jul-2026 08:32:24 UTC] PHP Warning: Attempt to read property "ID" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 5883[10-Jul-2026 08:32:24 UTC] PHP Warning: Attempt to read property "post_type" on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 5182[10-Jul-2026 08:32:24 UTC] PHP Warning: Trying to access array offset on value of type null in /var/www/site_user/data/www/***/wp-content/mu-plugins/wpengine-common/plugin.php on line 1648[10-Jul-2026 08:32:24 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property "post_content" on null in /var/www/site_user/data/www/***/wp-admin/includes/post.php:817Stack trace: 0 /var/www/site_user/data/www/***/wp-admin/post-new.php(66): get_default_post_to_edit('page', true) 1 {main}thrown in /var/www/site_user/data/www/***/wp-admin/includes/post.php on line 817[10-Jul-2026 08:32:26 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:34:41 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:35:11 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:35:12 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:38:58 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170[10-Jul-2026 08:38:59 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/site_user/data/www/***/wp-includes/functions.php on line 6170
       ```
   
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 hour, 20 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18961430)
 * No, you can ignore all those notices and warnings for now. They’re annoying, 
   but they’re not the cause of the error.
 * As for the error, it manifests as a fatal error. And that, in turn, is strange.
   Because it points to a line in a WordPress core file that doesn’t even contain
   the necessary code. Which version of WordPress are you using? That might explain
   the discrepancy – and perhaps the error as well.
 * As a test, you can also try deactivating all plugins. They might be to blame.
   And yes, you could also try switching themes, but Neve is actually quite widely
   used, and it would be strange if it were causing the problem.
 *  Thread Starter [JOHN S.](https://wordpress.org/support/users/emergencyloan/)
 * (@emergencyloan)
 * [54 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18961458)
 * I deleted the wp-config file and regenerated it.
   I tried updating htaccess to
   the default one.I tried renaming the plugins folder.I tried changing the theme.
   I changed the PHP version to 8.0 (previously it was 8.2).
 * The latest version of WordPress (7.0.1).
 * Here’s the latest debug output right after clicking the create new post button:
 * [10-Jul-2026 09:29:48 UTC] PHP Notice: Function _load_textdomain_just_in_time
   was called **incorrectly**. Translation loading for the `neve` domain was triggered
   too early. This is usually an indicator for some code in the plugin or theme 
   running too early. Translations should be loaded at the `init` action or later.
   Please see [Debugging in WordPress](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   for more information. (This message was added in version 6.7.0.) in /var/www/
   site_user/data/www/***/wp-includes/functions.php on line 6170
   [10-Jul-2026 09:
   29:48 UTC] PHP Warning: Attempt to read property “post_type” on null in /var/
   www/site_user/data/www/***/wp-includes/post.php on line 7961[10-Jul-2026 09:29:
   48 UTC] PHP Warning: Attempt to read property “post_type” on null in /var/www/
   site_user/data/www/***/wp-includes/post.php on line 7962[10-Jul-2026 09:29:48
   UTC] PHP Warning: Attempt to read property “ID” on null in /var/www/site_user/
   data/www/***/wp-includes/post.php on line 7966[10-Jul-2026 09:29:48 UTC] PHP 
   Warning: Attempt to read property “post_type” on null in /var/www/site_user/data/
   www/***/wp-includes/post.php on line 8228[10-Jul-2026 09:29:48 UTC] PHP Warning:
   Attempt to read property “post_type” on null in /var/www/site_user/data/www/***/
   wp-includes/theme.php on line 3642[10-Jul-2026 09:29:48 UTC] PHP Warning: Attempt
   to read property “post_type” on null in /var/www/site_user/data/www/***/wp-includes/
   theme.php on line 3868[10-Jul-2026 09:29:48 UTC] PHP Warning: Attempt to read
   property “post_type” on null in /var/www/site_user/data/www/***/wp-includes/post.
   php on line 5883[10-Jul-2026 09:29:48 UTC] PHP Warning: Attempt to read property“
   ID” on null in /var/www/site_user/data/www/***/wp-includes/post.php on line 5883[
   10-Jul-2026 09:29:48 UTC] PHP Warning: Attempt to read property “post_type” on
   null in /var/www/site_user/data/www/***/wp-includes/post.php on line 5182[10-
   Jul-2026 09:29:48 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property“
   post_content” on null in /var/www/site_user/data/www/***/wp-admin/includes/post.
   php:817Stack trace: 0 /var/www/site_user/data/www/***/wp-admin/post-new.php(66):
   get_default_post_to_edit(‘page’, true) 1 {main}
 * thrown in /var/www/site_user/data/www/***/wp-admin/includes/post.php on line 
   817
 * Is there a problem with the database…
    -  This reply was modified 51 minutes ago by [JOHN S.](https://wordpress.org/support/users/emergencyloan/).
 *  Thread Starter [JOHN S.](https://wordpress.org/support/users/emergencyloan/)
 * (@emergencyloan)
 * [40 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18961479)
 * Oh, there’s complete nonsense going on in the database.
 * ![](https://i0.wp.com/i.ibb.co/ZR7CcLSS/db.png?ssl=1)

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-creating-post-page%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 2 participants
 * Last reply from: [JOHN S.](https://wordpress.org/support/users/emergencyloan/)
 * Last activity: [40 minutes ago](https://wordpress.org/support/topic/error-creating-post-page/#post-18961479)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
