BabyTronix Posted March 26, 2012 Share Posted March 26, 2012 I have installed Prestashop 1.4 this weekend. I am also a first time user. A problem I am having is that while in the Back Office, Catalog, I cannot upload images of products. I get a 'Image format not recognized, allowed formats are: .gif, .jpg, .png.' However, my files ARE correct... I have even converted to all 3 formats and they are less than 30k in size. I also saved a WORKING pic of an iPod FROM the prestashop 'view my shop', then tried to upload that image and get the same error message. What am I missing? Link to comment Share on other sites More sharing options...
Carl Favre Posted March 26, 2012 Share Posted March 26, 2012 Hi BabyTronix, Are you using the latest 1.4.7 version? Have you checked that your img folder has the good permissions? Link to comment Share on other sites More sharing options...
BabyTronix Posted March 26, 2012 Author Share Posted March 26, 2012 Hi there Carl, Prestashop version: 1.4.7.0 Server information: Linux #1 SMP Fri Feb 18 01:47:46 EST 2011 i686 Server software version: Apache/1.3.41 (Unix) mod_fastcgi/2.4.2 PHP/4.4.9 FrontPage/5.0.2.2635 mod_psoft_traffic/0.2 mod_ssl/2.8.31 OpenSSL/0.9.7a mod_macro/1.1.2 PHP version: 5.2.14 MySQL version: 5.0.77-log Mail method: You are using the PHP mail() function Your web browser: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Media Center PC 2.8; .NET CLR 1.0.3705; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8) Check your configuration Required parameters: OK Optional parameters: Please fix the following error(s) Set PHP "register_global" option to "Off" I'm not sure where to change the PHP register... could this be the problem? I did check and the permissions are set to 755.. Another thing probably not related, but the Dashboard MODULE tab, a few times when I have either enabled or disabled an item the screen will refresh like it's going to show me that it 'completed succesfully', but then I get a 'Page not found - error500'... not the normal error404 page. That happened 3 times so far and I'm not really sure what I did to fix it,.. 1st time it took 3 hours and the last thing I remember doing was deleting 4 of the 5 (default) 'stores' THEN the MODULES tab 'page' was back in operation. Link to comment Share on other sites More sharing options...
BabyTronix Posted March 27, 2012 Author Share Posted March 27, 2012 Another note: I also tried the 'move images to prestashops new storage system, and updated in the Product Preferences Tab the 'Use the legacy image file system' to NO. I still cannot upload ANY pictures... JPG, PNG or GIF. IF the image Browse button allowed me to choose to look at my SERVER I could upload the files there but it ONLY allows me to choose a file from MY LOCAL computer. So far, I have a few products, with no pictures, and a few with the default item pic of ipods an stuff. I'm at a stopping point on entering item info into a store I may not be able to show my products on. Whaaaa....... snif..... whaaaa. I have attached a pic of the upload error. Link to comment Share on other sites More sharing options...
BabyTronix Posted March 30, 2012 Author Share Posted March 30, 2012 bomo (Prestashop Apprentice) suggested in a 3-23-2010 post was to comment these lines in the images.inc.php: // if (!isPicture($file)) // return Tools::displayError('image format not recognized, allowed formats are: .gif, .jpg, .png'); Now it works! But the BIG question is WHY do I have to remark this out of the code? It's there for a reason... and not there JUST to make me cry like a baby. I'm using PHP 5.2.14 hosted on infinology (when I installed prestashop 1.4.7.0 it told me my PHP was 4.3, I asked my host and was upgraded/migrated to another server at no charge rather fast.) I do a SMALL amount of html, but NO php yet. I'm sure there is a php programmer out there that can figure this out. I hate changing code that has not been 'approved' for fear that I may create another problem down the road after entering a few hundred items into the database only to have the system crash. Hopefully the Prestashop Team is/has been working on this issue. Otherwise I am quite pleased with what I see so far! 1 Link to comment Share on other sites More sharing options...
tdr170 Posted March 30, 2012 Share Posted March 30, 2012 You would set the register globals to off in your phpini file on your host. If you can edit the phpini file you will find an icon in your host control something like cgi and scripting support language Click on it and then on PHP Scripting scroll through the file and find register globals and change the on to off. If you can't figure this out or cant find the file simply call your host and they will do this for you, if you call be sure to ask if you can access the file and where it's located for future reference. Will look like this: ; You should do your best to write your scripts so that they do not require ; register_globals to be on; Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. register_globals = Off (was on by default) While you are there you may as well take care of these as sooner or later this will come up. Change your max memory limit: max_execution_time = 300 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data memory_limit = 96M ; Maximum amount of memory a script may consume (this line set to 64 or higher) Turn on zlib compression: Transparent output compression using the zlib library ; Valid values for this option are 'off', 'on', or a specific buffer size ; to be used for compression (default is 4KB) ; Note: Resulting chunk size may vary due to nature of compression. PHP ; outputs chunks that are few hundreds bytes each as a result of ; compression. If you prefer a larger chunk size for better ; performance, enable output_buffering in addition. ; Note: You need to use zlib.output_handler instead of the standard ; output_handler, or otherwise the output will be corrupted. zlib.output_compression = On (was off by default) ( will help with page load times) 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