• Resolved Kevin Bart

    (@bartmissions)


    I had some type of problem in the database for my site lifeandtravels.org today. This morning I tried to copy a previously published post and then update it as a new post. I got the following error message. I also get this error when I try to use the create a new post button, or if I try to search for certain post topics or keywords. And somehow a future scheduled post now has 5 similar posts listed as drafts in the list of posts.

    “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.”

    My host traced the problem back to Elementor. I deleted Elementor and then reinstalled it. And still had the problem. When I deactivate Elementor the problems goes away.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Richard from Elementor

    (@richardk23)

    Hello @bartmissions

    Thank you for reaching out. I’m Richard from the Tier 2 Team, and I hope you are doing well.

    I’m sorry to hear about the issues you’re experiencing. Please confirm if you have tried deactivating all plugins except Elementor and Elementor Pro (ensure you have a backup in place), and let us know which theme is active and the version of it.
    Do the PHP error logs explicitly mention Elementor Pro in the first line (please do not share the logs here)?

    I tried viewing the site, but unfortunately got this: https://prnt.sc/_g9COEdAhdhO.

    Please note that if you have a Pro license, you can reach out to our support team directly at https://elementor.com/help/how-to-submit-a-support-ticket/. They can provide more detailed assistance.

    Kind regards,
    Richard

    Thread Starter Kevin Bart

    (@bartmissions)

    Here is the email I received from Wordpreess about the critical error:

    Howdy!

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Elementor.

    First, visit your website (https://lifeandtravels.org/) and check for any visible issues. Next, visit the page where the error was caught (https://lifeandtravels.org/wp-admin/admin.php?action=eae_duplicate&post=8791&_wpnonce=fe40eca179) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.

    https://lifeandtravels.org/wp-login.php?action=enter_recovery_mode&rm_token=FNTROfppXx7oxisMJQR7LN&rm_key=ac8nEUvPcXdNC5y9lhMdQR

    To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.7.2
    Active theme: Child Theme (version 1.9.1)
    Current plugin: Elementor (version 3.27.6)
    PHP version 8.1.32
    Plugin Support Richard from Elementor

    (@richardk23)

    Hello @bartmissions
    Thank you for your reply.

    Does the error also occur with only Elementor active and the Hello parent theme active? Do you have any custom coding in the Hello child theme? Do you have any other active third-party Elementor plugins active?
    Please also try deleting the plugin and reinstalling it and ensure there are traces of it in the database before the reinstallation.
    Looking forward to your reply.

    Kind regards,
    Richard

    Thread Starter Kevin Bart

    (@bartmissions)

    I deactivated your plugin earlier, and just now reactivated it. I got another WP email:

    Howdy!

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Elementor.

    First, visit your website (https://lifeandtravels.org/) and check for any visible issues. Next, visit the page where the error was caught (https://lifeandtravels.org/wp-admin/post-new.php) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.

    https://lifeandtravels.org/wp-login.php?action=enter_recovery_mode&rm_token=nj69ihBDMPZV1JS8pdSYwc&rm_key=ezt4j3VOCVspImUk1wQZma

    To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.7.2
    Active theme: Child Theme (version 1.9.1)
    Current plugin: Elementor (version 3.27.7)
    PHP version 8.1.32



    Error Details
    =============
    An error of type E_ERROR was caused in line 1115 of the file /home/lifeandtravelsorg/public_html/wp-content/plugins/elementor/includes/template-library/sources/local.php. Error message: Uncaught TypeError: Elementor\TemplateLibrary\Source_Local::on_save_post(): Argument #2 ($post) must be of type WP_Post, null given, called in /home/lifeandtravelsorg/public_html/wp-includes/class-wp-hook.php on line 326 and defined in /home/lifeandtravelsorg/public_html/wp-content/plugins/elementor/includes/template-library/sources/local.php:1115
    Stack trace:
    #0 /home/lifeandtravelsorg/public_html/wp-includes/class-wp-hook.php(326): Elementor\TemplateLibrary\Source_Local->on_save_post()
    #1 /home/lifeandtravelsorg/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #2 /home/lifeandtravelsorg/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 /home/lifeandtravelsorg/public_html/wp-includes/post.php(5060): do_action()
    #4 /home/lifeandtravelsorg/public_html/wp-admin/includes/post.php(766): wp_insert_post()
    #5 /home/lifeandtravelsorg/public_html/wp-admin/post-new.php(66): get_default_post_to_edit()
    #6 {main}
    ? thrown
    Thread Starter Kevin Bart

    (@bartmissions)

    I deactivated your plugin earlier today. Just now I reactivated it and got another WP email:

    Howdy!

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Elementor.

    First, visit your website (https://lifeandtravels.org/) and check for any visible issues. Next, visit the page where the error was caught (https://lifeandtravels.org/wp-admin/post-new.php) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.

    https://lifeandtravels.org/wp-login.php?action=enter_recovery_mode&rm_token=nj69ihBDMPZV1JS8pdSYwc&rm_key=ezt4j3VOCVspImUk1wQZma

    To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.7.2
    Active theme: Child Theme (version 1.9.1)
    Current plugin: Elementor (version 3.27.7)
    PHP version 8.1.32



    Error Details
    =============
    An error of type E_ERROR was caused in line 1115 of the file /home/lifeandtravelsorg/public_html/wp-content/plugins/elementor/includes/template-library/sources/local.php. Error message: Uncaught TypeError: Elementor\TemplateLibrary\Source_Local::on_save_post(): Argument #2 ($post) must be of type WP_Post, null given, called in /home/lifeandtravelsorg/public_html/wp-includes/class-wp-hook.php on line 326 and defined in /home/lifeandtravelsorg/public_html/wp-content/plugins/elementor/includes/template-library/sources/local.php:1115
    Stack trace:
    #0 /home/lifeandtravelsorg/public_html/wp-includes/class-wp-hook.php(326): Elementor\TemplateLibrary\Source_Local->on_save_post()
    #1 /home/lifeandtravelsorg/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #2 /home/lifeandtravelsorg/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 /home/lifeandtravelsorg/public_html/wp-includes/post.php(5060): do_action()
    #4 /home/lifeandtravelsorg/public_html/wp-admin/includes/post.php(766): wp_insert_post()
    #5 /home/lifeandtravelsorg/public_html/wp-admin/post-new.php(66): get_default_post_to_edit()
    #6 {main}
    ? thrown

    Plugin Support Milos

    (@miloss84)

    Hi there,

    Thank you fro contacting us.

    It looks like Elementor is causing a fatal error related to the on_save_post function inside its template library. The error occurs because null is being passed instead of a WP_Post object when saving a post.Steps to Fix It:

    1. Enable Recovery Mode
      • Click the recovery mode link from the email and log in.
      • This will disable Elementor temporarily so you can access the dashboard.
    2. Check for Plugin Conflicts
      • Deactivate all plugins except Elementor.
      • If the error disappears, reactivate plugins one by one to find the conflicting one.
    3. Update Everything
      • Ensure WordPress, Elementor, and all plugins/themes are up to date.
      • If the error started after an update, try rolling back Elementor to the previous version.
    4. Switch to Default Theme
      • Try switching from the Child Theme to Astra (parent theme) and see if the issue persists.
      • If the child theme is causing the issue, check the functions.php file for any modifications related to post saving.
    5. Check PHP Version Compatibility try to downgrade to PHP 8.0 or upgrade to PHP 8.2 and see if the issue persists.
    6. Reinstall Elementor
      • If the issue persists, delete Elementor (do NOT delete Elementor Pro if you have it).
      • Reinstall a fresh copy from the WordPress plugin repository

    Let me know if you need further guidance!

    Plugin Support Rica V.

    (@ricav)

    Due to inactivity, this ticket has been closed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.