For anyone having error loading the picture with mopics, with lightbox, with a single quote on the product name, for example: my product name is 10'(ft)

simply just add the addslashes() function where tittle="'$product_info['$products_name']


find:
title="'.$product_info['products_name'].')">'

replace:
title="'.addslashes($product_info['products_name']).')">'

More...