cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal error in translation

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Fatal error in translation

On the frontend of my Magento 2.2.3 i have found this error:

 

VM256:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at callback ((index):232)
at Object.execCb (cfed7541273f0a47395bdf6060e87a36.js:1650)
at Module.check (cfed7541273f0a47395bdf6060e87a36.js:866)
at Module.<anonymous> (cfed7541273f0a47395bdf6060e87a36.js:1113)
at cfed7541273f0a47395bdf6060e87a36.js:132
at cfed7541273f0a47395bdf6060e87a36.js:1156
at each (cfed7541273f0a47395bdf6060e87a36.js:57)
at Module.emit (cfed7541273f0a47395bdf6060e87a36.js:1155)
at Module.check (cfed7541273f0a47395bdf6060e87a36.js:917)

 

If i check the error origin, the response from server is:

 

Fatal error</b>:  Namespace declaration statement has to be the very first statement or after any declare call in the script in <b>/home/website/public_html/vendor/magento/module-translation/Model/Json/PreProcessor.php</b> on line <b>7

 

How to resolve?