Since the upgrade to Xwiki 15.9. (Debian 12.1, Tomcat9) all pages including Pro Macros have lots of errors like this:
Failed to execute the [include] macro. Cause: [Current user [xwiki:XWiki.USER] doesn't have view rights on document [test:Licenses.Code.VelocityMacros]].
In the tomcat logs, it shows up like this:
Error on too many recursive includes for topic Licenses.Code.VelocityMacro
and
WARN c.x.x.XWiki - Exception Including Topic Licenses.Code.VelocityMacros
com.xpn.xwiki.XWikiException: Error number 9001 in 9: Access to this document is denied: Licenses.Code.VelocityMacros
I did not see this errors immediately, because as admin users, there are no errors, only for regular users.
I can’t reproduce on a clean XWiki 15.9 instance. Here’s what i did:
Created a simple user
Installed Pro Macros version 1.12
Got a trial license
Login with the simple user
Create a new page and add the Note and User Profile macros
Save the page
Everything was looking good. I don’t see any of the errors you mentioned. I also tried with the guest user and after a restart of the server. Same. Which of the Pro Macros give you the error? Are you using the latest version of the Pro Macros? Do you have a valid license listed in the “Licenses” administration section? Maybe something wrong happened during the upgrade.
Note that this forum is for the XWiki Open Source project, so you should report issues with paid extensions to the company that provides and maintains them. In this case I’d use the “Contact us” link on the top bar of https://store.xwiki.com/xwiki/bin/view/Extension/ProMacros/ , or the “Issues” link from the panel.
Issue has been resolved with the help of ProMacro Support, the culprit was a wrong permission (which I did not set, sounds like a regression in the latest update) one the Licenses page.
@Qua8zoh6, was the wrong permission a lack of view and/or script permission on the Licenses.Code space? We’re seeing this error, and if you’ve got the TL;DR version of what the problem and fix was, we’d be grateful.
Keep an eye out for these permissions, in my case they were restored after a Xwiki upgrade, but it got fixed in another release and I haven’t had any problems with it any more.