Error when trying to use xwiki macro ajax

Hi,

Exists old xwiki macro ajax. Was part of old ShowHide Macro (version 1.0). When I trying to use it in XWiki 8.4.4 - give me error:
Failed to execute the [groovy] macro. Cause: [The execution of the [groovy] script macro is not allowed. Check the rights of its last author or the parameters if it’s rendered from another script.] …

What can be the problem? I checked rights - I am administrator, scripting right also enabled.

Thanks beforehand!
Eugen

Hi. This means that the last author of the page doesn’t have script rights.

It’s not about your user but about the last author of the page.

Which page? this macro I trying to use inside page of class sheet
I checked all pages:

  1. page of ajax macro
  2. page of class
  3. page of class sheet
  4. page of class template
    I resaved all of them, but same error.
    Also I checked one more time my rights - scripting rights enabled for groups (Admin) where I presented, also I enabled scripting rights directly for my user - same error.

I have never used this macro so I don’t know but if it’s a macro then it means you’re calling it inside a page. This is the page that should be checked. You should tell us on what page you are when this error happens, your page content and also click on the error and paste the stack trace. Thanks

Also, a screenshot of the full page may help so that we can see the creator and last modified author.

Look attached files for details

x2scrap25

x2scrap26

x2scrap13.txt (15.5 KB)

Can you check if you have Programming Rights? (since this is using the groovy macro that macro requires PR).

look attached file for details
My user EugenColesnicov

x2scrap27