I broke it already

I’m trying out XWiki and it took me only a few minutes to break things:

  1. The Blog is gone.
    The RSS icon in the panel on the left side and in the Application Index is gone. When I go to /bin/view/Blog/Management (I found that URL path by Google, I still haven’t found the link to that page anywhere inside XWiki) and try to create a blog I get an empty page (completely white).
    I have tried reinstalling the extension and I was able to uninstall it, but when I try to install it again I get “There is already a core covering feature [org.xwiki.platform:xwiki-platform-blog-api]”. I believe that means it couldn’t be installed.

  2. When I create a page there is a useless template
    I created something somewhere (I think an “App within minutes”) and now it shows up when I create a new page:
    image
    How can I get rid of it? It doesn’t seem to show up in any list: It’s not in “Administration: Templates”:
    /uploads/default/original/1X/5730be7b4624a4b3f0ad45464cb98dbbe2ca9b99.png
    And when I click “More applications > Create your own!” it’s not there either:
    /uploads/default/original/1X/e2076c2ca37d926901f0842065fd8f29bc15f11d.png

Hi, I’m sorry that you broke it so easily…

Could you tell us what you did to “break” it. AFAIU the only issue you have is that the blog app is not longer working and is in some unstable state, right? If you could list the specific steps you did to break it then maybe we could find a way to not make that so easy :slight_smile:

Could it be that you simply deleted pages from the Blog location? In which case you should have had some warnings asking you for confirmation.

Yes it doesn’t exist yet, we need to implement it. I’ve created https://jira.xwiki.org/browse/BLOG-97 since I didn’t find an existing issue for it (that’s weird, I thought we had one since that’s really a blocker).

You’ve probably deleted some pages from the Blog app which makes the Blog.Management page not working.

Could you paste the screenshot please with the full info?

So you created an App with AWM. This created a template. So far so good. Then you removed the app? Or you want to keep the app but just remove the template? If so, indeed, it should appear in the Template admin page at http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration%20Application#HPageTemplates

We need to try to reproduce this. It would be great if you could create a jira issue at http://jira.xwiki.org/browse/XWIKI/component/10007 with instructions on how to reproduce. Thanks!

note: Coud you fix your post so that the 2 images at the bottom can be seen? Right now I only see their paths but not their content.

Yes, I did. I was clicking around and tried if I can move the Blog to somewhere else in the page tree and ended up copying it and then deleted the original. It’s kind of understandable that it broke, but I expected it to be easier to repair (by reinstalling the extension).

image

I want to keep neither. My problem is that neither of them is showing up in any list, so I can’t delete them. I looked in “Applications” (“Create your own!”) and “Administer Wiki > Wikis > Templates”.

I have an idea what might cause it. When I click “Create your own!”, enter an application name and then click “Next Step” three times, at the third time (while saving Step 3) I get an error about the “Server not responding”. In the Chrome console I get a mixed content warning because it’s trying to access http://localhost:9001/rest/jobstatus/refactoring/create/1501880421188-589?media=json which is the address of the docker container XWiki is running in.

So far that is a relatively common problem and there is probably a setting somewhere to tell XWiki its own URL. (Although it would be nicer if this would use a relativ URL like everything else.)

The real problem however is that somehow this seems to leave behind this orphaned template that doesn’t appear in any lists. (It’s supposed to show in some list, isn’t it?)

I’ll try it now, but Discourse didn’t allow me, as a new user, to post multiple images.
Update: Nope, still “Sorry, new users can only put one image in a post.”
It’s just the empty “Applications” and the empty “Templates” list.

Ok, good, we want to solve this. We’ve already implemented a solution to prevent deleting extension pages accidentally. We now need to do that for edit + move/rename too. I’ve created https://jira.xwiki.org/browse/XWIKI-14591

GTG, will reply to the other points later on.

Could you tell us the version of XWiki you’re using? It seems you’re using a version that had the blog application bundled as a core extension, which explains why you cannot add it again. We previously had some limitation preventing uninstalling the blog application.

IMO the simplest to fix your instance is to import the Blog UI XAR into your wiki. You’ll need to pick the XAR corresponding to your version of XWiki. You can get it from here: http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-platform-blog-ui/

More on the other points later…

Not sure I understand the URL issue. What is it supposed to be?

At the bottom of the page it says “XWiki Enterprise 8.4.5”. I am using this docker-compose file which should use this docker image. I installed it freshly 2 days ago.

Indeed, the blog seems to be working again.
One thing I noticed: In “Add Extension” it offers me to upgrade the Blog Application, because 8.4.5 is installed and 9.4 is available. But it’s totally possible that this was the same before, I didn’t look there.

Oh, you are right, my mistake. I have a reverse proxy on the docker host and it didn’t send the proper Host header. One more problem: The reverse proxy connects to XWiki by HTTP while my browser connects to the reverse proxy by HTTPs. I’m sending X-Forwarded-Proto now, but XWiki generates an http:// URL.

If you need to configure XWiki to use HTTPS, please see http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HReverseproxysetup