https://bugzilla.wikimedia.org/show_bug.cgi?id=31674
Web browser: --- Bug #: 31674 Summary: can't edit watchlist if it contains a page in the "Special" space Product: MediaWiki Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: Unprioritized Component: Watchlist AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: fur.hew...@gmail.com Classification: Unclassified (at least one) older versions allowed entering pages in the "Special:" space (-1) into the watchlist. with version 1.18, trying to edit the watchlist looks for the corresponding talk page of all the pages in current list, and since "Special:" pages do not have talk pages associated with them, this creates the following exception when trying to use "View and edit watchlis": the problem can be reproduced by using the API to insert a page in the "Special:" space into the watchlist, e.g. by running the following javascript code: <code> $.post(mw.util.wikiScript('api'), {action: 'watch', title: 'Special:Recentchanges', token: mw.user.tokens.get('watchToken')}) </code> (you'll need to run it again with "unwatch" to make your watchlist editable again). here is the exception: <pre> getTalk does not make any sense for given namespace -1 Backtrace: #0 /usr/local/apache/common-local/php-1.18/includes/Namespace.php(84): MWNamespace::isMethodValidFor(-1, 'MWNamespace::ge...') #1 /usr/local/apache/common-local/php-1.18/includes/Title.php(2850): MWNamespace::getTalk(-1) #2 /usr/local/apache/common-local/php-1.18/includes/specials/SpecialEditWatchlist.php(182): Title->getTalkPage() #3 /usr/local/apache/common-local/php-1.18/includes/specials/SpecialEditWatchlist.php(149): SpecialEditWatchlist->showTitles(Array, '?????????? ????...') #4 [internal function]: SpecialEditWatchlist->submitRaw(Array) #5 /usr/local/apache/common-local/php-1.18/includes/HTMLForm.php(279): call_user_func(Array, Array) #6 /usr/local/apache/common-local/php-1.18/includes/HTMLForm.php(228): HTMLForm->trySubmit() #7 /usr/local/apache/common-local/php-1.18/includes/HTMLForm.php(242): HTMLForm->tryAuthorizedSubmit() #8 /usr/local/apache/common-local/php-1.18/includes/specials/SpecialEditWatchlist.php(76): HTMLForm->show() #9 /usr/local/apache/common-local/php-1.18/includes/SpecialPageFactory.php(460): SpecialEditWatchlist->execute('raw') #10 /usr/local/apache/common-local/php-1.18/includes/Wiki.php(224): SpecialPageFactory::executePath(Object(Title), Object(RequestContext)) #11 /usr/local/apache/common-local/php-1.18/includes/Wiki.php(624): MediaWiki->performRequest() #12 /usr/local/apache/common-local/php-1.18/includes/Wiki.php(531): MediaWiki->main() #13 /usr/local/apache/common-local/php-1.18/index.php(57): MediaWiki->run() #14 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...') #15 {main} </pre> -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l