Page MenuHomePhabricator

Fatal MWException on pages with images/templates when using InstantCommons
Closed, DeclinedPublic

Description

MediaWiki: 1.22.7 PHP: 5.3.28
Error msg (below) dissapears after commenting out $wgUseInstantCommons!
After adding $wgShowExceptionDetails I get at the page that had the fatal error is:

[fe283430] /wiki/index.php/U%C5%BEivatel:Zef/p%C3%ADskovi%C5%A1t%C4%9B Exception from line 778 of /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/HttpFunctions.php: Error setting curl options.

Backtrace:

#0 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/filerepo/ForeignAPIRepo.php(479): CurlHttpRequest->execute()
#1 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/filerepo/ForeignAPIRepo.php(508): ForeignAPIRepo::httpGet(string)
#2 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/filerepo/ForeignAPIRepo.php(183): ForeignAPIRepo->httpGetCached(string, array)
#3 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/filerepo/file/ForeignAPIFile.php(61): ForeignAPIRepo->fetchImageQuery(array)
#4 [internal function]: ForeignAPIFile::newFromTitle(Title, ForeignAPIRepo)
#5 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/filerepo/FileRepo.php(333): call_user_func(array, Title, ForeignAPIRepo)
#6 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/filerepo/ForeignAPIRepo.php(103): FileRepo->newFile(Title, boolean)
#7 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/filerepo/FileRepo.php(362): ForeignAPIRepo->newFile(Title)
#8 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/filerepo/RepoGroup.php(151): FileRepo->findFile(Title, array)
#9 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/GlobalFunctions.php(3534): RepoGroup->findFile(Title, array)
#10 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/parser/Parser.php(3868): wfFindFile(Title, array)
#11 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/parser/Parser.php(3833): Parser->fetchFileNoRegister(Title, array)
#12 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/parser/Parser.php(5324): Parser->fetchFileAndTitle(Title, array)
#13 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/parser/Parser.php(2087): Parser->makeImage(Title, string, LinkHolderArray)
#14 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/parser/Parser.php(1825): Parser->replaceInternalLinks2(string)
#15 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/parser/Parser.php(1230): Parser->replaceInternalLinks(string)
#16 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/parser/Parser.php(395): Parser->internalParse(string)
#17 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/content/WikitextContent.php(300): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#18 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/WikiPage.php(3552): WikitextContent->getParserOutput(Title, integer, ParserOptions)
#19 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/PoolCounter.php(222): PoolWorkArticleView->doWork()
#20 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/Article.php(708): PoolCounterWork->execute()
#21 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/actions/ViewAction.php(44): Article->view()
#22 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/Wiki.php(448): ViewAction->show()
#23 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/Wiki.php(312): MediaWiki->performAction(Article, Title)
#24 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/Wiki.php(602): MediaWiki->performRequest()
#25 /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/Wiki.php(467): MediaWiki->main()
#26 /data/www/www_trabagr_cz/trabagr_cz/wiki/index.php(49): MediaWiki->run()
#27 {main}

I tried to set $sslVerifyHost = 2 in Httpfunctions.php as adviced in https://bugzilla.wikimedia.org/show_bug.cgi?id=44135 and it did not help.


Version: 1.22.7
Severity: major
URL: https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Fatal_exception_of_type_MWException_%28details_of_exception_beneath%29
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=42441
https://bugzilla.wikimedia.org/show_bug.cgi?id=44135

Details

Reference
bz70262

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:42 AM
bzimport set Reference to bz70262.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for taking the time to report this! Unlikely that this will influence it, but upgrading to 1.22.10 highly recommended.

[fe283430] /wiki/index.php/U%C5%BEivatel:Zef/p%C3%ADskovi%C5%A1t%C4%9B Exception from line 778 of /data/www/www_trabagr_cz/trabagr_cz/wiki/includes/HttpFunctions.php: Error setting curl options.

Specifically "Error setting curl options."

What OS? What version of PHP? Version of curl/php curl extension?

Unfortunately closing this report as no further information has been provided.

Wesalius: Please feel free to reopen this report if you can provide the information asked for in comment 2 and if this still happens. Thanks!