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

Uncaught SyntaxError: Unexpected token , on product page #1643

Closed
SilvanLaroo opened this issue Aug 11, 2015 · 4 comments
Closed

Uncaught SyntaxError: Unexpected token , on product page #1643

SilvanLaroo opened this issue Aug 11, 2015 · 4 comments

Comments

@SilvanLaroo
Copy link

Hi,

I get the following error on a product page:

Uncaught SyntaxError: Unexpected token ,

This comes from the script in base-image.phtml. When I comment the "[data-role=media-gallery]": { function the error is gone. It's thrown from scripts.js, the getNodeData function.

@vpelipenko vpelipenko added the MX label Aug 11, 2015
@kandy
Copy link
Contributor

kandy commented Aug 13, 2015

Could you please provide browser version?

@SilvanLaroo
Copy link
Author

I had to reinstall Magento due to another error. After reinstall I cannot reproduce the error anymore.

@patrickpeng2091
Copy link

hello ,
I encountered the same problem。
image
VM12300:1 Uncaught SyntaxError: Unexpected token < in JSON at position 104688

chrome : 50.0.2661.102 (64-bit)
firefox: 46.0.1

okorshenko pushed a commit that referenced this issue Oct 31, 2017
Public Pull Requests

#11843 Save the price 0 as price in custom options [backport 2.2] by @raumatbel
#11854 FilterBuilder Doc Block Update by @ByteCreation
#11802 #8236 FIX CMS blocks by @thiagolima-bm
#11651 [BUGFIX] Solved error while upgrading from 2.1 to 2.2 by @lewisvoncken

Fixed Public Issues

#4808 The price of product custom option can't be set to 0.
#11095 Magento_Tax "postcode is a required field" when upgrading from 2.1.9 to 2.2
@Jeeva-Rathinam
Copy link

@patrickpeng830 Did you solve the issue, i have same error during add-to-cart button in CM page -> code https://justpaste.it/49eqz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants