Last modified: 2014-11-01 02:54:29 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 T73546, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71546 - Argument 1 passed to Wikibase\ViewEntityAction::displayEntityContent() must be an instance of Wikibase\EntityContent
Argument 1 passed to Wikibase\ViewEntityAction::displayEntityContent() must b...
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-02 06:43 UTC by Aude
Modified: 2014-11-01 02:54 UTC (History)
3 users (show)

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


Attachments

Description Aude 2014-10-02 06:43:15 UTC
while we don't need to support viewing diff of a wikitext revision and item revision, we should show a friendly error message instead of this:

https://www.wikidata.org/w/index.php?title=User%3AAude&diff=150141788&oldid=8296571

PHP fatal error in /srv/mediawiki/php-1.25wmf1/extensions/Wikidata/extensions/Wikibase/repo/includes/actions/ViewEntityAction.php line 173:
Argument 1 passed to Wikibase\ViewEntityAction::displayEntityContent() must be an instance of Wikibase\EntityContent, instance of WikitextContent given, called in /srv/mediawiki/php-1.25wmf1/extensions/Wikidata/extensions/Wikibase/repo/includes/actions/ViewEntityAction.php on line 126 and defined 
                                                                                                       
#0 /srv/mediawiki/php-1.25wmf1/extensions/Wikidata/extensions/Wikibase/repo/includes/actions/ViewEntityAction.php(173): Wikibase\ViewEntityAction::displayEntityContent()
#1 /srv/mediawiki/php-1.25wmf1/extensions/Wikidata/extensions/Wikibase/repo/includes/actions/ViewEntityAction.php(126): Wikibase\ViewEntityAction->displayEntityContent(Object(WikitextContent))
#2 /srv/mediawiki/php-1.25wmf1/includes/MediaWiki.php(414): Wikibase\ViewEntityAction->show()          
#3 /srv/mediawiki/php-1.25wmf1/includes/MediaWiki.php(282): MediaWiki->performAction(Object(Article), Object(Title))
#4 /srv/mediawiki/php-1.25wmf1/includes/MediaWiki.php(584): MediaWiki->performRequest()                
#5 /srv/mediawiki/php-1.25wmf1/includes/MediaWiki.php(435): MediaWiki->main()                          
#6 /srv/mediawiki/php-1.25wmf1/index.php(46): MediaWiki->run()                                         
#7 /srv/mediawiki/w/index.php(3): require('/srv/mediawiki/...')
Comment 1 Gerrit Notification Bot 2014-11-01 02:54:26 UTC
Change 170506 had a related patch set uploaded by Hoo man:
Show an error if ViewEntityAction is used with non-Entity content

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

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


Navigation
Links