Fatal error: Uncaught Error
-
I am using Divi theme with the DIVI builder and when I use your shortcode on a page, I get the error of
Fatal error: Uncaught Error: Call to a member function get() on null in C:\xampp\htdocs\lsb\wp-includes\query.php:28 Stack trace: #0 C:\xampp\htdocs\lsb\wp-content\themes\Divi\includes\builder\functions.php(254): get_query_var(‘post_type’) #1 C:\xampp\htdocs\lsb\wp-includes\class-wp-hook.php(286): exclude_premade_layouts_library(Object(WP_Query)) #2 C:\xampp\htdocs\lsb\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 C:\xampp\htdocs\lsb\wp-includes\plugin.php(515): WP_Hook->do_action(Array) #4 C:\xampp\htdocs\lsb\wp-includes\class-wp-query.php(1634): do_action_ref_array(‘pre_get_posts’, Array) #5 C:\xampp\htdocs\lsb\wp-includes\class-wp-query.php(3230): WP_Query->get_posts() #6 C:\xampp\htdocs\lsb\wp-includes\class-wp-query.php(3336): WP_Query->query(Array) #7 C:\xampp\htdocs\lsb\wp-content\plugins\posts-in-page\includes\class-page-posts.php(76): WP_Query->__construct(Array) #8 C:\xampp\htdocs\lsb\wp-content\plugins\posts-in-page\posts_in_page.php(76): ICPagePosts->output_posts() #9 C:\xampp\htdo in C:\xampp\htdocs\lsb\wp-includes\query.php on line 28
I am doing this locally so I cant show you the error, but I assume it has something to do with the way that divi structures their query or files differently than the norm. Have you ever seen this error and or used this plug in with Divi?
Thanks,
- The topic ‘Fatal error: Uncaught Error’ is closed to new replies.