Title: Fatal error: Uncaught Error
Last modified: March 19, 2019

---

# Fatal error: Uncaught Error

 *  [bsv77](https://wordpress.org/support/users/bsv77/)
 * (@bsv77)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-28/)
 * 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,

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [netgrrl2](https://wordpress.org/support/users/netgrrl2/)
 * (@netgrrl2)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-28/#post-11377454)
 * I’m having the same problem. It worked with previous versions of DIVI.
 * Rolling back to 1.3.1 fixed the issue for now: [https://github.com/ivycat/posts-in-page/archive/1.3.1.zip](https://github.com/ivycat/posts-in-page/archive/1.3.1.zip)
    -  This reply was modified 7 years, 2 months ago by [netgrrl2](https://wordpress.org/support/users/netgrrl2/).
 *  [007bmorris](https://wordpress.org/support/users/007bmorris/)
 * (@007bmorris)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-28/#post-11380279)
 * I have the same issue in Divi. Rolled back to 1.3.1 also to solve the issue (
   hopefully temporary).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error: Uncaught Error’ is closed to new replies.

 * ![](https://ps.w.org/posts-in-page/assets/icon-256x256.png?rev=1596190)
 * [Posts in Page](https://wordpress.org/plugins/posts-in-page/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-in-page/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-in-page/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-in-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-in-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-in-page/reviews/)

## Tags

 * [divi](https://wordpress.org/support/topic-tag/divi/)

 * 2 replies
 * 3 participants
 * Last reply from: [007bmorris](https://wordpress.org/support/users/007bmorris/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-28/#post-11380279)
 * Status: not resolved