Hello guys,
i am experiencing a strange error in my wiki after accidentally installing a extension which needs a license… after deinstallation the error still remains…
I am on xwiki 16.2 on Debian with a MariaDB.
Error Code in the notification plugin or when i try to install/deinstall a plugin with the extension manager:
UIExtension 0
Executed Content
{{velocity}}
#if ("$!xcontext.userReference" != '' && $services.notification.isEnabled())
#set ($discard = $xwiki.jsx.use('XWiki.Notifications.Code.Macro.NotificationsMacro'))
#set ($discard = $xwiki.jsx.use('XWiki.Notifications.Code.NotificationsDisplayerUIX'))
#set ($discard = $xwiki.ssx.use('XWiki.Notifications.Code.Macro.NotificationsMacro'))
#set ($discard = $xwiki.ssx.use('XWiki.Notifications.Code.NotificationsDisplayerUIX'))
## TODO: replace by $xwiki.sswx.use() or something like this when XWIKI-12788 is closed.
#set ($discard = $xwiki.linkx.use($services.webjars.url('bootstrap-switch', 'css/bootstrap3/bootstrap-switch.min.css'), {'type': 'text/css', 'rel': 'stylesheet'}))
{{html clean="false"}} ## We need the clean false to avoid getting a supplementary ul element.
<li class="notification-uix loading"></li>
{{/html}}
#end
{{/velocity}}
does anyone have an idea?
Thanks
The code you pasted seems to be coming from XWiki.Notifications.Code.NotificationsDisplayerUIX
which contains the code to execute inside the https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/ExtensionPoint/Alerts extension point, ie in the alert menu at the top.
Could you provide a screenshot of where you see this code displayed in your UI?
Also, I think the error that you pasted is missing the origin of the error and is not complete. We’d need the full error.
hmm from the screenshot it seems this page still exists in your wiki for some reason: application-licensing/application-licensing-licensor/application-licensing-licensor-ui/src/main/resources/Licenses/Code/LicensesNotificationsUIX.xml at 60353583030926dde811f11febf0d89576486f7a · xwikisas/application-licensing · GitHub
Note that this forum is only about supporting free extensions from xwiki.org. It seems that the paid extension you installed is causing some problem and removing it didn’t remove all its code.
You could check with the company providing this extension. I assume it’s XWiki SAS and they have a “contact us” link on https://store.xwiki.com/xwiki/bin/view/Main/WebHome
You could also try to check in the Extension Manager if there’s any extension installed with the name “Licensor Application” and uninstall it.
PS for @surli : I’m not sure why and how that extension can cause the problem for the Notifications UIX, there’s probably some #try
missing in the UIXP around that line xwiki-platform/xwiki-platform-core/xwiki-platform-alerts/xwiki-platform-alerts-ui/src/main/resources/XWiki/Alerts/Code/AlertsMenuUIX.xml at da56c0defbd5d810035ce9164dd38ad08984a709 · xwiki/xwiki-platform · GitHub WDYT?
Thx
I’ve tried to install the Forum App (Pro) to try to reproduce and I couldn’t but uninstalling it doesn’t uninstall the Licensor Application:
So indeed uninstall that app should fix the issue I guess.
hmm seems it’s hard to unistall everything at once! I uninstalled “Licensor Application” and I still got some licensing extensions not uninstalled! (3 to be precise).
cc @Oana-Lavinia_Florean / @mflorea This doesn’t seem great, maybe something to improve?
Replying to myself: Bad idea and this wouldn’t help as render() doesn’t thrown an exception.
What improvement do you have in mind? When you uninstall an extension the Extension Manager is not uninstalling its transitive dependencies. The Extension Manager behaves like this from its inception, the main reason being that those transitive dependencies can be used in scripts (which is hard to check) and uninstalling them breaks those scripts. I don’t see what the Licensing Application can do to improve this.
@jan.schmidt for now you need to search for “license” / “licensing” / “licensor” in the Extension Manager and uninstall the results that are related to the Licensing Application.
Thanks,
Marius
I’ll leave that to you to find out
All I’m saying is that we all hate this when it happens in our OSes: we install some app and uninstall them, to find out that it left some stuff in the OS. It feels like bloatware at best.
So I think you need to make it easier for users to try out a pro app and then be able to uninstall it without having to go through support. Somehow.
At the very minimum, it needs to be documented in the doc of the paid extension. For example at Forum Application (Pro) - XWiki Store it doesn’t even say how to uninstall (but it explains how to install).
The plugin which accidentally got installed was the PDF Viewer Marco (Pro) > PDF Viewer Macro (Pro) - XWiki Store
These are the installed extensions named “licen…”:
I’m uninstalling everything now from the screenshot…
Thank you very much guys.
Note that I’ve tried to reproduce with the PDF Viewer (Pro) extension and it worked for me after uninstalling it.
when i click on “Uninstall from farm” i get the following error:
i am logged into the owner account of the wiki
For which extension did you click uninstall? And where does the error happen? (a contextual screenshot would help)
i clicked on the first extension from my screenshot the “Licensor Application”…
But nevermind…my problem has now been solved, the wiki has been restored from the backup… and i am going to merge the lost pages.
Thank you very much for the quick and competent help, am I getting paid support here? 
Kinds Regards,
Jan