# php maintenance/addSite.php --filepath 'http://foo/$1' --pagepath 'http://foo/$1' foo bar [ba14e729454b189ccc6a61da] [no req] MWException from line 590 of /srv/femiwiki.com/includes/site/Site.php: $fullUrl needs to be a string Backtrace: #0 /srv/femiwiki.com/includes/site/MediaWikiSite.php(153): Site->setPath(string, integer) #1 /srv/femiwiki.com/maintenance/addSite.php(75): MediaWikiSite->setPagePath(integer) #2 /srv/femiwiki.com/maintenance/doMaintenance.php(96): AddSite->execute() #3 /srv/femiwiki.com/maintenance/addSite.php(92): require_once(string) #4 {main}
$this->getOption( 'language' ) is called from L49-L53, but the declaration of the options(L24-L30) does not seem to be ready to accept parameters.