Page MenuHomePhabricator

TypeError: strlen(): Argument #1 ($string) must be of type string, array given
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.45.0-wmf.15
  • timestamp: 2025-08-25T20:34:11.401Z
  • phpversion: 8.1.33
  • reqId: 3b6d1b2c-78e5-45b7-aae6-02d831c1a5cc
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   TypeError: strlen(): Argument #1 ($string) must be of type string, array given
FrameLocationCall
from/srv/mediawiki/php-1.45.0-wmf.15/extensions/Flow/includes/Block/TopicListBlock.php(374)
#0/srv/mediawiki/php-1.45.0-wmf.15/extensions/Flow/includes/Block/TopicListBlock.php(374)strlen(array)
#1/srv/mediawiki/php-1.45.0-wmf.15/extensions/Flow/includes/Block/TopicListBlock.php(263)Flow\Block\TopicListBlock->getFindOptions(array)
#2/srv/mediawiki/php-1.45.0-wmf.15/extensions/Flow/includes/View.php(233)Flow\Block\TopicListBlock->renderApi(array)
#3/srv/mediawiki/php-1.45.0-wmf.15/extensions/Flow/includes/View.php(72)Flow\View->buildApiResponse(Flow\WorkflowLoader, array, string, array)
#4/srv/mediawiki/php-1.45.0-wmf.15/extensions/Flow/includes/Actions/FlowAction.php(100)Flow\View->show(Flow\WorkflowLoader, string)
#5/srv/mediawiki/php-1.45.0-wmf.15/extensions/Flow/includes/Actions/ViewAction.php(27)Flow\Actions\FlowAction->showForAction(string, MediaWiki\Output\OutputPage)
#6/srv/mediawiki/php-1.45.0-wmf.15/extensions/Flow/includes/Actions/FlowAction.php(48)Flow\Actions\ViewAction->showForAction(string)
#7/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/ActionEntryPoint.php(728)Flow\Actions\FlowAction->show()
#8/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/ActionEntryPoint.php(505)MediaWiki\Actions\ActionEntryPoint->performAction(MediaWiki\Page\Article, MediaWiki\Title\Title)
#9/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/ActionEntryPoint.php(143)MediaWiki\Actions\ActionEntryPoint->performRequest()
#10/srv/mediawiki/php-1.45.0-wmf.15/includes/MediaWikiEntryPoint.php(198)MediaWiki\Actions\ActionEntryPoint->execute()
#11/srv/mediawiki/php-1.45.0-wmf.15/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#12/srv/mediawiki/w/index.php(3)require(string)
#13{main}
Impact
Notes

Details

Request URL
https://or.wikipedia.org/w/index.php?title=*&topiclist_limit=*&topiclist_offset=*&topiclist_offset-dir=*&topiclist_sortby%5B%24eq%5D=*

Event Timeline

This looks like a GIGO. Bad user input shouldn't cause production errors, but that sort of thing is not worth fixing given Flow's current sorry state.