[xwiki-users] Unknown Macros after upgrade from 2.x to 3.3
Hi XWiki expert, two months ago we upgraded our internal XWiki to version 3.3. After the upgrade it happens in unregular intervals that some macro are no longer found (error message: "Unknown macro ...") . Only macros requiring programming rights are affected. When adding a comment to the affected macros as user with programming rights the Macro becomes available again. We can not see any unusal event which can be associated with the problem. The log files do not contain any unusal error message. I saw the problem also on http://rhierlmeier.myxwiki.org with XWiki Version 3.5 (Unknown Macro "spaces" in Page Main.WebHome). Storing the Spaces Makro again solved the problem. How can I debug the problem? Richard
On Fri, Apr 13, 2012 at 10:14 AM, Richard Hierlmeier <[email protected]> wrote:
Hi XWiki expert,
two months ago we upgraded our internal XWiki to version 3.3. After the upgrade it happens in unregular intervals that some macro are no longer found (error message: "Unknown macro ...") . Only macros requiring programming rights are affected.
When adding a comment to the affected macros as user with programming rights the Macro becomes available again.
We can not see any unusal event which can be associated with the problem. The log files do not contain any unusal error message.
I saw the problem also on http://rhierlmeier.myxwiki.org with XWiki Version 3.5 (Unknown Macro "spaces" in Page Main.WebHome). Storing the Spaces Makro again solved the problem.
How can I debug the problem?
Look in the history (including minor edits) of the page that holds the macro. If the page is saved by a user that doesn't have programming rights then the macro fails to work. Hope this helps, Marius
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Marius, sorry, there is not entry in the history of the macro page. See http://rhierlmeier.myxwiki.org/xwiki/bin/view/Main/Spaces?viewer=history&sho... At 2012/04/10 19:38 I saved the Spaces macro to get back the programming right. Thank you Richard -- View this message in context: http://xwiki.475771.n2.nabble.com/Unknown-Macros-after-upgrade-from-2-x-to-3... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Fri, Apr 13, 2012 at 1:36 PM, rhierlmeier <[email protected]> wrote:
Hi Marius,
sorry, there is not entry in the history of the macro page. See
http://rhierlmeier.myxwiki.org/xwiki/bin/view/Main/Spaces?viewer=history&sho...
At 2012/04/10 19:38 I saved the Spaces macro to get back the programming right.
Then I believe the problem is caused by the XAR upgrade (i.e. the upgrade of the wiki pages). I think it depends on how you import the XAR and the user that performs the import. In the case of myxwiki for instance, the Main.Spaces page from your wiki was initially saved/create by "Administrator" but if you check the link you'll see that this "Administrator" user is local to the "template" wiki, and local users can't have programming rights. Your user for instance is defined in the main wiki, so it is a global user, which can have programming rights. Hope this helps, Marius
Thank you
Richard
-- View this message in context: http://xwiki.475771.n2.nabble.com/Unknown-Macros-after-upgrade-from-2-x-to-3... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Marius, thank you for your response. However I am doubt that this the cause of the problem. I never modified the space or activity macro on rhierlmeier.myxwiki.org before it got lost. It must be a bug in XWiki. Futhermore in our internal wiki we have only global users. We imported the macros as global "Administrator". I found out that the macros disappear after each restart of xwiki. After adding a comment to the macros the become available again. I am willing to debug the problem. Can you please provide me a hint how to find the root cause of the problem. Richard -- View this message in context: http://xwiki.475771.n2.nabble.com/Unknown-Macros-after-upgrade-from-2-x-to-3... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Marius Dumitru Florea -
rhierlmeier -
Richard Hierlmeier