The xwiki edit page is blank

Hi,

I am having the issues on more than 1 pc that after updating the firefox esr 128 version to 140 esr version. when i click on xwiki (on-premis server), i can read the contents and all. but when i click edit then it shows the blank page.

i would appreciate the help.

Regards

Shiraz

Hello @shiraz,

Hard to tell with that little information. Can you give us more details, such as errors displayed in the browser console?

Hi @mleduc ,

Thanks for the reply.

I am attaching the screenshot and also the console output when it works and when it blanks.

when its blank i press CTRL+SHIFT+R one or two times while in edit window it works and shows the contents.

console output after ctrl+shift+r.txt (5.3 KB)

console output blankpage.txt (8.9 KB)

If I read the error correctly, the edit page is failing because some code is expected to find an HTML element with JSON content and parse it, but can’t find it.

Given the line number, I suspected this is coming from xwiki-platform/xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-webjar/src/main/webjar/config.js at 1a9d1e5ac489f436462aed0d792fa2fdd6f57622 · xwiki/xwiki-platform · GitHub

This JavaScript code is looking for the #realtime-config element, which is injected by the XWiki.Realtime.Configuration page.

Can you check if this page exists? If not, you might be missing the XWiki Platform - Realtime - UI extension.

cc @mflorea since you know real-time better than I do!

Hi,

could u please guide me how to check and which page exactly? as i have no idea about it.

Thanks

You can visit https://yourdomain/xwiki/bin/view/XWiki/Realtime/Configuration
If you get a “The requested page could not be found.” message, the page does not exist.

Hi,

I have checked the page and it does exist.

the issue still persists.

Thanks

Hi,

Open the JavaScript console while viewing the wiki page you want to edit and execute this:

document.querySelector('script#realtime-config').textContent

What do you get? Also, please check the last author of XWiki.Realtime.Configuration page. This page defines a UI extension that asks to be registered at wiki level. For this to work the last author of this page needs to have wiki administration rights. While at it, look at the page history and compare the latest version of this page with the version coming from “Realtime UI” extension, to be sure that this page is up-to-date and without customizations.

Hope this helps,
Marius

Hi Marius,

What I understood from ur reply. I done that, and have attached the screenshot

.

If i understood wrong, please bear with me and guide me through.

Thanks

Shiraz

Hi,

You’re missing the script tag that holds the configuration for the realtime collaboration feature. This script tag is supposed to be inserted into the HTML page by the UI extension published by the XWiki.Realtime.Configuration wiki page. It looks like that UI extension is not executed, most probably because it wasn’t registered at wiki level. Did you check the history of the XWiki.Realtime.Configuration wiki page? Compare its latest revision with the revision coming from the “Realtime UI” extension. Are there any differences? If there are no differences, can you try to:

  • edit this page in object mode with a user having wiki administration right
  • expand the first “XWiki.UIExtensionClass” object
  • type some text followed by an empty line at the start of the “Executed Content” field
  • save
  • open another page in view mode
  • do you see the typed text in the top left corner, below the logo?

BTW, you didn’t mention what version of XWiki you are using.

Hope this helps,
Marius

Hi,

I am attaching the screenshot of the configuration page history tab.

i am using Xwiki 16.10.8 version.

Hi,

could you please elaborate the object mode? as i do not know what that is.

what i think it is that i open develeoper tools>Inspector. and search the “XWiki.UIExtensionClass”. the screenshot is attached. no match.

See https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/PageEditing/#HObjectseditingmode . You first need to edit your user profile preferences and set your user type to advanced, and then you’ll get a dropdown on the Edit button with multiple options, one of which is to edit the objects attached to the page.

But first, did you try this:

?

Hope this helps,
Marius

Hi,

could u please guide me through how can I compare them?

i will check Object mode afterwards.

Thanks

Just press the button “Gewählte Versionen vergleichen”. Then there could be a diff.

1 Like

Thanks @Simpel

@mflorea i have checked the version differneces and there are many with realtime. i just sharing the screenshot.

Thanks

Hi,

If those changes are not intended then you should revert them. You can use the “Revert” link from the line with “Version coming from extension …”. Have you recently upgraded XWiki? You only mentioned upgrading the Firefox version. If you upgraded XWiki maybe you haven’t updated the wiki pages, i.e. maybe you didn’t run the Distribution Wizard or something wrong happened while the Distribution Wizard run, leaving this page outdated. My worry is that you may have other pages in the same situation. Best is to compute the changes for all XWiki Standard pages to see what else is not up-to-date. See https://extensions.xwiki.org/xwiki/bin/view/Extension/Extension%20Manager%20Application#HChanges . Go to Extension Manager administration section, search for “flavor” and compute the changes for the “XWiki Standard Flavor”. Note that it may take a while.

Hope this helps,
Marius

Hi,

No the did not changed anything. but the last time it was updated that is why it shows the changes.

I have setting up a test clone to upgrade it first and then test these things. ill check if it gives the same error. ill be updating it to 16.10.12 lts version.

Thanks.

Hi @mflorea
I have cloned the machine and upgraded to 16.10.14 run the wizard and stuff. flavor is updated with keeping new files etc. now the new version is install on clone.

I still get this edit problem. only on firefox. chrome is fine so as edge.
i got another error which i posted in this post Can't access property "language",A.document is undefined this problem is on chrome and firefox too. this is after I upgraded to newer version.

I would really appreciate the help to resolve those issues.
Thanks