cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3.3 json script error adding/editing system integration

Magento 2.3.3 json script error adding/editing system integration

Hi, 

I need to ad a new system integration an instance of magento 2.3.3.

If I try to add it I can't view resources and the saving of configuration not works.

Cattura11.JPG

I have a Json script error:

Cattura22.JPG

Now I can't migrate this site to magento greater than 2.3.3 because I have problems with theme if I try.

 

Can anyone help me?

 

Best regards

 

Antonio Pizzuti

01bit srls

3 REPLIES 3

Re: Magento 2.3.3 json script error adding/editing system integration

Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at getData (main.js:58)
at Array.map (<anonymous>)
at Object.apply (main.js:74)
at HTMLDocument.bootstrap (bootstrap.js:106)
at fire (jquery.js:3238)
at Object.add [as done] (jquery.js:3297)
at jQuery.fn.init.jQuery.fn.ready (jquery.js:3548)
at jQuery.fn.init (jquery.js:2973)
at new jQuery.fn.init (jquery-migrate.js:241)

Re: Magento 2.3.3 json script error adding/editing system integration

Well when I had this kind of problem, it was related with a bad syntax in my JSON in my template file, at tag:

<script type="text/x-magento-init">

    WRONG JSON HERE

</script>

Make sure its correct. Helpful Links:

 https://alanstorm.com/magento_2_javascript_init_scripts/ 

https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/javascript/js-resources.html

 

this link: https://jsonformatter.curiousconcept.com/ helps to verify and in some cases fix JSON, Sometimes we have big JSON that is hard to read without tools

 

Re: Magento 2.3.3 json script error adding/editing system integration

Hi,

 

despite the suggestion i can't find where the json error is


does anyone have any other suggestions to solve the problem?

 

Best regards

 

Antonio Pizzuti

01bit srls