Notifications macro removed or not installed

XWiki 12.7, fresh install using docker on Ubuntu using Standard Flavor.

Issue: Notifications macro not working/installed:
image
The install is a few weeks old but is not in use yet. This has never worked during the lifetime of the install. I have not tried reproducing the issue with a fresh install.

Notifications.Macro page at https://hostname/bin/view/XWiki/Notifications/Code/Macro/NotificationsMacro does not exist and appears to be removed. It has the message: “The requested page could not be found.”

I suspect this is a duplicate of this issue and I’ve tried to answer most of the questions asked by the people who helped there. The issue was solved by the user manually importing the xar archive. However, I’m happy to do what I can to help get to the bottom of this.

@SmartboxDev we’ve got a similar issue in XWiki 11.10.2

xdocu, I think I’ve figured what I did wrong and it was pretty stupid.

My docker-compose file was missing a couple of volume mounts :man_facepalming::

    db:
      volumes:
        - ./xwiki.cnf:/etc/mysql/conf.d/xwiki.cnf
        - ./init.sql:/docker-entrypoint-initdb.d/init.sql

I downloaded the necessary files, added the above lines to my docker-compose file and restarting my containers. But this didn’t fix the issue; I guess that they’re important files for the installation of xwiki.

I removed my database and xwiki data (after doing a backup of course) and did fresh install with changes. Now my notifications macro is working:

image

I’m pretty sure it’s the xwiki.cnf line that fixed the issue as the init.sql script just grants privileges to xwiki (which I did manually last time).

Great! But I’m guessing if I restore my database and data files that I’ll be back to square one. So my question is, is there a way I can manually fix this without having to start from square one?

@SmartboxDev

I don’t use a docker installation but have the same issue since the new installation of xwiki with tomcat and “Notifications Macro” also not working.

I created a subwiki where these extensions work fine

There should be a central option to repair these problems…