Title: Code errors
Last modified: January 7, 2019

---

# Code errors

 *  [cyberwombat](https://wordpress.org/support/users/cyberwombat/)
 * (@cyberwombat)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/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 28
 * I am using latest version as of today.

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

 *  [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * (@angelleyesupport)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/code-errors/#post-11064225)
 * Hi [@cyberwombat](https://wordpress.org/support/users/cyberwombat/),
 * Can you double check that you are using PHP 5.6 or later not later than 7.1 ?
 * Please check that and let me know.
 * Thanks!
 *  Thread Starter [cyberwombat](https://wordpress.org/support/users/cyberwombat/)
 * (@cyberwombat)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/code-errors/#post-11069944)
 * I am using 7.2 which is what WPEngine uses.
 *  [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * (@angelleyesupport)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/code-errors/#post-11069994)
 * Thats interesting, as I’m also using offers on our sandbox setup with php 7.2
   but not seeing any such issues at all, which is the interesting part here.
 * Please try clearing your wpengine cache or go on a staging site and then see 
   if this issues persists there as well? if not then something is not right on 
   your live site which you needs to be debugged and corrected.
 * Please double check that and let me know if you still have any other questions
   or concerns.
    Thanks!
 *  Thread Starter [cyberwombat](https://wordpress.org/support/users/cyberwombat/)
 * (@cyberwombat)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/code-errors/#post-11069999)
 * I am not 100% certain I get the errors on WPEngine (still debugging that for 
   sure) but I def get them on 7.3 on MacOS – have you tried 7.3?
 *  [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * (@angelleyesupport)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/code-errors/#post-11070008)
 * So , you only see those errors with 7.3? If so then that’s just a new version
   and we haven’t yet announced that out plugin is compatible with that. So I would
   still strongly recommend using PHP 7.1 for better compatibility and smooth performance.
 * Let me know if you have any other questions.
    Thanks!

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

The topic ‘Code errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/offers-for-woocommerce_edefee.svg)
 * [Offers for WooCommerce](https://wordpress.org/plugins/offers-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/offers-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/offers-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/offers-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/offers-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/offers-for-woocommerce/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/code-errors/#post-11070008)
 * Status: not resolved