Javascript error on product page in magento 2.2.4 The 2019 Stack Overflow Developer Survey Results Are InProduct detail page image not loading on front endIssue with Magento 2.2.4 - quotation mark in product name break product pagesMagento 2 - Admin Web Setup Wizard HTTP ERROR 500Magento 2.2.4 Web Setup Wizard 'This page isn't working'Magento 2.2.4 Admin issue on PHP 7.1Breadcrumbs not working on Product Page Magento 2.2.4Magento 2.2.4 : product image not displayFresh Magento 2.2.4 not showing product images on product pageProduct EAV Reindexer failing after upgrading from 2.1.7 to 2.2.4In Magento 2.2.4 Tier price of a simple product does not appear on a configurable product pageCheck out is not working at view cart in Magento - 2.2.4?
Shouldn't "much" here be used instead of "more"?
Are there incongruent pythagorean triangles with the same perimeter and same area?
Why is the maximum length of OpenWrt’s root password 8 characters?
How come people say “Would of”?
Do these rules for Critical Successes and Critical Failures seem Fair?
Is three citations per paragraph excessive for undergraduate research paper?
What to do when moving next to a bird sanctuary with a loosely-domesticated cat?
If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?
How to save as into a customized destination on macOS?
What is the meaning of the verb "bear" in this context?
Did 3000BC Egyptians use meteoric iron weapons?
How to manage monthly salary
What is the most effective way of iterating a std::vector and why?
Geography at the pixel level
How to type this arrow in math mode?
Write faster on AT24C32
What is the closest word meaning "respect for time / mindful"
Why isn't airport relocation done gradually?
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
What is the motivation for a law requiring 2 parties to consent for recording a conversation
Are there any other methods to apply to solving simultaneous equations?
Delete all lines which don't have n characters before delimiter
Am I thawing this London Broil safely?
Button changing it's text & action. Good or terrible?
Javascript error on product page in magento 2.2.4
The 2019 Stack Overflow Developer Survey Results Are InProduct detail page image not loading on front endIssue with Magento 2.2.4 - quotation mark in product name break product pagesMagento 2 - Admin Web Setup Wizard HTTP ERROR 500Magento 2.2.4 Web Setup Wizard 'This page isn't working'Magento 2.2.4 Admin issue on PHP 7.1Breadcrumbs not working on Product Page Magento 2.2.4Magento 2.2.4 : product image not displayFresh Magento 2.2.4 not showing product images on product pageProduct EAV Reindexer failing after upgrading from 2.1.7 to 2.2.4In Magento 2.2.4 Tier price of a simple product does not appear on a configurable product pageCheck out is not working at view cart in Magento - 2.2.4?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
After upgradeing to Magento 2.2.4 there seems to be an error on the product page where the javascript its not working properly (see the screenshot).
I am using Porto.
Any ideas?
magento2 product magento2.2.4
add a comment |
After upgradeing to Magento 2.2.4 there seems to be an error on the product page where the javascript its not working properly (see the screenshot).
I am using Porto.
Any ideas?
magento2 product magento2.2.4
The error you refer to is the invalid JSON? Or do you mean the duplicate element IDs? Did you check where that JSON is coming from?
– Arjen Miedema
May 3 '18 at 14:05
The error is the invalid JSON (Uncaught SyntaxError: Unexpected token , in JSON at position 1206).
– LogicHub Development
May 3 '18 at 14:25
1
Can you check the source code of this page? Most properly, the issue cames from product name with ' which broken the JSON string.
– Tiikeri
May 3 '18 at 14:43
You should post that Tran, so it seems the right answer
– Raul Sanchez
May 20 '18 at 8:32
add a comment |
After upgradeing to Magento 2.2.4 there seems to be an error on the product page where the javascript its not working properly (see the screenshot).
I am using Porto.
Any ideas?
magento2 product magento2.2.4
After upgradeing to Magento 2.2.4 there seems to be an error on the product page where the javascript its not working properly (see the screenshot).
I am using Porto.
Any ideas?
magento2 product magento2.2.4
magento2 product magento2.2.4
edited Mar 17 at 5:41
Shoaib Munir
2,3822929
2,3822929
asked May 3 '18 at 13:37
LogicHub DevelopmentLogicHub Development
111
111
The error you refer to is the invalid JSON? Or do you mean the duplicate element IDs? Did you check where that JSON is coming from?
– Arjen Miedema
May 3 '18 at 14:05
The error is the invalid JSON (Uncaught SyntaxError: Unexpected token , in JSON at position 1206).
– LogicHub Development
May 3 '18 at 14:25
1
Can you check the source code of this page? Most properly, the issue cames from product name with ' which broken the JSON string.
– Tiikeri
May 3 '18 at 14:43
You should post that Tran, so it seems the right answer
– Raul Sanchez
May 20 '18 at 8:32
add a comment |
The error you refer to is the invalid JSON? Or do you mean the duplicate element IDs? Did you check where that JSON is coming from?
– Arjen Miedema
May 3 '18 at 14:05
The error is the invalid JSON (Uncaught SyntaxError: Unexpected token , in JSON at position 1206).
– LogicHub Development
May 3 '18 at 14:25
1
Can you check the source code of this page? Most properly, the issue cames from product name with ' which broken the JSON string.
– Tiikeri
May 3 '18 at 14:43
You should post that Tran, so it seems the right answer
– Raul Sanchez
May 20 '18 at 8:32
The error you refer to is the invalid JSON? Or do you mean the duplicate element IDs? Did you check where that JSON is coming from?
– Arjen Miedema
May 3 '18 at 14:05
The error you refer to is the invalid JSON? Or do you mean the duplicate element IDs? Did you check where that JSON is coming from?
– Arjen Miedema
May 3 '18 at 14:05
The error is the invalid JSON (Uncaught SyntaxError: Unexpected token , in JSON at position 1206).
– LogicHub Development
May 3 '18 at 14:25
The error is the invalid JSON (Uncaught SyntaxError: Unexpected token , in JSON at position 1206).
– LogicHub Development
May 3 '18 at 14:25
1
1
Can you check the source code of this page? Most properly, the issue cames from product name with ' which broken the JSON string.
– Tiikeri
May 3 '18 at 14:43
Can you check the source code of this page? Most properly, the issue cames from product name with ' which broken the JSON string.
– Tiikeri
May 3 '18 at 14:43
You should post that Tran, so it seems the right answer
– Raul Sanchez
May 20 '18 at 8:32
You should post that Tran, so it seems the right answer
– Raul Sanchez
May 20 '18 at 8:32
add a comment |
1 Answer
1
active
oldest
votes
In
app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/gallery.phtml
replace
"arrows": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>,
"showCaption": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>,
with:
"arrows": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>",
"showCaption": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>",
Works for me ! Thanks !!!
– Matt Bidas
3 hours ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f224642%2fjavascript-error-on-product-page-in-magento-2-2-4%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In
app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/gallery.phtml
replace
"arrows": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>,
"showCaption": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>,
with:
"arrows": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>",
"showCaption": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>",
Works for me ! Thanks !!!
– Matt Bidas
3 hours ago
add a comment |
In
app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/gallery.phtml
replace
"arrows": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>,
"showCaption": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>,
with:
"arrows": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>",
"showCaption": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>",
Works for me ! Thanks !!!
– Matt Bidas
3 hours ago
add a comment |
In
app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/gallery.phtml
replace
"arrows": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>,
"showCaption": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>,
with:
"arrows": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>",
"showCaption": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>",
In
app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/gallery.phtml
replace
"arrows": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>,
"showCaption": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>,
with:
"arrows": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>",
"showCaption": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>",
edited 15 mins ago
Matt Bidas
3301314
3301314
answered Jun 22 '18 at 10:52
Allen InfanteAllen Infante
1029
1029
Works for me ! Thanks !!!
– Matt Bidas
3 hours ago
add a comment |
Works for me ! Thanks !!!
– Matt Bidas
3 hours ago
Works for me ! Thanks !!!
– Matt Bidas
3 hours ago
Works for me ! Thanks !!!
– Matt Bidas
3 hours ago
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f224642%2fjavascript-error-on-product-page-in-magento-2-2-4%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The error you refer to is the invalid JSON? Or do you mean the duplicate element IDs? Did you check where that JSON is coming from?
– Arjen Miedema
May 3 '18 at 14:05
The error is the invalid JSON (Uncaught SyntaxError: Unexpected token , in JSON at position 1206).
– LogicHub Development
May 3 '18 at 14:25
1
Can you check the source code of this page? Most properly, the issue cames from product name with ' which broken the JSON string.
– Tiikeri
May 3 '18 at 14:43
You should post that Tran, so it seems the right answer
– Raul Sanchez
May 20 '18 at 8:32