Page MenuHomePhabricator

Fatal error when removing an article with an whitespace title from the watchlist
Closed, ResolvedPublic

Description

Author: med.wiki

Description:
In my watchlist there is an article with an empty title (probably not empty as it is
between Zététique and École nationale des ponts et chaussées, but not displayable at
least). When i try to remove it
using http://fr.wikipedia.org/w/index.php?title=Special:Watchlist&magic=yes i get:
"Fatal error: Call to a member function on a non-object
in /usr/local/apache/common-local/php-1.4/includes/SpecialWatchlist.php on line 45".

Thanks.

Med


Version: unspecified
Severity: normal

Details

Reference
bz2173

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:29 PM
bzimport set Reference to bz2173.
bzimport added a subscriber: Unknown Object (MLST).

med.wiki wrote:

screenshot of the watchlist with the empty title that produces a fata error

Attached:

empty_article.png (289×362 px, 8 KB)

It's supposed to gracefully avoid dying when given invalid titles, but the check was outdated /
bogus and itself caused an error. That's fixed. (Invalid junk may still be in the database
though.)

gangleri wrote:

please see
http://fr.wikipedia.org/wiki/Special:Allpages/Z%C3%A9t%C3%A9tique
Tous les articles: [[fr:Œil_(typographie)]] [[fr: ]] [[fr:£]]

the second title is whitespace http://fr.wikipedia.org/wiki/%C2%A0 redirecting
to [[Espace_typographique]]

Regards Reinhardt [[user:gangleri]]

gangleri wrote:

actual behaviour / testcase

a) add to your watchlist
http://fr.wikipedia.org/w/index.php?title=%C2%A0&redirect=no
b) remove from your watchlist

Liste de suivi
Un article de Wikipédia, l'encyclopédie libre.
(pour l'utilisateur « NN »)

Les articles sélectionnés sont retirés de votre liste de suivi...

()done.

note: () is empty because of whitespace title