Page MenuHomePhabricator

Problems with WikiLove in ckb Wikipedia: wikilove_log DB not existing; gadget issue
Closed, ResolvedPublic

Description

Hello! Currently, there seems to be an issue with WikiLove in the ckb Wikipedia. Whenever I try to send a WikiLove it gives out an error and tells me the message has not been sent and requests that I try again, and it gives out same errors when I try again. I have discussed this locally and I’m not the only user with this issue. I request someone to look at the codes to see what’s the issue, it was okay sometime ago, I believe someone has edited it and caused a bug.

Event Timeline

Epine created this task.Jul 11 2018, 3:00 PM
Restricted Application added a project: Growth-Team. · View Herald TranscriptJul 11 2018, 3:00 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Reedy added a subscriber: Reedy.Jul 11 2018, 3:22 PM

What is the error? Can you paste it or screenshot it?

Aklapper changed the task status from Open to Stalled.Jul 11 2018, 8:10 PM

Hi @Epine, thanks for taking the time to report this!
Unfortunately this report lacks some information. If you have time and can still reproduce the problem: Please add a more complete description to this report.
That should be a clear list of specific steps to reproduce the situation, expected outcome, and actual outcome.
You can edit the task description by clicking Edit Task.
Ideally, exact and clear steps to reproduce should allow any other person to follow these steps (without having to interpret those steps) and see the same results. Problems that others can reliably reproduce can get fixed faster. Thanks!

Epine added a comment.Jul 11 2018, 9:33 PM

@Reedy & @Aklapper the exact translation for the error is this: Something went wrong when sending the message. Please try again. the system gives out this error in the final stages of composing the message (after you have chosen the WikiLove banner and press send or send message). You can try it for yourselves at the ckb wiki. That’s all the details I could give, I don’t know what is causing the error but it’s defintley not a local error.

Epine added a comment.Jul 11 2018, 9:59 PM

@Reedy what does this mean?

Something is broken

Can you disable the ArabicLetterConvertor gadget and see if that fixes it?

That seems to be where the error is

@Reedy & @Aklapper I removed the gadget completely as it’s not working at all anyway. But the error still persists.

No it's not, but it's a completely different error

2018-07-11 22:14:10 [W0aBMgpAEDEAAHiETeAAAAAA] mw1284 ckbwiki 1.32.0-wmf.10 exception ERROR: [W0aBMgpAEDEAAHiETeAAAAAA] /w/api.php   Wikimedia\Rdbms\DBTransactionStateError from line 1303 of /srv/mediawiki/php-1.32.0-wmf.10/includes/libs/rdbms/database/Database.php: Cannot execute query from Block::newLoad while transaction status is ERROR. {"exception_id":"W0aBMgpAEDEAAHiETeAAAAAA","exception_url":"/w/api.php","caught_by":"mwe_handler"} 
[Exception Wikimedia\Rdbms\DBTransactionStateError] (/srv/mediawiki/php-1.32.0-wmf.10/includes/libs/rdbms/database/Database.php:1303) Cannot execute query from Block::newLoad while transaction status is ERROR.
  #0 /srv/mediawiki/php-1.32.0-wmf.10/includes/libs/rdbms/database/Database.php(1087): Wikimedia\Rdbms\Database->assertTransactionStatus(string, string)
  #1 /srv/mediawiki/php-1.32.0-wmf.10/includes/libs/rdbms/database/Database.php(1640): Wikimedia\Rdbms\Database->query(string, string)
  #2 /srv/mediawiki/php-1.32.0-wmf.10/includes/Block.php(349): Wikimedia\Rdbms\Database->select(array, array, string, string, array, array)
  #3 /srv/mediawiki/php-1.32.0-wmf.10/includes/Block.php(1195): Block->newLoad(string)
  #4 /srv/mediawiki/php-1.32.0-wmf.10/includes/user/User.php(1846): Block::newFromTarget(User, string, boolean)
  #5 /srv/mediawiki/php-1.32.0-wmf.10/includes/user/User.php(2273): User->getBlockedStatus(boolean)
  #6 /srv/mediawiki/php-1.32.0-wmf.10/includes/user/User.php(2263): User->getBlock(boolean)
  #7 /srv/mediawiki/php-1.32.0-wmf.10/includes/user/User.php(2287): User->isBlocked(boolean)
  #8 /srv/mediawiki/php-1.32.0-wmf.10/includes/Title.php(2565): User->isBlockedFrom(Title, boolean)
  #9 /srv/mediawiki/php-1.32.0-wmf.10/includes/Title.php(2734): Title->checkUserBlock(string, User, array, string, boolean)
  #10 /srv/mediawiki/php-1.32.0-wmf.10/includes/Title.php(2132): Title->getUserPermissionsErrorsInternal(string, User, string)
  #11 /srv/mediawiki/php-1.32.0-wmf.10/includes/api/ApiBase.php(2105): Title->getUserPermissionsErrors(string, User)
  #12 /srv/mediawiki/php-1.32.0-wmf.10/includes/api/ApiEditPage.php(120): ApiBase->checkTitleUserPermissions(Title, string)
  #13 /srv/mediawiki/php-1.32.0-wmf.10/includes/api/ApiMain.php(1584): ApiEditPage->execute()
  #14 /srv/mediawiki/php-1.32.0-wmf.10/includes/api/ApiMain.php(504): ApiMain->executeAction()
  #15 /srv/mediawiki/php-1.32.0-wmf.10/extensions/WikiLove/ApiWikiLove.php(80): ApiMain->execute()
  #16 /srv/mediawiki/php-1.32.0-wmf.10/includes/api/ApiMain.php(1584): ApiWikiLove->execute()
  #17 /srv/mediawiki/php-1.32.0-wmf.10/includes/api/ApiMain.php(535): ApiMain->executeAction()
  #18 /srv/mediawiki/php-1.32.0-wmf.10/includes/api/ApiMain.php(506): ApiMain->executeActionWithErrorHandling()
  #19 /srv/mediawiki/php-1.32.0-wmf.10/api.php(83): ApiMain->execute()
  #20 /srv/mediawiki/w/api.php(3): include(string)
  #21 {main}

And for reference, $.browser is deprecated and removed from ooold jQuery

https://api.jquery.com/jquery.browser/

So if you want that gadget to work, someone needs to update it

@Reedy that’s not really important, I did some research and saw that it wasn’t really important for us anymore, maybe that’s why no one was maintaining it. Anyway, what seems to be the issue this time? Is it local or not?

Mentioned in SAL (#wikimedia-operations) [2018-07-11T22:23:12Z] <Reedy> created wikilove_log on ckbwiki T199336

Thank you so much for the help @Reedy! Strange how it only stopped working after awhile, because at first it didn’t have any issues.

Aklapper renamed this task from Problem with WikiLove in ckb Wikipedia to Problems with WikiLove in ckb Wikipedia: wikilove_log DB not existing; gadget issue.Jul 12 2018, 12:20 AM