Page MenuHomePhabricator

InvalidArgumentException when accessing Special:MultiPageEdit
Open, Needs TriagePublic

Description

When trying to access Special:MultiPageEdit instead of the normal content there is a fatal exception (see below).

[ae3c61182ec2f2fe98a90b7e] /wiki/Special:MultiPageEdit   InvalidArgumentException from line 2493 of /srv/mediawiki/w/includes/libs/rdbms/database/Database.php: Wikimedia\Rdbms\Database::makeList: empty input for field page_title
#0 /srv/mediawiki/w/includes/libs/rdbms/database/Database.php(1966): Wikimedia\Rdbms\Database->makeList(array, integer)
#1 /srv/mediawiki/w/includes/libs/rdbms/database/Database.php(1905): Wikimedia\Rdbms\Database->selectSQLText(array, array, array, string, array, array)
#2 /srv/mediawiki/w/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#3 /srv/mediawiki/w/includes/libs/rdbms/database/DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#4 /srv/mediawiki/w/includes/specialpage/QueryPage.php(475): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array)
#5 /srv/mediawiki/w/includes/specialpage/QueryPage.php(655): QueryPage->reallyDoQuery(integer, integer)
#6 /srv/mediawiki/w/extensions/PageForms/specials/PF_MultiPageEdit.php(47): QueryPage->execute(NULL)
#7 /srv/mediawiki/w/includes/specialpage/SpecialPage.php(600): PFMultiPageEdit->execute(NULL)
#8 /srv/mediawiki/w/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
#9 /srv/mediawiki/w/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#10 /srv/mediawiki/w/includes/MediaWiki.php(940): MediaWiki->performRequest()
#11 /srv/mediawiki/w/includes/MediaWiki.php(543): MediaWiki->main()
#12 /srv/mediawiki/w/index.php(53): MediaWiki->run()
#13 /srv/mediawiki/w/index.php(46): wfIndexMain()
#14 {main}

Version: 1.35.2
PHP: 7.3.27-1~deb10u1 (fpm-fcgi)
MariaDB: 10.4.15-MariaDB-1:10.4.15+maria~buster-log

Event Timeline

Does this happen for the main Special:MultiPageEdit page, or when the form and template are specified in the URL? Also, what version of Page Forms are you running?

Does this happen for the main Special:MultiPageEdit page, or when the form and template are specified in the URL? Also, what version of Page Forms are you running?

It happens when trying to access the main special page. Version is https://github.com/wikimedia/mediawiki-extensions-PageForms/tree/ba1db1a072e7fb6f64d8f4c72a6448eca3b2cf7c

I don't know, that's strange. I haven't heard of this problem happening before, and I can't replicate it myself.

I get the the same with:
Page Forms 5.2.1 (6c11e00) 15:58, 15 October 2021
MediaWiki 1.36.2 (f6de15c) 11:40, 13 October 2021
Semantic MediaWiki 3.2.3 (5619c2d) 00:40, 30 March 2021
PHP 7.4.3 (apache2handler)
MySQL 8.0.26-0ubuntu0.20.04.3
Running MediaWiki on Windows 10 with the Windows Subsystem for Linux (WSL)

Later I added another page to my test website using the same form and the problem disappeared. A warning instead of exception should be more appropriate.

Does this only happen for templates that aren't yet called by any pages? That part wasn't clear.