Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems with 1.34.0 mediawiki #1

Open
gundestrup opened this issue Dec 21, 2019 · 3 comments
Open

problems with 1.34.0 mediawiki #1

gundestrup opened this issue Dec 21, 2019 · 3 comments

Comments

@gundestrup
Copy link

[21-Dec-2019 07:01:22 UTC] PHP Warning: Use of undefined constant DB_SLAVE - assumed 'DB_SLAVE' (this will throw an Error in a future version of PHP) in /home/svgu/mednote.dk_generic/mediawiki-1.34.0/extensions/LiteSpeedCache/LiteSpeedCache_body.php on line 316
[21-Dec-2019 07:01:33 UTC] PHP Warning: Use of undefined constant DB_SLAVE - assumed 'DB_SLAVE' (this will throw an Error in a future version of PHP) in /home/svgu/mednote.dk_generic/mediawiki-1.34.0/extensions/LiteSpeedCache/LiteSpeedCache_body.php on line 316
[21-Dec-2019 07:01:35 UTC] PHP Warning: Use of undefined constant DB_SLAVE - assumed 'DB_SLAVE' (this will throw an Error in a future version of PHP) in /home/svgu/mednote.dk_generic/mediawiki-1.34.0/extensions/LiteSpeedCache/LiteSpeedCache_body.php on line 316
[21-Dec-2019 07:01:39 UTC] PHP Warning: Use of undefined constant DB_SLAVE - assumed 'DB_SLAVE' (this will throw an Error in a future version of PHP) in /home/svgu/mednote.dk_generic/mediawiki-1.34.0/extensions/LiteSpeedCache/LiteSpeedCache_body.php on line 316
[21-Dec-2019 07:02:00 UTC] PHP Warning: Use of undefined constant DB_SLAVE - assumed 'DB_SLAVE' (this will throw an Error in a future version of PHP) in /home/svgu/mednote.dk_generic/mediawiki-1.34.0/extensions/LiteSpeedCache/LiteSpeedCache_body.php on line 316
[21-Dec-2019 07:02:18 UTC] PHP Warning: Use of undefined constant DB_SLAVE - assumed 'DB_SLAVE' (this will throw an Error in a future version of PHP) in /home/svgu/mednote.dk_generic/mediawiki-1.34.0/extensions/LiteSpeedCache/LiteSpeedCache_body.php on line 316

@gundestrup
Copy link
Author

disabling the plugin, makes medaiwiki run again

@wuhua68
Copy link

wuhua68 commented Dec 23, 2019

Thanks for reporting, I just fixed this bug, you can download from git and try again, Thanks.

@skizzerz
Copy link

Note that if you really want to read from a replica database (because it's more important for a query to be performant than it is to ensure that the data read is 100% up to date), the correct constant to use is DB_REPLICA. The DB_SLAVE constant was deprecated and replaced with DB_REPLICA a while back, and finally removed entirely as of 1.34.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants