fatal error: Argument 1 passed to MessageHandle::__construct() must be an instance of Title, null given in /srv/mediawiki/php-1.28.0-wmf.14/extensions/Translate/utils/MessageHandle.php on line 37
Description
Details
Revisions and Commits
Related Objects
- Mentioned In
- T144780: Translation Notification Bot sending the same message multiple times to every translator
T221119: "This namespace is reserved for content page translations" when trying to translate a recently created translation unit
T144265: AbuseFilterFilterAction hook sometimes passes null instead of Title object
T143894: Feedback for European SWAT window - Mentioned Here
- T144780: Translation Notification Bot sending the same message multiple times to every translator
T221119: "This namespace is reserved for content page translations" when trying to translate a recently created translation unit
rOMWC290e20791654: Add channels for the Translate and TranslationsNotification extension
T144265: AbuseFilterFilterAction hook sometimes passes null instead of Title object
Event Timeline
This is super frustrating. The error message does not specify anything about the caller and there is no backtrace in logstash. In other words the only thing I can do is to remove the typehint, patch in a manual check and throw an exception with a backtrace.
Only clue is that it became more common on the 10th, so should check new changes that went into last weeks branch.
git diff origin/wmf/1.28.0-wmf.3..origin/wmf/1.28.0-wmf.4 reveals no likely suspects. Timing might just be a coincidence.
That's the wrong version numbers. It's wmf.13 and wmf.14. https://gerrit.wikimedia.org/r/#/c/303372/4/TranslateHooks.php got introduced in wmf.14 so I guess it's related to that although the doc says it will be a Title object.
Change 304972 had a related patch set uploaded (by Nikerabbit):
MessageHandle: add debugging for bug T143073
Change 304973 had a related patch set uploaded (by Glaisher):
Check for null $title in TranslateHooks::onAbuseFilterFilterAction
@Glaisher ah that makes sense, but we still have no idea who calls AbuseFilter filterAction with null title, so the debugging should be useful.
Change 304972 abandoned by Nikerabbit:
MessageHandle: add debugging for bug T143073
Reason:
See https://gerrit.wikimedia.org/r/304973
Change 304973 merged by jenkins-bot:
Guard against null $title in TranslateHooks::onAbuseFilterFilterAction
Change 305801 had a related patch set uploaded (by Glaisher):
Enable T143073 debug log channel
Mentioned in SAL [2016-08-23T13:16:18Z] <hashar@tin> Synchronized wmf-config/InitialiseSettings.php: Enable T143073 debug log channel (duration: 02m 19s)
Debug log says:
Got non-Title in AbuseFilterHooks::onUploadStashFile/AbuseFilterHooks::filterUpload/AbuseFilter::filterAction/Hooks::run/TranslateHooks::onAbuseFilterFilterAction
Can file a new task for fixing that.
Change 362094 had a related patch set uploaded (by Chad; owner: Chad):
[operations/mediawiki-config@master] Revert "Enable T143073 debug log channel"
Change 362094 abandoned by Chad:
Revert "Enable T143073 debug log channel"
Reason:
This one still seems to log from time to time
Change 537363 had a related patch set uploaded (by Abijeet Patro; owner: Abijeet Patro):
[operations/mediawiki-config@master] Add channels for the Translate and TranslationsNotification extension
Change 537363 merged by jenkins-bot:
[operations/mediawiki-config@master] Add channels for the Translate and TranslationsNotification extension
Mentioned in SAL (#wikimedia-operations) [2019-09-17T11:31:17Z] <urbanecm@deploy1001> Synchronized wmf-config/VariantSettings.php: SWAT: 290e207: Add channels for the Translate and TranslationsNotification extension (T221119, T144780, T143073) (duration: 00m 56s)