TheBenster Posted May 27, 2013 Share Posted May 27, 2013 One moment my images are there just fine and dandy, the next moment all product images are replaced by question marks. Link to comment Share on other sites More sharing options...
vekia Posted May 27, 2013 Share Posted May 27, 2013 hello it sounds like memory problem but im not sure at all. Pictures dont work well without any reason? or maybe pictures don't work after changes in the back office? Can you say something more? it is possible to share the url to your shop? Link to comment Share on other sites More sharing options...
Dh42 Posted May 27, 2013 Share Posted May 27, 2013 hmm are you using firefox portable? do you have a link to the site? Link to comment Share on other sites More sharing options...
TheBenster Posted May 27, 2013 Author Share Posted May 27, 2013 hmm are you using firefox portable? do you have a link to the site? The link to the site is www.myindiepublisher.info This is hapeneing on all browsers Link to comment Share on other sites More sharing options...
TheBenster Posted May 27, 2013 Author Share Posted May 27, 2013 hello it sounds like memory problem but im not sure at all. Pictures dont work well without any reason? or maybe pictures don't work after changes in the back office? Can you say something more? it is possible to share the url to your shop? www.myindiepublisher.info is the url Link to comment Share on other sites More sharing options...
Dh42 Posted May 27, 2013 Share Posted May 27, 2013 ok, how many products to you have? What more than likely is the case is you need to regenerate your images from the back office. If you have say over 1k products, you need to make sure that the images are moved to the "new style" directories. That setting is on the same page. Link to comment Share on other sites More sharing options...
TheBenster Posted May 27, 2013 Author Share Posted May 27, 2013 I've regenerated the images twice but nothing happened. Ill try the other option Link to comment Share on other sites More sharing options...
TheBenster Posted May 28, 2013 Author Share Posted May 28, 2013 (edited) Problem solved. Preferences -->SEO & URLs --->FRIENDLY URL (I CHECKED NO) This solved the problem and images reappeared Edited June 16, 2013 by TheBenster (see edit history) Link to comment Share on other sites More sharing options...
Jason Silver Posted July 4, 2013 Share Posted July 4, 2013 (edited) I've got a fresh install of PrestaShop 1.5.4.1, and images are not showing for me in many places. For example, in the category page, I see a question mark instead of the product image: http://www.blacksand...hop/en/6-cables However, viewed products and new products IS showing images. I've tried a number of things, including: Deleting and recreating the htaccess Disabling and enabling friendly URL and canonical url Changing permissions in img folder to 777 Regenerating thumbnails Creating a tools.php file in override/classes to extend "ToolsCore" (apacheModExists). I am still getting an error on the friendly URL page: "URL rewriting (mod_rewrite) is not active on your server, or it is not possible to check your server configuration. If you want to use Friendly URLs, you must activate this mod." URL rewriting is, in fact, enabled on my server, and I use it on other sites on this server (BlueHost), so not sure why this error would exist, especially after extending ToolsCore to return true when checking. What else can I try? UPDATE: It appears to be related to the theme... I switched back to the default theme and images appeared. Where can I find the files to change in the new theme? UPDATE2: I've contacted the developer. I'm still looking through source trying to find the problem, but would appreciate being pointed in the right direction. Edited July 4, 2013 by Jason Silver (see edit history) Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted July 4, 2013 Share Posted July 4, 2013 I've got a fresh install of PrestaShop 1.5.4.1, and images are not showing for me in many places. For example, in the category page, I see a question mark instead of the product image: http://www.blacksand...hop/en/6-cables However, viewed products and new products IS showing images. I've tried a number of things, including:Deleting and recreating the htaccess Disabling and enabling friendly URL and canonical url Changing permissions in img folder to 777 Regenerating thumbnails Creating a tools.php file in override/classes to extend "ToolsCore" (apacheModExists). I am still getting an error on the friendly URL page: "URL rewriting (mod_rewrite) is not active on your server, or it is not possible to check your server configuration. If you want to use Friendly URLs, you must activate this mod." URL rewriting is, in fact, enabled on my server, and I use it on other sites on this server (BlueHost), so not sure why this error would exist, especially after extending ToolsCore to return true when checking. What else can I try? UPDATE: It appears to be related to the theme... I switched back to the default theme and images appeared. Where can I find the files to change in the new theme? UPDATE2: I've contacted the developer. I'm still looking through source trying to find the problem, but would appreciate being pointed in the right direction. Hey Jason... at this link http://www.blacksanddistributors.ca/shop/en/6-cables images for all product is not coming up.. For Product The Statement One actual image is at http://www.blacksanddistributors.ca/shop/27-home_default/the-statement-one.jpg but in coding image which used is not "home_default" but it is "home"... There is 2 option that you can do it.. 1) you can change the code 2) From backend you can make new thumbs and images... What will u prefer tell me..??? Link to comment Share on other sites More sharing options...
Jason Silver Posted July 4, 2013 Share Posted July 4, 2013 I would prefer to fix the theme, I guess-- is that your recommendation? Link to comment Share on other sites More sharing options...
Jason Silver Posted July 4, 2013 Share Posted July 4, 2013 Alright, this isn't too hard to fix. I opened all the .tpl files in my theme folder. I did a search for all occurrences of home, and if it was in a string form (ie, 'home' and not $home) then I changed it to home_default. All my changes were from . 'home' . to . 'home_default' It was about three or four files, including product-list.tpl, product-compare.tpl, and a couple of others. Hope this helps someone! Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted July 5, 2013 Share Posted July 5, 2013 Alright, this isn't too hard to fix. I opened all the .tpl files in my theme folder. I did a search for all occurrences of home, and if it was in a string form (ie, 'home' and not $home) then I changed it to home_default. All my changes were from . 'home' . to . 'home_default' It was about three or four files, including product-list.tpl, product-compare.tpl, and a couple of others. Hope this helps someone! Yes... You just need to replace "home" to "home_default" and it will be fine... But what about Big images that is coming up on product details page is it all fine there?? if not than you also need to make changes in details page... Simple solution to this is you can make copy of associated images that is used in your tpl files.. Link to comment Share on other sites More sharing options...
indus Posted July 5, 2013 Share Posted July 5, 2013 Just double check if you have the php5-gd library installed. I had to reinstall this package when i moved to a new server. Link to comment Share on other sites More sharing options...
Jason Silver Posted July 5, 2013 Share Posted July 5, 2013 Thanks everyone-- I didn't realize at first that I also had to replace not only "home" but "scene", "small", "large", "category", etc in the template files. Thanks for your help. Jason Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted July 6, 2013 Share Posted July 6, 2013 Thanks everyone-- I didn't realize at first that I also had to replace not only "home" but "scene", "small", "large", "category", etc in the template files. Thanks for your help. Jason Hey Jason, So finally which solution worked for u??? Link to comment Share on other sites More sharing options...
jjjoseph Posted July 15, 2013 Share Posted July 15, 2013 (edited) all tpl corrected I still have have question marks on most images. www.wholesalecabinetsandvanities.com , any other secret than I can use? OK it 's fixed Edited July 15, 2013 by jjjoseph (see edit history) Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted July 16, 2013 Share Posted July 16, 2013 all tpl corrected I still have have question marks on most images. www.wholesalecabinetsandvanities.com , any other secret than I can use? OK it 's fixed Have you forget either to update .htaccess or to regenerate thumbnails?? How you have fixed?? Link to comment Share on other sites More sharing options...
PSdilemma Posted September 22, 2013 Share Posted September 22, 2013 Alright, this isn't too hard to fix. I opened all the .tpl files in my theme folder. I did a search for all occurrences of home, and if it was in a string form (ie, 'home' and not $home) then I changed it to home_default. All my changes were from . 'home' . to . 'home_default' It was about three or four files, including product-list.tpl, product-compare.tpl, and a couple of others. Hope this helps someone! I had the same problem on PS 1.5.4.1 with default theme. This was my solution: 1. modules > blockviewed > blockviewed.php change line 108 from LEFT JOIN '.DB_PREFIX.'image i ON (i.id_product = p.id_product)'. to LEFT JOIN '.DB_PREFIX.'image i ON (i.id_product = p.id_product AND i.cover = 1)'. 2. theme > default > product_list.tpl change line 28 from src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" to src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" 3. I had also a css issue. Replaced all default theme with fresh one and it solved the problem. 4. in backend under Preferences > Images regenerate images Preferences >SEO & URLs turn Friendly URL to on/off Link to comment Share on other sites More sharing options...
Recommended Posts