Javascript error on product page in magento 2.2.4 The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Product 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?

should truth entail possible truth

Is there a writing software that you can sort scenes like slides in PowerPoint?

Why can't devices on different VLANs, but on the same subnet, communicate?

Do I have Disadvantage attacking with an off-hand weapon?

Loose spokes after only a few rides

How to support a colleague who finds meetings extremely tiring?

Make it rain characters

US Healthcare consultation for visitors

Why can't wing-mounted spoilers be used to steepen approaches?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Does Parliament hold absolute power in the UK?

Simulating Exploding Dice

How to read αἱμύλιος or when to aspirate

How do you keep chess fun when your opponent constantly beats you?

What's the point in a preamp?

Example of compact Riemannian manifold with only one geodesic.

Why doesn't a hydraulic lever violate conservation of energy?

Single author papers against my advisor's will?

Why doesn't shell automatically fix "useless use of cat"?

Word to describe a time interval

Student Loan from years ago pops up and is taking my salary

Python - Fishing Simulator

What happens to a Warlock's expended Spell Slots when they gain a Level?

60's-70's movie: home appliances revolting against the owners



Javascript error on product page in magento 2.2.4



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Product 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;








3















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?



Javascript error on product page in magento 2.2.4










share|improve this question
























  • 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

















3















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?



Javascript error on product page in magento 2.2.4










share|improve this question
























  • 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













3












3








3








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?



Javascript error on product page in magento 2.2.4










share|improve this question
















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?



Javascript error on product page in magento 2.2.4







magento2 product magento2.2.4






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 17 at 5:41









Shoaib Munir

2,4462930




2,4462930










asked May 3 '18 at 13:37









LogicHub DevelopmentLogicHub Development

161




161












  • 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 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










1 Answer
1






active

oldest

votes


















2














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"); ?>",





share|improve this answer

























  • Works for me ! Thanks !!!

    – Matt Bidas
    2 days ago











  • Wow, That works for me. Thank you so much!

    – Bhavin Shah
    3 hours ago











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
);



);













draft saved

draft discarded


















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









2














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"); ?>",





share|improve this answer

























  • Works for me ! Thanks !!!

    – Matt Bidas
    2 days ago











  • Wow, That works for me. Thank you so much!

    – Bhavin Shah
    3 hours ago















2














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"); ?>",





share|improve this answer

























  • Works for me ! Thanks !!!

    – Matt Bidas
    2 days ago











  • Wow, That works for me. Thank you so much!

    – Bhavin Shah
    3 hours ago













2












2








2







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"); ?>",





share|improve this answer















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"); ?>",






share|improve this answer














share|improve this answer



share|improve this answer








edited yesterday









Matt Bidas

3301315




3301315










answered Jun 22 '18 at 10:52









Allen InfanteAllen Infante

10210




10210












  • Works for me ! Thanks !!!

    – Matt Bidas
    2 days ago











  • Wow, That works for me. Thank you so much!

    – Bhavin Shah
    3 hours ago

















  • Works for me ! Thanks !!!

    – Matt Bidas
    2 days ago











  • Wow, That works for me. Thank you so much!

    – Bhavin Shah
    3 hours ago
















Works for me ! Thanks !!!

– Matt Bidas
2 days ago





Works for me ! Thanks !!!

– Matt Bidas
2 days ago













Wow, That works for me. Thank you so much!

– Bhavin Shah
3 hours ago





Wow, That works for me. Thank you so much!

– Bhavin Shah
3 hours ago

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?