Failed to execute the velocity macro

When logging into the wiki (admin), error messages like the message below appear repeatedly and very often:
Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [cienciadedados:Panels.MyRecentModifications]. Check the rights of its last author or the parameters if it’s rendered from another script.]. Click on this message for details.
Below is an example print:
Captura de Tela 2022-04-05 às 16.26.05

Has anyone been able to definitively solve this type of problem?

Hello @WesleyAlmeida,

This can be the sign that some documents have been updated by an user with insufficient rights (usually the programming right).

The first step if to visit one of the failing document, and to look at the author mentioned in the Last modified by ... sentence below the page title.
Then, check the rights of the author.
Then, the error can be fixed by saving again the page with a user with sufficient rights.

Note: Is is also important to try to understand what happened (i.e., why and how these pages were saved with the “wrong” user) to:

  1. find out the full list of impacted pages
  2. prevent it to happen again

Hope that helps.