• When I try to create a new post, after the last update, I received this error:

    Warning: Creating default object from empty value in {$my_site}/wp-admin/includes/post.php on line 641

    I tried to create the new post with all plugins deactivated, but the problem is
    still there.

    Then, I’ve added the following define to my wp-config.php file:
    define( 'WP_ALLOW_REPAIR', true );
    Then run the script “repair.php” located at “{$my_site}/wp-admin/maint/repair.php”
    Return no errors in the BD, but the problem persist.

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    Try deactivating all plugins (just to be sure, all of them). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Sixteen theme to rule-out a theme-specific issue (theme functions can interfere like plugins).

    If neither of those make any difference, try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Create new post – error’ is closed to new replies.