Hi! I’m trying Parent-Children Livetable macro on a XWiki 16.6.0 instance and getting the error The environment prevents the table from loading data.
The extension was already available on the system. I don’t remember why I installed it, but it was by using my user with programming rights late in 2023.
I’m struggling with the paragraph of Description looking for the reason I get the error The environment prevents the table from loading data to no avail.
I simply get an empty table whatever I enter as Space, and see the error when I edit the page holding the macro in WYSIWYG mode.
Furthermore, I must recognize that the current concept of Space in XWiki is not clear to me yet but, has it any relationship with the issue I’m facing here? Must I enter the name of a space with a given syntax?
You should check with the Network tab from the browser’s developer tools the response to the HTTP request that the live table makes to fetch the data. Also check with the JavaScript console (still from the browser’s developer tools) if you have any JavaScript exceptions.
Thanks, @mflorea. It seems that I am somehow guilty of deleting a service. There is a 404 error fetching the date. You can see it live. I paste an image for any further reference:
It seems that I delete that service early this year. Perhaps I installed and deinstalled the extension. I do not remember it. I remember that I was playing with LT at that time. No recovery action is available.
In any case, when installing the extension, shouldn’t that page be created?
Perhaps we, mainly you, are wasting time trying to understand this issue. In general, I don’t like to stop until I get an answer that allows me to at least intuit the basis of the problem, but perhaps it won’t be worth the effort in this case.
I doubt the restore failed, but maybe it depends on some other page that was deleted too.
The best would probably be to go to the Extensions admin, go to that installed extension and ask to “Compute changes”, to see what exactly is different from how the standard extension is supposed to look like.
At the time of the first installation of the macro, I was also playing with page rights finding a way to hide some pages in search results for non-logged users. Following your advice, I see that I instantiated at least twice XWiki.XWikiRights on Main.SpaceParentsChildrenMacro. I will review those changes and keep this thread posted.
Indeed: the restoration didn’t fail when done from the Deleted pages list. Following your advice, I recovered the original state of all pages of the extension.
Early this year, I introduced two type of changes looking for understanding how search works: I instantiated XWiki.XWikiRights and set the in troubles page as Hidden. I read the warning telling me that any changes can lead the extension death, but I thought that I will remember the changes and turn them back if required. As you see, I forgot them.
Now, the extension works for at least Main and XWiki spaces. Not for others. But as @mflorea said, it is a very old extension. I will try to understand when it fails, and when it succeeds.
Impressive tool that Compute changes option! I learned a lot with your help. Thank you very much!