Site Breaking Errors after changing wiki owner

Our company is using xwiki debian 13.10.2 I was doing some housekeeping and I noticed that he wiki was owned by an employee that has not worked for us for a long time. so as an admin I changed the ownership to myself. this is where the site broke and failed to execute velocity macro errors have appeared. I dont know how I can fix it since I cant edit the admin page to change the ownership. any help to get access to the admin page or resolve these issues would be helpful.

Forgot to mention this is using the superadmin

Hello @rileyrat5x,

What is important is not the user you are currently logged in with, but the last author of the page.
For instance, you can check the last author of the Panels.Navigation page in the history.
Then, check if this user has the script and programming rights on the page.

I think we’re missing a feature to make this easy. When the user was owner, he was granted some special rights and thus pages saved under his/her name had these rights but when you switched the owner, he/she lost those extra rights. You could check https://extensions.xwiki.org/xwiki/bin/view/Extension/Change%20Content%20Author and https://extensions.xwiki.org/xwiki/bin/view/Extension/Change%20creator%2C%20author%20or%20contentAuthor/ to help you.

I’ve created Loading...

Thx

1 Like

To be more precise, what happened is the following:

  • The previous owner had installed the flavor or some extensions
  • Thus the installed wiki pages have his rights
  • In addition, that author didn’t have specific script rights but was inheriting them by being the owner or by being in a group that gave these rights
  • When you switched the owner, the previous owner lost the script rights and thus all pages he/she had created or installed as part of an extension install (or flavor install) lost script rights. Hence the error message you’re seeing.

You have 2 choices:

  • Give script rights to the previous owner.
  • Resave all pages that have the previous owner with a user having script rights. See the extensions I pointed to above to help do that.

Note that if the previous owner had installed pages requiring Programming Rights, then you also need to give that right to the last author of those pages.