Closed
Bug 853625
Opened 11 years ago
Closed 11 years ago
WikiMO: Error: Call to a member function getPrefixedText() on a non-object on Special:ProtectedPages
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task)
Infrastructure & Operations Graveyard
WebOps: Other
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: stephend, Assigned: jd)
References
()
Details
Attachments
(3 files)
589.89 KB,
image/png
|
Details | |
541 bytes,
patch
|
Details | Diff | Splinter Review | |
18.04 KB,
text/plain
|
Details |
https://wiki.mozilla.org/Special:ProtectedPages throws a 500: Error: Call to a member function getPrefixedText() on a non-object Sample stack trace …at /data/www/wiki.mozilla.org/wiki/includes/specials/SpecialProtectedpages.php (135) …at /data/www/wiki.mozilla.org/wiki/includes/specials/SpecialProtectedpages.php (320) …sPager::formatRow called at /data/www/wiki.mozilla.org/wiki/includes/Pager.php (353) …at /data/www/wiki.mozilla.org/wiki/includes/specials/SpecialProtectedpages.php (63) …cute called at /data/www/wiki.mozilla.org/wiki/includes/SpecialPageFactory.php (476) …ctory::executePath called at /data/www/wiki.mozilla.org/wiki/includes/Wiki.php (263) …ki::performRequest called at /data/www/wiki.mozilla.org/wiki/includes/Wiki.php (593) in MediaWiki::main called at /data/www/wiki.mozilla.org/wiki/includes/Wiki.php (503) in MediaWiki::run called at /data/www/wiki.mozilla.org/wiki/index.php (58)
Assignee | ||
Comment 1•11 years ago
|
||
that page loads for me, do you have any further details? like what skin you are using or if you are logged in or not etc...
Reporter | ||
Comment 2•11 years ago
|
||
Reporter | ||
Comment 3•11 years ago
|
||
(In reply to Jason Crowe [:jd] from comment #1) > that page loads for me, do you have any further details? like what skin you > are using or if you are logged in or not etc... Logged in, GMO theme set.
Assignee | ||
Comment 4•11 years ago
|
||
While I cannot reproduce this on prod I am able to reproduce it consistently on dev I have some additional error logging enabled there but it sheds no light on the subject. Hopefully hexmode has some ideas. If not then we will probably need to file a bug upstream to work towards a resolution.
Comment 5•11 years ago
|
||
I see the white page no matter what the skin I use. Looking at the source.
Comment 6•11 years ago
|
||
Could someone apply this patch, reproduce the error, and then tell me what the error log shows?
Comment 7•11 years ago
|
||
Also, it would be helpful to know if update.php was run after upgrading the wiki. If it was, that would mean the db schema has been updated.
Assignee | ||
Comment 8•11 years ago
|
||
Hex, I manually applied the patch to dev and hit the page, debug output attached.
Comment 9•11 years ago
|
||
So, for some reason there is a row in the list of protected pages in the MozillaWiki namespace without a title that is protected. Since we can see the length of the page (1130), we can see the list before and after that page with the following links: https://wiki.mozilla.org/Special:ProtectedPages?namespace=4&sizetype=max&size=1129 https://wiki.mozilla.org/Special:ProtectedPages?namespace=4&sizetype=min&size=1131 I'm not sure how this page would have gotten in there but maybe if we find the page, we can get a better idea of what happened. Running the following query should produce the page: select page_id, page_title from page, page_restrictions where page_id=pr_page and page_namespace=4 and page_len=1130
Comment 10•11 years ago
|
||
Patch to fix this: https://gerrit.wikimedia.org/r/#/c/55491/
Comment 11•11 years ago
|
||
Maybe someone can run the cleanupTitles.php maintenance script on that wiki to fix the broken rows?
Comment 12•11 years ago
|
||
Better fix: https://gerrit.wikimedia.org/r/#/c/56125/ If I knew were to apply that patch, I would.
Assignee | ||
Comment 13•11 years ago
|
||
I ran the cleanupTitles.php maintenance script and the issue has gone away. Hex, do I need to apply this patch or is it safe to wait till the next point release to just get it at that time?
Assignee: server-ops-webops → jcrowe
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(mah)
Assignee | ||
Comment 15•11 years ago
|
||
Thank you, I will close this out then. Cheers
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 16•11 years ago
|
||
Looks good to me, thanks -- verified FIXED.
Status: RESOLVED → VERIFIED
Updated•11 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Updated•5 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•