Fatal error (fix provided)
-
Hi,
Idk why but on some products I have the following error crashing the whole page:
Uncaught Error: Call to a member function is_purchasable() on bool in /var/www/html/site/wp-content/plugins/yith-woocommerce-frequently-bought-together/includes/class.yith-wfbt-frontend.php on line 162
Easy fix is to replace the concerned line:
if( ! $current->is_purchasable() || ! $current->is_in_stock() ) {
adding that extra condition:
if( ! $current || ! $current->is_purchasable() || ! $current->is_in_stock() ) {
It fixes the issue, it probably would be interesting to add it in the next update.
Thanks a lot,
Arthur
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Fatal error (fix provided)’ is closed to new replies.