PHP Warning: getimagesize(): Filename cannot be empty
I facing this problem when uploading image in opencart
this error message showing:
2019-11-21 15:51:35 - PHP Warning: getimagesize(): Filename cannot be empty in /home/USERNAME/public_html/DOMAINNAME/catalog/view/theme/porto/template/new_elements/product.tpl on line 12
Thanks for getting in touch with us! For your privacy and security, I have removed your username and domain name from your post.
It looks like you have a conflict between your PHP code and OpenCart. I would suggest setting the PHP.INI files in your site directory and in public_html back to default. Also, check your .htaccess and make sure there is nothing in there that may cause a conflict.
Remember that, because you have placed the site directory for this site inside of the site directory for public_html, this site will be affected by all the PHP settings and changes in public_html unless the .htaccess and php.ini in the site directory override them.
As always, please make backup copies of those files before you make any alterations to them! If setting those files back to default does not help, please get in touch with our 24/7 Technical Support team so that they can directly assist you.