Adalente Posted January 14, 2021 Share Posted January 14, 2021 When I want to translate language it gives the following error. How To Fix ? consol error Failed to load resource: the server responded with a status of 500 () /admin254fyzilm/index.php/api/translations/tree/tr/themes/classic?_token=OQWh_1ALg23p5uMVabMW2Z-12ssR9nf1anI2QZ8tL00:1 translations.bundle.js?1.7.6.7:121 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 translations.bundle.js?1.7.6.7:121 at JSON.parse (<anonymous>) at translations.bundle.js?1.7.6.7:121 Link to comment Share on other sites More sharing options...
apavlinets Posted December 12, 2024 Share Posted December 12, 2024 Hello Have you found a solution to the problem? Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted December 12, 2024 Share Posted December 12, 2024 there seems to be illegal characters in the json file, either corrupted translation files or some character taht are not allowed in some translation strings, like what the error says - character "<" Link to comment Share on other sites More sharing options...
apavlinets Posted December 12, 2024 Share Posted December 12, 2024 I most likely have another problem Almost all 8.2 projects have no translation option There is a suspicion that the kernel adds the & symbol to the URL Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted December 12, 2024 Share Posted December 12, 2024 ok sometimes the code cache gets corrupted, you can delete the cache folder from "var/cache/prod" or "var/cache/dev" and check if it fixes your issue Link to comment Share on other sites More sharing options...
apavlinets Posted December 12, 2024 Share Posted December 12, 2024 this is first - without result Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted December 12, 2024 Share Posted December 12, 2024 that's the profiler information, don;t you have some debug backtracking that shows the error call stack? Link to comment Share on other sites More sharing options...
apavlinets Posted December 13, 2024 Share Posted December 13, 2024 (edited) 17 hours ago, QuickUpdate.net said: that's the profiler information, don;t you have some debug backtracking that shows the error call stack? I will be very grateful if you reset the screenshot - what do you mean? Edited December 13, 2024 by apavlinets (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now