THM11 Posted December 29, 2012 Share Posted December 29, 2012 (edited) After updates on Prestashop 1.5, the manufacturer logos are not available anymore. There's no regenerate thumbnails possibility for manufactures - any other solutions/workarounds than uploading the logos after every update? Also noticed that from BO many other images stopped working like the Gender logo's (in Customer). I've updated the .htaccess etc.. but without any help. Edited December 29, 2012 by THM11 (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted December 29, 2012 Share Posted December 29, 2012 What do you mean by " There's no regenerate thumbnails possibility for manufactures". You should have option in Preferences > Images, Regenerate images > Select Image and in drop-down choose Maunfactures. 1 Link to comment Share on other sites More sharing options...
THM11 Posted December 29, 2012 Author Share Posted December 29, 2012 What do you mean by " There's no regenerate thumbnails possibility for manufactures". You should have option in Preferences > Images, Regenerate images > Select Image and in drop-down choose Maunfactures. Actually you're correct, for me it's the only one translated, hence missed it. But still it doesn't do the trick... Even if I regenerated (the translated manufacturer) images, they don't appear in FO. And if I go (in 1.5.3) to the manufacturer list and try to add new pictures just get error "An error occurred while uploading image." without any further debugging info. Link to comment Share on other sites More sharing options...
razaro Posted December 29, 2012 Share Posted December 29, 2012 And could you give some more info: like are you using some third party theme, if it is compatible with 1.5.2. Also link to your website would be nice. For error in back office try to enable debug mode http://doc.prestashop.com/display/PS15/Setting+up+your+local+development+environment#Settingupyourlocaldevelopmentenvironment-Displayingerrormessages Link to comment Share on other sites More sharing options...
THM11 Posted December 29, 2012 Author Share Posted December 29, 2012 (edited) And could you give some more info: like are you using some third party theme, if it is compatible with 1.5.2. Also link to your website would be nice. For error in back office try to enable debug mode http://doc.prestasho...ngerrormessages Theme is 1.5.2 compatible, and all the other pics are just fine, I found out that this issue is/was actually part of previous upgrade already and I've fixed the issue to the production site (by manually uploading pics again). Which isn't working with 1.5.3. It seems that there's no such a option for debugging in 1.5.3 anymore? <?php /* * 2007-2012 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2012 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ require_once(dirname(__FILE__).'/defines.inc.php'); $start_time = microtime(true); /* SSL configuration */ define('_PS_SSL_PORT_', 443); /* Improve PHP configuration to prevent issues */ ini_set('upload_max_filesize', '100M'); ini_set('default_charset', 'utf-8'); ini_set('magic_quotes_runtime', 0); /* correct Apache charset (except if it's too late */ if (!headers_sent()) header('Content-Type: text/html; charset=utf-8'); /* No settings file? goto installer... */ if (!file_exists(dirname(__FILE__).'/settings.inc.php')) { ..... Edited December 29, 2012 by THM11 (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted December 29, 2012 Share Posted December 29, 2012 Yes you right it was changed: check defines.inc.php and change code to /* Debug only */ define('_PS_MODE_DEV_', true); And for uploading problem I can't confirm it as it is working for me on both fresh and updated website. Link to comment Share on other sites More sharing options...
THM11 Posted December 29, 2012 Author Share Posted December 29, 2012 Yes you right it was changed: check defines.inc.php and change code to /* Debug only */ define('_PS_MODE_DEV_', true); And for uploading problem I can't confirm it as it is working for me on both fresh and updated website. Did it, still no further error messages than the "An error occurred while uploading image.". Nor does the regeneration cause any errors. But it seems that there are some functions used in my theme that are no longer present in 1.5.3, but they're not related to this error. Link to comment Share on other sites More sharing options...
marketplace Posted December 29, 2012 Share Posted December 29, 2012 (edited) Hmm, got a similar problem but with all of the shop, my story is here: http://www.prestasho...restashop-153/. Tried to copy the tpl files from the default theme to see if there are problems with my theme but with no success, the chache was turned of and force compile on. I think is something wrong with this new version of Prestashop. Edited December 29, 2012 by marketplace (see edit history) Link to comment Share on other sites More sharing options...
Radek100 Posted December 29, 2012 Share Posted December 29, 2012 (edited) Do everybody have pictures in internet explorer? I have installed Explorer 9 and after update to 1.5.3. I don't have images of subcategories, product detail, product list... I have pictures only on home featured products and full product image in Internet Explorer. Other browsers - Mozilla Firefox, Chrome, Safari has all pictures :-) Edited December 29, 2012 by Radek100 (see edit history) Link to comment Share on other sites More sharing options...
Porpoise Posted January 3, 2013 Share Posted January 3, 2013 (edited) Do everybody have pictures in internet explorer? I have installed Explorer 9 and after update to 1.5.3. I don't have images of subcategories, product detail, product list... I have pictures only on home featured products and full product image in Internet Explorer. Other browsers - Mozilla Firefox, Chrome, Safari has all pictures :-) I have noticed the same problem IE v. other browsers - except that now I am not seeing the manufacturers images and SOME category images (not all - most of them are working fine). Also am unable to upload new images but the existing images are still showing in BO just not in FO. Also noticed on one PC (W7/Firefox 17.0.1) I cannot now login to admin - I get the following error: BAD REQUEST Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit. Cookie /n The rest of the page is blank I have cleared the browser cache, closed and re-opened the browser, rebooted windows etc. but the error is persisting. It must be something unique on this system because I'm not getting this error with IE8 (the FO looks crap with this browser by the way and it doesn't show any of the images) on the same system or on any other system (Laptop W7/Firefox 17.0.1, Laptop Ubuntu/Firefox, Android Phablet). Edited January 3, 2013 by Porpoise (see edit history) Link to comment Share on other sites More sharing options...
Porpoise Posted January 3, 2013 Share Posted January 3, 2013 The rest of the page is blank I have cleared the browser cache, closed and re-opened the browser, rebooted windows etc. but the error is persisting. It must be something unique on this system because I'm not getting this error with IE8 (the FO looks crap with this browser by the way and it doesn't show any of the images) on the same system or on any other system (Laptop W7/Firefox 17.0.1, Laptop Ubuntu/Firefox, Android Phablet). SOLVED - The cookies hadn't properly cleared. I can now login to the admin on this PC. Still need to fix the missing images issue though. Link to comment Share on other sites More sharing options...
webplus Posted January 4, 2013 Share Posted January 4, 2013 (edited) Hi, to solve the issue e.g. with manufacturer, you can define your own image types and then use following code in manufacturer-list.tpl <img src="{$img_manu_dir}{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}-medium_yourtheme.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> I had to change the manufacturer name in url to manufacturer ID to build the image path properly. The image type has to be defined as medium_yourtheme in Preferences > Images. Using this approach you have to edit all tpl files and replace the default image types with your own. I didn't find any easier way to make all images working fine in 1.5.3.1 version. If anyone have an idea, please share. Edited January 4, 2013 by webplus (see edit history) 2 Link to comment Share on other sites More sharing options...
geir Posted January 4, 2013 Share Posted January 4, 2013 Do everybody have pictures in internet explorer? I have installed Explorer 9 and after update to 1.5.3. I don't have images of subcategories, product detail, product list... I have pictures only on home featured products and full product image in Internet Explorer. Other browsers - Mozilla Firefox, Chrome, Safari has all pictures :-) hello. I have the same problem. anyone? Link to comment Share on other sites More sharing options...
outblast Posted January 14, 2013 Share Posted January 14, 2013 Hi, to solve the issue e.g. with manufacturer, you can define your own image types and then use following code in manufacturer-list.tpl <img src="{$img_manu_dir}{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}-medium_yourtheme.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> I had to change the manufacturer name in url to manufacturer ID to build the image path properly. The image type has to be defined as medium_yourtheme in Preferences > Images. Using this approach you have to edit all tpl files and replace the default image types with your own. I didn't find any easier way to make all images working fine in 1.5.3.1 version. If anyone have an idea, please share. For me it worked regenerate the images afther u make the changes ! Link to comment Share on other sites More sharing options...
MarcQueralt Posted March 2, 2013 Share Posted March 2, 2013 The real problem is that manufacturer fields are named based on manufacturer id and the smarty file is trying to show another file name. I solved the problem by modifing file manufacturer-list.tpl in my theme. I have only modified line 55 that was: <img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}"/> And now is: <img src="{$img_manu_dir}{$manufacturer.manufacturer_id}-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> And it works fine. Link to comment Share on other sites More sharing options...
artofadornment Posted March 9, 2013 Share Posted March 9, 2013 (edited) MarcQueralt, great tip but for some reason I can't get that to work (I'm using 1.5.3.1). The default image for each manufacturer just turns into a tiny little dot. :/ The existing code works fine if I switch back to my default theme, but something about my custom theme may be messing it up somehow (regardless which I use, the existing code or your suggestion). Search continues... Edited March 9, 2013 by artofadornment (see edit history) Link to comment Share on other sites More sharing options...
White Lion Posted March 9, 2013 Share Posted March 9, 2013 (edited) Dear webplus Thank you so much for sharing your knowledge. I have insert your code to manufacturer-list.tpl and resolved the problem. on (v 1.5.3.1) Good luck. Edited March 9, 2013 by White Lion (see edit history) Link to comment Share on other sites More sharing options...
MarcQueralt Posted March 11, 2013 Share Posted March 11, 2013 MarcQueralt, great tip but for some reason I can't get that to work (I'm using 1.5.3.1). The default image for each manufacturer just turns into a tiny little dot. :/ The existing code works fine if I switch back to my default theme, but something about my custom theme may be messing it up somehow (regardless which I use, the existing code or your suggestion). Search continues... Did you change anything else? Try reading the HTML code for the image in order to identify what is it happening. Link to comment Share on other sites More sharing options...
THM111 Posted March 13, 2013 Share Posted March 13, 2013 Has anyone solved the issue regarding pics not showing up with IE Browser? It's horrible how much stupid issues the latest prestashop release has... Link to comment Share on other sites More sharing options...
AnnaM Posted March 13, 2013 Share Posted March 13, 2013 (edited) to artofadornment, same happend to me with <img src="{$img_manu_dir}{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}-medium_yourtheme.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> but only because my images did not have the "yourtheme" name so i looked op the name (img / m) and chaged the above to default.jpg (which fixed it in my case). good luck Edited March 13, 2013 by AnnaM (see edit history) 1 Link to comment Share on other sites More sharing options...
artofadornment Posted March 24, 2013 Share Posted March 24, 2013 Thank you AnnaM - that worked perfectly!! Link to comment Share on other sites More sharing options...
Nickless Posted March 29, 2013 Share Posted March 29, 2013 Thanks for the fix guys! Link to comment Share on other sites More sharing options...
moparmaniac Posted July 5, 2013 Share Posted July 5, 2013 Been sitting here for a while, and trying to solve this issue on 1.5.4.1,but Im all out of luck. Have checked the issue in FF, IE and Chrome. Would be nice with any ideas! Link to comment Share on other sites More sharing options...
[email protected] Posted February 27, 2015 Share Posted February 27, 2015 Hello I have insert your code to manufacturer-list.tpl and resolved the problem. on (v 1.5.3.1). Thank a lot... Link to comment Share on other sites More sharing options...
Recommended Posts