Jump to content

Missing Pictures


northwalesinks
 Share

Recommended Posts

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

 

 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

 

 

Link to comment
Share on other sites

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;

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...