• Hello I am getting this error when I create new product or post.

    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 E:\xampp\htdocs\wordpress-project\kalyan_2\wp-includes\class-wp-hook.php on line 288 and defined in E:\xampp\htdocs\wordpress-project\kalyan_2\wp-content\plugins\elementor\includes\template-library\sources\local.php:1005 Stack trace: #0 E:\xampp\htdocs\wordpress-project\kalyan_2\wp-includes\class-wp-hook.php(288): Elementor\TemplateLibrary\Source_Local->on_save_post(0, NULL) #1 E:\xampp\htdocs\wordpress-project\kalyan_2\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 E:\xampp\htdocs\wordpress-project\kalyan_2\wp-includes\plugin.php(453): WP_Hook->do_action(Array) #3 E:\xampp\htdocs\wordpress-project\kalyan_2\wp-includes\post.php(3747): do_action(‘save_post’, 0, NULL, false) #4 E:\xampp\htdocs\wordpress-project\kalyan_2\wp-admin\includes\post.php(628): wp_insert_post(Array) #5 E:\xampp\htdocs\wordpress-project\kalyan_2\wp-admin\post-new in E:\xampp\htdocs\wordpress-project\kalyan_2\wp-content\plugins\elementor\includes\template-library\sources\local.php on line 1005

    Please help me in this!!!

    • This topic was modified 5 years, 9 months ago by sneh25.
Viewing 1 replies (of 1 total)
  • Hi, I’d suggest trying the following suggestions:

    Make sure you are using the most updated versions of Elementor, Elementor Pro (if you are using that), WordPress & your theme. Sometimes it isn’t obvious that there is an update available. Go to Dashboard > Updates and click the Check Again button to be sure.

    Deactivate all of your plugins. If this solves the problem, gradually activate your plugins one by one, until you spot the problematic plugin.

    Clear all cache (server, plugin, and browser).

Viewing 1 replies (of 1 total)
  • The topic ‘New post can’t add’ is closed to new replies.