Jump to content

Extension talk:UserAgreement

About this board

Version 2.0.0 not working at all?

3
Kghbln (talkcontribs)

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;.

Kghbln (talkcontribs)
Kghbln (talkcontribs)

I just switched to using ConfirmAccount since this allows me to enforce acceptance of terms. However, this one is not a self-service extension.

Reply to "Version 2.0.0 not working at all?"

Displaying when a user accepted the useragreement on the List Users page

3
Squeak24 (talkcontribs)

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.

Kghbln (talkcontribs)

I believe this is a feature request. Yeah, this may be useful.

Kghbln (talkcontribs)
Reply to "Displaying when a user accepted the useragreement on the List Users page"

Download and functionality in MW1.31

3
Summary by Kghbln

MediaWiki 1.31 is no longer supported. With newer versions, the situation should have improved.

S0ring (talkcontribs)

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

Kghbln (talkcontribs)

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.

Kghbln (talkcontribs)

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.

Background color and use every time.

2
Gregzme17 (talkcontribs)

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.

Kghbln (talkcontribs)

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.

Reply to "Background color and use every time."

Issues when upgrading from MW 1.35 to 1.39

7
Summary by Kghbln

A fix ships with version 2.0.0

Squeak24 (talkcontribs)

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?

Squeak24 (talkcontribs)

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.

Squeak24 (talkcontribs)

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.

Hcadby (talkcontribs)

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.

Squeak24 (talkcontribs)

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.

Kghbln (talkcontribs)
Kghbln (talkcontribs)

Issue with MW 1.35.x (session management?)

2
Kghbln (talkcontribs)

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/

Kghbln (talkcontribs)

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!" :)

Reply to "Issue with MW 1.35.x (session management?)"

Adding a requirement to accept every year

2
Summary by Hcadby

I fixed this issue by editing the code many months ago

Hcadby (talkcontribs)

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

Kghbln (talkcontribs)

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.

Apply to ALL users, not only logged in.

2
Summary by Ztiruam

Solved it myself.

Ztiruam (talkcontribs)

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.

Ztiruam (talkcontribs)

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.

Master not working on 1.31

5
Summary by Daniel schuerhoff

Capitalization of the page MediaWiki:Useragreement is important.

2A00:8A60:1:F0:7945:C80F:8467:4D5F (talkcontribs)

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.

2A00:8A60:1:F0:7945:C80F:8467:4D5F (talkcontribs)

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')

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: DELETE...', 4)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: DELETE...', xxxxxx, true, xxxxx)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('DELETE FROM `ob...', 'DELETE /* SqlBa...', true, 'SqlBagOStuff::d...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2845): Wikimedia\Rdbms\Database->query('DELETE FROM `ob...', 'SqlBagOStuff::d...')
  5. 4 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(609): Wikimedia\Rdbms\Database->delete('`objectcache`', '(exptime >= '20...', 'SqlBagOStuff::d...')
  6. 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(557): SqlBagOStuff->deleteObjectsExpiringBefore('xxxxx')
  7. 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(552): SqlBagOStuff->expireAll()
  8. 7 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(262): SqlBagOStuff->garbageCollect()
  9. 8 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(358): SqlBagOStuff->getMulti(Array)
  10. 9 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(303): WANObjectCache->getMulti(Array, Array, Array, Array)
  11. 10 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(1156): WANObjectCache->get('my_wiki:page-co...', NULL, Array, NULL)
  12. 11 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(1114): WANObjectCache->doGetWithSetCallback('my_wiki:page-co...', xxxxxx, Object(Closure), Array)
  13. 12 /var/lib/mediawiki/includes/page/WikiPage.php(579): WANObjectCache->getWithSetCallback('my_wiki:page-co...', xxxxx, Object(Closure))
  14. 13 /var/lib/mediawiki/includes/page/WikiPage.php(229): WikiPage->getContentModel()
  15. 14 /var/lib/mediawiki/includes/page/WikiPage.php(2001): WikiPage->getContentHandler()
  16. 15 /var/lib/mediawiki/includes/page/Article.php(2001): WikiPage->makeParserOptions(Object(RequestContext))
  17. 16 /var/lib/mediawiki/includes/page/Article.php(478): Article->getParserOptions()
  18. 17 /var/lib/mediawiki/includes/actions/ViewAction.php(68): Article->view()
  19. 18 /var/lib/mediawiki/includes/MediaWiki.php(500): ViewAction->show()
  20. 19 /var/lib/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Object(Article), Object(Title))
  21. 20 /var/lib/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
  22. 21 /var/lib/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
  23. 22 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  24. 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')

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: REPLAC...', 5)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: REPLAC...', xxxxx, true, 1)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('REPLACE INTO `o...', 'REPLACE /* SqlB...', true, 'SqlBagOStuff::s...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2741): Wikimedia\Rdbms\Database->query('REPLACE INTO `o...', 'SqlBagOStuff::s...')
  5. 4 /var/lib/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(516): Wikimedia\Rdbms\Database->nativeReplace('`objectcache`', Array, 'SqlBagOStuff::s...')
  6. 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(361): Wikimedia\Rdbms\DatabaseMysqlBase->replace('objectcache', Array, Array, 'SqlBagOStuff::s...')
  7. 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(376): SqlBagOStuff->setMulti(Array, xxxxxx)
  8. 7 /var/lib/mediawiki/includes/parser/Preprocessor.php(82): SqlBagOStuff->set('my_wiki:preproc...', '00000001<root>T...', xxxxx)
  9. 8 /var/lib/mediawiki/includes/parser/Preprocessor_DOM.php(153): Preprocessor->cacheSetTree('The module syst...', 0, '<root>The modul...')
  10. 9 /var/lib/mediawiki/includes/parser/Parser.php(2881): Preprocessor_DOM->preprocessToObj('The module syst...', 0)
  11. 10 /var/lib/mediawiki/includes/parser/Parser.php(2940): Parser->preprocessToDom('The module syst...')
  12. 11 /var/lib/mediawiki/includes/parser/Parser.php(1293): Parser->replaceVariables('The module syst...')
  13. 12 /var/lib/mediawiki/includes/parser/Parser.php(443): Parser->internalParse('The module syst...')
  14. 13 /var/lib/mediawiki/includes/content/WikitextContent.php(323): Parser->parse('The module syst...', Object(Title), Object(ParserOptions), true, true, 800)
  15. 14 /var/lib/mediawiki/includes/content/AbstractContent.php(516): WikitextContent->fillParserOutput(Object(Title), 800, Object(ParserOptions), true, Object(ParserOutput))
  16. 15 /var/lib/mediawiki/includes/poolcounter/PoolWorkArticleView.php(144): AbstractContent->getParserOutput(Object(Title), 800, Object(ParserOptions))
  17. 16 /var/lib/mediawiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
  18. 17 /var/lib/mediawiki/includes/page/Article.php(604): PoolCounterWork->execute()
  19. 18 /var/lib/mediawiki/includes/actions/ViewAction.php(68): Article->view()
  20. 19 /var/lib/mediawiki/includes/MediaWiki.php(500): ViewAction->show()
  21. 20 /var/lib/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Object(Article), Object(Title))
  22. 21 /var/lib/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
  23. 22 /var/lib/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
  24. 23 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  25. 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')

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: REPLAC...', 6)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: REPLAC...', xxxxxxxx, true, 1)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('REPLACE INTO `o...', 'REPLACE /* SqlB...', true, 'SqlBagOStuff::s...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2741): Wikimedia\Rdbms\Database->query('REPLACE INTO `o...', 'SqlBagOStuff::s...')
  5. 4 /var/lib/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(516): Wikimedia\Rdbms\Database->nativeReplace('`objectcache`', Array, 'SqlBagOStuff::s...')
  6. 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(361): Wikimedia\Rdbms\DatabaseMysqlBase->replace('objectcache', Array, Array, 'SqlBagOStuff::s...')
  7. 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(376): SqlBagOStuff->setMulti(Array, xxxxxxx)
  8. 7 /var/lib/mediawiki/includes/parser/ParserCache.php(330): SqlBagOStuff->set('my_wiki:pcache:...', Object(ParserOutput), xxxxx)
  9. 8 /var/lib/mediawiki/includes/poolcounter/PoolWorkArticleView.php(162): ParserCache->save(Object(ParserOutput), Object(WikiPage), Object(ParserOptions), 'xxxxxxx', 800)
  10. 9 /var/lib/mediawiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
  11. 10 /var/lib/mediawiki/includes/page/Article.php(604): PoolCounterWork->execute()
  12. 11 /var/lib/mediawiki/includes/actions/ViewAction.php(68): Article->view()
  13. 12 /var/lib/mediawiki/includes/MediaWiki.php(500): ViewAction->show()
  14. 13 /var/lib/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Object(Article), Object(Title))
  15. 14 /var/lib/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
  16. 15 /var/lib/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
  17. 16 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  18. 17 {main}

[DBPerformance] Expectation (writes <= 0) by MediaWiki::main not met (actual: 7): query-m: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X')

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: REPLAC...', 7)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: REPLAC...', xxxxxxxxx, true, 1)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('REPLACE INTO `o...', 'REPLACE /* SqlB...', true, 'SqlBagOStuff::s...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2741): Wikimedia\Rdbms\Database->query('REPLACE INTO `o...', 'SqlBagOStuff::s...')
  5. 4 /var/lib/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(516): Wikimedia\Rdbms\Database->nativeReplace('`objectcache`', Array, 'SqlBagOStuff::s...')
  6. 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(361): Wikimedia\Rdbms\DatabaseMysqlBase->replace('objectcache', Array, Array, 'SqlBagOStuff::s...')
  7. 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(376): SqlBagOStuff->setMulti(Array, xxxxx)
  8. 7 /var/lib/mediawiki/includes/parser/ParserCache.php(333): SqlBagOStuff->set('my_wiki:pcache:...', Object(CacheTime), xxxxx)
  9. 8 /var/lib/mediawiki/includes/poolcounter/PoolWorkArticleView.php(162): ParserCache->save(Object(ParserOutput), Object(WikiPage), Object(ParserOptions), 'xxxxxxxx', 800)
  10. 9 /var/lib/mediawiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
  11. 10 /var/lib/mediawiki/includes/page/Article.php(604): PoolCounterWork->execute()
  12. 11 /var/lib/mediawiki/includes/actions/ViewAction.php(68): Article->view()
  13. 12 /var/lib/mediawiki/includes/MediaWiki.php(500): ViewAction->show()
  14. 13 /var/lib/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Object(Article), Object(Title))
  15. 14 /var/lib/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
  16. 15 /var/lib/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
  17. 16 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  18. 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')

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: REPLAC...', 1)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: REPLAC...', xxxxxxxxx, true, 1)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('REPLACE INTO `o...', 'REPLACE /* SqlB...', true, 'SqlBagOStuff::s...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2741): Wikimedia\Rdbms\Database->query('REPLACE INTO `o...', 'SqlBagOStuff::s...')
  5. 4 /var/lib/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(516): Wikimedia\Rdbms\Database->nativeReplace('`objectcache`', Array, 'SqlBagOStuff::s...')
  6. 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(361): Wikimedia\Rdbms\DatabaseMysqlBase->replace('objectcache', Array, Array, 'SqlBagOStuff::s...')
  7. 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(376): SqlBagOStuff->setMulti(Array, 30)
  8. 7 /var/lib/mediawiki/includes/libs/objectcache/BagOStuff.php(545): SqlBagOStuff->set('WANCache:v:my_w...', Array, 30)
  9. 8 /var/lib/mediawiki/includes/libs/objectcache/BagOStuff.php(310): BagOStuff->add('WANCache:v:my_w...', Array, 30)
  10. 9 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(488): BagOStuff->mergeViaCas('WANCache:v:my_w...', Object(Closure), 30, 1)
  11. 10 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(546): SqlBagOStuff->merge('WANCache:v:my_w...', Object(Closure), 30, 1)
  12. 11 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(373): WANObjectCache->set('my_wiki:jobqueu...', 1, 30)
  13. 12 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(293): JobQueueDB->claimRandom('xxxxxxxx...', xxxxxxxx, true)
  14. 13 /var/lib/mediawiki/includes/jobqueue/JobQueue.php(372): JobQueueDB->doPop()
  15. 14 /var/lib/mediawiki/includes/jobqueue/JobQueueGroup.php(263): JobQueue->pop()
  16. 15 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(167): JobQueueGroup->pop(1, 1, Array)
  17. 16 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
  18. 17 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
  19. 18 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
  20. 19 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
  21. 20 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
  22. 21 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
  23. 22 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  24. 23 {main}

[DBPerformance] Expectation (writes <= 0) by MediaWiki::restInPeace not met (actual: 2): query-m: UPDATE `job` SET job_token = 'X'

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: UPDATE...', 2)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: UPDATE...', xxxxxxx, true, 1)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('UPDATE `job` S...', 'UPDATE /* JobQu...', true, 'JobQueueDB::cla...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2010): Wikimedia\Rdbms\Database->query('UPDATE `job` S...', 'JobQueueDB::cla...')
  5. 4 [internal function]: Wikimedia\Rdbms\Database->update('`job`', Array, Array, 'JobQueueDB::cla...')
  6. 5 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(49): call_user_func_array(Array, Array)
  7. 6 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(300): Wikimedia\Rdbms\DBConnRef->__call('update', Array)
  8. 7 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(385): Wikimedia\Rdbms\DBConnRef->update('job', Array, Array, 'JobQueueDB::cla...')
  9. 8 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(293): JobQueueDB->claimRandom('xxxxxxxxxxxx...', xxxxxxxxx, true)
  10. 9 /var/lib/mediawiki/includes/jobqueue/JobQueue.php(372): JobQueueDB->doPop()
  11. 10 /var/lib/mediawiki/includes/jobqueue/JobQueueGroup.php(263): JobQueue->pop()
  12. 11 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(167): JobQueueGroup->pop(1, 1, Array)
  13. 12 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
  14. 13 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
  15. 14 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
  16. 15 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
  17. 16 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
  18. 17 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
  19. 18 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  20. 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'

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: UPDATE...', 3)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: UPDATE...', xxxxxxxx, true, 1)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('UPDATE `object...', 'UPDATE /* SqlBa...', true, 'SqlBagOStuff::c...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2010): Wikimedia\Rdbms\Database->query('UPDATE `object...', 'SqlBagOStuff::c...')
  5. 4 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(414): Wikimedia\Rdbms\Database->update('`objectcache`', Array, Array, 'SqlBagOStuff::c...')
  6. 5 /var/lib/mediawiki/includes/libs/objectcache/BagOStuff.php(313): SqlBagOStuff->cas(Array, 'WANCache:v:my_w...', Array, xxxxxxx)
  7. 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(488): BagOStuff->mergeViaCas('WANCache:v:my_w...', Object(Closure), 3600, 1)
  8. 7 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(546): SqlBagOStuff->merge('WANCache:v:my_w...', Object(Closure), 3600, 1)
  9. 8 /var/lib/mediawiki/includes/cache/BacklinkCache.php(376): WANObjectCache->set('my_wiki:numback...', 0, 3600)
  10. 9 /var/lib/mediawiki/includes/cache/BacklinkCache.php(323): BacklinkCache->getNumLinks('templatelinks', 1)
  11. 10 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(348): BacklinkCache->hasLinks('templatelinks')
  12. 11 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(312): LinksUpdate::queueRecursiveJobsForTable(Object(Title), 'templatelinks', 'edit-page', 'xxxxxxxx')
  13. 12 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(295): LinksUpdate->queueRecursiveJobs()
  14. 13 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(176): LinksUpdate->doIncrementalUpdate()
  15. 14 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(283): LinksUpdate->doUpdate()
  16. 15 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(126): RefreshLinksJob->runForTitle(Object(Title))
  17. 16 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(296): RefreshLinksJob->run()
  18. 17 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(193): JobRunner->executeJob(Object(RefreshLinksJob), Object(Wikimedia\Rdbms\LBFactorySimple), Object(BufferingStatsdDataFactory), xxxxxxx)
  19. 18 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
  20. 19 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
  21. 20 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
  22. 21 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
  23. 22 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
  24. 23 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
  25. 24 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  26. 25 {main}

[DBPerformance] Expectation (writes <= 0) by MediaWiki::restInPeace not met (actual: 4): query-m: UPDATE `page` SET page_links_updated = 'X' [xxxxxx]

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: UPDATE...', 4)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: UPDATE...', xxxxxxxxx, true, 1)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('UPDATE `page` ...', 'UPDATE /* Links...', true, 'LinksUpdate::up...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2010): Wikimedia\Rdbms\Database->query('UPDATE `page` ...', 'LinksUpdate::up...')
  5. 4 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(1132): Wikimedia\Rdbms\Database->update('`page`', Array, Array, 'LinksUpdate::up...')
  6. 5 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(299): LinksUpdate->updateLinksTimestamp()
  7. 6 /var/lib/mediawiki/includes/deferred/LinksUpdate.php(176): LinksUpdate->doIncrementalUpdate()
  8. 7 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(283): LinksUpdate->doUpdate()
  9. 8 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(126): RefreshLinksJob->runForTitle(Object(Title))
  10. 9 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(296): RefreshLinksJob->run()
  11. 10 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(193): JobRunner->executeJob(Object(RefreshLinksJob), Object(Wikimedia\Rdbms\LBFactorySimple), Object(BufferingStatsdDataFactory), xxxxxxx)
  12. 11 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
  13. 12 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
  14. 13 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
  15. 14 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
  16. 15 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
  17. 16 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
  18. 17 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  19. 18 {main}

[DBPerformance] Expectation (writes <= 0) by MediaWiki::restInPeace not met (actual: 5): query-m: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X')

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: REPLAC...', 5)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: REPLAC...', xxxxxxxxxx, true, 1)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('REPLACE INTO `o...', 'REPLACE /* SqlB...', true, 'SqlBagOStuff::s...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2741): Wikimedia\Rdbms\Database->query('REPLACE INTO `o...', 'SqlBagOStuff::s...')
  5. 4 /var/lib/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(516): Wikimedia\Rdbms\Database->nativeReplace('`objectcache`', Array, 'SqlBagOStuff::s...')
  6. 5 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(361): Wikimedia\Rdbms\DatabaseMysqlBase->replace('objectcache', Array, Array, 'SqlBagOStuff::s...')
  7. 6 /var/lib/mediawiki/includes/objectcache/SqlBagOStuff.php(376): SqlBagOStuff->setMulti(Array, 11)
  8. 7 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(1820): SqlBagOStuff->set('WANCache:v:my_w...', 'PURGED:xxxxxxxxxx', 11)
  9. 8 /var/lib/mediawiki/includes/libs/objectcache/WANObjectCache.php(618): WANObjectCache->relayPurge('WANCache:v:my_w...', 11, 0)
  10. 9 /var/lib/mediawiki/includes/actions/InfoAction.php(78): WANObjectCache->delete('WANCache:v:my_w...')
  11. 10 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(286): InfoAction::invalidateCache(Object(Title))
  12. 11 /var/lib/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(126): RefreshLinksJob->runForTitle(Object(Title))
  13. 12 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(296): RefreshLinksJob->run()
  14. 13 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(193): JobRunner->executeJob(Object(RefreshLinksJob), Object(Wikimedia\Rdbms\LBFactorySimple), Object(BufferingStatsdDataFactory), xxxxxxxxx)
  15. 14 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
  16. 15 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
  17. 16 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
  18. 17 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
  19. 18 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
  20. 19 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
  21. 20 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  22. 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'

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: DELETE...', 6)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: DELETE...', xxxxxxxxxxx, true, 1)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('DELETE FROM `jo...', 'DELETE /* JobQu...', true, 'JobQueueDB::doA...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2845): Wikimedia\Rdbms\Database->query('DELETE FROM `jo...', 'JobQueueDB::doA...')
  5. 4 [internal function]: Wikimedia\Rdbms\Database->delete('`job`', 'job_cmd = 'refr...', 'JobQueueDB::doA...')
  6. 5 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(49): call_user_func_array(Array, Array)
  7. 6 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(409): Wikimedia\Rdbms\DBConnRef->__call('delete', Array)
  8. 7 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(481): Wikimedia\Rdbms\DBConnRef->delete('job', Array, 'JobQueueDB::doA...')
  9. 8 /var/lib/mediawiki/includes/jobqueue/JobQueue.php(413): JobQueueDB->doAck(Object(RefreshLinksJob))
  10. 9 /var/lib/mediawiki/includes/jobqueue/JobQueueGroup.php(282): JobQueue->ack(Object(RefreshLinksJob))
  11. 10 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(195): JobQueueGroup->ack(Object(RefreshLinksJob))
  12. 11 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
  13. 12 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
  14. 13 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
  15. 14 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
  16. 15 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
  17. 16 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
  18. 17 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  19. 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'.

  1. 0 /var/lib/mediawiki/includes/libs/rdbms/TransactionProfiler.php(219): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writes', 'query-m: DELETE...', 6)
  2. 1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1256): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion('query-m: DELETE...', 1533050713.7156, true, 1)
  3. 2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1151): Wikimedia\Rdbms\Database->doProfiledQuery('DELETE FROM `jo...', 'DELETE /* JobQu...', true, 'JobQueueDB::doA...')
  4. 3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2845): Wikimedia\Rdbms\Database->query('DELETE FROM `jo...', 'JobQueueDB::doA...')
  5. 4 [internal function]: Wikimedia\Rdbms\Database->delete('`job`', 'job_cmd = 'refr...', 'JobQueueDB::doA...')
  6. 5 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(49): call_user_func_array(Array, Array)
  7. 6 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(409): Wikimedia\Rdbms\DBConnRef->__call('delete', Array)
  8. 7 /var/lib/mediawiki/includes/jobqueue/JobQueueDB.php(481): Wikimedia\Rdbms\DBConnRef->delete('job', Array, 'JobQueueDB::doA...')
  9. 8 /var/lib/mediawiki/includes/jobqueue/JobQueue.php(413): JobQueueDB->doAck(Object(RefreshLinksJob))
  10. 9 /var/lib/mediawiki/includes/jobqueue/JobQueueGroup.php(282): JobQueue->ack(Object(RefreshLinksJob))
  11. 10 /var/lib/mediawiki/includes/jobqueue/JobRunner.php(195): JobQueueGroup->ack(Object(RefreshLinksJob))
  12. 11 /var/lib/mediawiki/includes/MediaWiki.php(1002): JobRunner->run(Array)
  13. 12 /var/lib/mediawiki/includes/MediaWiki.php(988): MediaWiki->triggerSyncJobs(1, Object(MediaWiki\Logger\LegacyLogger))
  14. 13 /var/lib/mediawiki/includes/MediaWiki.php(912): MediaWiki->triggerJobs()
  15. 14 /var/lib/mediawiki/includes/MediaWiki.php(727): MediaWiki->restInPeace('normal', true)
  16. 15 /var/lib/mediawiki/includes/MediaWiki.php(750): MediaWiki->{closure}()
  17. 16 /var/lib/mediawiki/includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown('normal')
  18. 17 /var/lib/mediawiki/index.php(42): MediaWiki->run()
  19. 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'.

Daniel schuerhoff (talkcontribs)
Cindy.cicalese (talkcontribs)

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.

Daniel schuerhoff (talkcontribs)

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.

1.31 Snapshot unfortunately empty excepting the version and git files

2
Summary by Cindy.cicalese

Don't use release branches, since this extension uses the master compatibility policy.

2A00:8A60:1:F0:60:C42:9C9A:D5D2 (talkcontribs)

The master version is downloadable, but the default (1.31 latest stable Mediawiki) download only contains Version and git files.

Cindy.cicalese (talkcontribs)
There are no older topics