Delete admin user account by mistake 8.4.5

Hi all,
I deleted the admin account by mistake and then I cannot edit anything in Xwiki.
It shows the error: 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.
2018-05-11_213040
Can someone help me, please? How can I fix it?
Many Thanks!

Please don’t send several times the same post.

Copy/pasting my answer:

According to this screenshot the page you are trying to access is not deleted.

Maybe you already restored it but did not rollbacked the admin group ? Or maybe this is not the right user.

Really sorry about that.
It happens with all pages which are created by the admin account.
Do you know how can I fix it? I don’t know what I should do now.
2018-05-11_215206
Thanks!

You should take a look at the other topic where you posted your first message, I explain what to do there.

1 Like

Hi,
I go to this link (/xwiki/view/XWiki/XWikiAdminGroup) following your answer but it could not be found. You can see in the photo.
2018-05-11_215739
Sorry for any annoying, I’m just a new guy in xwiki
Thanks!

Hi Thomas,
I found the XwikiAdmìnGroup page, but still don’t know how to restored it because this page is created by the admin account that I deleted.
2018-05-11_222051

@anymnly did you restored the admin user already ?

What version of XWiki is that ?

I didn’t restored the admin user yet because I don’t know how to do it. I went to the URL of this user but don’t know how to restored that user.
This is the profile page of that user
2018-05-11_213040
The version is 8.4.5
Thanks!

As I answered you in the first message this screenshot show a page that exist, not a deleted one.

What is the name of the user and what URL are you using to access it ?

the username of that user is “andt” and I’m using the url: /bin/view/XWiki/andt
Thanks!

Firstname is “An” and Lastname is “Do Trong”

Are you really sure this is the user which has been used to install/upgrade this wiki ?

I fixed it by rollback the AllUserGroup. Thanks!

Glad you fixed it :slight_smile: