northwalesinks Posted November 6, 2013 Share Posted November 6, 2013 After upgrading from cubecart 4 to cubecart 5 we have noticed lot of product pictures are missing. So we have done and updated all our products pages. We have done the following Clear cache Clear image cache If you goto http://www.northwalesinks.com/store/ink-cartridges/samsung/remanufactured-samsung-m40-black-ink-cartridge-suitable-for-printer-model-sf330/331/335/340-samsung-fax-3000/3100/4100/4200.html Free Postage logo is still missing Anyway to fix this problem Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 6, 2013 Share Posted November 6, 2013 This is the link to the pinterest: http://pinterest.com/www.pinterest.com/northwalesinks/ You may want to check for a better link. This is the link for the postage image: http://www.northwalesinks.com/store/ink-cartridges/samsung/rema....3100/4100/images/source/Free_UK_Deliv.jpg When you used the Image Properties dialog in the editor when composing the product's description, on the Image Info tab, URL field, just enter: /images/source/Free_UK_Deliv.jpg and see what happens. Quote Link to comment Share on other sites More sharing options...
northwalesinks Posted November 7, 2013 Author Share Posted November 7, 2013 To be honest i am losted here, All i have done is added from image folder When i did it in cubecart 4 didn't have any problems like i am having now Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted November 7, 2013 Share Posted November 7, 2013 Brian is correct. The rich text editor in v5 is making the path to the image document relative. With SEO URL's on this will break the link. If you edit the source code as Brian suggested to make the image root relative or absolute it will work. Having an understanding of relative, root relative and absolute paths is crucial to doing anything online. At the same time I am sure we can add some code to check that the paths set by the rich text editor are correct. Quote Link to comment Share on other sites More sharing options...
northwalesinks Posted November 10, 2013 Author Share Posted November 10, 2013 Brian is correct. The rich text editor in v5 is making the path to the image document relative. With SEO URL's on this will break the link. If you edit the source code as Brian suggested to make the image root relative or absolute it will work. Having an understanding of relative, root relative and absolute paths is crucial to doing anything online. At the same time I am sure we can add some code to check that the paths set by the rich text editor are correct. I keep having problem some work and some do not work. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted November 10, 2013 Share Posted November 10, 2013 I looked around and couldn't find any missing images. Have you fixed them all now? Quote Link to comment Share on other sites More sharing options...
convict Posted November 12, 2013 Share Posted November 12, 2013 I already added one line of code to filemanager.class.php file line 574 is new below. As you can see even relative path to the image URL is added using CK Editor Image button browsing the image folder. Next release included. $file['select_button'] = (bool)$select_button; if ($select_button) $file['master_filepath'] = $GLOBALS['rootRel'].$file['master_filepath']; // Fix the image path added to the FCK editor area $list_files[$key] = $file; Quote Link to comment Share on other sites More sharing options...
northwalesinks Posted November 12, 2013 Author Share Posted November 12, 2013 HI i have redone the picture for FREE P & P http://www.northwalesinks.com/store/ink-cartridges/compatible-ink-for-epson/compatible-ink-cartridges-suitable-for-epson-bx305f-bx305fw-s22-sx125-sx425w.html but some how it is still missing from the page. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted November 12, 2013 Share Posted November 12, 2013 What is the url for the picture itself? Quote Link to comment Share on other sites More sharing options...
northwalesinks Posted November 12, 2013 Author Share Posted November 12, 2013 http://www.northwalesinks.com/store/images/cache/Free_UK_Deliv.270.jpg?2115386708 Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted November 13, 2013 Share Posted November 13, 2013 http://www.northwalesinks.com/store/images/cache/Free_UK_Deliv.270.jpg?2115386708 is the cache image, but your link on the product is to the original image, without any size designation. Try www.northwalesinks.com/store/images/source/Free_UK_Deliv.jpg with the http:// in front. Quote Link to comment Share on other sites More sharing options...
northwalesinks Posted November 22, 2013 Author Share Posted November 22, 2013 Thank you for help again Quote Link to comment Share on other sites More sharing options...
northwalesinks Posted December 10, 2013 Author Share Posted December 10, 2013 In cubecart 5.2.5 Rich text editor image path automation Does this fix my problem Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted December 10, 2013 Share Posted December 10, 2013 The patch isn't proactive. What I means is that for new or for editing existing documents should fix it. If not please just make sure the paths are root relative or absolute for email content. So the answer to your question is yes it should make life easier in the future. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted December 10, 2013 Share Posted December 10, 2013 Hi Just a quick add on to this topic - generally, dont use absolute paths for a number of reasons (there are always exceptions such as using a CDN for example !) 1) If you use a SSL (and everyone running CubeCart SHOULD be using one regardless of which payment gateway they use !) then hard coding http:// as a path to a file will produce a security warning if that page is then viewed securely - getting this is a quick way to ensure your customers to leave your site as most dont understand the difference. 2) Absolute paths are handled differently by the browser - using absolute paths forces the web server to establish a connection, send and receive the HTTP requests. If using relative, the connection is already established, so it doesn't have to go through that logic (hence increasing page load speed). You won't see an amazing difference in speed and caching also comes into play, and it also depends on the number of downloadable assets on that page but every bit saved has got to be good. 3) Using absolute paths can make it much more difficult if you ever change domain name - this isnt likely to cause most people an issue but is a pain if you are building a site on a test domain and then moving it later to the live domain Thanks Ian Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.