ajensen27 Posted October 4, 2012 Share Posted October 4, 2012 I just did the 1 click upgrade from version 1.5.0.17 to the newest stable version 1.5.1 and everything looks like it went fine but now when I go to my products pages on the front end the images aren't showing up! The thumbnails are showing up on the homepage under the "Featured Products" block, the "Last Viewed" block, etc. but all the images are broken when I go to any product page. I check the back-end and the images are all there under the products and I even went into a few combinations and they have the images "checked" that were checked before the upgrade. Any ideas of what could be going on or what I might have done wrong? Thanks! Link to comment Share on other sites More sharing options...
ajensen27 Posted October 4, 2012 Author Share Posted October 4, 2012 Now the product images aren't showing on the homepage as well. Guess they were still cache'd. Link to comment Share on other sites More sharing options...
Česká Faktura Posted October 4, 2012 Share Posted October 4, 2012 Hi , the problem is that after the upgrade the old image file system does not work and the new is used even you select the old in the preferences->Images 1 Link to comment Share on other sites More sharing options...
Česká Faktura Posted October 4, 2012 Share Posted October 4, 2012 SOLVED I changed the image file system,move the images, regenerated the thumbs, cleared smarty cache and now it is working. 1 Link to comment Share on other sites More sharing options...
ajensen27 Posted October 4, 2012 Author Share Posted October 4, 2012 Thank you Ventos... Can you please explain the method you used to change the file system, move the images, and regenerate the thumbs? Link to comment Share on other sites More sharing options...
ajensen27 Posted October 5, 2012 Author Share Posted October 5, 2012 Ok I figured out how to move the images and regenerate the thumbs on the backend, but that didn't do anything... What do you mean by changing the file system? Link to comment Share on other sites More sharing options...
ajensen27 Posted October 5, 2012 Author Share Posted October 5, 2012 Oh and how do you clear the smarty cache? Link to comment Share on other sites More sharing options...
Česká Faktura Posted October 5, 2012 Share Posted October 5, 2012 to change the file system - Preferences > Images > Use the legacy image filesystem - NO clear the smarty cache - go to cache/smarty and delete files in both folders (do not delete index.php) 1 Link to comment Share on other sites More sharing options...
doubleD Posted October 5, 2012 Share Posted October 5, 2012 Oh and how do you clear the smarty cache? Ok, I see the link to the images in 1.5.1 are name-home_default, name-large_default etc I have image types set as home, large... without _default After renaming image types [ or creating new ones] to home_default, large_default etc and regenerating product images everything works fine now... 1 Link to comment Share on other sites More sharing options...
Vallo92 Posted October 5, 2012 Share Posted October 5, 2012 Hi, I also have this problem and I can not solve it! : ( Could you describe step by step what should I do? Thank you! Link to comment Share on other sites More sharing options...
doubleD Posted October 5, 2012 Share Posted October 5, 2012 (edited) Hi, I also have this problem and I can not solve it! : ( Could you describe step by step what should I do? Thank you! Go to Preferences-->Images You will see image types there [small, medium, home, large ... etc] Press add new type name it home_default or rename existing one Click regenerate product images for the types you've created and/or renamed Edited October 5, 2012 by doubleD (see edit history) 1 Link to comment Share on other sites More sharing options...
Vallo92 Posted October 5, 2012 Share Posted October 5, 2012 Does not work Link to comment Share on other sites More sharing options...
doubleD Posted October 5, 2012 Share Posted October 5, 2012 Does not work What is your image url? Copy and paste image URL from browser, may be it will help... 1 Link to comment Share on other sites More sharing options...
Vallo92 Posted October 5, 2012 Share Posted October 5, 2012 http://ilvecchiomondoshop.it/27-large/ajani-evocatore-del-branco.jpg Link to comment Share on other sites More sharing options...
doubleD Posted October 5, 2012 Share Posted October 5, 2012 http://ilvecchiomond...-del-branco.jpg Did you move images to the new FS? Mine looks like site/1-267-large_default/300v-high-rpm.jpg I do not see _default link in your url... Maybe you have a different problem... 1 Link to comment Share on other sites More sharing options...
Vallo92 Posted October 5, 2012 Share Posted October 5, 2012 (edited) I just tried but does not work too ... However, in all the names _defoult was already present after the upgrade. Did you move images to the new FS? Can you explain this better? Edited October 5, 2012 by Vallo92 (see edit history) Link to comment Share on other sites More sharing options...
ajensen27 Posted October 5, 2012 Author Share Posted October 5, 2012 to change the file system - Preferences > Images > Use the legacy image filesystem - NO clear the smarty cache - go to cache/smarty and delete files in both folders (do not delete index.php) Thanks Ventos... I followed your instructions from above step by step and my images are still broken.. This is my test site if you want to take a look at how the image url's look. http://www.incontishop.com Link to comment Share on other sites More sharing options...
ajensen27 Posted October 5, 2012 Author Share Posted October 5, 2012 Go to Preferences-->Images You will see image types there [small, medium, home, large ... etc] Press add new type name it home_default or rename existing one Click regenerate product images for the types you've created and/or renamed Thanks for the help doubleD... So what your saying is I should recreate each image type and then delete the old one? Link to comment Share on other sites More sharing options...
ajensen27 Posted October 5, 2012 Author Share Posted October 5, 2012 Did you move images to the new FS? Mine looks like site/1-267-large_default/300v-high-rpm.jpg I do not see _default link in your url... Maybe you have a different problem... Looks like I'm having the same issue... My current image url is this http://www.incontishop.com/27-home/pull-on-plastic-pants.jpg but when I add the _default after 27-home the image works. Anyone know why this would be happening??? This seems to be the issue. Link to comment Share on other sites More sharing options...
doubleD Posted October 5, 2012 Share Posted October 5, 2012 (edited) Looks like I'm having the same issue... My current image url is this http://www.incontish...astic-pants.jpg but when I add the _default after 27-home the image works. Anyone know why this would be happening??? This seems to be the issue. Maybe .htaccess problem, try to disable seo friendly url and then enable it again to regenerate .htaccess And rename image type 'large' to 'large_default' --> regenerate product images --> large_default... or 'home' to 'home_default' then regenerate home_default Edited October 5, 2012 by doubleD (see edit history) 2 Link to comment Share on other sites More sharing options...
ajensen27 Posted October 5, 2012 Author Share Posted October 5, 2012 Maybe .htaccess problem, try to disable seo friendly url and then enable it again to regenerate .htaccess And rename image type 'large' to 'large_default' --> regenerate product images --> large_default... or 'home' to 'home_default' then regenerate home_default It worked! I just took the _default out of all the image names and then re-generated the thumbs and all images are showing now... Thanks for all your help doubleD! And you to Ventos! Have a great day! Link to comment Share on other sites More sharing options...
Vallo92 Posted October 5, 2012 Share Posted October 5, 2012 (edited) I just tried but does not work too ... However, in all the names _defoult was already present after the upgrade. Can you explain this better? Help me.... Edited October 5, 2012 by Vallo92 (see edit history) Link to comment Share on other sites More sharing options...
doubleD Posted October 5, 2012 Share Posted October 5, 2012 Help me.... Try this... 1. Disable SEO Friendly URL [Preferences->SEO...] 2. Go to Preferences->Images 3. Move images and Regenerate images 4. Set Use Legacy File System to 'No' Check if that worked Link to comment Share on other sites More sharing options...
Vallo92 Posted October 5, 2012 Share Posted October 5, 2012 Try this... 1. Disable SEO Friendly URL [Preferences->SEO...] 2. Go to Preferences->Images 3. Move images and Regenerate images 4. Set Use Legacy File System to 'No' Check if that worked Does not work .... : ( When you see the catalog images do not appear ... Link to comment Share on other sites More sharing options...
doubleD Posted October 5, 2012 Share Posted October 5, 2012 Does not work .... : ( When you see the catalog images do not appear ... What's your url to the image when SEO Friendly URL is off? Should be something like this /img/p/6/3/63-home_default.jpg Link to comment Share on other sites More sharing options...
ajensen27 Posted October 5, 2012 Author Share Posted October 5, 2012 Does not work .... : ( When you see the catalog images do not appear ... Try what I did. 1. Go to preferences --> images 2. Edit each image name (remove _default for instance) 3. Go to the near the bottom of the page and "regenerate thumbs" for All Then check your site again. This worked for me and it looked like I had the same problem as you. Oh and turn friendly URL's on again. Link to comment Share on other sites More sharing options...
ajensen27 Posted October 5, 2012 Author Share Posted October 5, 2012 Ok, all my images work for the most part. The only place now that I've noticed they are still broken is under the "Images" tab of a product. This is the URL of the image http://www.incontishop.com/img/p/8/0/80-small_default.jpg I don't have 'small_default' any more though, I renamed it to just 'small' under preferences --> images. Why would it still be looking at that old link? Link to comment Share on other sites More sharing options...
doubleD Posted October 5, 2012 Share Posted October 5, 2012 Ok, all my images work for the most part. The only place now that I've noticed they are still broken is under the "Images" tab of a product. This is the URL of the image http://www.incontish...all_default.jpg I don't have 'small_default' any more though, I renamed it to just 'small' under preferences --> images. Why would it still be looking at that old link? Very good question. The same here... Link to comment Share on other sites More sharing options...
ajensen27 Posted October 5, 2012 Author Share Posted October 5, 2012 And now I'm noticing that it's only showing broken images for images I'm adding to new products that I created after I did the upgrade. This is only on the backend. Everything is showing up fine on the front end. Link to comment Share on other sites More sharing options...
doubleD Posted October 5, 2012 Share Posted October 5, 2012 Well, i've created all types with and without _default and regenerated all the images ) and all is ok fine... Will wait for the fix, I guess it's some kind of a bug ) Link to comment Share on other sites More sharing options...
benjamin utterback Posted October 5, 2012 Share Posted October 5, 2012 Hello doubleD, thank you for all the community support you have given. If it is a suspected bug, considering the small_default or small, I would suggest that you report this bug to the Forge-PrestaShop BugTracking system here Link to comment Share on other sites More sharing options...
doubleD Posted October 5, 2012 Share Posted October 5, 2012 I'm not sure if it's a bug. After clean install of prestashop 1.5.0.17 and 1-click upgrade to 1.5.1 everything works fine... I noticed that all image types were auto renamed to name_default. But when I updated my existing database image type names were left unchanged (without _default). So renaming image types manually [adding '_default'] and regenerating the images seems to solve the problem... Prestashop 1.5.0.17 Image Types Prestashop 1.5.1 Image Types Link to comment Share on other sites More sharing options...
benjamin utterback Posted October 5, 2012 Share Posted October 5, 2012 Hello doubleD, it seems as if there was a slight problem with the image directories in the 1.5.017 version, as you explained previously, and it has been fixed in the 1.5.1. Link to comment Share on other sites More sharing options...
bside2234 Posted October 6, 2012 Share Posted October 6, 2012 (edited) Try what I did. 1. Go to preferences --> images 2. Edit each image name (remove _default for instance) 3. Go to the near the bottom of the page and "regenerate thumbs" for All Then check your site again. This worked for me and it looked like I had the same problem as you. Oh and turn friendly URL's on again. I did this and it worked but I wasn't getting images in the "New Product" block. I was before I did this so I went back and put "_default" (without the quotes) back on medium images and they are back now. Just in case anyone else runs into this and maybe might help with a fix. Double Edit: So adding _default after medium restores the image in the New Products block but removes the image thumbnails from a product page and removes the thumbnail image from the product Image edit in BO when you add an image. It just shows a number here. Removing _default after medium does just the opposite. Removes the image from New Products Block and Image upload in BO. It does restore thumbs under main image on product page. I'm using 1.5.1.0 At least this is how it's acting for me. Edited October 7, 2012 by bside2234 (see edit history) Link to comment Share on other sites More sharing options...
bside2234 Posted October 7, 2012 Share Posted October 7, 2012 (edited) Ok. I think I fixed it. Here's what I did: 1. Go to preferences --> images 2. Edit each image name (remove _default for instance) 3. Go to the near the bottom of the page and "regenerate thumbs" for All At this point all of my images were working except ones in the New Product Block and in the BO when adding an image to a product. Here's how I fixed the New Product Block and BO issue: 4. Went to server. Navigate to .../modules/blocknewproducts/blocknewproducts.tpl Changed line 35 From: <li{if $smarty.foreach.newProducts.first} class="first"{/if}><a href="{$product.link}" title="{$product.legend|escape:html:'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'medium_default')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$product.legend|escape:html:'UTF-8'}" /></a></li> To: <li{if $smarty.foreach.newProducts.first} class="first"{/if}><a href="{$product.link}" title="{$product.legend|escape:html:'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$product.legend|escape:html:'UTF-8'}" /></a></li> or basically I changed $product.id_image, 'medium_default' to $product.id_image, 'medium' I removed the _default. Edit: I should say they work in Firefox and Chrome but IE doesn't show any images at all yet. Still trying to figure that one out. Double Edit: I have all the images working in IE now except images in the Recently Viewed Block. How I did this was to change all the images back to having the _default after each. That made them show up on IE. They still show up on Firefox and Chrome. I didn't regenerate thumbnails. I have a feeling if I did, it would cause the images on FF and Chrome to go away. I did notice that when _default is removed from all the image settings, the URL's of the images still have _default in them. Edited October 8, 2012 by bside2234 (see edit history) Link to comment Share on other sites More sharing options...
alicewoman1 Posted October 9, 2012 Share Posted October 9, 2012 Not working here Link to comment Share on other sites More sharing options...
bside2234 Posted October 9, 2012 Share Posted October 9, 2012 Not working here My "fix" didn't work for you? I'm thinking this might be install specific as I would expect more people to be having this problem and there doesn't seem to be one fix for everyone who is having the problem. This seemed to have happened when I updated to 1.5.1.0 from the new release of 1.5. I don't recall it being a problem in 1.5. I wish someone with more knowledge of this could help out. I barely know what I'm doing. Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 Not working here What is the link to the image when the Friendly url rewrite is off? Link to comment Share on other sites More sharing options...
Vallo92 Posted October 9, 2012 Share Posted October 9, 2012 (edited) Hello, I managed to solve the problem of deleting images the word "_default"! But now I have another problem! : ( The catalog now contains all the images of the products, however, there are more in the home! I attach a picture to explain it better Edited October 9, 2012 by Vallo92 (see edit history) Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 Hello, I managed to solve the problem of deleting images the word "_default"! But now I have another problem! : ( The catalog now contains all the images of the products, however, there are more in the home! I attach a picture to explain it better Did you remove '_default' from all image types or just 'home'? Link to comment Share on other sites More sharing options...
Vallo92 Posted October 9, 2012 Share Posted October 9, 2012 Here's a screen: Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 Here's a screen: Ok, now copy the link to the non-displayed image and see what it says there... It should link to small or small_default (or medium or medium_default) ? Link to comment Share on other sites More sharing options...
Vallo92 Posted October 9, 2012 Share Posted October 9, 2012 Mmmmmm, I tried to see the link of the image and connects to "medium_default" (http://ilvecchiomondoshop.it/269-medium_default/set-12-dadi-d6-16mm-opachi-verde-scurooro.jpg)! How do I fix this? Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 (edited) Mmmmmm, I tried to see the link of the image and connects to "medium_default" (http://ilvecchiomond...de-scurooro.jpg)! How do I fix this? Well, there are a few ways ) The first option is to rename image type 'medium' to medium_default The second option is to duplicate medium image type and name it medium_default... The third option is what bside2234 suggested here-post 35 (Same problem as you have) Nothing else comes to my mind right now... Edited October 9, 2012 by doubleD (see edit history) Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 (edited) Mmmmmm, I tried to see the link of the image and connects to "medium_default" (http://ilvecchiomond...de-scurooro.jpg)! How do I fix this? That's a very strange issue, cause my configuration works fine for all image types with _default names and doesn't work without _default.... Edited October 9, 2012 by doubleD (see edit history) Link to comment Share on other sites More sharing options...
alicewoman1 Posted October 9, 2012 Share Posted October 9, 2012 (edited) I did a fresh install and still having this problem. Edited October 9, 2012 by alicewoman1 (see edit history) Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 I did a fresh install and still having this problem. I have removed the _default from the image names but there are still broken image links. Did you regenerate image thumbnails? Link to comment Share on other sites More sharing options...
alicewoman1 Posted October 9, 2012 Share Posted October 9, 2012 (edited) Yes I did regenerate the thumbnails. Old images (demo products) are working but new images don't work. You can see it here http://www.catanddog...euw/8-test.html Edited October 9, 2012 by alicewoman1 (see edit history) Link to comment Share on other sites More sharing options...
bside2234 Posted October 9, 2012 Share Posted October 9, 2012 Well, there are a few ways ) The second option is to duplicate medium image type and name it medium_default... I didn't think to try to have both medium and a medium_default. I will have to try that out and see how that works. It sucks it's works fine in one browser one way and not in another. Kind of a see-saw effect. Fix one, the other breaks. Fix that and the other breaks. Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 Yes I did regenerate the thumbnails. Old images (demo products) are working but new images don't work. I cannot see the new images on the product page. You can see it here http://www.catanddog...euw/8-test.html Must be you have the same config as mine, put default back to image types.... This link works for you http://www.catanddogshop.nl/nieuw/29-large_default/test.jpg Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 It sucks it's works fine in one browser one way and not in another. Kind of a see-saw effect. Fix one, the other breaks. Fix that and the other breaks. I don't think it's a browser related ... Maybe it was cached? Link to comment Share on other sites More sharing options...
alicewoman1 Posted October 9, 2012 Share Posted October 9, 2012 (edited) I have put _default back but still no images Edited October 9, 2012 by alicewoman1 (see edit history) Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 I have put _default back but still no images Try to disable SEO Friendly url rewrite, then check image url and make sure the image is in the linked folder Link to comment Share on other sites More sharing options...
alicewoman1 Posted October 9, 2012 Share Posted October 9, 2012 (edited) I have disabled the SEO Friendly url. This is the link of the broken image http://www.catanddog.../2/32-large.jpg There is no image there because the _default is missing in the link. The link must be http://www.catanddog...rge_default.jpg Edited October 9, 2012 by alicewoman1 (see edit history) Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 I have disabled the SEO Friendly url. This is the link of the broken image http://www.catanddog.../9/29-large.jpg There is no image there. Well, if you do not have image there it won't show up wether it's with _default or without.... I have both small, large jpgs etc and small_default, large_default jpgs etc images in my folders, just in case.... until there is a clear understanding of what's going on ) Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 I suggest you to remove all images from img/p/ Copy your backed up img/p/* Then go to back office and regenerate all thumbs.... Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 I have disabled the SEO Friendly url. This is the link of the broken image http://www.catanddog.../2/32-large.jpg There is no image there because the _default is missing in the link. The link must be http://www.catanddog...rge_default.jpg I suggest you to remove all images from img/p/ Copy your backed up img/p/* Then go to back office and regenerate all thumbs... I can see your image url for category page are without _default, but image urls for featured and new products block are with.... Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 I did a fresh install and still having this problem. You mean fresh install like fresh, no updates, just clean install? Installed 1.5.1, clean, everything works great..., adding new images, featured products, new products, all image types are with _default so as the links to a newly added products... Link to comment Share on other sites More sharing options...
bside2234 Posted October 9, 2012 Share Posted October 9, 2012 I don't think it's a browser related ... Maybe it was cached? No, not cached. Cleared all that and even tried on friends computers. I'm not so sure it's browser related either but it may be how each browser is reading code. Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 (edited) No, not cached. Cleared all that and even tried on friends computers. I'm not so sure it's browser related either but it may be how each browser is reading code. Do you use ps 1.5 default theme or updating shop with your previous theme? The thing is: In prestashop 1.5.0.17 product-list.tpl file <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" and prestashop 1.5.1 <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" That explains a lot Edited October 9, 2012 by doubleD (see edit history) Link to comment Share on other sites More sharing options...
ajensen27 Posted October 9, 2012 Author Share Posted October 9, 2012 I just created duplicate Image types (i.e. small & small_default, home & home_default, etc.), recreated the thumbs, and now every image on my site is working again. I would give this method a try until PS has a bug fix in the next version. Link to comment Share on other sites More sharing options...
bside2234 Posted October 9, 2012 Share Posted October 9, 2012 Do you use ps 1.5 default theme or updating shop with your previous theme? The thing is: In prestashop 1.5.0.17 product-list.tpl file <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" and prestashop 1.5.1 <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" That explains a lot I'm using the default theme. I'll have a look at that. Here is my site just for reference: http://griffineffects.com/store Link to comment Share on other sites More sharing options...
bside2234 Posted October 9, 2012 Share Posted October 9, 2012 I just created duplicate Image types (i.e. small & small_default, home & home_default, etc.), recreated the thumbs, and now every image on my site is working again. I would give this method a try until PS has a bug fix in the next version. Sweet. I'll try this. I have to say at this point I'm afraid to mess with it at all though. I have 99% of images working. Link to comment Share on other sites More sharing options...
benjamin utterback Posted October 9, 2012 Share Posted October 9, 2012 Hello bside, you can always create and confirm a working backup if you would like to tinker around a little bit Link to comment Share on other sites More sharing options...
doubleD Posted October 9, 2012 Share Posted October 9, 2012 Sweet. I'll try this. I have to say at this point I'm afraid to mess with it at all though. I have 99% of images working. The only ptoblem is twice img folder size ))) But it works Link to comment Share on other sites More sharing options...
bside2234 Posted October 9, 2012 Share Posted October 9, 2012 Hello bside, you can always create and confirm a working backup if you would like to tinker around a little bit Yeah, I plan on backing it up. I also have a test site it try stuff out on too but that one has really been messed up due to the 1.5.1 update I did to it. I'll probably have to try and fix it first. Link to comment Share on other sites More sharing options...
benjamin utterback Posted October 9, 2012 Share Posted October 9, 2012 Hi bside, yes I think that is a great idea. It's not good to see a user not back up their store and attempt to upgrade to a newer version. Link to comment Share on other sites More sharing options...
bside2234 Posted October 9, 2012 Share Posted October 9, 2012 Well, I confirm that creating the duplicates of each does work. I didn't regenerate thumbnails though. Just created duplicates and refreshed all my browser windows and all the images showed up. Nice!!! 1 Link to comment Share on other sites More sharing options...
benjamin utterback Posted October 9, 2012 Share Posted October 9, 2012 Hello bside, thank you for confirming this solution. I will report this solution and mark this thread as SOLVED for now. Thank you for choosing PrestaShop! Link to comment Share on other sites More sharing options...
alicewoman1 Posted October 9, 2012 Share Posted October 9, 2012 (edited) Subcategorie images still not working I have changed <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" to <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" Update You also need to change category.tpl <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> to <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> Edited October 10, 2012 by alicewoman1 (see edit history) Link to comment Share on other sites More sharing options...
apomed Posted October 10, 2012 Share Posted October 10, 2012 (edited) I think I have found the problem. The problem is in the modules folders block.... As an example: I have added a new product but I can not see the image in the section New Products. If you go in the module Blocknewproducts you will see in the blocknewproducts.tpl that there is NO medium_default but medium. If you change it to medium_default then it works. $link->getImageLink($product.link_rewrite, $product.id_image, 'medium' Some files have _default and some others no. For that reason some people said that if you have created medium and medium_default it works but I believe the problem is what I mentioned before. Thank you Edited October 10, 2012 by papapo (see edit history) Link to comment Share on other sites More sharing options...
bside2234 Posted October 10, 2012 Share Posted October 10, 2012 I think I have found the problem. The problem is in the modules folders block.... As an example: I have added a new product but I can not see the image in the section New Products. If you go in the module Blocknewproducts you will see in the blocknewproducts.tpl that there is NO medium_default but medium. If you change it to medium_default then it works. $link->getImageLink($product.link_rewrite, $product.id_image, 'medium' Some files have _default and some others no. For that reason some people said that if you have created medium and medium_default it works but I believe the problem is what I mentioned before. Thank you That's weird because mine had $product.id_image, 'medium_default') and I had to remove _default to get the New Products Block images to show up. See post #35. Link to comment Share on other sites More sharing options...
apomed Posted October 10, 2012 Share Posted October 10, 2012 (edited) That's weird because mine had $product.id_image, 'medium_default') and I had to remove _default to get the New Products Block images to show up. See post #35. Yes you have removed _default from the administration and you did this also in the code. I say that I haven't touched the administration with the home_default, medium_default and so on values but only the code in the file. I changed in blocknewproducts.tpl the medium to medium_default. For my understanding about you, you have changed in administration the values to home, medium than home_default, medium_default and so on and then you went and changed from the file blocknewproducts.tpl the value medium_default to medium. Is that right ?? Edited October 10, 2012 by papapo (see edit history) Link to comment Share on other sites More sharing options...
bside2234 Posted October 10, 2012 Share Posted October 10, 2012 Yes you have removed _default from the administration and you did this also in the code. I say that I haven't touched the administration with the home_default, medium_default and so on values but only the code in the file. I changed in blocknewproducts.tpl the medium to medium_default. For my understanding about you, you have changed in administration the values to home, medium than home_default, medium_default and so on and then you went and changed from the file blocknewproducts.tpl the value medium_default to medium. Is that right ?? No, not entirely. I first changed $product.id_image, 'medium_default') to $product.id_image, 'medium') to get the image in New Products to work. I didn't find out about creating duplicate images in the BO until later. What I found was weird is you said you had to change $product.id_image, 'medium') to $product.id_image, 'medium_default') which is what is completely opposite of what PS installed on mine. Link to comment Share on other sites More sharing options...
apomed Posted October 10, 2012 Share Posted October 10, 2012 (edited) No, not entirely. I first changed $product.id_image, 'medium_default') to $product.id_image, 'medium') to get the image in New Products to work. I didn't find out about creating duplicate images in the BO until later. What I found was weird is you said you had to change $product.id_image, 'medium') to $product.id_image, 'medium_default') which is what is completely opposite of what PS installed on mine. Have you updated from 1.5.0.17 or you have done a clear installation of 1.5.1.0 ?? I have updated from 1.5.0.17 to 1.5.1.0 that means that I use modules from 1.5.0.17(I have copied all). So that means in Administration I have home_default, medium_default and so on but my modules are from 1.5.0.17 version that means I have home, medium and so on in my modules' files. Edited October 10, 2012 by papapo (see edit history) Link to comment Share on other sites More sharing options...
bside2234 Posted October 10, 2012 Share Posted October 10, 2012 (edited) I've done both. I have a test site I try everything on first. I updated the test one from 1.5.0 to 1.5.1 and that one is really messed up just from the update. I'll have to look at that one to see how that one is. My live site is a clean install of 1.5.1. Edit: Papapo is correct. If you updated your store to 1.5.1 the modules (at least the New Products Block) still say $product.id_image, 'medium') Where as my clean install of 1.5.1 the New Products Block says: $product.id_image, 'medium_default') I think this is going to cause people to have different issues to fix depending on if they updated or did a clean install. Edited October 10, 2012 by bside2234 (see edit history) Link to comment Share on other sites More sharing options...
apomed Posted October 10, 2012 Share Posted October 10, 2012 (edited) You mean fresh install like fresh, no updates, just clean install? Installed 1.5.1, clean, everything works great..., adding new images, featured products, new products, all image types are with _default so as the links to a newly added products... After a clean install of 1.5.1.0 everything must work. I believe the problem is that a lot of people have copied their modules from previous version(1.5.0.17) to the new(1.5.0.1) but previous version modules work without _default and 1.5.0.1 version works only with _default . Copy all the modules from 1.5.1.0 version to your test site modules'(Replace the previous modules) folder and rename them all in administration with _default (home_default, medium_default, e.t.c.) and check your website. Make also Regenerate to be sure. Edited October 10, 2012 by papapo (see edit history) Link to comment Share on other sites More sharing options...
apomed Posted October 11, 2012 Share Posted October 11, 2012 (edited) Papapo is correct.If you updated your store to 1.5.1 the modules (at least the New Products Block) still say $product.id_image, 'medium') Where as my clean install of 1.5.1 the New Products Block says: $product.id_image, 'medium_default') Dont copy the mutual modules from version 1.5.0.17 to 1.5.0.1. Copy only your own modules. I would like to know if there is also developing on the modules which are installed with Prestashop versions. Edited October 11, 2012 by papapo (see edit history) Link to comment Share on other sites More sharing options...
Jessie K. Jepsen Posted October 12, 2012 Share Posted October 12, 2012 This option worked for me Thank you! screen shots a mojor plus!! I'm not sure if it's a bug. After clean install of prestashop 1.5.0.17 and 1-click upgrade to 1.5.1 everything works fine... I noticed that all image types were auto renamed to name_default. But when I updated my existing database image type names were left unchanged (without _default). So renaming image types manually [adding '_default'] and regenerating the images seems to solve the problem... Prestashop 1.5.0.17 Image Types Prestashop 1.5.1 Image Types Link to comment Share on other sites More sharing options...
Tuinkoken Posted November 6, 2012 Share Posted November 6, 2012 Try what I did. 1. Go to preferences --> images 2. Edit each image name (remove _default for instance) 3. Go to the near the bottom of the page and "regenerate thumbs" for All Then check your site again. This worked for me and it looked like I had the same problem as you. Oh and turn friendly URL's on again. Thanks! It did the trick for me! Link to comment Share on other sites More sharing options...
b.designer Posted November 27, 2012 Share Posted November 27, 2012 man, i can not get the images to be shown on home (featured) and category... i have _default and have regenerate, still, i see no images... www.tissu.com.br/lojaonline please, heeeeeelp... tks. Link to comment Share on other sites More sharing options...
doubleD Posted November 27, 2012 Share Posted November 27, 2012 (edited) man, i can not get the images to be shown on home (featured) and category... i have _default and have regenerate, still, i see no images... www.tissu.com.br/lojaonline please, heeeeeelp... tks. There is no image http://www.tissu.com.br/lojaonline/img/p/1/1/2/112-home_default.jpg What about img folder permissions (775 777) ? Are you sure the images regenerated successfully? Edited November 27, 2012 by doubleD (see edit history) Link to comment Share on other sites More sharing options...
b.designer Posted November 27, 2012 Share Posted November 27, 2012 (edited) There is no image http://www.tissu.com.br/lojaonline/img/p/1/1/2/112-home_default.jpg What about img folder permissions (775 777) ? Are you sure the images regenerated successfully? Hey, you are right, the images arent there, but why arent the images there? I did regenerated and nothing happens... As for the permision, all the folders inside img have the same permission... 755 Dont know what to do... any idea? Tks... Edited November 27, 2012 by b.designer (see edit history) Link to comment Share on other sites More sharing options...
doubleD Posted November 27, 2012 Share Posted November 27, 2012 Hey, you are right, the images arent there, but why arent the images there? I did regenerated and nothing happens... As for the permision, all the folders inside img have the same permission... 755 Dont know what to do... any idea? Tks... The permission for the images should be 777 as prestashop suggests, mine are 775. 755 is not enough i guess Try to set permission recursive 777 to img.... regenerate the images, then you can change them back as you need. Link to comment Share on other sites More sharing options...
b.designer Posted November 27, 2012 Share Posted November 27, 2012 The permission for the images should be 777 as prestashop suggests, mine are 775. 755 is not enough i guess Try to set permission recursive 777 to img.... regenerate the images, then you can change them back as you need. just done that! nothing changed, the images were not even created inside the folders... i can not understand this thing happening, cos all the images were just working fineeeee... oh gosh... Link to comment Share on other sites More sharing options...
doubleD Posted November 27, 2012 Share Posted November 27, 2012 just done that! nothing changed, the images were not even created inside the folders... i can not understand this thing happening, cos all the images were just working fineeeee... oh gosh... .it happens ) For the quick fix you can edit product-list.tpl file. Find the line <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" Remove _default so it will look like this <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" The same for the featured module... To regenerate images i suggest you to install prestashop on your localhost, regenerate them and then upload to the server. I think that's more likely a hosting issue not prestashop, though... Link to comment Share on other sites More sharing options...
b.designer Posted November 27, 2012 Share Posted November 27, 2012 .it happens ) For the quick fix you can edit product-list.tpl file. Find the line <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" Remove _default so it will look like this <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" The same for the featured module... To regenerate images i suggest you to install prestashop on your localhost, regenerate them and then upload to the server. I think that's more likely a hosting issue not prestashop, though... i tried removing _default, still nothing happens. i didn't try installing locally tho. hey, have a look, please, at what i found out. when i try to regenerate there are some files that do not regenerate. please, see attach... the ones that were regenerated have the same time, except for one. what could that be? tks. Link to comment Share on other sites More sharing options...
doubleD Posted November 27, 2012 Share Posted November 27, 2012 (edited) i tried removing _default, still nothing happens. i didn't try installing locally tho. hey, have a look, please, at what i found out. when i try to regenerate there are some files that do not regenerate. please, see attach... the ones that were regenerated have the same time, except for one. what could that be? tks. 127.jpg is the main image from which all other are generated, so it's ok. But, i can see the images were regenerated... i mean the names are with _default... and there is no home_default... are you sure you have home_default type set up in prestashop? Here are the image types: 1 small_default 2 medium_default 3 large_default 4 thickbox_default 5 category_default 6 home_default 7 scene_default 8 m_scene_default Edited November 27, 2012 by doubleD (see edit history) 1 Link to comment Share on other sites More sharing options...
b.designer Posted November 27, 2012 Share Posted November 27, 2012 127.jpg is the main image from which all other are generated, so it's ok. But, i can see the images were regenerated... i mean the names are with _default... and there is no home_default... are you sure you have home_default type set up in prestashop? Here are the image types: 1 small_default 2 medium_default 3 large_default 4 thickbox_default 5 category_default 6 home_default 7 scene_default 8 m_scene_default Hey! Thank you very much for helping me! You guys rock! What happened was that I do have all these types of images, thou i had not ticked "products" in the home_default type. Now all is fine! Tks again! What an idiot I am... :-) Link to comment Share on other sites More sharing options...
lubosl Posted May 14, 2013 Share Posted May 14, 2013 Hello, I have one problem with images as well. I upgraded PS from 1.4.7.0. to 1.5.4.1, all is OK, but in blockviewed (last viewed products) I cannot see some images. Interesting is that the problem is not related to all products. Only some products have this problem and their pictures cannot be dispalyed in this block. Instead of the picture you can see NO PICTURE (?). I removed the pictures, loaded back, set chmod, regenerated. All in various steps, spent some hours to try all pissiblw solutions. Some idea how to fix this problem? Thank you.. Link to comment Share on other sites More sharing options...
(\)icholas Posted May 15, 2013 Share Posted May 15, 2013 Hey Lubosl, I just upgraded from 1.4.6 to 1.5.4 and I have the exact same problem as you. So far its the only issue I've found. Let me know if you figure out the problem and I'll do the same for you. Link to comment Share on other sites More sharing options...
lubosl Posted May 15, 2013 Share Posted May 15, 2013 Hey Lubosl, I just upgraded from 1.4.6 to 1.5.4 and I have the exact same problem as you. So far its the only issue I've found. Let me know if you figure out the problem and I'll do the same for you. Hello (\)icholas, I found that if I will change cover picture from the first picture to second picture the problem will disappear. I don't understand what's wrong and sitll searchng for a solution Also If I will load new picture for the product and set this as cover, the problem will still remain... Appreciate your cooperation Link to comment Share on other sites More sharing options...
(\)icholas Posted May 18, 2013 Share Posted May 18, 2013 Hello again Lubosl. It looks like our main problem exists in the default 1.5.4.1 and was not due to the update. Here's a link to a post which describes the fix. http://www.prestashop.com/forums/topic/244830-solved-prestashop-1541-blockviewed-problem/page__p__1229243__hl__blockviewed__fromsearch__1?do=findComment&comment=1229243 It seems to be working for me. A second issue I noticed was that that the new default product images did not get copied into my store. The new defaults are named differently. The old format was en-default-home.jpg . The new format is en-default-home_default.jpg . After performing the update my img/p/ directory only contained the old ones. However the image page in the backoffice now contained records for both the old images and the new images; 16 in total. This may have been compounding the problem. An up-to-date module won't necessarily reference the old images in order to maintain backwards compatibility. To fix this I just copied the new set of default images into the /img/p/ directory. I did this prior to up the fix above though so I'm not sure if you will be able to see the difference after performing the first fix. This was filling my apache error log with tons of "file does not exist errors" though. Link to comment Share on other sites More sharing options...
lubosl Posted May 18, 2013 Share Posted May 18, 2013 Hello again Lubosl. It looks like our main problem exists in the default 1.5.4.1 and was not due to the update. Here's a link to a post which describes the fix. http://www.prestasho..._1#entry1229243 It seems to be working for me. A second issue I noticed was that that the new default product images did not get copied into my store. The new defaults are named differently. The old format was en-default-home.jpg . The new format is en-default-home_default.jpg . After performing the update my img/p/ directory only contained the old ones. However the image page in the backoffice now contained records for both the old images and the new images; 16 in total. This may have been compounding the problem. An up-to-date module won't necessarily reference the old images in order to maintain backwards compatibility. To fix this I just copied the new set of default images into the /img/p/ directory. I did this prior to up the fix above though so I'm not sure if you will be able to see the difference after performing the first fix. This was filling my apache error log with tons of "file does not exist errors" though. Hello (\)icholas, Thanks for feedback! for me is working this fix perfectly! Hello, a community member tdr170 has posted a solution about this. Make sure to confirm a working backup and try this in your blockviewed.php "Changing line 108 from this: LEFT JOIN '.DB_PREFIX.'image i ON (i.id_product = p.id_product)'. To this: LEFT JOIN '.DB_PREFIX.'image i ON (i.id_product = p.id_product AND i.cover = 1)'. Fixes the image issue." Thanks again! Link to comment Share on other sites More sharing options...
Przemysław Suszek Posted May 23, 2014 Share Posted May 23, 2014 I did upgrade from 1.4 to 1.6 and I dont see image. But I don't know it's the same problem. When I want create new thumb image (regenerate image) I have a lot link dosent exist. In short way. I don't have this folder. Example: (/home2/mrsuchy/public_html/suszek.info/img/p/1/1.jpg) I dont have this folder "1/1.jpg" even in my old shop. What went wrong ? 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