Extension talk:Poll

Jump to navigation Jump to search

About this board

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"

Inserting Poll within VisualEditor

1
Eric2XU (talkcontribs)

We recently switched to VisualEditor. Its been great other then I can not figure out any way to insert a poll other than to go to edit source. Does anyone know a way to make it available via the insert menu?

Reply to "Inserting Poll within VisualEditor"

Poll not showing with Mediawiki 1.23

4
202.3.120.4 (talkcontribs)

I've installed the Mediawiki version 1.23 and also added this extension (ver 1.1 (2fe5854)).

I can see a page like w/Special:Poll where I can see two items listed as

  1. Create a new Poll
  2. Old Polls

But when I add a poll inside a page, its not parsed and I can't see a poll.

I see just the code as it is, <poll> Do you like this extension? Yes No I don't know yet. </poll>.

Can anybody help of fixing this issue?

217.196.8.49 (talkcontribs)

Have you tried update.php?

204.212.175.30 (talkcontribs)

Hi,

I have the same issue, but database maintenance is not an option for me. Way to much custom stuff in there.

What steps do I have to take to install this manually?

D

Ciencia Al Poder (talkcontribs)

custom stuff? update.php only upgrades the table schema and/or data known to MediaWiki (and extensions that expose it), so it won't touch your custom tables or columns.

Reply to "Poll not showing with Mediawiki 1.23"
There are no older topics