We have just upgraded a testing instance of XWiki from v7.0.1 to v13.10.9 and noticed some macro errors on the web user interface.
Error Failed to execute the [velocity] macro, in the context of “Main / XXX”. See more details and exception trace in the attachment velocity.txt (18.7 KB) Update: resolved, see this comment.
Error Failed to execute the [groovy] macro, in the context of “Main / XWiki Advanced Administration Tools / CheckXWikiConfig”. See more details and exception trace in the attachment groovy.txt (27.7 KB).
Error The "notifications" macro is not in the list of registered macros in the context of “Main / XWiki / Profile of Administrator”. See more details in the attachment notifications.txt (317 Bytes) Regarding this error, I have seen this post and verified that the testing instance already has Notifications Macro 13.10.9 Installed as a dependency, but I could have missed something.
And there may be more as we proceed deeper in the testing.
I am wondering:
How do we resolve the issues?
What caused the issues, and where else do we usually need to cover in testing?
I will highly appreciate any hints or suggestions.
The error says Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:eServices.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
Did you check the last author of xwiki:eServices.WebHome and whether that author has script rights?
You are most probably right. And the older version did not have the concept of script rights, so I have already noticed that the existing users and groups don’t have script rights. So, I will check the details tomorrow work day.
By the way, I reorganized the text of the original post. There was some additional information for issue 3 but mistakenly appended after issue 2 previously. So, could you please take a look again?
Sorry for the inconvenience caused by my text mistake before, and thank you for your help.