Author: cnit
Description:
I develop an extension which uses API to export XML dump to remote wiki. In r75001 I get the following warning:
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP Warning: Missing argument 5 for WikiImporter::finishImportPage() in /var/www/wiki/phase3/includes/ImportXMLReader.php on line 182
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP Stack trace:
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 1. {main}() /var/www/wiki/phase3/api.php:0
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 2. ApiMain->execute() /var/www/wiki/phase3/api.php:116
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 3. ApiMain->executeActionWithErrorHandling() /var/www/wiki/phase3/includes/api/ApiMain.php:322
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 4. ApiMain->executeAction() /var/www/wiki/phase3/includes/api/ApiMain.php:338
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 5. ApiImport->execute() /var/www/wiki/phase3/includes/api/ApiMain.php:656
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 6. WikiImporter->doImport() /var/www/wiki/phase3/includes/api/ApiImport.php:88
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 7. WikiImporter->handlePage() /var/www/wiki/phase3/includes/ImportXMLReader.php:333
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 8. WikiImporter->pageOutCallback() /var/www/wiki/phase3/includes/ImportXMLReader.php:470
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 9. call_user_func_array() /var/www/wiki/phase3/includes/ImportXMLReader.php:225
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 10. ApiImportReporter->reportPage() /var/www/wiki/phase3/includes/ImportXMLReader.php:0
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 11. ImportReporter->reportPage() /var/www/wiki/phase3/includes/api/ApiImport.php:192
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 12. call_user_func_array() /var/www/wiki/phase3/includes/specials/SpecialImport.php:314
[Tue Oct 19 10:12:41 2010] [error] [client 10.1.1.119] PHP 13. WikiImporter->finishImportPage() /var/www/wiki/phase3/includes/specials/SpecialImport.php:0
I've incloded the xdebug stack trace, maybe it will help to easier spot the problem.
Also I get the following warning:
[Tue Oct 19 10:07:49 2010] [error] [client 10.1.1.119] PHP Warning: filemtime(): stat failed for /var/www/wiki/phase3/Array in /var/www/wiki/phase3/includes/ResourceLoaderModule.php on line 565, referer: http://phase3.wiki2.uniyar.ac.ru/index.php/%D0%9F%D1%80%D0%B0%D0%BA%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F_%D0%BF%D1%81%D0%B8%D1%85%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F
[Tue Oct 19 10:07:49 2010] [error] [client 10.1.1.119] PHP Stack trace:, referer: http://phase3.wiki2.uniyar.ac.ru/index.php/%D0%9F%D1%80%D0%B0%D0%BA%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F_%D0%BF%D1%81%D0%B8%D1%85%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F
[Tue Oct 19 10:07:49 2010] [error] [client 10.1.1.119] PHP 1. {main}() /var/www/wiki/phase3/load.php:0, referer: http://phase3.wiki2.uniyar.ac.ru/index.php/%D0%9F%D1%80%D0%B0%D0%BA%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F_%D0%BF%D1%81%D0%B8%D1%85%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F
[Tue Oct 19 10:07:49 2010] [error] [client 10.1.1.119] PHP 2. ResourceLoader->respond() /var/www/wiki/phase3/load.php:49, referer: http://phase3.wiki2.uniyar.ac.ru/index.php/%D0%9F%D1%80%D0%B0%D0%BA%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F_%D0%BF%D1%81%D0%B8%D1%85%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F
[Tue Oct 19 10:07:49 2010] [error] [client 10.1.1.119] PHP 3. ResourceLoaderFileModule->getModifiedTime() /var/www/wiki/phase3/includes/ResourceLoader.php:285, referer: http://phase3.wiki2.uniyar.ac.ru/index.php/%D0%9F%D1%80%D0%B0%D0%BA%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F_%D0%BF%D1%81%D0%B8%D1%85%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F
[Tue Oct 19 10:07:49 2010] [error] [client 10.1.1.119] PHP 4. array_map() /var/www/wiki/phase3/includes/ResourceLoaderModule.php:565, referer: http://phase3.wiki2.uniyar.ac.ru/index.php/%D0%9F%D1%80%D0%B0%D0%BA%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F_%D0%BF%D1%81%D0%B8%D1%85%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F
The first one is a hook, I guess that it's being called with not enough of arguments (probably).
Version: 1.17.x
Severity: minor