Javascript error on product page in magento 2.2.4Product 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?

World War I as a war of liberals against authoritarians?

Custom alignment for GeoMarkers

Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?

What is a ^ b and (a & b) << 1?

Bacteria contamination inside a thermos bottle

Are ETF trackers fundamentally better than individual stocks?

Brexit - No Deal Rejection

Why does overlay work only on the first tcolorbox?

Relationship between sampajanna definitions in SN 47.2 and SN 47.35

Official degrees of earth’s rotation per day

Different outputs for `w`, `who`, `whoami` and `id`

Aluminum electrolytic or ceramic capacitors for linear regulator input and output?

Could the Saturn V actually have launched astronauts around Venus?

Is it normal that my co-workers at a fitness company criticize my food choices?

How are passwords stolen from companies if they only store hashes?

Why is there is so much iron?

Math equation in non italic font

Why did it take so long to abandon sail after steamships were demonstrated?

Recruiter wants very extensive technical details about all of my previous work

Fastest way to pop N items from a large dict

While on vacation my taxi took a longer route, possibly to scam me out of money. How can I deal with this?

What is the adequate fee for a reveal operation?

Do I need life insurance if I can cover my own funeral costs?

Employee lack of ownership



Javascript error on product page in magento 2.2.4


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?













1















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















1















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













1












1








1








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 24 mins ago









Shoaib Munir

2,0271728




2,0271728










asked May 3 '18 at 13:37









LogicHub DevelopmentLogicHub Development

61




61












  • 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


















0














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
























    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









    0














    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





























      0














      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



























        0












        0








        0







        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 Jul 22 '18 at 19:03









        Dhaval Solanki

        1,3891932




        1,3891932










        answered Jun 22 '18 at 10:52









        Allen InfanteAllen Infante

        829




        829



























            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

            Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

            Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

            Aasi (pallopeli) Navigointivalikko