Last modified: 2014-09-04 20:54:17 UTC
When performing update on Mediawiki with maintenance/update.php this error occurs: PHP Catchable fatal error: Argument 3 passed to MWOAuthSetup::defineSourcePaths() must be of the type array, null given, called in /var/www/testwiki/extensions/OAuth/OAuth.php on line 41 and defined in /var/www/testwiki/extensions/OAuth/OAuth.setup.php on line 17 Error occured when performing installation steps from this instruction: http://www.mediawiki.org/wiki/Extension:OAuth When I am at point "Run the update script which will automatically create the necessary database tables that this extension needs." this error occurs.
(In reply to Inixi Noisse from comment #0) > When performing update on Mediawiki with maintenance/update.php this error > occurs: > > PHP Catchable fatal error: Argument 3 passed to > MWOAuthSetup::defineSourcePaths() must be of the type array, null given, > called in /var/www/testwiki/extensions/OAuth/OAuth.php on line 41 and > defined in /var/www/testwiki/extensions/OAuth/OAuth.setup.php on line 17 > > Error occured when performing installation steps from this instruction: > http://www.mediawiki.org/wiki/Extension:OAuth > When I am at point "Run the update script which will automatically create > the necessary database tables that this extension needs." this error occurs. One more thing - I am using Mediawiki version 1.22.7 and I also downloaded Oauth extension version OAuth-REL1_22-e656044
I'm able to reproduce it. The problem is wgRedactedFunctionArguments, which was removed at some point. I'll put a patch in for REL1_22 to fix that.
Change 158398 had a related patch set uploaded by CSteipp: Remove wgRedactedFunctionArguments handling https://gerrit.wikimedia.org/r/158398
Change 158398 abandoned by CSteipp: Remove wgRedactedFunctionArguments handling Reason: not master https://gerrit.wikimedia.org/r/158398
Change 158402 had a related patch set uploaded by CSteipp: Remove wgRedactedFunctionArguments handling https://gerrit.wikimedia.org/r/158402
Change 158402 merged by jenkins-bot: Remove wgRedactedFunctionArguments handling https://gerrit.wikimedia.org/r/158402
Inixi, if you pull the most recent version of the 1_22 branch of the OAuth extension, things should work now. Feel free to reopen this if you're still seeing the issue.