Page MenuHomePhabricator

BadMethodCallException when viewing an abuse log entry
Closed, DuplicatePublic

Event Timeline

Restricted Application added subscribers: Cosine02, Aklapper. · View Herald TranscriptAug 10 2018, 10:43 PM

@Bugreporter Thanks for reporting this issue. In the future, please include the exception identifier part of the error.

For example, when I opened, it, I saw:

[W24eCwpAIDEAAIesA2IAAADE] 2018-08-10 23:22:14: Fatal exception of type "BadMethodCallException"

I can use this to find the internal error details in the server logs ("Wikimedia Logstash").

For this ID, I found:

Call to a member function getId() on a non-object (null)
#0 /srv/mediawiki/php-1.32.0-wmf.16/includes/Storage/DerivedPageDataUpdater.php(520): Revision->getId()
#1 /srv/mediawiki/php-1.32.0-wmf.16/includes/Storage/DerivedPageDataUpdater.php(738): MediaWiki\Storage\DerivedPageDataUpdater->grabCurrentRevision()
#2 /srv/mediawiki/php-1.32.0-wmf.16/includes/page/WikiPage.php(1948): MediaWiki\Storage\DerivedPageDataUpdater->prepareContent(User, MediaWiki\Storage\RevisionSlotsUpdate, boolean)
#3 /srv/mediawiki/php-1.32.0-wmf.16/includes/page/Article.php(2476): WikiPage->prepareContentForEdit(WikitextContent, NULL, User, NULL, boolean)
#4 /srv/mediawiki/php-1.32.0-wmf.16/extensions/AbuseFilter/includes/AFComputedVariable.php(212): Article->prepareContentForEdit(WikitextContent)