Can't access property "language",A.document is undefined

Hi I have updated the xwiki version from 16.10.8 to 16.10.12 for testing purpose. everything works like flow and stuff but when i click on edit. there is a popup text bottom center says "cannot read properties of undefined (reading ‘language’) " on chrome and on firefox it says cant access property language a.document is undefined.. picture is attached.
i would appreciate the help.


regards
Shiraz

Hi,

could anyone help? how i can solve this error? is it something i need to configure in xwiki?

Thanks

Shiraz

Hi,

You should check the JavaScript console from the browser’s developer tools. Is there any error message logged there? Also check the Network tab, still from the browser’s developer tools. Do you have any failed HTTP requests? Have you tried clearing the browser cache after the XWiki upgrade?

Actually, this is the same problem as in The xwiki edit page is blank - #18 by shiraz , the difference is that in 16.10.12 the realtime editor catches the problem and falls back on the standard editor, showing a notification message at the bottom of the page. So you still need to understand why the realtime configuration is missing from the page. The realtime configuration is injected through the org.xwiki.platform.template.header.after UI extension point, provided by global.vm. Have you customized this template?

Hi @mflorea,

No i have not changed anything, could be that someone else previous employee changed or customized it. could you please guide me through step by step how to resolve the issue? i have no idea about xwiki and would really appreciate the help.

Thanks

Hi,

Have you followed my suggestion from The xwiki edit page is blank - #17 by mflorea ? I mean, have you reverted any local changes you have on the standard wiki pages, especially on those related to realtime editing? The Extension Manager UI that computes and shows the changes provides a Revert action that you can use to restore those pages to their “factory” state.