I just updated the wiki to MediaWiki 1.39 and realized that the extension is not working at all. I am not presented with any user agreement to accept, neither for new nor for existing accounts. Even when setting $wgUserAgreement_DaysToReaccept = 0;
.
Extension talk:UserAgreement
I am talking about https://www.mediawikiwidgets.org/ I run for the community. I will disable the Widgets extension for now to avoid privacy problems.
I just switched to using ConfirmAccount since this allows me to enforce acceptance of terms. However, this one is not a self-service extension.
Hi,
Is there anyway I can add when the user accepted the agreement on the list users page. I am happy to hack the code if needed.
Any help is appreciated.
I believe this is a feature request. Yeah, this may be useful.
Feel free to add a feature request to Phabricator.
The archive for REL1_31 [1] downloaded with the help of Extension:ExtensionDistributor contains 3 files only (.gitreview, version, gitinfo.json) thus it won't work due to many missing files (i.e. comparing with REL1_32). According to the Infobox it is supposed to work since MW1.27.
It seems Extension:UserAgreement works in MW1.31 if installing REL1_32 v.1.0.1 (8bf7dd1) , at least the Mediawiki:Useragreement
page is available. But after the user agreement message was filled, no message is presented (for logged in users) in opposite as expected.
[1] https://extdist.wmflabs.org/dist/extensions/UserAgreement-REL1_31-6096342.tar.gz
Indeed the extension distributor does not work since at that time the repo was still empty. Thus using the download for MW 1.32 seems to be the only way.
Admittedly I still use this on 1.27 and hope that it will work after upgrading to 1.31. Will do this soon.
Admittedly it took me a while. However I have now upgraded to MW 1.31 and to the REL1_32 branch of this extension. When creating a new account users are presented with the agreement. This is what I expect in minimum and it is working.
However I have not changed the user message and I do not know if it triggers the agreement to be shown again on login. It indeed should according to the docu. If if does not I'd that this is a bug.
2 issues:
1) Background color of the user agreement page is a dark gray, hard to see. How can I change this to white?
2) I want the User Agreement page to display every time a user logs in, not just their first login.
About 2) With version 2.0.0 there is the $wgUserAgreement_DaysToReaccept configuration parameter. This does not help every time a user logs in, but you could set it to 1 to require acceptance every new day.
Hi,
I am having a bit of an issue on one of my Wikis (the first one I am trying to upgrade) from MediaWiki 1.35 to 1.39.
I get the error:
MediaWiki internal error.
Original exception: [a9ddd7b6adbabc6ec584a29a] /w/index.php/Wiki Error: Call to undefined method WikiPage::getRevision()
Backtrace:
from /var/www/html/farmhouse/extensions/UserAgreement/includes/UserAgreement.php(63)
#0 /var/www/html/farmhouse/extensions/UserAgreement/includes/UserAgreementHooks.php(59): UserAgreement::getUALastModifiedDate()
#1 /var/www/html/farmhouse/includes/HookContainer/HookContainer.php(338): UserAgreementHooks::addUserAgreement()
#2 /var/www/html/farmhouse/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#3 /var/www/html/farmhouse/includes/HookContainer/HookRunner.php(945): MediaWiki\HookContainer\HookContainer->run()
#4 /var/www/html/farmhouse/includes/OutputPage.php(2869): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay()
#5 /var/www/html/farmhouse/includes/MediaWiki.php(922): OutputPage->output()
#6 /var/www/html/farmhouse/includes/MediaWiki.php(562): MediaWiki->main()
#7 /var/www/html/farmhouse/index.php(50): MediaWiki->run()
#8 /var/www/html/farmhouse/index.php(46): wfIndexMain()
#9 {main}
Exception caught inside exception handler: [a9ddd7b6adbabc6ec584a29a] /w/index.php/Wiki Error: Call to undefined method WikiPage::getRevision()
Backtrace:
from /var/www/html/farmhouse/extensions/UserAgreement/includes/UserAgreement.php(63)
#0 /var/www/html/farmhouse/extensions/UserAgreement/includes/UserAgreementHooks.php(59): UserAgreement::getUALastModifiedDate()
#1 /var/www/html/farmhouse/includes/HookContainer/HookContainer.php(338): UserAgreementHooks::addUserAgreement()
#2 /var/www/html/farmhouse/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#3 /var/www/html/farmhouse/includes/HookContainer/HookRunner.php(945): MediaWiki\HookContainer\HookContainer->run()
#4 /var/www/html/farmhouse/includes/OutputPage.php(2869): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay()
#5 /var/www/html/farmhouse/includes/exception/MWExceptionRenderer.php(183): OutputPage->output()
#6 /var/www/html/farmhouse/includes/exception/MWExceptionRenderer.php(102): MWExceptionRenderer::reportHTML()
#7 /var/www/html/farmhouse/includes/exception/MWExceptionHandler.php(131): MWExceptionRenderer::output()
#8 /var/www/html/farmhouse/includes/exception/MWExceptionHandler.php(248): MWExceptionHandler::report()
#9 /var/www/html/farmhouse/includes/MediaWiki.php(584): MWExceptionHandler::handleException()
#10 /var/www/html/farmhouse/index.php(50): MediaWiki->run()
#11 /var/www/html/farmhouse/index.php(46): wfIndexMain()
#12 {main}
Any idea what the problem is?
For now, I have commented out the following line:
$uaModifiedDate = $uaPage->getRevision()->getTimestamp();
I'm not overly concerned about when it updates. I have modified it to be agreed once every 12 months.
OK, I have just tested the User Agreement, I can't even get it to say it has been recorded now. I will have to have a look at this in more detail tomorrow. When I agree, it just comes back prompting me to renew the agreement.
This issue is related to the Article method "getRevision" deprecated in 1.35 and removed in mediawiki 1.36. I am looking into a fix.
Thanks Hcadby, I have updated the script to only ask for it to be agreed once a year. I did put this on GitHub, but I messed up when committing it this afternoon. I will try again tomorrow.
I reported this issue with task T340162.
A fix ships with version 2.0.0. Thanks, Cindy!
After upgrading the extension it basically still works. However after confirming acceptance one gets redirected to Special:CreateAccount and you get a note saying "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form." The account however was created and the user may start using the wiki despite not submitting the form again. The site showing this behavior is: https://www.mediawikiwidgets.org/
As a preliminary workaround I change the respective system message on MediaWiki:Sessionfailure to "Oops, redirection to the desired page somehow has failed. However, your account was created and you may now use the wiki!"Â :)
Hi, Is there a way to make a user have to accept this agreement not just when it is changed but also every 365 days? or another extension that would allow this to be performed.
Many Thanks
There is no direct functionality for this provided. However, according to the docu the user agreement is shown again to users for confirmation once you edit the agreement. Assuming this works you do not really need a yearly confirmation.
Is there some way to edit the PHP files so that the pop up appears to users who havent logged in?
I'm using this as a cookie warning.
I fixed it myself. My solution was to add a " || " variable in the " if " function in UserAgreementHooks.php.
So this:
if ( $userId > 0 && $userUAAcceptedDate <= $uaModifiedDate) {
I changed to this:
if ( $userId > 0 && $userUAAcceptedDate <= $uaModifiedDate || $_COOKIE['ua']!= "1" ) {
Now it checks for a cookie named "ua", it wants to have the value "1"
Then I added this little snippet in renderUserAgreement.js:
$("#uaAccept").click( function () {
var api = new mw.Api();
api.post({
action: 'uaAcceptAgreement',
token: mw.user.tokens.get( 'editToken' ),
}).done(function(data) {
document.cookie = "ua=1";
location.reload(true);
It's pretty simple, but works for me. Note that the user check is pretty much overwritten now, it always checks for a cookie.
If you change your policy and want all users to agre, well, then it wouldnt show up... One solution to that is maybe to change the variable "1" to something else, like 2 maybe...
Edit: The cookie is eternal and wont expire, you can add a timestamp in the .js file when creating the cookie.
Running
Mediawiki 1.31 UserAgreement 1.0.1 (cb230e7) PluggableAuth 5.4 (300ac44) SimpleSAMLphp 4.1 (1e36e1d)
Downloaded the master, unpacked and inserted the wfLoadExtension, ran ```php update.php```, verified that the ```useragreement``` table exists now, created a page with some sample text at Mediawiki: domain/mediawiki/index.php/MediaWiki:UserAgreement
unfortunately the table stays empty ```useragreement` table stays empty and no prompt or page appears.
Debug Log with hopefully all private infos replaced by xxxx:
IP: x.x.x.x
Start request GET /mediawiki/index.php/Modules
HTTP HEADERS:
HOST: domain.domain.com
USER-AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-LANGUAGE: de,en-US;q=0.7,en;q=0.3
ACCEPT-ENCODING: gzip, deflate, br
REFERER: https://domain.domain.com/mediawiki/index.php/Getting_Started
COOKIE: vector-nav-p-Basics=true; vector-nav-p-FAQs=true; vector-nav-p-Optimization_tips=true; vector-nav-p-tb=false; my_wikiUserName=xxxxx; vector-nav-p-General_Info=false; vector-nav-p-HPC-Dev=true; vector-nav-p-HPC-User=false; vector-nav-p-HPC-Admin=true; language=en; SimpleSAMLSessionID=xxxxxxx; SimpleSAMLAuthToken=xxxxxx; my_wiki_session=xxxxx; my_wikiUserID=xxxx
DNT: 1
CONNECTION: keep-alive
UPGRADE-INSECURE-REQUESTS: 1
[caches] cluster: SqlBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, session: SqlBagOStuff
[caches] LocalisationCache: using store LCStoreDB
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection.
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "x.x.x.x", "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko\/20100101 Firefox\/60.0", "ChronologyProtection": false, "ChronologyPositionIndex": 0
} [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [SQLBagOStuff] Connection 607 will be used for SqlBagOStuff [SQLBagOStuff] Connection 607 will be used for SqlBagOStuff [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. Title::getRestrictionTypes: applicable restrictions to Modules are {edit,move} [ContentHandler] Created handler for wikitext: WikitextContentHandler OutputPage::checkLastModified: client did not send If-Modified-Since header User: loading options for user x from override cache. [MessageCache] MessageCache::load: Loading en... local cache is empty, got from global cache Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache->transform Parser: using preprocessor: Preprocessor_DOM Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct [caches] parser: SqlBagOStuff [DBPerformance] Expectation (writes <= 0) by MediaWiki::main not met (actual: 4): query-m: DELETE FROM `objectcache` WHERE (exptime >= 'X')
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: DELETE...', 4)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: DELETE...', xxxxxx, true, xxxxx)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('DELETE FROM `ob...', 'DELETE /* SqlBa...', true, 'SqlBagOStuff::d...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2845): Wikimedia\Rdbms\Database->query('DELETE FROM `ob...', 'SqlBagOStuff::d...')
- 4 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(609): Wikimedia\Rdbms\Database->delete('`objectcache`', '(exptime >= '20...', 'SqlBagOStuff::d...')
- 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(557): SqlBagOStuff->deleteObjectsExpiringBefore('xxxxx')
- 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(552): SqlBagOStuff->expireAll()
- 7 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(262): SqlBagOStuff->garbageCollect()
- 8 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(358): SqlBagOStuff->getMulti(Array)
- 9 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(303): WANObjectCache->getMulti(Array, Array, Array, Array)
- 10 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(1156): WANObjectCache->get('my_wiki:page-co...', NULL, Array, NULL)
- 11 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(1114): WANObjectCache->doGetWithSetCallback('my_wiki:page-co...', xxxxxx, Object(Closure), Array)
- 12 /var/lib/mediawiki/includes/page/WikiPage.php(579): WANObjectCache->getWithSetCallback('my_wiki:page-co...', xxxxx, Object(Closure))
- 13 /var/lib/mediawiki/includes/page/WikiPage.php(229): WikiPage->getContentModel()
- 14 /var/lib/mediawiki/includes/page/WikiPage.php(2001): WikiPage->getContentHandler()
- 15 /var/lib/mediawiki/includes/page/Article.php(2001): WikiPage->makeParserOptions(Object(RequestContext))
- 16 /var/lib/mediawiki/includes/page/Article.php(478): Article->getParserOptions()
- 17 /var/lib/mediawiki/includes/actions/ViewAction.php(68): Article->view()
- 18 /var/lib/mediawiki/includes/MediaWiki.php(500): ViewAction->show()
- 19 /var/lib/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Object(Article), Object(Title))
- 20 /var/lib/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
- 21 /var/lib/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
- 22 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 23 {main}
Article::view using parser cache: yes Article::view: doing uncached parse [DBPerformance] Expectation (writes <= 0) by MediaWiki::main not met (actual: 5): query-m: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X')
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: REPLAC...', 5)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: REPLAC...', xxxxx, true, 1)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('REPLACE INTO `o...', 'REPLACE /* SqlB...', true, 'SqlBagOStuff::s...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2741): Wikimedia\Rdbms\Database->query('REPLACE INTO `o...', 'SqlBagOStuff::s...')
- 4 /var/lib/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(516): Wikimedia\Rdbms\Database->nativeReplace('`objectcache`', Array, 'SqlBagOStuff::s...')
- 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(361): Wikimedia\Rdbms\DatabaseMysqlBase->replace('objectcache', Array, Array, 'SqlBagOStuff::s...')
- 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(376): SqlBagOStuff->setMulti(Array, xxxxxx)
- 7 /var/lib/mediawiki/includes/parser/Preprocessor.php(82): SqlBagOStuff->set('my_wiki:preproc...', '00000001<root>T...', xxxxx)
- 8 /var/lib/mediawiki/includes/parser/Preprocessor_DOM.php(153): Preprocessor->cacheSetTree('The module syst...', 0, '<root>The modul...')
- 9 /var/lib/mediawiki/includes/parser/Parser.php(2881): Preprocessor_DOM->preprocessToObj('The module syst...', 0)
- 10 /var/lib/mediawiki/includes/parser/Parser.php(2940): Parser->preprocessToDom('The module syst...')
- 11 /var/lib/mediawiki/includes/parser/Parser.php(1293): Parser->replaceVariables('The module syst...')
- 12 /var/lib/mediawiki/includes/parser/Parser.php(443): Parser->internalParse('The module syst...')
- 13 /var/lib/mediawiki/includes/content/WikitextContent.php(323): Parser->parse('The module syst...', Object(Title), Object(ParserOptions), true, true, 800)
- 14 /var/lib/mediawiki/includes/content/AbstractContent.php(516): WikitextContent->fillParserOutput(Object(Title), 800, Object(ParserOptions), true, Object(ParserOutput))
- 15 /var/lib/mediawiki/includes/poolcounter/PoolWorkArticleView.php(144): AbstractContent->getParserOutput(Object(Title), 800, Object(ParserOptions))
- 16 /var/lib/mediawiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
- 17 /var/lib/mediawiki/includes/page/Article.php(604): PoolCounterWork->execute()
- 18 /var/lib/mediawiki/includes/actions/ViewAction.php(68): Article->view()
- 19 /var/lib/mediawiki/includes/MediaWiki.php(500): ViewAction->show()
- 20 /var/lib/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Object(Article), Object(Title))
- 21 /var/lib/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
- 22 /var/lib/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
- 23 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 24 {main}
[Preprocessor] Cached preprocessor output (key: my_wiki:preprocess-xml:xxxxxxxxxx) [Preprocessor] Loaded preprocessor output from cache (key: my_wiki:preprocess-xml:xxxxxxxx) Saved in parser cache with key my_wiki:pcache:idhash:41-0!canonical and timestamp xxxxxx and revision id 800 [DBPerformance] Expectation (writes <= 0) by MediaWiki::main not met (actual: 6): query-m: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X')
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: REPLAC...', 6)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: REPLAC...', xxxxxxxx, true, 1)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('REPLACE INTO `o...', 'REPLACE /* SqlB...', true, 'SqlBagOStuff::s...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2741): Wikimedia\Rdbms\Database->query('REPLACE INTO `o...', 'SqlBagOStuff::s...')
- 4 /var/lib/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(516): Wikimedia\Rdbms\Database->nativeReplace('`objectcache`', Array, 'SqlBagOStuff::s...')
- 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(361): Wikimedia\Rdbms\DatabaseMysqlBase->replace('objectcache', Array, Array, 'SqlBagOStuff::s...')
- 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(376): SqlBagOStuff->setMulti(Array, xxxxxxx)
- 7 /var/lib/mediawiki/includes/parser/ParserCache.php(330): SqlBagOStuff->set('my_wiki:pcache:...', Object(ParserOutput), xxxxx)
- 8 /var/lib/mediawiki/includes/poolcounter/PoolWorkArticleView.php(162): ParserCache->save(Object(ParserOutput), Object(WikiPage), Object(ParserOptions), 'xxxxxxx', 800)
- 9 /var/lib/mediawiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
- 10 /var/lib/mediawiki/includes/page/Article.php(604): PoolCounterWork->execute()
- 11 /var/lib/mediawiki/includes/actions/ViewAction.php(68): Article->view()
- 12 /var/lib/mediawiki/includes/MediaWiki.php(500): ViewAction->show()
- 13 /var/lib/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Object(Article), Object(Title))
- 14 /var/lib/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
- 15 /var/lib/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
- 16 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 17 {main}
[DBPerformance] Expectation (writes <= 0) by MediaWiki::main not met (actual: 7): query-m: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X')
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: REPLAC...', 7)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: REPLAC...', xxxxxxxxx, true, 1)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('REPLACE INTO `o...', 'REPLACE /* SqlB...', true, 'SqlBagOStuff::s...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2741): Wikimedia\Rdbms\Database->query('REPLACE INTO `o...', 'SqlBagOStuff::s...')
- 4 /var/lib/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(516): Wikimedia\Rdbms\Database->nativeReplace('`objectcache`', Array, 'SqlBagOStuff::s...')
- 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(361): Wikimedia\Rdbms\DatabaseMysqlBase->replace('objectcache', Array, Array, 'SqlBagOStuff::s...')
- 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(376): SqlBagOStuff->setMulti(Array, xxxxx)
- 7 /var/lib/mediawiki/includes/parser/ParserCache.php(333): SqlBagOStuff->set('my_wiki:pcache:...', Object(CacheTime), xxxxx)
- 8 /var/lib/mediawiki/includes/poolcounter/PoolWorkArticleView.php(162): ParserCache->save(Object(ParserOutput), Object(WikiPage), Object(ParserOptions), 'xxxxxxxx', 800)
- 9 /var/lib/mediawiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
- 10 /var/lib/mediawiki/includes/page/Article.php(604): PoolCounterWork->execute()
- 11 /var/lib/mediawiki/includes/actions/ViewAction.php(68): Article->view()
- 12 /var/lib/mediawiki/includes/MediaWiki.php(500): ViewAction->show()
- 13 /var/lib/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Object(Article), Object(Title))
- 14 /var/lib/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
- 15 /var/lib/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
- 16 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 17 {main}
MediaWiki::preOutputCommit: primary transaction round committed MediaWiki::preOutputCommit: pre-send deferred updates completed [DBReplication] Wikimedia\Rdbms\ChronologyProtector::shutdownLB: DB 'localhost' touched
MediaWiki::preOutputCommit: LBFactory shutdown completed Title::getRestrictionTypes: applicable restrictions to Modules are {edit,move} User: loading options for user xx from database. OutputPage::sendCacheControl: private caching; Tue, 31 Jul 2018 15:23:06 GMT ** [SQLBagOStuff] Duplicate get(): "my_wiki:pcache:idoptions:41" fetched 2 times [SQLBagOStuff] Duplicate get(): "my_wiki:preprocess-xml:xxxxxxxxxxxxxxxxxxxxxx" fetched 2 times [DBPerformance] Expectation (writes <= 0) by MediaWiki::restInPeace not met (actual: 1): query-m: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X')
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: REPLAC...', 1)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: REPLAC...', xxxxxxxxx, true, 1)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('REPLACE INTO `o...', 'REPLACE /* SqlB...', true, 'SqlBagOStuff::s...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2741): Wikimedia\Rdbms\Database->query('REPLACE INTO `o...', 'SqlBagOStuff::s...')
- 4 /var/lib/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(516): Wikimedia\Rdbms\Database->nativeReplace('`objectcache`', Array, 'SqlBagOStuff::s...')
- 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(361): Wikimedia\Rdbms\DatabaseMysqlBase->replace('objectcache', Array, Array, 'SqlBagOStuff::s...')
- 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(376): SqlBagOStuff->setMulti(Array, 30)
- 7 /var/lib/mediawiki/includes/libs/objectcache/BagOStuff.php(545): SqlBagOStuff->set('WANCache:v:my_w...', Array, 30)
- 8 /var/lib/mediawiki/includes/libs/objectcache/BagOStuff.php(310): BagOStuff->add('WANCache:v:my_w...', Array, 30)
- 9 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(488): BagOStuff->mergeViaCas('WANCache:v:my_w...', Object(Closure), 30, 1)
- 10 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(546): SqlBagOStuff->merge('WANCache:v:my_w...', Object(Closure), 30, 1)
- 11 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(373): WANObjectCache->set('my_wiki:jobqueu...', 1, 30)
- 12 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(293): JobQueueDB->claimRandom('xxxxxxxx...', xxxxxxxx, true)
- 13 /var/lib/mediawiki/includes/jobqueue/JobQueue.php(372): JobQueueDB->doPop()
- 14 /var/lib/mediawiki/includes/jobqueue/JobQueueGroup.php(263): JobQueue->pop()
- 15 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(167): JobQueueGroup->pop(1, 1, Array)
- 16 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
- 17 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
- 18 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
- 19 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
- 20 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
- 21 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
- 22 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 23 {main}
[DBPerformance] Expectation (writes <= 0) by MediaWiki::restInPeace not met (actual: 2): query-m: UPDATE `job` SET job_token = 'X'
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: UPDATE...', 2)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: UPDATE...', xxxxxxx, true, 1)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('UPDATE `job` S...', 'UPDATE /* JobQu...', true, 'JobQueueDB::cla...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2010): Wikimedia\Rdbms\Database->query('UPDATE `job` S...', 'JobQueueDB::cla...')
- 4 [internal function]: Wikimedia\Rdbms\Database->update('`job`', Array, Array, 'JobQueueDB::cla...')
- 5 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(49): call_user_func_array(Array, Array)
- 6 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(300): Wikimedia\Rdbms\DBConnRef->__call('update', Array)
- 7 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(385): Wikimedia\Rdbms\DBConnRef->update('job', Array, Array, 'JobQueueDB::cla...')
- 8 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(293): JobQueueDB->claimRandom('xxxxxxxxxxxx...', xxxxxxxxx, true)
- 9 /var/lib/mediawiki/includes/jobqueue/JobQueue.php(372): JobQueueDB->doPop()
- 10 /var/lib/mediawiki/includes/jobqueue/JobQueueGroup.php(263): JobQueue->pop()
- 11 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(167): JobQueueGroup->pop(1, 1, Array)
- 12 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
- 13 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
- 14 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
- 15 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
- 16 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
- 17 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
- 18 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 19 {main}
[runJobs] refreshLinksPrioritized Getting_Started rootJobTimestamp=xxxxxxxxxx useRecursiveLinksUpdate=1 triggeringUser={"userId":xx,"userName":"xxxxxxxx"} triggeringRevisionId=xxxx causeAction=edit-page causeAgent=xxxxxxxx requestId=xxxxxxxx (id=xx,timestamp=xxxxxxxx) STARTING Title::getRestrictionTypes: applicable restrictions to Getting Started are {edit,move} Parser cache options found. ParserOutput cache found. [DBQuery] RefreshLinksJob::runForTitle: committing on behalf of RefreshLinksJob::run. BacklinkCache::queryLinks: got results from DB [DBPerformance] Expectation (writes <= 0) by MediaWiki::restInPeace not met (actual: 3): query-m: UPDATE `objectcache` SET keyname = 'X'
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: UPDATE...', 3)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: UPDATE...', xxxxxxxx, true, 1)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('UPDATE `object...', 'UPDATE /* SqlBa...', true, 'SqlBagOStuff::c...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2010): Wikimedia\Rdbms\Database->query('UPDATE `object...', 'SqlBagOStuff::c...')
- 4 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(414): Wikimedia\Rdbms\Database->update('`objectcache`', Array, Array, 'SqlBagOStuff::c...')
- 5 /var/lib/mediawiki/includes/libs/objectcache/BagOStuff.php(313): SqlBagOStuff->cas(Array, 'WANCache:v:my_w...', Array, xxxxxxx)
- 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(488): BagOStuff->mergeViaCas('WANCache:v:my_w...', Object(Closure), 3600, 1)
- 7 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(546): SqlBagOStuff->merge('WANCache:v:my_w...', Object(Closure), 3600, 1)
- 8 /var/lib/mediawiki/includes/cache/BacklinkCache.php(376): WANObjectCache->set('my_wiki:numback...', 0, 3600)
- 9 /var/lib/mediawiki/includes/cache/BacklinkCache.php(323): BacklinkCache->getNumLinks('templatelinks', 1)
- 10 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(348): BacklinkCache->hasLinks('templatelinks')
- 11 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(312): LinksUpdate::queueRecursiveJobsForTable(Object(Title), 'templatelinks', 'edit-page', 'xxxxxxxx')
- 12 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(295): LinksUpdate->queueRecursiveJobs()
- 13 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(176): LinksUpdate->doIncrementalUpdate()
- 14 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(283): LinksUpdate->doUpdate()
- 15 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(126): RefreshLinksJob->runForTitle(Object(Title))
- 16 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(296): RefreshLinksJob->run()
- 17 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(193): JobRunner->executeJob(Object(RefreshLinksJob), Object(Wikimedia\Rdbms\LBFactorySimple), Object(BufferingStatsdDataFactory), xxxxxxx)
- 18 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
- 19 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
- 20 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
- 21 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
- 22 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
- 23 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
- 24 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 25 {main}
[DBPerformance] Expectation (writes <= 0) by MediaWiki::restInPeace not met (actual: 4): query-m: UPDATE `page` SET page_links_updated = 'X' [xxxxxx]
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: UPDATE...', 4)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: UPDATE...', xxxxxxxxx, true, 1)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('UPDATE `page` ...', 'UPDATE /* Links...', true, 'LinksUpdate::up...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2010): Wikimedia\Rdbms\Database->query('UPDATE `page` ...', 'LinksUpdate::up...')
- 4 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(1132): Wikimedia\Rdbms\Database->update('`page`', Array, Array, 'LinksUpdate::up...')
- 5 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(299): LinksUpdate->updateLinksTimestamp()
- 6 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(176): LinksUpdate->doIncrementalUpdate()
- 7 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(283): LinksUpdate->doUpdate()
- 8 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(126): RefreshLinksJob->runForTitle(Object(Title))
- 9 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(296): RefreshLinksJob->run()
- 10 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(193): JobRunner->executeJob(Object(RefreshLinksJob), Object(Wikimedia\Rdbms\LBFactorySimple), Object(BufferingStatsdDataFactory), xxxxxxx)
- 11 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
- 12 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
- 13 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
- 14 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
- 15 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
- 16 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
- 17 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 18 {main}
[DBPerformance] Expectation (writes <= 0) by MediaWiki::restInPeace not met (actual: 5): query-m: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X')
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: REPLAC...', 5)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: REPLAC...', xxxxxxxxxx, true, 1)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('REPLACE INTO `o...', 'REPLACE /* SqlB...', true, 'SqlBagOStuff::s...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2741): Wikimedia\Rdbms\Database->query('REPLACE INTO `o...', 'SqlBagOStuff::s...')
- 4 /var/lib/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(516): Wikimedia\Rdbms\Database->nativeReplace('`objectcache`', Array, 'SqlBagOStuff::s...')
- 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(361): Wikimedia\Rdbms\DatabaseMysqlBase->replace('objectcache', Array, Array, 'SqlBagOStuff::s...')
- 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(376): SqlBagOStuff->setMulti(Array, 11)
- 7 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(1820): SqlBagOStuff->set('WANCache:v:my_w...', 'PURGED:xxxxxxxxxx', 11)
- 8 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(618): WANObjectCache->relayPurge('WANCache:v:my_w...', 11, 0)
- 9 /var/lib/mediawiki/includes/actions/InfoAction.php(78): WANObjectCache->delete('WANCache:v:my_w...')
- 10 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(286): InfoAction::invalidateCache(Object(Title))
- 11 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(126): RefreshLinksJob->runForTitle(Object(Title))
- 12 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(296): RefreshLinksJob->run()
- 13 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(193): JobRunner->executeJob(Object(RefreshLinksJob), Object(Wikimedia\Rdbms\LBFactorySimple), Object(BufferingStatsdDataFactory), xxxxxxxxx)
- 14 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
- 15 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
- 16 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
- 17 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
- 18 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
- 19 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
- 20 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 21 {main}
[DBQuery] RefreshLinksJob::runForTitle: committing on behalf of RefreshLinksJob::run. [runJobs] refreshLinksPrioritized Getting_Started rootJobTimestamp=xxxxxxxxx useRecursiveLinksUpdate=1 triggeringUser={"userId":xx,"userName":"xxxxxxxxxxxx"} triggeringRevisionId=xxxx causeAction=edit-page causeAgent=xxxxxxxxxxx requestId=xxxxxxxx (id=xx,timestamp=xxxxxxxxxx) t=xx good [DBPerformance] Expectation (writes <= 0) by MediaWiki::restInPeace not met (actual: 6): query-m: DELETE FROM `job` WHERE job_cmd = 'X'
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: DELETE...', 6)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: DELETE...', xxxxxxxxxxx, true, 1)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('DELETE FROM `jo...', 'DELETE /* JobQu...', true, 'JobQueueDB::doA...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2845): Wikimedia\Rdbms\Database->query('DELETE FROM `jo...', 'JobQueueDB::doA...')
- 4 [internal function]: Wikimedia\Rdbms\Database->delete('`job`', 'job_cmd = 'refr...', 'JobQueueDB::doA...')
- 5 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(49): call_user_func_array(Array, Array)
- 6 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(409): Wikimedia\Rdbms\DBConnRef->__call('delete', Array)
- 7 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(481): Wikimedia\Rdbms\DBConnRef->delete('job', Array, 'JobQueueDB::doA...')
- 8 /var/lib/mediawiki/includes/jobqueue/JobQueue.php(413): JobQueueDB->doAck(Object(RefreshLinksJob))
- 9 /var/lib/mediawiki/includes/jobqueue/JobQueueGroup.php(282): JobQueue->ack(Object(RefreshLinksJob))
- 10 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(195): JobQueueGroup->ack(Object(RefreshLinksJob))
- 11 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
- 12 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
- 13 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
- 14 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
- 15 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
- 16 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
- 17 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 18 {main}
Request ended normally [session] Saving all sessions on shutdown [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [caches] cluster: SqlBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, session: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "x.x.x.x", "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko\/20100101 Firefox\/60.0", "ChronologyProtection": false, "ChronologyPositionIndex": 0
} [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [SQLBagOStuff] Connection 610 will be used for SqlBagOStuff [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [caches] cluster: SqlBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, session: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "x.x.x.x", "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko\/20100101 Firefox\/60.0", "ChronologyProtection": false, "ChronologyPositionIndex": 0
} [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [SQLBagOStuff] Connection 612 will be used for SqlBagOStuff [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [caches] cluster: SqlBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, session: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "x.x.x.x", "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko\/20100101 Firefox\/60.0", "ChronologyProtection": false, "ChronologyPositionIndex": 0
} [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [SQLBagOStuff] Connection 614 will be used for SqlBagOStuff [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'.
- 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: DELETE...', 6)
- 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: DELETE...', 1533050713.7156, true, 1)
- 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('DELETE FROM `jo...', 'DELETE /* JobQu...', true, 'JobQueueDB::doA...')
- 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2845): Wikimedia\Rdbms\Database->query('DELETE FROM `jo...', 'JobQueueDB::doA...')
- 4 [internal function]: Wikimedia\Rdbms\Database->delete('`job`', 'job_cmd = 'refr...', 'JobQueueDB::doA...')
- 5 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(49): call_user_func_array(Array, Array)
- 6 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(409): Wikimedia\Rdbms\DBConnRef->__call('delete', Array)
- 7 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(481): Wikimedia\Rdbms\DBConnRef->delete('job', Array, 'JobQueueDB::doA...')
- 8 /var/lib/mediawiki/includes/jobqueue/JobQueue.php(413): JobQueueDB->doAck(Object(RefreshLinksJob))
- 9 /var/lib/mediawiki/includes/jobqueue/JobQueueGroup.php(282): JobQueue->ack(Object(RefreshLinksJob))
- 10 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(195): JobQueueGroup->ack(Object(RefreshLinksJob))
- 11 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
- 12 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
- 13 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
- 14 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
- 15 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
- 16 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
- 17 /var/lib/mediawiki/index.php(42): MediaWiki->run()
- 18 {main}
Request ended normally [session] Saving all sessions on shutdown [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [caches] cluster: SqlBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, session: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "134.130.1.109", "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko\/20100101 Firefox\/60.0", "ChronologyProtection": false, "ChronologyPositionIndex": 0
} [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [SQLBagOStuff] Connection 610 will be used for SqlBagOStuff [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [caches] cluster: SqlBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, session: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "134.130.1.109", "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko\/20100101 Firefox\/60.0", "ChronologyProtection": false, "ChronologyPositionIndex": 0
} [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [SQLBagOStuff] Connection 612 will be used for SqlBagOStuff [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [caches] cluster: SqlBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, session: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "134.130.1.109", "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko\/20100101 Firefox\/60.0", "ChronologyProtection": false, "ChronologyPositionIndex": 0
} [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [SQLBagOStuff] Connection 614 will be used for SqlBagOStuff [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'. [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'.
@Cindy.cicalese could you take a look at this? Thank you very much!!
I just tested UserAgreement 1.0.1 with MediaWiki 1.31.0, and it worked correctly. The useragreement table will stay empty until the agreement is accepted, so it makes sense that it remains empty if the agreement is never rendered. Are there any errors in the JavaScript console? I suspect that a JavaScript error is preventing the display of the agreement.
JavaScript console did not really help, but I managed to find the problem by reading through
UserAgreement.php
which looks for a page called Mediawiki:Useragreement
instead of the documented Mediawiki:UserAgreement
which I created.
So capitalization matters and now that I added a page like that, it works like a charm. Thank you for the extension, I will make fix the documentation momentarily. You might consider making that case-insensitive in the future, but for the meantime I will make sure to point that constraint out in the extension page.
The master version is downloadable, but the default (1.31 latest stable Mediawiki) download only contains Version and git files.
This extensions currently uses the master compatibility policy, so although release branches are created, they should not be used.