XWiki 11.1 instance: "Failed to execute the [velocity] macro" even as superadmin

I tried to roll back my database and the content of the permanent directory to a previous version. I disabled LDAP and enabled the superadmin account. Now I am seeing this error in several sections of the page when logged on as superadmin:

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.

Clicking on any of the messages yields the following error details:

org.xwiki.rendering.macro.MacroExecutionException: 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.
  at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178)
  at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
  at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:297)
  at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
  at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:101)
  at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.transform(AbstractBlockAsyncRenderer.java:57)
  at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRenderer.tranform(DefaultBlockAsyncRenderer.java:155)
  at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRenderer.render(DefaultBlockAsyncRenderer.java:123)
  at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRenderer.render(DefaultBlockAsyncRenderer.java:51)
  at org.xwiki.panels.internal.PanelWikiUIExtension.render(PanelWikiUIExtension.java:131)
  at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor$DecoratorWrapper.render(DefaultBlockAsyncRendererExecutor.java:66)
  at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor$DecoratorWrapper.render(DefaultBlockAsyncRendererExecutor.java:48)
  at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:236)
  at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
  at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:236)
  at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:201)
  at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:119)
  at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:107)
  at org.xwiki.uiextension.internal.AbstractWikiUIExtension.execute(AbstractWikiUIExtension.java:112)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
  at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
  at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
  at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
  at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
  at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:151)
  at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
  at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
  at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
  at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
  at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
  at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420)
  at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
  at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
  at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
  at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
  at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:259)
  at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
  at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:874)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:750)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.lambda$renderFromSkin$0(InternalTemplateManager.java:725)
  at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:724)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:703)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:689)
  at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
  at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2351)
  at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2329)
  at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:992)
  at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
  at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
  at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
  at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
  at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
  at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
  at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
  at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
  at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
  at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
  at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
  at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:259)
  at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
  at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:874)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:750)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.lambda$renderFromSkin$0(InternalTemplateManager.java:725)
  at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:724)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:703)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:689)
  at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
  at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2351)
  at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2329)
  at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:992)
  at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
  at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
  at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
  at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
  at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
  at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
  at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
  at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
  at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
  at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
  at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
  at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
  at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
  at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
  at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:259)
  at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
  at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:874)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:750)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.lambda$renderFromSkin$0(InternalTemplateManager.java:725)
  at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:724)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:703)
  at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:689)
  at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
  at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2351)
  at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
  at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:489)
  at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:210)
  at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
  at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:112)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  at org.apache.catalina.valves.rewrite.RewriteValve.invoke(RewriteValve.java:542)
  at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
  at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
  at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2336)
  at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  at java.lang.Thread.run(Thread.java:748)

When I click the menu and then click Administer Wiki, none of the sections of the page render; all sections of the page have the “Failed to execute the [velocity] macro” error message.

Does anyone know how to fix this?

In addition, the Tomcat log file contains the following:

2019-05-02 15:12:54,672 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,672 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:TourCode.TourTranslations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.checkRegistrationAuthorization(DocumentTranslationBundleFactory.java:442)
  at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.registerTranslationBundle(DocumentTranslationBundleFactory.java:418)
  at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.loadTranslations(DocumentTranslationBundleFactory.java:233)
  at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.initialize(DocumentTranslationBundleFactory.java:207)
  at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
  at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:365)
  at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
  at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
  at org.xwiki.component.embed.GenericProvider.getInstance(GenericProvider.java:111)
  at org.xwiki.component.embed.GenericProvider.get(GenericProvider.java:100)
  at org.xwiki.localization.wiki.internal.DocumentTranslationBundleInitializer.onEvent(DocumentTranslationBundleInitializer.java:82)
  at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:309)
  at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:274)
  at com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:131)
  at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:236)
  at org.xwiki.job.AbstractJob.run(AbstractJob.java:213)
  at java.lang.Thread.run(Thread.java:748)
2019-05-02 15:12:54,688 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,688 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:Admin.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,688 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,688 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:Main.SolrTranslations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,704 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,704 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:Rendering.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,704 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,704 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:XWiki.UserProfileTranslations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,719 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,719 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:XWiki.Notifications.Code.Macro.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,735 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,735 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:XWiki.XClassTranslations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,735 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,735 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:Help.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,750 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,750 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:CKEditor.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,875 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,875 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:XWiki.Notifications.Code.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,891 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,891 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:AppWithinMinutes.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,891 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [programming] access has been denied for user [xwiki:XWiki.<username>] on [Public]: security checkpoint 
2019-05-02 15:12:54,891 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:WikiManager.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [programming] access to [Main Wiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,891 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,891 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:Index.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,907 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,907 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:XWiki.Notifications.Code.Legacy.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:54,922 [XWiki initialization] INFO  .a.DefaultAuthorizationManager - [admin] access has been denied for user [xwiki:XWiki.<username>] on [xwiki]: security checkpoint 
2019-05-02 15:12:54,922 [XWiki initialization] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [xwiki:FAQCode.Translations] 
org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.<username>]
  at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
  ...
2019-05-02 15:12:55,823 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:XWiki.UserProfileUIX^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:55,846 [org.xwiki.search.solr.internal.job.IndexerJob@50d1cc6c([solr, indexer])] INFO  o.x.s.s.i.j.IndexerJob         - Starting job of type [solr.indexer] with identifier [[solr, indexer]] 
2019-05-02 15:12:55,943 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:XWiki.SolrAttachmentDoesNotExistUIX^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,138 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:FAQCode.ApplicationsPanelEntry^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,156 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:SyntaxHighlighting.EnableSyntaxHighlighting^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,162 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:XWiki.SolrDocumentDoesNotExistUIX^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,181 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:Help.TipsPanel.WYSIWYGLinkAutocomplete^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,188 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:Help.WebHome^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,200 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:XWiki.QuickSearchUIX^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,283 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:XWiki.WatchListNotificationsUIX^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,834 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:AppWithinMinutes.LiveTableTemplate^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,900 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:XWiki.Notifications.Code.NotificationsDisplayerUIX^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,904 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:XWiki.Alerts.Code.AlertsMenuUIX^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,908 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:XWiki.AdminPageUIX^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,911 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:Admin.AdminUIExtension^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 
2019-05-02 15:12:56,922 [XWiki initialization] WARN  onentManagerEventListenerProxy - Unable to register the component associated to [Object xwiki:XWiki.SolrSearchAdmin^XWiki.UIExtensionClass[0]]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights 

The <username> in the log file is another admin user that I’ve used in the past.

Any ideas on how to fix?

OK, I discovered the problem.

I had LDAP synchronization set, and I had moved the LDAP group that synchronizes the XWikiAdminGroup to a different organizational unit.

When the instance started again, the synchronization failed and the former admin account could no longer be found.

I was able to correct the problem by putting the correct LDAP path in xwiki.cfg. I have also added the initial XWiki admin account to the XWikiAdminGroup group as a backup account.

In this scenario, I would argue that that superadmin account should still work, but it didn’t – is this by design?

Thanks!

Bill

superadmin works perfectly but what is important is not who view the velocity macro result, the right issue reported by the error is related to the author of that script who was not allowed to write scripts anymore.

superadmin works perfectly but what is important is not who view the velocity macro result, the right issue reported by the error is related to the author of that script who was not allowed to write scripts anymore.

Understood. But in this scenario, what would be the recovery process, since one cannot access anything in the Administer Wiki tool?