Always get "not a mediawiki document"

Bug #1002900 reported by Peter Anderson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mediawiki-el
Incomplete
Undecided
Unassigned

Bug Description

I'm running Mediawiki 1.16, Emacs 24, and Mediawiki.el 2.2.3.

It used to work. I had a session open and had been editing files. It had probably been open a day and when I went back to it with the site still open I started getting the error "not a mediawiki document." I've removed the asite and re-added it. I've shutdown emacs and started it back up. I've searched the web but the only thing I find is a reference to the .el file that lists that as an error.

Thanks for any help.

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

Is your MW site public? Can you give me the URL? If it is public, is it listed anywhere here: http://wikistats.wmflabs.org/ ?

Do you control the wiki? If so did you upgrade it or make any configuration changes just before it stopped working?

Since it has been a day, is mediawiki.el working today?

Revision history for this message
Peter Anderson (pjanderson) wrote :

It is a wiki we control and unfortunately it isn't public. We haven't run any OS updates nor have we updated the mediawiki software. I just checked again and it still gives the error. Here is my site alist config:

Name: Sysdoc
URL: http{s}//<hostname>/mediawiki/
username: peter
password: <password>
First Page: Main_Page

I've tried http and https. I've tried a different first page. In case this matters, if I go to the wiki to view instead of /mediawiki/ I see /wiki/ but when I go to edit it it always goes to /mediawiki/. That was a problem I had to figure out initially along with allowing W3M to accept cookies. I'm not sure what it is looking for that makes it throw the error so I'm not sure what to look for.

Thanks so much for your time helping with this.

Revision history for this message
Mark A. Hershberger (hexmode) wrote : Re: [Bug 1002900] Re: Always get "not a mediawiki document"

On 05/24/2012 11:15 AM, Peter Anderson wrote:
> Thanks so much for your time helping with this.
Given how often the same problem comes up, I will have a new version out
soon with some debugging bits added. I'll let you know when you can
download it and we can get some better information.

--
http://hexmode.com/

Find peace within yourself and there will be peace on heaven and
    earth. -- Abba Isaac

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

Could you download 2.2.4 and turn on debugging? After that, tell me is in the " *http ..." buffers (where ... will the rest of the url for your site).

tags: added: debugging-requested
Changed in mediawiki-el:
status: New → Incomplete
Revision history for this message
Peter Anderson (pjanderson) wrote :

It is telling me I need a token:

HTTP/1.1 200 OK
Date: Tue, 29 May 2012 15:17:03 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Set-Cookie: sysdocwiki_session=664c1a8mcr831qd131kbopamk5; path=/; secure; HttpOnly
Cache-Control: private
Content-Length: 166
Connection: close
Content-Type: text/xml; charset=utf-8

<?xml version="1.0"?><api><login result="NeedToken" token="938a8b99345c0b5094c8144763b2426d" cookieprefix="sysdocwiki" sessionid="665c1a8mcr831qd131kbopamk5" /></api>

It will only give me a debug message the first time I try to connect and this is all the information there is.

Thanks for the help.

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

That is only the initial debug buffer. There is a different buffer for each request.

For example, the next buffer -- probably with the same name but with <2> added -- will provide the token. New requests just change the number between the angle brackets.

Revision history for this message
Peter Anderson (pjanderson) wrote :

Sorry -- Didn't see it. Its contents below.

However, both of these messages are from the first time I tried to connect. If I try and connect/open a page I get the, "not mediawiki page" message but no updated information and no new buffer (not <3>).

=================

HTTP/1.1 200 OK
Date: Tue, 29 May 2012 15:17:04 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Set-Cookie: sysdocwikiUserID=16; expires=Thu, 28-Jun-2012 15:17:04 GMT; path=/; secure; httponly
Set-Cookie: sysdocwikiUserName=Peter; expires=Thu, 28-Jun-2012 15:17:04 GMT; path=/; secure; httponly
Set-Cookie: sysdocwikiToken=79652e88c386759861c661e568301be3; expires=Thu, 28-Jun-2012 15:17:04 GMT; path=/; secure; httponly
Cache-Control: private
Content-Length: 199
Connection: close
Content-Type: text/xml; charset=utf-8

<?xml version="1.0"?><api><login result="Success" lguserid="16" lgusername="Peter" lgtoken="79652e88c386759861c661e568301be3" cookieprefix="sysdocwiki" sessionid="665c1a8mcr831qd131kbopamk5" /></api>

Revision history for this message
Peter Anderson (pjanderson) wrote :

Not sure if this is important or not, but even though it does give me the error it opens up a blank buffer.

I killed both debug buffers, tried to open the site and a page, got the error on both but no new debug buffer was opened.

Revision history for this message
Peter Anderson (pjanderson) wrote :

Is there anything else I can do to try and get this working?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.