• *

    (@aliad)


    Hello

    I’m having trouble with the post-new.php page. After the page is loaded, the page is blank(white).

    I disabled all plugins and enabled WP_DEBUG and below is the error I got on the post-new.php page.

    Notice: Trying to get property 'post_type' of non-object in /public_html/wp-includes/post.php on line 7502
    
    Notice: Trying to get property 'post_type' of non-object in /public_html/wp-includes/post.php on line 7503
    
    Notice: Trying to get property 'ID' of non-object in /public_html/wp-includes/post.php on line 7507
    
    Notice: Trying to get property 'post_type' of non-object in /public_html/wp-includes/post.php on line 7762
    
    Notice: Trying to get property 'post_type' of non-object in /public_html/wp-includes/theme.php on line 3596
    
    Notice: Trying to get property 'post_type' of non-object in /public_html/wp-includes/theme.php on line 3822
    
    Notice: Trying to get property 'post_type' of non-object in /public_html/wp-includes/post.php on line 5448
    
    Notice: Trying to get property 'ID' of non-object in /public_html/wp-includes/post.php on line 5448
    
    Notice: Trying to get property 'post_type' of non-object in /public_html/wp-includes/post.php on line 4749
    
    Notice: Trying to get property 'post_type' of non-object in /public_html/wp-admin/includes/post.php on line 756
    
    Warning: Creating default object from empty value in /public_html/wp-admin/includes/post.php on line 795
    
    Notice: Undefined property: stdClass::$ID in /public_html/wp-admin/post-new.php on line 67
    
    Notice: Undefined property: stdClass::$post_status in /public_html/wp-admin/edit-form-blocks.php on line 91
    
    Notice: Undefined property: stdClass::$post_type in /public_html/wp-admin/includes/meta-boxes.php on line 1558
    
    Notice: Undefined property: stdClass::$post_type in /public_html/wp-includes/taxonomy.php on line 297
    
    Notice: Undefined property: stdClass::$post_type in /public_html/wp-includes/taxonomy.php on line 300
    
    Notice: Undefined property: stdClass::$post_type in /public_html/wp-admin/edit-form-blocks.php on line 298
Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter *

    (@aliad)

    Answers to threadi (@threadi)’s questions:

    Are there any anomalies in Tools > Site Health?
    Yes, an event (A scheduled event has failed)

    Is there anything in /wp-content/mu-plugins?
    Yes, a file named (health-check-troubleshooting-mode.php)

    Is there anything conspicuous in the wp-config.php, individually added?
    Yes, one line of code (define( ‘WP_CACHE’, true );)

    I assume you call up the page in question with /wp-admin/post-new.php?post_type=page ?
    Yes

    Can you edit existing pages / posts?
    No

    Can they also be saved?
    No

    And just for our information here: I assume you are using WordPress 6.4.3?
    No, I’m using WordPress 6.5.2.

    And: is this an existing project with data records or is this a new installation?
    I did not understand this question.

    • This reply was modified 7 months, 2 weeks ago by *.
    Thread Starter *

    (@aliad)

    Answers to Torsten Landsiedel (@zodiac1978)’s questions:

    Maybe the posts table is locked/corrupted?
    How do I check?

    And can you list all your active plugins?
    Yes, my plugin list:
    Classic Editor
    Contact Form 7
    Elementor
    hCaptcha for WordPress
    Health Check & Troubleshooting
    LiteSpeed Cache
    Rank Math SEO with AI Best SEO Tools
    Secure Copy Content Protection
    Wordfence Security
    WPCode Lite
    WP Dark Mode
    WPS Hide Login
    WP Statistics

    • This reply was modified 7 months, 2 weeks ago by *.

    And: is this an existing project with data records or is this a new installation?
    I did not understand this question.

    In other words: is this an older website with content where you have just discovered the problem or have you just set it up and want to enter content?

    Thread Starter *

    (@aliad)

    In other words: is this an older website with content where you have just discovered the problem or have you just set it up and want to enter content?
    First option, my website is an old website.

    Then it will be difficult to simply reset the project if necessary. That would have been another idea, but is time-consuming with an older project.

    If you still can’t find a solution, I would recommend finding someone who can look at it with you personally. Sometimes the hoster can help with such problems. If you don’t know anyone else in your area, you might be able to find someone here: https://jobs.wordpress.net

    Maybe the posts table is locked/corrupted?
    How do I check?

    You just mark the tables in PhpMyAdmin and choose “Check table” from the dropdown. If something is corrupt, you can try a repair. As seen here:
    https://www.inmotionhosting.com/support/website/check-repair-database/

    If the status is not OK, it could also show “Locked” if I remember correctly.

    ervan31

    (@ervan31)

    Turn off/Disables ModSecurity in Cpanel.. After your finish build wordpress dont forget to active again..

    • This reply was modified 5 months ago by ervan31.

    The previous week, I have had this problem also.

    So, I disabled different plugins, I tried changing the theme. I tried different debugging plugins. Nothing gave the solution. This morning, I decided to see inside the file… it was empty.

    So, my case was caused by an empty post-new.php file. I can not find the cause but unzipping and uploading from the original wordpress distribution was all what was needed.

Viewing 8 replies - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.