Jump to content

[SOLVED] Image Undefined


Recommended Posts

Hi,

Prestashop 1.7.6.8

I am trying to find this 404 error, I have this on all my products  ( console chrome)

Failed to load resource: the server responded with a status of 404 () undefined:1 

Any ideas?

undefined.png

Share this post


Link to post
Share on other sites

Two things to try:

 - move the cursor over the word "undefined: 1". It will display some link

 - look at the source code of the page (left click with the mouse in the browser and select source code). Search with what you found in the previous step for the exact location of the "undefined" resource.

 

Share this post


Link to post
Share on other sites

Hi,

I have no idea if this could help, but I also had a problem with category images and after I "rebuild" the images it works.

So you can try:

  • log in into backend
  • optimization -> design -> images
    • on the bottom you have a button with something like rebuild thumbnails (i use it in german so i dont know the exactly naming in EN sry)

 

This solved a few image problems and also some image not found issues for me.

 

Share this post


Link to post
Share on other sites

Not sure for image, did not get error every time, but think it is some image that is loaded through JavaScript. But got this error few times

bottom-5b91eb1159.js:2417 Uncaught TypeError: $(...).lazy is not a function

and block with bundle products do not load. On refresh it is fine though.

If you want try to disable Smarty cache for CSS and JS, clear cache and debug bit more.

So maybe some preloaded image for lazyload or main product image zoom area.

Share this post


Link to post
Share on other sites

I do get error also but just in new incognito window and when first time checking the product. 

Think it might be connected to zoom feature as then zoom is not active, but that is just a guessing.

@powerdada2   could you disable Smarty cache for JS  and clear PrestaShop cache?

Share this post


Link to post
Share on other sites
1 hour ago, razaro said:

Yes, definitely from elastic zoom plugin and it code.

But I could not find a solution, for now.

Hi,

Can't you switch this off?

Is this from Prestashop?

Thanks in advance for the support!

Share this post


Link to post
Share on other sites

Well that comes from theme, you might have option somewhere 

to turn on/off zoom on product page.

 

Share this post


Link to post
Share on other sites
10 minutes ago, razaro said:

Well that comes from theme, you might have option somewhere 

to turn on/off zoom on product page.

 

YES !!!!

thank you, finally found

just turned off, error away

 

Share this post


Link to post
Share on other sites
  • razaro changed the title to [SOLVED] Image Undefined

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More