Page MenuHomePhabricator

Class 'LoggerFactory' not found
Open, Needs TriagePublicBUG REPORT

Description

When running the SMW script extensions/SemanticMediaWiki/maintenance/rebuildData.php -v
ExternalData produces an error from time to time.

Error from line 32 of /../extensions/ExternalData/includes/ED_HttpWithHeaders.php: Class 'LoggerFactory' not found
Backtrace:
#0 ../extensions/ExternalData/includes/ED_HttpWithHeaders.php(74): HttpWithHeaders::request(string, string, array, string)
#1 ../extensions/ExternalData/includes/ED_Utils.php(894): HttpWithHeaders::get(string, array)
#2 ../extensions/ExternalData/includes/ED_Utils.php(1001): EDUtils::fetchURL(string, string, integer)
#3 ../extensions/ExternalData/includes/ED_ParserFunctions.php(133): EDUtils::getDataFromURL(string, string, array, string, integer, integer)
#4 ../includes/parser/Parser.php(3426): EDParserFunctions::doGetWebData(Parser, string, string, string)
#5 ../includes/parser/Parser.php(3127): Parser->callParserFunction(PPFrame_DOM, string, array)
#6 ../includes/parser/Preprocessor_DOM.php(1277): Parser->braceSubstitution(array, PPFrame_DOM)
#7 ../includes/parser/Parser.php(2942): PPFrame_DOM->expand(DOMElement, integer)
#8 ../includes/parser/Parser.php(1293): Parser->replaceVariables(string)
#9 ../includes/parser/Parser.php(443): Parser->internalParse(string)
#10 ../includes/content/WikitextContent.php(323): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#11 ../includes/content/AbstractContent.php(516): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#12../extensions/SemanticMediaWiki/includes/ContentParser.php(183): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
#13 ../extensions/SemanticMediaWiki/includes/ContentParser.php(144): SMW\ContentParser->fetchFromContent()
#14 ../extensions/SemanticMediaWiki/src/MediaWiki/Jobs/UpdateJob.php(196): SMW\ContentParser->parse()
#15 ../extensions/SemanticMediaWiki/src/MediaWiki/Jobs/UpdateJob.php(136): SMW\MediaWiki\Jobs\UpdateJob->parse_content()
#16 ../extensions/SemanticMediaWiki/src/MediaWiki/Jobs/UpdateJob.php(93): SMW\MediaWiki\Jobs\UpdateJob->doUpdate()
#17 ../extensions/SemanticMediaWiki/src/SQLStore/EntityRebuildDispatcher.php(209): SMW\MediaWiki\Jobs\UpdateJob->run()
#18 ../extensions/SemanticMediaWiki/src/Maintenance/DataRebuilder.php(369): SMW\SQLStore\EntityRebuildDispatcher->rebuild(integer)
#19 ../extensions/SemanticMediaWiki/src/Maintenance/DataRebuilder.php(307): SMW\Maintenance\DataRebuilder->do_update(integer)
#20 ../extensions/SemanticMediaWiki/src/Maintenance/DataRebuilder.php(182): SMW\Maintenance\DataRebuilder->rebuild_all()
#21 ../extensions/SemanticMediaWiki/maintenance/rebuildData.php(167): SMW\Maintenance\DataRebuilder->rebuild()
#22 ../maintenance/doMaintenance.php(94): SMW\Maintenance\RebuildData->execute()
#23 ../extensions/SemanticMediaWiki/maintenance/rebuildData.php(225): require_once(string)
#24 {main}

I am using
MediaWiki 1.31.3
PHP 7.1.26 (fpm-fcgi)
MySQL 5.5.62-cll
ICU 4.2.1
SMW 3.0.2
External Data 1.9.1 (f54ddea)

Event Timeline

Krabina created this task.Wed, Sep 11, 4:11 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptWed, Sep 11, 4:11 PM

Looking at https://www.mediawiki.org/wiki/Manual:Structured_logging#Get_a_logger_from_the_LoggerFactory , I cannot find a line use MediaWiki\Logger\LoggerFactory; in the ExternalData code base.

MediaWiki 1.31.3
External Data 1.9.1 (f54ddea)

Note that you seem to use MediaWiki 1.31.3 together with the git master instead of the REL1_31 branch of External Data, which I would not recommend.