Topic on Extension talk:Poll

Jump to navigation Jump to search

File caching broken with inclusion of this plugin

2
121.45.178.59 (talkcontribs)

I get this when I use this extension and run rebuildFileCache.php:

PHP Fatal error:  Uncaught exception 'DBTransactionError' with message 'Explicit transaction still active. A caller may have caught an error.' in /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php:1045

Commenting wfLoadExtension( 'AJAXPoll' ); fixes this problem.

Caching with the poll may be problematic. I'm not quite sure how to solve this. Has anyone else encountered the issue?

Here's a bit more of the trace:

[52be8de3c2e6aa8b9cced1fa] [no req]   DBReadOnlyError from line 837 of /var/www/html/includes/libs/rdbms/database/Database.php: Database is read-only: Building cache

Backtrace:

#0 /var/www/html/includes/libs/rdbms/database/Database.php(1542): Database->query(string, string)

#1 /var/www/html/extensions/AJAXPoll/AJAXPoll_body.php(115): Database->update(string, array, array, string)

#2 [internal function]: AJAXPoll::AJAXPollRender(string, array, Parser, PPFrame_DOM)

#3 /var/www/html/includes/parser/Parser.php(3851): call_user_func_array(array, array)

#4 /var/www/html/includes/parser/Preprocessor_DOM.php(1260): Parser->extensionSubstitution(array, PPFrame_DOM)

#5 /var/www/html/includes/parser/Parser.php(2917): PPFrame_DOM->expand(PPNode_DOM, integer)

#6 /var/www/html/includes/parser/Parser.php(1265): Parser->replaceVariables(string)

#7 /var/www/html/includes/parser/Parser.php(441): Parser->internalParse(string)

#8 /var/www/html/includes/content/WikitextContent.php(330): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)

#9 /var/www/html/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)

#10 /var/www/html/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Title, integer, ParserOptions)

#11 /var/www/html/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()

#12 /var/www/html/includes/page/Article.php(651): PoolCounterWork->execute()

#13 /var/www/html/maintenance/rebuildFileCache.php(142): Article->view()

#14 /var/www/html/maintenance/doMaintenance.php(111): RebuildFileCache->execute()

#15 /var/www/html/maintenance/rebuildFileCache.php(178): require_once(string)

#16 {main}

PHP Fatal error:  Uncaught exception 'DBTransactionError' with message 'Explicit transaction still active. A caller may have caught an error.' in /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php:1045

Stack trace:

#0 [internal function]: LoadBalancer->{closure}(Object(DatabaseMysqli))

#1 /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1383): call_user_func_array(Object(Closure), Array)

#2 /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1068): LoadBalancer->forEachOpenMasterConnection(Object(Closure))

#3 [internal function]: LoadBalancer->approveMasterChanges(Array)

#4 /var/www/html/includes/libs/rdbms/lbfactory/LBFactory.php(176): call_user_func_array(Array, Array)

#5 [internal function]: LBFactory->{closure}(Object(LoadBalancer), 'approveMasterCh...', Array)

#6 /var/www/html/includes/libs/rdbms/lbfactory/LBFactorySimple.php(134): call_user_func_array(Object(Closure), Array)

#7 /var/www/html/includes/libs/rdbms/lbfactory/LBFactory.php(179): LBFactorySimple->forEachLB(Object(Closure in /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php on line 1045

Ciencia Al Poder (talkcontribs)

The first error tells about "Database is read-only". Did you put database in read only mode when running rebuildFileCache.php, or did you set $wgReadOnly to true?

Reply to "File caching broken with inclusion of this plugin"