Page MenuHomePhabricator

Error message displayed when Commons cannot access the database proposes users to search on Google
Closed, DuplicatePublic

Description

Error message displayed:

Cannot access the database: Cannot access the database: MySQL server has gone away (10.64.16.104)

And then:

You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.

./includes/exception/MWExceptionRenderer.php:			'You can try searching via Google in the meantime.'
./languages/i18n/en.json:	"dberr-usegoogle": "You can try searching via Google in the meantime.",

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 10 2018, 4:41 PM

It is unclear what this task is about and what the bug is.
Do you expect to not propose to search on Google? Something else?
("Expected behavior" welcome, assuming the task description describes the current behavior.)

Aklapper updated the task description. (Show Details)Jan 10 2018, 5:10 PM

If I'm correct, search on Google is not compatible with our usual privacy rules.

The usual message I see when a service is off is the Wikimedia error page. At least, have that page would be good for consistency.

zhuyifei1999 added a subscriber: zhuyifei1999.

(This is not related to normal operation of Commons, nor it is something we have customized, hence removing tag)

CKoerner_WMF added a comment.EditedAug 21 2018, 8:17 PM

I think I understand the desire to show the user something when there's an error like this, but the idea of hard-coding a reference to Google in Mediawiki core strikes me as a little like dunking a delicious cookie in water (pretty gross).

I would suggest this be removed. Or made configurable so that wiki owners could op-out of sending visitors to Google. If that's not desirable, may I suggest DuckDuckGo (duckduckgo.com/privacy) as a better alternative?

MWExceptionRenderer.php is where this bit of code lives if you're interested.

Krenair added a subscriber: Krenair.Nov 9 2018, 6:22 PM