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
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:
I managed to find the part which causes the error in the source code (Source page in browser):
<!--
/**
* Copyright © 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
add a comment |
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:
I managed to find the part which causes the error in the source code (Source page in browser):
<!--
/**
* Copyright © 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
Debug entry point: MagentoUiComponentWrapperUiComponent::_toHtml
– Daniel
yesterday
As per logs there is error in scripts.js file at either line number 117 or 87. keepdebugger
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
add a comment |
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:
I managed to find the part which causes the error in the source code (Source page in browser):
<!--
/**
* Copyright © 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
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:
I managed to find the part which causes the error in the source code (Source page in browser):
<!--
/**
* Copyright © 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
javascript admin-panel magento2.2.6 adminnotification
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. keepdebugger
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
add a comment |
Debug entry point: MagentoUiComponentWrapperUiComponent::_toHtml
– Daniel
yesterday
As per logs there is error in scripts.js file at either line number 117 or 87. keepdebugger
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
add a comment |
2 Answers
2
active
oldest
votes
MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration
callsMagentoFrameworkViewLayoutGeneratorStructure::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:
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.
add a comment |
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>
problem is the error comes from core files so I cannot simple remove something
– Daniel
yesterday
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%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
MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration
callsMagentoFrameworkViewLayoutGeneratorStructure::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:
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.
add a comment |
MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration
callsMagentoFrameworkViewLayoutGeneratorStructure::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:
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.
add a comment |
MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration
callsMagentoFrameworkViewLayoutGeneratorStructure::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:
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.
MagentoUiTemplateEngineXhtmlResult::appendLayoutConfiguration
callsMagentoFrameworkViewLayoutGeneratorStructure::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:
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.
edited yesterday
answered yesterday
DanielDaniel
184213
184213
add a comment |
add a comment |
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>
problem is the error comes from core files so I cannot simple remove something
– Daniel
yesterday
add a comment |
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>
problem is the error comes from core files so I cannot simple remove something
– Daniel
yesterday
add a comment |
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>
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>
answered yesterday
Naisa purushothamNaisa purushotham
231110
231110
problem is the error comes from core files so I cannot simple remove something
– Daniel
yesterday
add a comment |
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
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%2f266995%2fadmin-dashboard-unexpected-token-in-json-at-position-33%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
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