Page MenuHomePhabricator

EDConnectorSqlite.php: Too few arguments to function EDConnectorRelational::setConnection()
Closed, ResolvedPublicBUG REPORT

Description

Using latest MediaWiki ExternalData extension with an sqlite database leads to the following error:

ArgumentCountError from line 87 of .../extensions/ExternalData/includes/connectors/EDConnectorRelational.php: Too few arguments to function EDConnectorRelational::setConnection(), 0 passed in .../extensions/ExternalData/includes/connectors/EDConnectorSqlite.php on line 29 and exactly 1 expected

Reason is a missing argument on this line:

parent::setConnection();

Should be:

parent::setConnection( $params );

Event Timeline

Change 648345 had a related patch set uploaded (by Alex Mashin; owner: mashin):
[mediawiki/extensions/ExternalData@master] Correct bug in EDConnectorSqlite

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

Change 648345 merged by jenkins-bot:
[mediawiki/extensions/ExternalData@master] Correct bug in EDConnectorSqlite

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

Kizule added a subscriber: Kizule.

Patch merged, I'm closing task as resolved because I believe that now everything should work.

Aklapper renamed this task from Bug in EDConnectorSqlite.php to EDConnectorSqlite.php: Too few arguments to function EDConnectorRelational::setConnection().Dec 12 2020, 1:51 PM