In line 90: $combo = unserialize($data->combination);
$combo can be empty, causing errors at line 92 and 102.

Adding the !empty($combo) check at line 92 fixes this:

Original line 92: if ($data->stock || !$data->active) { // Stock is available or stock tracking is NOT active
Corrected line 92: if ( !empty($combo) and ( $data->stock || !$data->active ) ) { // Stock is available or stock tracking is NOT active

Comments

LandscapeMafia’s picture

Shouldn't it be
if ( !empty($combo) &&( $data->stock || !$data->active ) ) { // Stock is available or stock tracking is NOT active
using '&&' instead of 'and'?

Tried both ways and didn't fix the problem for me, got WSoD both ways.

Anyone else fix this? I'm running the dev version (6.x-1.x-dev). Thanks