Hi,
Undefined variable is innocent, beside, it is not an error. It is a "notice" for developing stage. This is why it doesn't show up unless the ERROR reporting is set to MAX.
That notice will never lead any 500 internal server situation. Error code 500 is way way bigger and different issue. It must be related to something else.
To eliminate that undefined variable notificiation;
Just before the 86th line, you can include this PHP lines:
if (!empty($product->images[0])) {
$image = $product->images[0]->displayMediaThumb ('border="0"', FALSE);
} else {
$image = '';
}
Since you are now defining the
$image variable, you won't see "undefined variable" notification no more.
Regards,
Support & Development