Thank you a lot for advice. I also changed owner of wiki and deleted old-owner account before current problem. Current owner in XWikiServerClass is new owner. (XWiki was in preproduction state, without valuable content. I was just "playing" with it, to get practice. Now is probably not absolutely necessary to repair it. I'll reintall it. One the other hand I'm affraid such a problems in production run.) Petr Thomas Mortagne wrote
It's not related to the user viewing the document but to the author of the document. Whoever modify a document need SCRIPT right if the document content contains scripts to execute. Either you removed SCRIPT right to a user who created a few pages with scripts inside or some user without SCRIPT right modified the document you are trying to view. From what you describe it looks like you removed SCRIPT right to the user who created most of the pages (the first created user during install or "Admin" user if you used jetty/hsqldb package).
The easier way to fix it is probably to: * login with superadmin * go to http:// <host> /xwiki/bin/edit/XWiki/XWikiServerXwiki?editor=object * open object "XWiki.XWikiServerClass" (click on it) * set the owner to the user which is probably the author of most of the documents (probably the user who "Last modified" http:// <host> /xwiki/bin/view/XWiki/XWikiPreferences) * save
On Mon, Oct 10, 2016 at 10:34 AM, pq <
kvitek@
> wrote:
Hello, I have problem with 8.2.1 version of xwiki installed on Ubuntu 16.04. I was setting the rights in xwiki and probably made a mistake, because now getting message "Failed to execute the [velocity] macro. Cause:[The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details." *I enabled superadmin account and rebooted, but I see the same error messages on all panels under superadmin account.* I have no possibility to access rights settings - no pannels running, I have everywhere the red messages. Is any possibility to repair it? Thank a lot. Petr
-- View this message in context: http://xwiki.475771.n2.nabble.com/velocity-macro-problem-under-all-accounts-... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list
users@
-- Thomas Mortagne _______________________________________________ users mailing list
users@
-- View this message in context: http://xwiki.475771.n2.nabble.com/velocity-macro-problem-under-all-accounts-... Sent from the XWiki- Users mailing list archive at Nabble.com.