MediaWiki | 1.39.4 |
PHP | 8.0.28 (cgi-fcgi) |
MySQL | 8.0.28-0ubuntu0.20.04.3 |
CommentStreams | 8.0.0 |
Hi Cindy, when doing php dumpBackup.php --full with CommentStreams enabled, the dump always fails. Disabling Comment Streams allows the dump to complete as expected, so it's not of great importance, just thought the error info might be helpful:
2023-10-24 18:36:28 myserver mysite_mediawiki_: [8465d2ea2e37db59748b1696] [no req] TypeError: XmlDumpWriter::canonicalTitle(): Argument #1 ($title) must be of type Title, null given, called in /home/my_folder/mysite.com/public/w/extensions/CommentStreams/includes/MainHooks.php on line 417 #0 /home/my_folder/mysite.com/public/w/extensions/CommentStreams/includes/MainHooks.php(417): XmlDumpWriter::canonicalTitle(NULL) #1 /home/my_folder/mysite.com/public/w/includes/HookContainer/HookContainer.php(160): MediaWiki\Extension\CommentStreams\MainHooks->onXmlDumpWriterOpenPage(XmlDumpWriter, string, stdClass, Title) #2 /home/my_folder/mysite.com/public/w/includes/HookContainer/HookRunner.php(4518): MediaWiki\HookContainer\HookContainer->run(string, array) #3 /home/my_folder/mysite.com/public/w/includes/export/XmlDumpWriter.php(267): MediaWiki\HookContainer\HookRunner->onXmlDumpWriterOpenPage(XmlDumpWriter, string, stdClass, Title) #4 /home/my_folder/mysite.com/public/w/includes/export/WikiExporter.php(551): XmlDumpWriter->openPage(stdClass) #5 /home/my_folder/mysite.com/public/w/includes/export/WikiExporter.php(493): WikiExporter->outputPageStreamBatch(Wikimedia\Rdbms\MysqliResultWrapper, stdClass) #6 /home/my_folder/mysite.com/public/w/includes/export/WikiExporter.php(315): WikiExporter->dumpPages(string, boolean) #7 /home/my_folder/mysite.com/public/w/includes/export/WikiExporter.php(175): WikiExporter->dumpFrom(string) #8 /home/my_folder/mysite.com/public/w/maintenance/includes/BackupDumper.php(363): WikiExporter->allPages() #9 /home/my_folder/mysite.com/public/w/maintenance/dumpBackup.php(82): BackupDumper->dump(integer, integer) #10 /home/my_folder/mysite.com/public/w/maintenance/includes/MaintenanceRunner.php(309): DumpBackup->execute() #11 /home/my_folder/mysite.com/public/w/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run() #12 /home/my_folder/mysite.com/public/w/maintenance/dumpBackup.php(144): require_once(string) #13 {main}