Page MenuHomePhabricator

PHP Fatal Error from line 51 of /srv/mediawiki/php-1.42.0-wmf.9/includes/parser/ParserOutput.php: Cannot declare class ParserOutput, because the name is already in use
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Fatal Error from line 51 of /srv/mediawiki/php-1.42.0-wmf.9/includes/parser/ParserOutput.php: Cannot declare class ParserOutput, because the name is already in use
exception.trace
from /srv/mediawiki/php-1.42.0-wmf.9/includes/parser/ParserOutput.php(51)
#0 [internal function]: MWExceptionHandler::handleFatalError()
#1 {main}
Impact

Reports of wikidata.org and en.wikisource.org being down.
High logged error rate.

Notes

Happened when I rolled 1.42.0-wmf.10 to group1. Rolling back did not fix the problem.

Event Timeline

Legoktm triaged this task as Unbreak Now! priority.Dec 20 2023, 7:27 PM
Legoktm added a project: Wikimedia-Incident.

Change 984636 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Be more aggressive in protecting against unserialization issues

https://gerrit.wikimedia.org/r/984636

Change 984637 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Protect against ParserOutput renamespacing.

https://gerrit.wikimedia.org/r/984637

There are also many "Cannot declare class SiteList, because the name is already in use in SiteList.php" errors, do we want to track that in this task as well? Caused by rMW74287cf721b9: Namespace Site and SiteList

That's a caching pollution issue, it should go away in itself :/

Change 984492 had a related patch set uploaded (by Ladsgroup; author: C. Scott Ananian):

[mediawiki/core@wmf/1.42.0-wmf.9] Protect against ParserOutput re-namespacing

https://gerrit.wikimedia.org/r/984492

That's a caching pollution issue, it should go away in itself :/

I was meaning about Site and SiteList.

That's a caching pollution issue, it should go away in itself :/

I was meaning about Site and SiteList.

Confirming that the SiteList errors have stopped.

Change 984493 had a related patch set uploaded (by Ladsgroup; author: C. Scott Ananian):

[mediawiki/core@wmf/1.42.0-wmf.10] Protect against ParserOutput re-namespacing

https://gerrit.wikimedia.org/r/984493

@taavi, what should I do to resolve the error? Or should I simply wait for a solution from you? Thanks.

Change 984492 merged by jenkins-bot:

[mediawiki/core@wmf/1.42.0-wmf.9] Protect against ParserOutput re-namespacing

https://gerrit.wikimedia.org/r/984492

Mentioned in SAL (#wikimedia-operations) [2023-12-20T20:40:39Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:984492|Protect against ParserOutput re-namespacing (T353835)]]

Mentioned in SAL (#wikimedia-operations) [2023-12-20T20:42:11Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:984492|Protect against ParserOutput re-namespacing (T353835)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2023-12-20T20:48:58Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:984492|Protect against ParserOutput re-namespacing (T353835)]] (duration: 08m 19s)

Change 984493 merged by jenkins-bot:

[mediawiki/core@wmf/1.42.0-wmf.10] Protect against ParserOutput re-namespacing

https://gerrit.wikimedia.org/r/984493

Mentioned in SAL (#wikimedia-operations) [2023-12-20T21:07:08Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:984493|Protect against ParserOutput re-namespacing (T353835)]]

Mentioned in SAL (#wikimedia-operations) [2023-12-20T21:08:41Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:984493|Protect against ParserOutput re-namespacing (T353835)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Change 984637 merged by jenkins-bot:

[mediawiki/core@master] Protect against ParserOutput re-namespacing

https://gerrit.wikimedia.org/r/984637

Mentioned in SAL (#wikimedia-operations) [2023-12-20T21:15:22Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:984493|Protect against ParserOutput re-namespacing (T353835)]] (duration: 08m 13s)

Ladsgroup assigned this task to cscott.

Change 984636 merged by jenkins-bot:

[mediawiki/core@master] Be more aggressive in protecting against unserialization issues

https://gerrit.wikimedia.org/r/984636

Change #1162975 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@REL1_39] Protect against ParserOutput re-namespacing

https://gerrit.wikimedia.org/r/1162975

Change #1162975 merged by jenkins-bot:

[mediawiki/core@REL1_39] Protect against ParserOutput/CacheTime re-namespacing

https://gerrit.wikimedia.org/r/1162975