Code errors
-
Once in a while I get this error whenever accessing anything in admin
/wp-admin/ – Uncaught Error: Call to a member function get() on null in /wp-includes/query.php:28
#0 /wp-content/plugins/offers-for-woocommerce/admin/class-offers-for-woocommerce-admin.php(965): get_query_var(‘post_type’)
#1 /wp-includes/class-wp-hook.php(286): Angelleye_Offers_For_Woocommerce_Admin->my_pre_get_posts(Object(WP_Query))
#2 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#3 /wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#4 /wp-includes/class-wp-query.php(1634): do_action_ref_array(‘pre_get_posts’, Array)
#5 /wp-includes/class-wp-query.php(3230): WP_Query->get_posts()
#6 /wp-includes/post.php(1836): WP_Query->query(Array)
#7 /wp- in /wp-includes/query.php on line 28I am using latest version as of today.
- The topic ‘Code errors’ is closed to new replies.