Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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.

    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 2 years, 1 month ago by *.
    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 2 years, 1 month ago by *.
    Thread Starter *

    (@aliad)

    wp-includes:
    755

    wp-includes/post.php:
    644

    Thread Starter *

    (@aliad)

    I did not modify the core files.

    I deleted all the files and folders except the wp-config.php file and the wp-content folder and downloaded WordPress from the ww.wp.xz.cn website and uploaded it to my host, but the previous error is still displayed in the error_log.

    error_log:

    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 7580
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 7581
    PHP Warning:  Attempt to read property "ID" on null in /public_html/wp-includes/post.php on line 7585
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 7840
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/theme.php on line 3636
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/theme.php on line 3862
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 5516
    PHP Warning:  Attempt to read property "ID" on null in /public_html/wp-includes/post.php on line 5516
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 4817
    PHP Fatal error:  Uncaught Error: Attempt to assign property "post_content" on null in /public_html/wp-admin/includes/post.php:808
    Stack trace:
    #0 /public_html/wp-admin/post-new.php(66): get_default_post_to_edit()
    #1 {main}
      thrown in /public_html/wp-admin/includes/post.php on line 808
    Thread Starter *

    (@aliad)

    Hello

    I got access to error_log. I deleted the old error_log and tried again to access the post-new.php page.

    Information in the new error_log:

    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 7580
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 7581
    PHP Warning:  Attempt to read property "ID" on null in /public_html/wp-includes/post.php on line 7585
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 7840
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/theme.php on line 3636
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/theme.php on line 3862
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 5516
    PHP Warning:  Attempt to read property "ID" on null in /public_html/wp-includes/post.php on line 5516
    PHP Warning:  Attempt to read property "post_type" on null in /public_html/wp-includes/post.php on line 4817
    PHP Fatal error:  Uncaught Error: Attempt to assign property "post_content" on null in /public_html/wp-admin/includes/post.php:808
    Stack trace:
    #0 /public_html/wp-admin/post-new.php(66): get_default_post_to_edit()
    #1 {main}
      thrown in /public_html/wp-admin/includes/post.php on line 808
    Thread Starter *

    (@aliad)

    Hello

    I did several different tests and I am writing the result for you below. And I also found a temporary solution to solve the problem, but it seems that this solution is not correct.

    1. If you disable all plugins, the post-new.php page will be displayed white. (If WP_DEBUG is enabled, the following error will be displayed.)

    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

    2.If you install and activate the Classic Editor plugin, the post-new.php page will be loaded. (If WP_DEBUG is enabled, the following error will be displayed.)

    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_date in /public_html/wp-admin/edit-form-advanced.php on line 175
    
    Notice: Undefined property: stdClass::$post_date in /public_html/wp-admin/edit-form-advanced.php on line 177
    
    Notice: Undefined property: stdClass::$post_status in /public_html/wp-admin/edit-form-advanced.php on line 233
    
    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

    3. If you install and activate the Classic Editor plugin and also if you install and activate the Elementor Website Builder plugin, the post-new.php page will be displayed white. (If WP_DEBUG is enabled, the following error will be displayed.)

    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
    
    Fatal error: Uncaught TypeError: Argument 2 passed to Elementor\TemplateLibrary\Source_Local::on_save_post() must be an instance of WP_Post, null given, called in /public_html/wp-includes/class-wp-hook.php on line 326 and defined in /public_html/wp-content/plugins/elementor/includes/template-library/sources/local.php:1114 Stack trace: #0 /public_html/wp-includes/class-wp-hook.php(326): Elementor\TemplateLibrary\Source_Local->on_save_post(0, NULL) #1 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /public_html/wp-includes/post.php(4760): do_action('save_post', 0, NULL, false) #4 /public_html/wp-admin/includes/post.php(753): wp_insert_post(Array, false, false) #5 /public_html/wp-admin/post-new.php(66): get_default_post_to_edit('post', true) #6 {main} thrown in /public_html/wp-content/plugins/elementor/includes/template-library/sources/local.php on line 1114
    
    
    
    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    
    Learn more about troubleshooting WordPress.
    Thread Starter *

    (@aliad)

    Hello

    I didn’t understand why creating a topic for the Twenty Twenty-Four theme was not the right thing to do and I should create a Twenty Twenty-Three theme for the topic? (What is the difference?)

    I tested several different themes apart from the default themes, but they all displayed the same error.

    I also disabled all browser extensions, but the error is still displayed.

    Thread Starter *

    (@aliad)

    Hello

    No, this problem exists in all themes.

    Thread Starter *

    (@aliad)

    Hello

    Thanks for the explanation and guidance

    All the mentioned tasks were done one by one and checked but the above error is still displayed.

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