Support » Plugin: Offers for WooCommerce » 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)
  • Oliver

    (@angelleyesupport)

    Hi @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!

    I am using 7.2 which is what WPEngine uses.

    Oliver

    (@angelleyesupport)

    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!

    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?

    Oliver

    (@angelleyesupport)

    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)
  • You must be logged in to reply to this topic.