SkyHiRider Posted December 12, 2013 Share Posted December 12, 2013 (edited) When a custome tries to upload an jpg image using my frontoffice product page I get this error: Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /var/www/peciatky/eshop/images.inc.php on line 255 Warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in /var/www/peciatky/eshop/images.inc.php on line 256 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /var/www/peciatky/eshop/images.inc.php on line 259 Warning: imagejpeg() expects parameter 1 to be resource, boolean given in /var/www/peciatky/eshop/images.inc.php on line 336 Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/peciatky/eshop/images.inc.php on line 339 Edited December 13, 2013 by SkyHiRider (see edit history) Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 13, 2013 Share Posted December 13, 2013 Hi. What version of PS are you using? Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
SkyHiRider Posted December 18, 2013 Author Share Posted December 18, 2013 Prestashop 1.4.4 - don't really know why it started happening as file uploads worked before - perhaps a conflicting module. But I found a workaround of the issue by buying Atrribute wizard pro and using it for downloads instead. Especially usefull is the fact that I can specify the allowed file extensions. Too bad Prestashop can not do this by default Link to comment Share on other sites More sharing options...
Simonk Posted December 19, 2013 Share Posted December 19, 2013 I have a similar problem. Since upgrading to PS1.5.6.1 I can't upload product pictures. I get undefined error in th PS window. and the console shows the server returns a"403(forbidden)" error. I can upload Category images with no problems but cannot upload the same image as a Product photo. Any help greatly appreciated. Regards, Simon Link to comment Share on other sites More sharing options...
SkyHiRider Posted December 20, 2013 Author Share Posted December 20, 2013 I have a similar problem. Since upgrading to PS1.5.6.1 I can't upload product pictures. I get undefined error in th PS window. and the console shows the server returns a"403(forbidden)" error. I can upload Category images with no problems but cannot upload the same image as a Product photo. Any help greatly appreciated. Regards, Simon It may be that you have the wrong permissions set. You need to find out the prestashop directory where images are stored and try doing chmod 777 on it. Link to comment Share on other sites More sharing options...
Simonk Posted December 20, 2013 Share Posted December 20, 2013 Thanks SkyHiRider, have checked the directory and permissions are set to 777 but I still have the problem. Simon Link to comment Share on other sites More sharing options...
SkyHiRider Posted December 20, 2013 Author Share Posted December 20, 2013 Hmm, I did a quick google search and found this: http://stackoverflow.com/questions/19740745/prestashop-media-files-dont-load-403-error Install a different prestashop in a different directory and see if the problem persists. If it does it's probably a server config error and you should have a look there (.htaccess or apache config among other things). If you are paying for your hosting send them an email about your problem and they should help, if you're the host then I do not envy you :/ After a few years of doing my own hosting I (finally) came to the conclusion to outsource my hosting, it's easier and less painful that way. Faster problem solutions too. Link to comment Share on other sites More sharing options...
Simonk Posted December 22, 2013 Share Posted December 22, 2013 I have solved this problem by re uploading fileuploader.js from: https://raw.github.com/PrestaShop/PrestaShop/1.5/js/fileuploader.js All works fine now. Simon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now