Better error detection

Bug #608488 reported by Alex Kozak
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
mediawiki-el
Confirmed
Medium
Unassigned
3.0
New
Undecided
Mark A. Hershberger

Bug Description

When I try to save a page, I am getting the error:

"Wrong type argument: integer-or-marker-p, nil"

In the messages buffer, the error is "find-coding-systems-region: Wrong type argument: integer-or-marker-p, nil"

This could potentially be something I've done (rather than a bug) since I thought it had been working just fine. I've re-downloaded 2.2.1 and it still occurs.

Tags: needs-work
Revision history for this message
Alex Kozak (akozak-creativecommons) wrote :

Doesn't seem to be happening anymore. Can probably be closed. Sorry!

Revision history for this message
session13 (session13) wrote :

I had the same problem. It seems that it happends only when trying to create new pages. Solution is to make first letter of the title uppercase.

Revision history for this message
session13 (session13) wrote :

This problem occurs when M-x mediawiki-open-page-at-point at the link that have spaces around the ` | ', eg. [[Page about | page]]

Solution:
Remove spaces: [[Page about|page]]

Revision history for this message
Michael Hoffman (michaelhoffman) wrote :

I am getting this problem on our private Wiki even when the page name already exists and has no spaces.

No problem editing Wikipedia.

Revision history for this message
Michael Hoffman (michaelhoffman) wrote :

Using edebug, I've found that I do not have an edit token. I think I am not managing to log in correctly. This Wiki has a nonstandard authentication method that might have something to do with it.

pairs's value is
(("title" . "Sandbox")
 ("text" . "test\n\ntest 2")
 ("summary" . "x")
 ("token")
 ("basetimestamp" . "2010-10-19T22:46:05Z")
 ("starttimestamp" . "")
 ("format" . "xml")
 ("action" . "edit"))

Revision history for this message
Michael Hoffman (michaelhoffman) wrote :

I spent more time on this than I meant to, but I found that the reason I didn't have an edit token is because the site at x.example.com was trying to set a cookie on "example.com" instead of ".example.com" so I never authenticated properly. Then I found out that our Wiki doesn't support the edit action anyway.

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

thank you for the good bug reports. I'll at least try to improve the error reporting in the following cases:

* if you aren't setting a proper cookie/token
* if your your wiki doesn't support editing.
* If you try to create an illegal name.

Also trimming ending spaces -- it would help if mw.el did that automatically.

Changed in mediawiki-el:
assignee: nobody → Mark A. Hershberger (hexmode)
importance: Undecided → Medium
status: New → Confirmed
tags: added: needs-work
Changed in mediawiki-el:
assignee: Mark A. Hershberger (hexmode) → nobody
Changed in mediawiki-el:
milestone: none → 3.0.0
summary: - Attempting to save a page fails
+ Better error detection
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.