Skip Navigation

[Resolved] PHP 500 error

This thread is resolved. Here is a description of the problem and solution.

Problem:

Paginating or filtering via ajax on custom archives for WC product or category archives produce the PHP error

Solution:

It is fixed in the latest version of Toolset Views/Blocks plugin, you can download it here:

https://toolset.com/account/downloads/#legacy-plugins

Relevant Documentation:

This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by stephenR 3 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#2120133

Hi

I have a parametric search set up at hidden link but for some reason it's started to cause a 500 error in hidden link 500

This is from the PHP error log:-

[20-Jul-2021 15:18:42 UTC] PHP Fatal error: Uncaught Error: Call to a member function filtering_via_lookup_table_is_active() on null in /home/unclefills/public_html/wp-content/plugins/woocommerce/includes/class-wc-query.php:769
Stack trace:
#0 /home/unclefills/public_html/wp-content/plugins/wp-views/application/models/WooCommerce/WcQuery.php(287): WC_Query->get_tax_query(Array, true)
#1 /home/unclefills/public_html/wp-content/plugins/wp-views/application/models/WooCommerce/WcQuery.php(259): OTGS\Toolset\Views\Model\WooCommerce\WcQuery->product_query(Object(WP_Query))
#2 /home/unclefills/public_html/wp-includes/class-wp-hook.php(292): OTGS\Toolset\Views\Model\WooCommerce\WcQuery->pre_get_posts(Object(WP_Query))
#3 /home/unclefills/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#4 /home/unclefills/public_html/wp-includes/plugin.php(551): WP_Hook->do_action(Array)
#5 /home/unclefills/public_html/wp-includes/class-wp-query.php(1784): do_action_ref_array('pre_get_posts', Array)
#6 /home/unclefills/public_html/wp-includes in /home/unclefills/public_html/wp-content/plugins/woocommerce/includes/class-wc-query.php on line 769

This is affecting sales and is quite urgent. Can you please help?

Many thanks
Steve

#2120599

Hello,

It is a known issue, our developers have produced a fix for this issue and it will be released in the next version of Toolset Blocks.

In the meantime, you can apply the patch discussed in this reply https://toolset.com/forums/topic/php-fatal-error-with-ajax-filtering/#post-2118845
The patched file can be downloaded from here
hidden link

Let me know if that fixes the issue for you.

#2125005

Hello,

It is fixed in the latest version of Toolset Views/Blocks plugin, you can download it here:
https://toolset.com/account/downloads/#legacy-plugins

Please test it and feedback if the problem is fixed, thanks

#2125081

That's fixed it. Thank you for your help.