Page MenuHomePhabricator

SyntaxHighlight not working with 1.27.1: wincache_ucache_cas() expects parameter 2 to be integer, string given
Closed, DuplicatePublic

Description

SyntaxHighlight is not working on this enviroment:

MediaWiki 1.27.1
SyntaxHighlight embbeded version
Windows Server 2008 R2
Python 3.5.2
IIS 7.5 Express
PHP 7.0.9

In the log, this errors occurs:
[error] [dbdb9a3fe8dd23d34d542c90] /index.php?title=Special%3ARunJobs&tasks=jobs&maxjobs=1&sigexpiry=1473871713&signature=82e89086515fd4717f97486b76a972590e8d4e2a ErrorException from line 58 of C:\inetpub\AglWiki\includes\libs\objectcache\WinCacheBagOStuff.php: PHP Warning: wincache_ucache_cas() expects parameter 2 to be integer, string given
#0 C:\inetpub\AglWiki\includes\specials\SpecialRunJobs.php(100): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 [internal function]: SpecialRunJobs->{closure}(integer, string, string, integer, array)
#2 C:\inetpub\AglWiki\includes\libs\objectcache\WinCacheBagOStuff.php(58): wincache_ucache_cas(string, string, string)
#3 C:\inetpub\AglWiki\includes\libs\objectcache\BagOStuff.php(305): WinCacheBagOStuff->cas(string, string, array, integer)
#4 C:\inetpub\AglWiki\includes\libs\objectcache\WinCacheBagOStuff.php(72): BagOStuff->mergeViaCas(string, Closure, integer, integer)
#5 C:\inetpub\AglWiki\includes\libs\objectcache\WANObjectCache.php(424): WinCacheBagOStuff->merge(string, Closure, integer, integer)
#6 C:\inetpub\AglWiki\includes\cache\MessageCache.php(691): WANObjectCache->set(string, array, integer)
#7 C:\inetpub\AglWiki\includes\cache\MessageCache.php(637): MessageCache->setValidationHash(string, array)
#8 C:\inetpub\AglWiki\includes\cache\MessageCache.php(406): MessageCache->saveToCaches(array, string, string)
#9 C:\inetpub\AglWiki\includes\cache\MessageCache.php(326): MessageCache->loadFromDBWithLock(string, array, NULL)
#10 C:\inetpub\AglWiki\includes\cache\MessageCache.php(925): MessageCache->load(string)
#11 C:\inetpub\AglWiki\includes\cache\MessageCache.php(857): MessageCache->getMsgFromNamespace(string, string)
#12 C:\inetpub\AglWiki\includes\cache\MessageCache.php(827): MessageCache->getMessageForLang(Language, string, boolean, array)
#13 C:\inetpub\AglWiki\includes\cache\MessageCache.php(767): MessageCache->getMessageFromFallbackChain(Language, string, boolean)
#14 C:\inetpub\AglWiki\includes\Message.php(1178): MessageCache->get(string, boolean, Language)
#15 C:\inetpub\AglWiki\includes\Message.php(801): Message->fetchMessage()
#16 C:\inetpub\AglWiki\includes\Message.php(892): Message->toString()
#17 C:\inetpub\AglWiki\includes\parser\ParserOutput.php(696): Message->text()
#18 C:\inetpub\AglWiki\includes\parser\Parser.php(4402): ParserOutput->addTrackingCategory(string, Title)
#19 C:\inetpub\AglWiki\extensions\SyntaxHighlight_GeSHi\SyntaxHighlight_GeSHi.class.php(129): Parser->addTrackingCategory(string)
#20 C:\inetpub\AglWiki\includes\parser\Parser.php(4262): SyntaxHighlight_GeSHi::parserHook(string, array, Parser, PPFrame_DOM)
#21 C:\inetpub\AglWiki\includes\parser\Preprocessor_DOM.php(1260): Parser->extensionSubstitution(array, PPFrame_DOM)
#22 C:\inetpub\AglWiki\includes\parser\Parser.php(3366): PPFrame_DOM->expand(DOMElement, integer)
#23 C:\inetpub\AglWiki\includes\parser\Parser.php(1248): Parser->replaceVariables(string)
#24 C:\inetpub\AglWiki\includes\parser\Parser.php(446): Parser->internalParse(string)
#25 C:\inetpub\AglWiki\includes\StubObject.php(105): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#26 C:\inetpub\AglWiki\includes\StubObject.php(129): StubObject->_call(string, array)
#27 C:\inetpub\AglWiki\includes\content\WikitextContent.php(331): StubObject->__call(string, array)
#28 C:\inetpub\AglWiki\includes\content\AbstractContent.php(497): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#29 C:\inetpub\AglWiki\includes\jobqueue\jobs\RefreshLinksJob.php(213): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
#30 C:\inetpub\AglWiki\includes\jobqueue\jobs\RefreshLinksJob.php(119): RefreshLinksJob->runForTitle(Title)
#31 C:\inetpub\AglWiki\includes\jobqueue\JobRunner.php(265): RefreshLinksJob->run()
#32 C:\inetpub\AglWiki\includes\jobqueue\JobRunner.php(179): JobRunner->executeJob(RefreshLinksJob, BufferingStatsdDataFactory, integer)
#33 C:\inetpub\AglWiki\includes\specials\SpecialRunJobs.php(111): JobRunner->run(array)
#34 C:\inetpub\AglWiki\includes\specialpage\SpecialPage.php(479): SpecialRunJobs->execute(NULL)
#35 C:\inetpub\AglWiki\includes\specialpage\SpecialPageFactory.php(576): SpecialPage->run(NULL)
#36 C:\inetpub\AglWiki\includes\MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#37 C:\inetpub\AglWiki\includes\MediaWiki.php(745): MediaWiki->performRequest()
#38 C:\inetpub\AglWiki\includes\MediaWiki.php(519): MediaWiki->main()
#39 C:\inetpub\AglWiki\index.php(43): MediaWiki->run()
#40 {main}

Details

Related Gerrit Patches:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 14 2016, 5:16 PM
Aklapper renamed this task from SyntaxHighlight apparently dont works with MediaWiki 1.27.1 to SyntaxHighlight not working with 1.27.1: wincache_ucache_cas() expects parameter 2 to be integer, string given.Sep 15 2016, 11:33 AM

Change 310809 had a related patch set uploaded (by Aaron Schulz):
Fix broken wincache merge() implementation

https://gerrit.wikimedia.org/r/310809

Change 310809 merged by jenkins-bot:
Fix broken wincache merge() implementation

https://gerrit.wikimedia.org/r/310809

Change 348162 had a related patch set uploaded (by Aaron Schulz):
[mediawiki/core@REL1_27] Fix broken wincache merge() implementation

https://gerrit.wikimedia.org/r/348162

Change 348162 merged by jenkins-bot:
[mediawiki/core@REL1_27] Fix broken wincache merge() implementation

https://gerrit.wikimedia.org/r/348162