• I’m getting a critical error when trying to add a new page. This is the debugging message (local path edited out):

    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 [EDITED PATH]/wp-includes/class-wp-hook.php on line 305 and defined in [EDITED PATH]/wp-content/plugins/elementor/includes/template-library/sources/local.php:1033

    Stack trace:
    #0 [EDITED PATH]/wp-includes/class-wp-hook.php(305): Elementor\TemplateLibrary\Source_Local->on_save_post(0, NULL)
    #1 [EDITED PATH]/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #2 [EDITED PATH]/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #3 [EDITED PATH]/wp-includes/post.php(4468): do_action(‘save_post’, 0, NULL, false)
    #4 [EDITED PATH]/wp-admin/includes/post.php(694): wp_insert_post(Array, false, false)
    #5 [EDITED PATH]/wp-admin/post-new.php(66): get_default_post_to_edit(‘page’, true)
    #6 {main}
    thrown in [EDITED PATH]/wp-content/plugins/elementor/includes/template-library/sources/local.php on line 1033

    It happens both with the latest version and downgrading to the previous one.

    • This topic was modified 3 years, 3 months ago by flordeneu.
    • This topic was modified 3 years, 3 months ago by flordeneu.
    • This topic was modified 3 years, 3 months ago by flordeneu.
    • This topic was modified 3 years, 3 months ago by flordeneu.
  • The topic ‘Fatal error’ is closed to new replies.