Home › Forums › WooCommerce Personalized Product Options Manager (PPOM) › SLL crashes everytime a costumer is attaching his photo to the order › Reply To: SLL crashes everytime a costumer is attaching his photo to the order
September 28, 2017 at 5:44 am
#7926
Keymaster
Hi,
we have found the bug and fixed and new version (will be released soon) for now please make following changes.
in classes/plugin.class.php file search function get_file_dir_url() and replace entire function with following
function get_file_dir_url($thumbs = false) {
$upload_dir = wp_upload_dir ();
$return_url = '';
if ($thumbs)
$return_url = $upload_dir ['baseurl'] . '/' . $this -> product_files . '/thumbs/';
else
$return_url = $upload_dir ['baseurl'] . '/' . $this -> product_files . '/';
return set_url_scheme( $return_url );
}