Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product's photos doesn't load anymore after magento update 2.2.3 to 2.2.4 #14993

Closed
damien-lechopier opened this issue May 4, 2018 · 4 comments
Labels
Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed

Comments

@damien-lechopier
Copy link

Preconditions

  1. Magento v2.2.4 (after update from 2.2.3)
  2. PHP 7.1
    3 Theme Moza (CleverSoft)

Steps to reproduce

  1. Go on frontend on a product page with photo
  2. Image doesn't load on the page

Expected result

  1. Photo must load

Actual result

I check my firebug console and I see a javascript error on that file
=> /www/lib/web/mage/apply/scripts.js

Error is => SyntaxError: JSON.parse: unexpected character at line 14 column 36 of the JSON data

Problem looks like to come from JS function getNodeData on the return JSON.parse(data);
If some values of the JSON object are null, the console return a JSON Syntax error.

Thanks for your help

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label May 4, 2018
@lingwooc
Copy link

lingwooc commented May 4, 2018

Have a look in the dev tools of your browser to see if you can find a failed json load. I suspect it's a 404 or a php error message or something. The trick is to find the json its trying to parse and see what it looks like. You might need to use the javascript debugger to find it.

This isn't a problem with images as such. It's a problem with the javascript execution chain being broken because it is ludicrously brittle. Ideally it would fail at whatever if twas trying to do but press on with everything that it can do.

For what it's worth I don't see this issue.

@lingwooc
Copy link

lingwooc commented May 4, 2018

duplicate of #14977

@Krapulat
Copy link

Krapulat commented May 4, 2018

I have the same problem.

@magento-engcom-team
Copy link
Contributor

@damien-lechopier @lingwooc @Krapulat Please continue tracking under #14977 reference. Closing this ticket as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed
Projects
None yet
Development

No branches or pull requests

4 participants