I am getting the following error when login on backend in German lang. In English It is working.

Hi

SyntaxError: Unexpected token ILLEGAL
    at http://www.candyjewels.ch/engine/Library/ExtJs/ext-all.js?201510221322:21:5361
    at Object.Ext.globalEval (http://www.candyjewels.ch/engine/Library/ExtJs/ext-all.js?201510221322:21:5369)
    at Ext.Ajax.request.success (http://www.candyjewels.ch/backend/base?file=bootstrap&loggedIn=1454335570:477:5)
    at Object.Ext.apply.callback (http://www.candyjewels.ch/engine/Library/ExtJs/ext-all.js?201510221322:21:67496)
    at Ext.define.onComplete (http://www.candyjewels.ch/engine/Library/ExtJs/ext-all.js?201510221322:21:422670)
    at Ext.define.onStateChange (http://www.candyjewels.ch/engine/Library/ExtJs/ext-all.js?201510221322:21:422314)
    at XMLHttpRequest. (http://www.candyjewels.ch/engine/Library/ExtJs/ext-all.js?201510221322:21:17406)

I am getting the above error when i login in backend by german language

It is working fine with english lang. Dont know why the error arises. Please help me…

 

Thanking in advance

Regards

Team

 

Hi,

can you open up the developer tools of your browser and watch the request, that fail? Probably there was an PHP error in the background, which causes this error.

Best regards,

Daniel

Hello Daniel,

I have checked in my server logs and developer console. There is no error found in both. The backend is still working fine with english language, But in the default german language only produces this error. And i cannot create articles over backend when the account logged in over german language plz help me

 

Thanking in advance,

Regards,

Team

Hi,

generally its hard to tell from the error message - I am not sure, if it is an actual PHP error behind the scenes or a javascript error. I remember one case, where a broken snippet was compiled into the javascript application - so in your case, some could have created a snippets with unbalanced quotes or something, that breaks the javascript application.

If you have the possibility to test it (e.g. on a developer’s system), you could check the s_core_snippets table for the latest updated snippets in german - perhaps you’ll find something suspicious there. Also clearing the snippets table might be an option (but as this will also affect frontend snippets it is not recommended in production ). 

Please also check for german snippets flagged in the „dirty“ column - those have been changed. 

If you change something regarding the snippets, you will need to clear the backend tempalte cache. As you cannot log into the german backend account, you will need to do that using the clear_cache.sh command. 

Please notice, that this is basically just a guess - its hard to tell from that error message. 

Best regards,

Daniel

Hi thank you Mr. Daniel. As you said, The error occured due to the snippets. I copied the live s_core_snippets table to my local system. and deleted one by one. Finally it works now. Thank you for your timely help Mr. Daniel

Thanking in advance, 

 

Best Regards,

Team