I have seen this error before. Then it was a turkish character in the pagename that crashed the tree. It was however not a standard character but a hidden one that appeared after copying the string to a text editor. When this was removed the tree worked again.
It's not a solution for the above but if any of the pages is written with non-english characters i would start checking thoose.
Per: That's my guess too. But I can't find the page(s) that causes the error. EPi should validate the page name on saving or remove illigal characters when rendering them to the script.
Could you please place the html in a file on pastebin or something like that. My whole browser almost hanged loading this page.
And I agree with Per, there some kind of character that messes things up. Could you take a database backup and then do a binary tree search for the page on a test server?
I am troubleshooting the same error now.
I tested the inline script from "View source" with JSLint and it shows the causing page names and the following errors:
Unsafe character.line 416 character 296
Unsafe character.line 466 character 311
Unsafe character.line 750 character 2
Expected ';' and instead saw '(end)'.
When pasting the page names in Notepad++ I get some sort of soft hyphen character in two of them and two square/"unknown" characters in one. Looking with a HEX editor after saving the names as a text file something seems suspect with å and ä as well, I'm not sure if this is related to the encoding of the saved file though. Seems like the actual suspect char(s) is hard to point out since it makes all tools I've tried show the names a bit differently.
Blanking the input field for page name, typing the name back by hand and republish the pages removes the error.
I have asked the client for the OS/browser specs and the source document of the copy & pasting.
We get the error message "unterminated string literal" when expanding a tree node.
Usually this means that there is linebreaks or other characters in a string which terminates the string. I thought EPiServer validated the string before it was returned and now I'm trying to find what pages causes the error. But can't find it. Is there a way to fix this problem?
This is what gets returned: