The Problem
Lets say you receive error something like this
[Sun Sep 02 18:20:45.740026 2018] [:error] [pid 23145]
PHP Warning: mime_content_type(/home/crmwb/tmp/phpy60aGO): failed to open stream: No such file or directory in /home/crmwb/web/vtiger.web-berjaya.com/public_html/vtlib/Vtiger/Functions.php on line 595, referer: http://vtiger.web-berjaya.com/index.php?module=Products&view=Edit&record=3
Solution
Go to var/www/vhosts/CRM-Directory/vtlib/Vtiger/Functions.php. Comment line 594 until 605. It should look something like this
It should solve the problem regarding uploading picture in products. However this is not a solid solution since it’s bypass mime type check and PHP code injection check. But for temporary you can use it. Leave a comment if this method save your day 🙂