Myxwiki: macros do not work

Hi,

On my wiki hosted on myxwiki.org I have a got a lot of pages with 2 macros

{{numberedheadings/}}
{{box cssClass=“floatinginfobox” title=“Sommaire”}}
{{toc/}}
{{/box}}

which are now returning

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.async.internal.block.AbstractBlockAsyncRenderer.transform(AbstractBlockAsyncRenderer.java:59)
at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroRenderer.transform(DefaultWikiMacroRenderer.java:403)
at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroRenderer.transform(DefaultWikiMacroRenderer.java:372)
at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroRenderer.render(DefaultWikiMacroRenderer.java:266)
at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroRenderer.render(DefaultWikiMacroRenderer.java:67)
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:219)
at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:119)
at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacro.execute(DefaultWikiMacro.java:109)
at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacro.execute(DefaultWikiMacro.java:53)
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.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)
at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)

See for instance this page: http://tutos.myxwiki.org/xwiki/bin/view/Accueil/Modele

Thanks for your help,

What is failing is the numberedheadings macro and the error suggest this is a wiki macro with an author which does not have enough right to execute velocity scripts (which does not make much sense since the wiki macro was registered). It was the same for tree macro and when I save it it’s fixed so it seems to be specific to your user.

Debugging a little.

Could you try to re-save https://tutos.myxwiki.org/xwiki/bin/view/Macros/Tree to see if it breaks it.

So I saved (and fixed) the wiki macro. Would be great is you could try to re-save it to see if it breaks it again.

I will try something locally (I may have an idea of what is wrong).

No need for more tests actually: https://jira.xwiki.org/browse/XWIKI-16237.

Done and the page http://tutos.myxwiki.org/xwiki/bin/view/Accueil/Modele is still OK (macros run fine).

I’m still the last author as far as I can see.

I don’t think so or did I missed something?

I%20don't%20think%20so

Yep, that’s not the page I asked you to save :slight_smile:

Anyway don’t worry, as I said I found and fixed the bug, will be part of 11.2RC1 (released tomorrow) and ASAP in myxwiki.org after the release.

Thanks.

Sorry, I saved the page https://tutos.myxwiki.org/xwiki/bin/view/Macros/Tree and:

Thanks for the fix … waiting for 11.2 release on mywiki soon :yum:.

Thanks for the confirmation, I fixed the page.

Thanks.

I consider this issue as closed (I’m confident in the 11.2 release soon).