Admin Dashboard - Unexpected token } in JSON at position 33Jquery prototype conflict IE7 and 9 already using noConflict()Loading jQuery in MagentoDisplay Popup in magento admin DashboardAdmin Dashboard - Add JavaScriptMagento 2 / Require JS is trying to load a file from a TweenLite CDN scriptUncaught SyntaxError: Unexpected token } in JSON at position 199Unexpected end of JSON input after cache cleanedMagento 2 jsonParse() does not receive data, Unexpected token 'Invalid Return Type in Ajax CallJSON.parse: unexpected keyword at line 1 column 1 of the JSON data

Is this toilet slogan correct usage of the English language?

Approximating irrational number to rational number

Longest common substring in linear time

It grows, but water kills it

Freedom of speech and where it applies

Energy measurement from position eigenstate

How should I respond when I lied about my education and the company finds out through background check?

Why is it that I can sometimes guess the next note?

If infinitesimal transformations commute why dont the generators of the Lorentz group commute?

On a tidally locked planet, would time be quantized?

What does chmod -u do?

Creepy dinosaur pc game identification

What is the evidence for the "tyranny of the majority problem" in a direct democracy context?

How much character growth crosses the line into breaking the character

What if a revenant (monster) gains fire resistance?

Why Shazam when there is already Superman?

The screen of my macbook suddenly broken down how can I do to recover

Biological Blimps: Propulsion

Melting point of aspirin, contradicting sources

Not using 's' for he/she/it

Store Credit Card Information in Password Manager?

Is there a single word describing earning money through any means?

What is this cable/device?

Should I outline or discovery write my stories?



Admin Dashboard - Unexpected token } in JSON at position 33


Jquery prototype conflict IE7 and 9 already using noConflict()Loading jQuery in MagentoDisplay Popup in magento admin DashboardAdmin Dashboard - Add JavaScriptMagento 2 / Require JS is trying to load a file from a TweenLite CDN scriptUncaught SyntaxError: Unexpected token } in JSON at position 199Unexpected end of JSON input after cache cleanedMagento 2 jsonParse() does not receive data, Unexpected token 'Invalid Return Type in Ajax CallJSON.parse: unexpected keyword at line 1 column 1 of the JSON data













2















I know there are many questions here about the unexpected token in JSON error but nothing seems to apply in my case.

In my case I log into the admin backend and get this error:
error message

I managed to find the part which causes the error in the source code (Source page in browser):



<!--
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<div class="admin__data-grid-outer-wrap" data-bind="scope: 'notification_area.notification_area'">
<div data-role="spinner" data-component="notification_area.notification_area.columns"
class="admin__data-grid-loading-mask">
<div class="spinner">
<span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
</div>
</div>
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">"*": "Magento_Ui/js/core/app": </script>
</div>


I as well managed to figure out that it is inside the notifications container but I do not know which block causes the error. And I don't know which template is responsible for the code.



Anyone knows which block generates this code or which template contains it?



I already did the following:



  • cleared cache

  • removed static content

  • static content deploy

  • removed vendor and did a composer install

  • removed generated code

Any help is very appreciated.










share|improve this question
























  • Debug entry point: MagentoUiComponentWrapperUiComponent::_toHtml

    – Daniel
    yesterday











  • As per logs there is error in scripts.js file at either line number 117 or 87. keep debugger in that lines

    – Naisa purushotham
    yesterday












  • MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration seems to generated json which cannot be encoded

    – Daniel
    yesterday






  • 1





    in 2.3 this would throw an exception: github.com/magento/magento2/blob/2.3-develop/app/code/Magento/… because JsonSerializer is used

    – Alex
    yesterday
















2















I know there are many questions here about the unexpected token in JSON error but nothing seems to apply in my case.

In my case I log into the admin backend and get this error:
error message

I managed to find the part which causes the error in the source code (Source page in browser):



<!--
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<div class="admin__data-grid-outer-wrap" data-bind="scope: 'notification_area.notification_area'">
<div data-role="spinner" data-component="notification_area.notification_area.columns"
class="admin__data-grid-loading-mask">
<div class="spinner">
<span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
</div>
</div>
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">"*": "Magento_Ui/js/core/app": </script>
</div>


I as well managed to figure out that it is inside the notifications container but I do not know which block causes the error. And I don't know which template is responsible for the code.



Anyone knows which block generates this code or which template contains it?



I already did the following:



  • cleared cache

  • removed static content

  • static content deploy

  • removed vendor and did a composer install

  • removed generated code

Any help is very appreciated.










share|improve this question
























  • Debug entry point: MagentoUiComponentWrapperUiComponent::_toHtml

    – Daniel
    yesterday











  • As per logs there is error in scripts.js file at either line number 117 or 87. keep debugger in that lines

    – Naisa purushotham
    yesterday












  • MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration seems to generated json which cannot be encoded

    – Daniel
    yesterday






  • 1





    in 2.3 this would throw an exception: github.com/magento/magento2/blob/2.3-develop/app/code/Magento/… because JsonSerializer is used

    – Alex
    yesterday














2












2








2








I know there are many questions here about the unexpected token in JSON error but nothing seems to apply in my case.

In my case I log into the admin backend and get this error:
error message

I managed to find the part which causes the error in the source code (Source page in browser):



<!--
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<div class="admin__data-grid-outer-wrap" data-bind="scope: 'notification_area.notification_area'">
<div data-role="spinner" data-component="notification_area.notification_area.columns"
class="admin__data-grid-loading-mask">
<div class="spinner">
<span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
</div>
</div>
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">"*": "Magento_Ui/js/core/app": </script>
</div>


I as well managed to figure out that it is inside the notifications container but I do not know which block causes the error. And I don't know which template is responsible for the code.



Anyone knows which block generates this code or which template contains it?



I already did the following:



  • cleared cache

  • removed static content

  • static content deploy

  • removed vendor and did a composer install

  • removed generated code

Any help is very appreciated.










share|improve this question
















I know there are many questions here about the unexpected token in JSON error but nothing seems to apply in my case.

In my case I log into the admin backend and get this error:
error message

I managed to find the part which causes the error in the source code (Source page in browser):



<!--
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<div class="admin__data-grid-outer-wrap" data-bind="scope: 'notification_area.notification_area'">
<div data-role="spinner" data-component="notification_area.notification_area.columns"
class="admin__data-grid-loading-mask">
<div class="spinner">
<span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
</div>
</div>
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">"*": "Magento_Ui/js/core/app": </script>
</div>


I as well managed to figure out that it is inside the notifications container but I do not know which block causes the error. And I don't know which template is responsible for the code.



Anyone knows which block generates this code or which template contains it?



I already did the following:



  • cleared cache

  • removed static content

  • static content deploy

  • removed vendor and did a composer install

  • removed generated code

Any help is very appreciated.







javascript admin-panel magento2.2.6 adminnotification






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday







Daniel

















asked yesterday









DanielDaniel

184213




184213












  • Debug entry point: MagentoUiComponentWrapperUiComponent::_toHtml

    – Daniel
    yesterday











  • As per logs there is error in scripts.js file at either line number 117 or 87. keep debugger in that lines

    – Naisa purushotham
    yesterday












  • MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration seems to generated json which cannot be encoded

    – Daniel
    yesterday






  • 1





    in 2.3 this would throw an exception: github.com/magento/magento2/blob/2.3-develop/app/code/Magento/… because JsonSerializer is used

    – Alex
    yesterday


















  • Debug entry point: MagentoUiComponentWrapperUiComponent::_toHtml

    – Daniel
    yesterday











  • As per logs there is error in scripts.js file at either line number 117 or 87. keep debugger in that lines

    – Naisa purushotham
    yesterday












  • MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration seems to generated json which cannot be encoded

    – Daniel
    yesterday






  • 1





    in 2.3 this would throw an exception: github.com/magento/magento2/blob/2.3-develop/app/code/Magento/… because JsonSerializer is used

    – Alex
    yesterday

















Debug entry point: MagentoUiComponentWrapperUiComponent::_toHtml

– Daniel
yesterday





Debug entry point: MagentoUiComponentWrapperUiComponent::_toHtml

– Daniel
yesterday













As per logs there is error in scripts.js file at either line number 117 or 87. keep debugger in that lines

– Naisa purushotham
yesterday






As per logs there is error in scripts.js file at either line number 117 or 87. keep debugger in that lines

– Naisa purushotham
yesterday














MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration seems to generated json which cannot be encoded

– Daniel
yesterday





MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration seems to generated json which cannot be encoded

– Daniel
yesterday




1




1





in 2.3 this would throw an exception: github.com/magento/magento2/blob/2.3-develop/app/code/Magento/… because JsonSerializer is used

– Alex
yesterday






in 2.3 this would throw an exception: github.com/magento/magento2/blob/2.3-develop/app/code/Magento/… because JsonSerializer is used

– Alex
yesterday











2 Answers
2






active

oldest

votes


















1














MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration calls
MagentoFrameworkViewLayoutGeneratorStructure::generate and that produces wrong invalid json.



json_last_error_msg() gives following message:




Malformed UTF-8 characters, possibly incorrectly encoded




Debugging further and into MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration showed wrong encoded characters:
wrong encoding



There is no check if if the json is valid. In 2.3 it would throw an error.



Removing the wrong notification from admin_system_messages fixed it.






share|improve this answer
































    0














    You need to pass at least empty value for "Magento_Ui/js/core/app" either change the content or remove following line.<script type="text/x-magento-init">"*": "Magento_Ui/js/core/app": </script>
    finally output will be <script type="text/x-magento-init">"*": "Magento_Ui/js/core/app":"" </script>






    share|improve this answer























    • problem is the error comes from core files so I cannot simple remove something

      – Daniel
      yesterday










    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%2f266995%2fadmin-dashboard-unexpected-token-in-json-at-position-33%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration calls
    MagentoFrameworkViewLayoutGeneratorStructure::generate and that produces wrong invalid json.



    json_last_error_msg() gives following message:




    Malformed UTF-8 characters, possibly incorrectly encoded




    Debugging further and into MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration showed wrong encoded characters:
    wrong encoding



    There is no check if if the json is valid. In 2.3 it would throw an error.



    Removing the wrong notification from admin_system_messages fixed it.






    share|improve this answer





























      1














      MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration calls
      MagentoFrameworkViewLayoutGeneratorStructure::generate and that produces wrong invalid json.



      json_last_error_msg() gives following message:




      Malformed UTF-8 characters, possibly incorrectly encoded




      Debugging further and into MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration showed wrong encoded characters:
      wrong encoding



      There is no check if if the json is valid. In 2.3 it would throw an error.



      Removing the wrong notification from admin_system_messages fixed it.






      share|improve this answer



























        1












        1








        1







        MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration calls
        MagentoFrameworkViewLayoutGeneratorStructure::generate and that produces wrong invalid json.



        json_last_error_msg() gives following message:




        Malformed UTF-8 characters, possibly incorrectly encoded




        Debugging further and into MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration showed wrong encoded characters:
        wrong encoding



        There is no check if if the json is valid. In 2.3 it would throw an error.



        Removing the wrong notification from admin_system_messages fixed it.






        share|improve this answer















        MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration calls
        MagentoFrameworkViewLayoutGeneratorStructure::generate and that produces wrong invalid json.



        json_last_error_msg() gives following message:




        Malformed UTF-8 characters, possibly incorrectly encoded




        Debugging further and into MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration showed wrong encoded characters:
        wrong encoding



        There is no check if if the json is valid. In 2.3 it would throw an error.



        Removing the wrong notification from admin_system_messages fixed it.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited yesterday

























        answered yesterday









        DanielDaniel

        184213




        184213























            0














            You need to pass at least empty value for "Magento_Ui/js/core/app" either change the content or remove following line.<script type="text/x-magento-init">"*": "Magento_Ui/js/core/app": </script>
            finally output will be <script type="text/x-magento-init">"*": "Magento_Ui/js/core/app":"" </script>






            share|improve this answer























            • problem is the error comes from core files so I cannot simple remove something

              – Daniel
              yesterday















            0














            You need to pass at least empty value for "Magento_Ui/js/core/app" either change the content or remove following line.<script type="text/x-magento-init">"*": "Magento_Ui/js/core/app": </script>
            finally output will be <script type="text/x-magento-init">"*": "Magento_Ui/js/core/app":"" </script>






            share|improve this answer























            • problem is the error comes from core files so I cannot simple remove something

              – Daniel
              yesterday













            0












            0








            0







            You need to pass at least empty value for "Magento_Ui/js/core/app" either change the content or remove following line.<script type="text/x-magento-init">"*": "Magento_Ui/js/core/app": </script>
            finally output will be <script type="text/x-magento-init">"*": "Magento_Ui/js/core/app":"" </script>






            share|improve this answer













            You need to pass at least empty value for "Magento_Ui/js/core/app" either change the content or remove following line.<script type="text/x-magento-init">"*": "Magento_Ui/js/core/app": </script>
            finally output will be <script type="text/x-magento-init">"*": "Magento_Ui/js/core/app":"" </script>







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered yesterday









            Naisa purushothamNaisa purushotham

            231110




            231110












            • problem is the error comes from core files so I cannot simple remove something

              – Daniel
              yesterday

















            • problem is the error comes from core files so I cannot simple remove something

              – Daniel
              yesterday
















            problem is the error comes from core files so I cannot simple remove something

            – Daniel
            yesterday





            problem is the error comes from core files so I cannot simple remove something

            – Daniel
            yesterday

















            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%2f266995%2fadmin-dashboard-unexpected-token-in-json-at-position-33%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

            Sum ergo cogito? 1 nng

            三茅街道4182Guuntc Dn precexpngmageondP