Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Cart struggling to load two images

Cart struggling to load two images 11 years 5 months ago #1083

Hi there, last two errors to fix and we're ready for launch!

These images won't load on the cart... closelabel.png & loading.gif

The exact errors are:
"Failed to load resource: the server responded with a status of 404 (Category not found)" /index.php/components/com_virtuemart/assets/images/facebox/loading.gif

Failed to load resource: the server responded with a status of 404 (Category not found)"
/index.php/components/com_virtuemart/assets/images/facebox/closelabel.png

I can see its trying to load them from the location index.php/components/com_virtuemart etc etc instead of components/com_virtuemart etc etc...

I don't know why it's preceding it with index.php. No wonder it can't find the images.

I can't seem to fix this one. I've looked at helpers/config.php and it's loading

juri::root(true) ."/components/com_virtuemart/assets/images/facebox/loading.gif' ;\n" ; which looks correct. Maybe i'm looking in the wrong place.

This may not be linked to the template. If not i can take it to the Virtuemart forum.


Thanks
N
The topic has been locked.

Cart struggling to load two images 11 years 5 months ago #1090

Hi,

I am aware this problem, if you test your website through this service: tools.pingdom.com/
you will get those not loading images.


It is a simple SEF URL issue, since those URL's are NOT inside the content with am <img TAG, but they are located in the JAVASCRIPT lines, URL rewriting doesn't function well. The solution is easy though, since you have found where they are located;

uri::root(true) ."/components/com_virtuemart/assets/images/facebox/loading.gif' ;\n" ;

try to change that line to

uri::root(true) ."www.yourdomain.com/components/com_virtuemart/assets/images/facebox/loading.gif' ;\n" ;

you should be good to go. So the url_rewriting won't try to rewrite that URL or won't take the /index.php/ to the begining. Since it looks like it is an external image.

But this issue has absolutely nothing to do with our VM Template. It is a small issue of Virtuemart itself.

Another solution that you can try to use the .htaccess file enabled URL SEF generation, therefore /index.php/ will be gone in all pages and URLs.

Cheers.
The topic has been locked.

Cart struggling to load two images 11 years 5 months ago #1096

Thanks so much for the super quick response! I had so many issues with SEF and SSL on another site I ended up disabling it...

I can't test your solution yet as my yootheme template has decided to break, on changing a template setting... (It's something to do with permissions but my site is set to 755). Such a headache.

I've left a support ticket with them and hopefully they'll get back soon... (Fingers crossed, we're launching this week... eek).

I'll test your solution above when yootheme come back to me.

Thanks again, I had a feeling this was a VM issue so I really appreciate you've taken the time to reply... It's saved me countless hours of head bashing.

On another note I'm really impressed with this support site, the best I've seen so far! It always really helpful and replies are are super quick. Great work!

N
Last Edit: 11 years 5 months ago by N Copeman.
The topic has been locked.

Cart struggling to load two images 11 years 5 months ago #1107

SOLVED!

Thanks for the heads up with the JS... helpers/config.php didn't fix but I followed your instruction but also added https to the link in facebox.js (/components/com_virtuemart/assets/js )

This instantly fixed the problem and hasn't caused any detrimental problems to any other part of the site (fingers crossed)

Thanks again!

N
Last Edit: 11 years 5 months ago by N Copeman.
The topic has been locked.

Cart struggling to load two images 11 years 5 months ago #1124

Hi,

I am glad you figured this out, and everything has started working out.

Cheers.
Case Solved. Topic is Closed.
The topic has been locked.
Time to create page: 0.046 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo