Images Problem - 4.0 Version

2 years ago
Hi,

In nopcommerce 4.0 sometimes the images (products thumbs, logo etc) doesn't appear.

Inspect with firebug I see that the src attribute is set to "http://127.0.0.1:16514/images/thumbs/0145967.jpeg" and
not with the domain name.

After clear cache the problem gone away and images works fine

Any idea?

Thanks
2 years ago
Hello Kava,

If your Store URL (Administration -> Configuration -> Stores -> Edit Store) is set to http://127.0.0.1:16514 you might get this issue where the images on your store would be cached to the wrong URL.
If you add your actual store URL in that setting and clear your cache you should stop experiencing this issue.

Hope that helps!

Regards,
Anton
2 years ago
Thanks for replay, however store url is right.
2 years ago
Hi,

today happened same problem but with another ip port, es

http://127.0.0.1:27758/images/thumbs/0144665_shirt_200.jpeg


thanks
2 years ago
Have you tried contacting your hosting provider to make sure domain is configured correctly?
2 years ago
I've also recently begin experiencing this same problem on our 4.0 development site.
The site is running at an IP address, and that IP address is the value I've saved in my store configuration. There is no "domain" to configure...

http://50.28.98.111/

I can't figure out where it's getting the 127.0.0.1 from, but it's very annoying. It takes either clearing cache or restarting the application to correct it, but it always reverts back to the 127.0.0.1 IP within a few hours.

We planned to launch this site in the next week or so, but I won't be able to until I resolve this issue. Any suggestions are welcome.

Thanks!
2 years ago
This happens to me as well. I'm running version 4.10.

We don't have a domain, just a simple office switch. NopCommerce 4.10 was configed on a server named "EPTEST", and on the local things mostly look OK, except occasionally you got a image-not-load.

But when trying to view from machine on the same network (can ping each other), using URL "http://eptest/", the images can never get loaded.

To make things even more funky: you just leave the browser there for a while, then images start to show up.

When image not show, inspecting the image reveals that it's pointing to "http://localhost/images/..."; but when images do show, it's pointing to "http://eptest/images/..."

Very strange.

In my case, clearing cache and/or restart server won't help, at all.

b.t.w. In Admin->Configuration->Store->Default Store URL, I am using "http://eptest/". So really have no idea where that "localhost" thing come from.

Don't want this happen in production. So any advice will be appreciated.
1 year ago
Same here. Why do you return full url for thumbs at all ? You know its local resource. So noob. FIX IT ASAP PLZ. Reverse proxy scenario broken and cannot be used !!!
1 year ago
im facing this problem sometimes as well , im using V 4.10

i have not traced the issue yet, im suspecting it might be related to when publishing  the project , maybe the folder is the culprit,


anyone found the issue ?
1 year ago
saad77 wrote:
im facing this problem sometimes as well , im using V 4.10

i have not traced the issue yet, im suspecting it might be related to when publishing  the project , maybe the folder is the culprit,


anyone found the issue ?


Are you using a domain name or i.p address to publish the site on the server?