When uploading an image on my product page I get the following error:
“You cannot upload the file at this time, please refresh the page and try again. Note that your current option choices will be reset.”
seems some issue while validating upload due to security. However, if you want to bypass this check you can add this code into your theme’s function.php file:
The custom PHP solved the issue for uploading, however introduced a new one:
In the cart at the product it gives an notice:
“Notice: Undefined variable: ratio_found in /www/wp-content/plugins/woocommerce-product-addon/inc/functions.php on line 459”