New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught SyntaxError: Unexpected token ILLEGAL causes save to become stuck #3717
Comments
I can't seem to reproduce this. Can anyone else? Also, I've inspected the code in the repo for funny symbols, etc., that might cause JS rendering issues, but, didn't find any. |
It's certainly not because of funny symbols being committed but how certain browsers are handling the line of code I indicated. I have over 10 confirmed computers in our company that demonstrate this behavior. My guess it has to do with multiple script tags in a single If I roll back enough, I see it was introduced in this commit: |
@mkoistinen - are you using Chrome on Linux? That is where we are seeing the major of the issues. |
I knew I've seen this before. Here is the issue... http://stackoverflow.com/a/20737569
Using |
@peterfarrell Can you see if this fixes the issue? https://github.com/mkoistinen/django-cms/tree/mkoistinen-feature/fix_3717 |
@mkoistinen just this the 3.0.x version just to double check? |
Yes please. Clearly, if this works, it will be merged into both 3.0.10, and the develop branch. |
This is now fixed for 3.0.x |
I haven't had a chance to confirm. I will on Monday. Did you reproduce the
|
@mkoistinen ... I have tried your fix and I have been unable to repro the issue any more. I believe it has fixed the issue. Thank you for merging. Do you know when this will hit PIP? Our company policy is to use only stable packages from PIP if possible. |
django CMS 3.0.10 was released formally on Saturday, 14th of February, 2015. =) It included this fix. |
The following code causes Chrome to break when saving a plugin. The plugin saves and the modal updates with "XXX was changed successfully. You may edit it again below." The modal doesn't redirect and stalls with JS error
Uncaught SyntaxError: Unexpected token ILLEGAL
https://github.com/divio/django-cms/blob/e2dfbf86b1a11173bff1dff6285d8d68e0631105/cms/templates/admin/cms/page/close_frame.html#L7-L12
The error looks like this in Chrome:
The text was updated successfully, but these errors were encountered: