Wordpress new post issue after migration: There has been a critical error on this website
Budget: $10 – $30 USD
After migration from old server to a new one, i get error on new post page, after searching it may be the auto_increment flag on primary keys of a WordPress MySQL database.
I have the solution, i need just to applicate it on my database.
Here is the error:
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 /home/maroc24/public_html/fr/wp-includes/class-wp-hook.php on line 326 and defined in /home/maroc24/public_html/fr/wp-content/plugins/elementor/includes/template-library/sources/local.php:1042 Stack trace: #0 /home/maroc24/public_html/fr/wp-includes/class-wp-hook.php(326): Elementor\TemplateLibrary\Source_Local->on_save_post(0, NULL) #1 /home/maroc24/public_html/fr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/maroc24/public_html/fr/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/maroc24/public_html/fr/wp-includes/post.php(4760): do_action('save_post', 0, NULL, false) #4 /home/maroc24/public_html/fr/wp-admin/includes/post.php(753): wp_insert_post(Array, false, false) #5 /home/maroc24/public_html/fr/wp-admin/post-new.php(66): get_default_post_to_edit('post', true) #6 {main} thrown in /home/maroc24/public_html/fr/wp-content/plugins/elementor/includes/template-library/sources/local.php on line 1042
I have the solution, i need just to applicate it on my database.
Here is the error:
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 /home/maroc24/public_html/fr/wp-includes/class-wp-hook.php on line 326 and defined in /home/maroc24/public_html/fr/wp-content/plugins/elementor/includes/template-library/sources/local.php:1042 Stack trace: #0 /home/maroc24/public_html/fr/wp-includes/class-wp-hook.php(326): Elementor\TemplateLibrary\Source_Local->on_save_post(0, NULL) #1 /home/maroc24/public_html/fr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/maroc24/public_html/fr/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/maroc24/public_html/fr/wp-includes/post.php(4760): do_action('save_post', 0, NULL, false) #4 /home/maroc24/public_html/fr/wp-admin/includes/post.php(753): wp_insert_post(Array, false, false) #5 /home/maroc24/public_html/fr/wp-admin/post-new.php(66): get_default_post_to_edit('post', true) #6 {main} thrown in /home/maroc24/public_html/fr/wp-content/plugins/elementor/includes/template-library/sources/local.php on line 1042