Fatal error
-
Hi
Moved a site to a new server and received a fatal error as follows.
Deactivating the plugin or uncheck Modify query removed the fatal error.Fatal error: Uncaught Error: Call to a member function is_main_query() on null in /--removed--/public_html/wp-includes/query.php:749 Stack trace: #0 /--removed--/public_html/wp-content/plugins/_product-visibility-by-user-role-for-woocommerce/includes/class-alg-wc-pvbur-core.php(101): is_main_query() #1 /--removed--/public_html/wp-includes/class-wp-hook.php(286): Alg_WC_PVBUR_Core->setups_search_cases(true, Object(WP_Query)) #2 /---remived---/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /--removed--/public_html/wp-content/plugins/_product-visibility-by-user-role-for-woocommerce/includes/class-alg-wc-pvbur-core.php(234): apply_filters('alg_wc_pvbur_ca...', true, Object(WP_Query)) #4 /--removed--/public_html/wp-includes/class-wp-hook.php(286): Alg_WC_PVBUR_Core->pre_get_posts_hide_invisible_products(Object(WP_Query)) #5 /--removed--/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #6 /--removed--/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Ar in /--removed--/public_html/wp-includes/query.php on line 749
Thanks
- The topic ‘Fatal error’ is closed to new replies.