Import into new Wiki

Hi all,

I am having a difficult time importing a XAR file of one of my wikis and I am not sure what the problem is but have an idea. I am trying to export on of my wikis I have in a farm environment and put it on its own wiki instance. The issue is the farm image is using XWiki version 9.5.11 and the XWiki I am moving it to is 13.10.5. I imagine that a jump that big from one version to another is what is causing the issue.

My question is: What is the best way to go about moving the 9.5.11 image off the farm and onto its own wiki instance. Should I spin up another wiki with version 9.5.11 installed and upgrade till i get to my desired version?

Thank you for the the help in advance!

Hi @flux
I did such migration from v11.10.2 to v14.5 - all works fine, but I found that attachments imported twice, so space consumed by attachments doubles in size. But had no other issues.

Regards, Vadim

No, this should not be a problem at all.

Could we have some more details on what “having a difficult time” exactly mean?

@tmortagne I was able to import all the pages and attachments. What seems to break is the Macros. Some of the macros transfer and work and other do not. The other issue is that I am not able to edit any of my pages. Even as an Advanced User like admin I cannot edit a page. When I go to edit a page i just get a spinning wheel that never loads the edit page. I think it has something to do with the request being http and sending it to https. Under the network tab in developer tools I get a 404 strict-origin-when-cross-origin error.

@tmortagne Okay, I am able to edit the page using the Wiki Syntax instead of WYSIWYG Syntax. Is there a setting in the xwiki.xfg or xwiki.properties files I need to change?

The pages just call the macros, they don’t contain them. If some of your macros are provided by extensions, you will need to install those extensions on the other instance too.

I doubt this has anything to do with the fact that you imported pages. You probably have something wrong in your setup, this http vs https mixup is often the sign that you misconfigured an HTTP proxy in front of XWiki (it needs to tell XWiki what is the origin URL called by the browser). See Installation (XWiki.org).