Last modified: 2011-09-14 18:48:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31245, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29245 - Babel: strange page title on preview or after saving (behaving as if it were a category)
Babel: strange page title on preview or after saving (behaving as if it were ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Babel (Other open bugs)
unspecified
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Robert Leverington
:
Depends on:
Blocks: UNIQ
  Show dependency treegraph
 
Reported: 2011-06-02 13:56 UTC by Robin Pepermans (SPQRobin)
Modified: 2011-09-14 18:48 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot of "Portal:Rup" on Translatewiki: displaying a page title as if it were a category (78.90 KB, image/png)
2011-06-02 13:56 UTC, Robin Pepermans (SPQRobin)
Details
Screenshot before and after doing a null edit (183.14 KB, image/png)
2011-07-01 00:01 UTC, Robin Pepermans (SPQRobin)
Details

Description Robin Pepermans (SPQRobin) 2011-06-02 13:56:15 UTC
Created attachment 8612 [details]
Screenshot of "Portal:Rup" on Translatewiki: displaying a page title as if it were a category

When previewing an edit or after saving a page that uses the {{#babel}} parser function, the page thinks it is a category and displays the page title (and content depending on the page title) as if it were the category of the last language in {{#babel}}.
For example, a page with {{#babel:nl|en-3|fr-2}} would make the page behave like "Category:Fr-2" (depending on the configuration for categories).

When refreshing the page, it is normal again.

(I actually wonder why nobody reported this yet, or is it a new bug?)
Comment 1 Niklas Laxström 2011-06-02 14:05:54 UTC
Cannot reproduce on preview.
Comment 2 Robin Pepermans (SPQRobin) 2011-06-02 14:08:13 UTC
It's strange, sometimes it does this and sometimes not...
Comment 3 Mark A. Hershberger 2011-06-04 00:24:04 UTC
Let us know if you are able to reproduce this reliably
Comment 4 Robin Pepermans (SPQRobin) 2011-07-01 00:01:20 UTC
Created attachment 8727 [details]
Screenshot before and after doing a null edit

See screenshot. I went to http://www.omegawiki.org/Help:Babel and it displayed as above (as a category). Then I did a null edit (didn't change anything actually) and saved the page so it parsed the page again, and it displayed properly.

So apparently it's not only on page preview or page edit, but also when just visiting a page.

Does no-one else encounter this strange bug?
Comment 5 Robin Pepermans (SPQRobin) 2011-07-01 00:03:13 UTC
And there was also a strange text UNIQb002b8242bbcc42-pre-00000000-QINU instead of the <pre> stuff.
Comment 6 Bawolff (Brian Wolff) 2011-07-01 04:42:27 UTC
Seems to be caused [on my local test wiki] only during requests in which a category is auto-created (At least on my local install).

This type of error is usually caused by calling the parser recursively, sometimes via wfMsg calls.

Steps to reproduce
*Add {{#babel:eng}} to a page
*Delete  category:en
*purge the first page, issue appears. You can make issue re-appear by deleting the category.
Comment 7 Bawolff (Brian Wolff) 2011-07-01 04:57:32 UTC
Specifically, its caused by the Article::prepareTextForEdit (when it does $wgParser->parse) which is called by Article::doEdit which is called by the BabelAutoCreate::create.

There's not really much way to get around that. Perhaps the autocreate code could be run as a deferred update ($wgDeferredUpdateList) instead.
Comment 8 Bawolff (Brian Wolff) 2011-09-14 18:48:31 UTC
Fixed (albeit not in the prettiest way) in r97084

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links