Notifications macro removed or not installed

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

Issue: Notifications macro not working/installed:


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:

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?

1 Like

@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…

There is, it’s the Extension Manager.

A new installation should work just fine. Maybe you upgraded XWiki instead and mixed up the upgrade somewhere? (like not pointing to the previous permanent directory).

Thx

1 Like

thanks for your reply @vmassol

Unfortunately, the problem still occurs in my wiki environment. Also a reinstallation of the wiki environment did not bring any improvement.

in the main wiki this function does not work

in the subwikis the function works without problems/restrictions

I have already used the extension manager, but where can I change the settings for the main wiki only, without making changes to other macros or subwikis?

Is there a view here that shows in which wiki (main, subwiki 1, subwiki 2, …) which settings are effective/set?

I realize this is old, but I’m having a similar issue. I didn’t install anything related to notifications I can think of. These are just the defaults I got by installing XWiki for the first time. This is on a fresh never upgraded installation on Tomcat.

re: XWiki Platform - Notifications - Preferences - Default bridge 16.10.0 Version 15.10.13 is provided

image

image

Strange…

By any chance, are you on a subwiki? If so, could you double-check that the extension is installed in that wiki?

You could also edit the XWiki.Notifications.Code.Macro.NotificationsMacro page to verify that the visibility is correct. See https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/WritingMacros/WikiMacroTutorial/#HMacroVisibilityandRights

I’m not on a subwiki. You know… it’s interesting because logged in as superadmin or my admin the macro page is listed, but when I click on it, it’s not there.

So I click “Macro”

On Windows you can reinstall or repair applications that you already have installed. It would be nice to be able to validate or reinstall extensions. I’m tempted to try to uninstall the notifications extensions so I can reinstall them, but since it came with the original install I’m also very afraid of breaking my wiki which I’ve fiddled with a lot and is otherwise working quite well at this point. I’m starting to have users trickling in, and I don’t want my first impression to be a broken webapp.

Or maybe I just upgrage my whole wiki and hope that resolves it…?

That’s perfectly normal, there’s just no XWiki.Notifications.Code.Macro.WebHome page. In XWiki you don’t need to have a page for creating nested pages under it. If you expand the node, you’ll find 2 pages:

It is missing.

Here are the jars that came with my war with notifications in the file name.

xwiki\WEB-INF\lib\xwiki-platform-legacy-notifications-notifiers-default-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-script-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-legacy-notifications-api-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-filters-watchlistbridge-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-sources-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-legacy-notifications-sources-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-filters-default-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-notifiers-default-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-filters-watch-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-legacy-notifications-notifiers-api-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-notifiers-api-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-preferences-default-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-mentions-notifications-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-legacy-notifications-filters-api-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-rest-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-preferences-api-15.10.13.jar
xwiki\WEB-INF\lib\xwiki-platform-notifications-filters-api-15.10.13.jar