Git Product home page Git Product logo

lscache_mediawiki's People

Contributors

litespeedtech avatar wuhuachen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lscache_mediawiki's Issues

problems with 1.34.0 mediawiki

thrown in /home/(user)/public_html/includes/registration/ExtensionRegistry.php on line 136
[24-Mar-2020 16:25:37 America/New_York] PHP Fatal error: Uncaught Exception: Unable to open file /home/(user)/public_html/extensions/LiteSpeedCache/extension.json: filemtime(): stat failed for /home/(user)/public_html/extensions/LiteSpeedCache/extension.json in /home/(user)/public_html/includes/registration/ExtensionRegistry.php:136
Stack trace:
#0 /home/(user)/public_html/includes/GlobalFunctions.php(52): ExtensionRegistry->queue('/home/(user)/...')
#1 /home/(user)/public_html/LocalSettings.php(205): wfLoadExtension('LiteSpeedCache')
#2 /home/(user)/public_html/includes/Setup.php(124): require_once('/home/mscpsgeo/...')
#3 /home/(user)/public_html/includes/WebStart.php(81): require_once('/home/mscpsgeo/...')
#4 /home/(user)/public_html/index.php(41): require('/home/mscpsgeo/...')
#5 {main}
thrown in /home/(user)/public_html/includes/registration/ExtensionRegistry.php on line 136

Mediawiki serving additional cookies breaks LiteSpeedCache

Going to cite a long forum thread here discussing this issue, and hoping others could look at it and at least confirm the problem. I have always used Google Analytics for my wiki, and have served ads (which, among other things, means cookies for consent and ad tracking) before. Trying to move from Nginx+Varnish to OLS+LS Cache because of how simple this plugin made it seem, but I kept bashing my head into not actually getting cache working in browser -- the LS cache check site (which ignores cookies) had no problem getting hits, but as soon as a real visitor visited, problems ensued.

As far as I can tell, as soon as any other cookies are put by the wiki by scripts (e.g. the Gtag extension to enable Google Analytics), LiteSpeedCache can no longer successfully cache pages for users. This, on a straightforward install of OLS and Mediawiki 1.39.6, with the latest versions of the extensions.

Can anyone using this plugin confirm that Gtag being added to a site will break the ability to cache? And, if so, does anyone know how to modify the extension so it simply ignores these other cookies?

problems with 1.34.0 mediawiki

[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

Logged in user showing on cached pages, even when logged out

The cached pages for my site are showing my name in the top right as the logged-in user, even after I have logged out and when browsing from a device I have not logged into before. Is it possible for the cached pages to ignore the username/user settings part of the page? I'm running Mediawiki 1.39.3 on the Timeless skin.

PHP Deprecated - since 1.37

[email protected] [~/mednote.dk_generic/mediawiki-1.40.1]# [30-Sep-2023 14:06:20 UTC] PHP Deprecated: Use of MediaWiki\Title\Title::$mUrlform was deprecated in MediaWiki 1.37. [Called from LiteSpeedCache::getTags in /home/svgu

Deprecated addWikiText() causes issue MediaWiki 1.32+

When visiting the Special:LiteSpeedCache page to enable the plugin for the first time, the script breaks with the following error: /index.php/Special:LiteSpeedCache Error from line 131 of */extensions/LiteSpeedCache/SpecialLiteSpeedCache.php: Call to undefined method OutputPage::addWikiText()

A condtional needs to be added to that section to check if "addWikiTextAsInterface" exists, and then to use that instead of addWikiText(). Here's an example of the fix: https://phabricator.wikimedia.org/rEPFM59c1d49f8d43af087eed9d3868576155b91e8125

Call to undefined method OutputPage::addWikiText

I just installed the master version of this extension to my MediaWiki site running on 1.34 and when I am visiting the Special page to activate I'm seeing the following issue.

/extensions/LiteSpeedCache/SpecialLiteSpeedCache.php: Call to undefined method OutputPage::addWikiText()

Backtrace:

#0 /extensions/LiteSpeedCache/SpecialLiteSpeedCache.php(64): SpecialLiteSpeedCache->showView(boolean)
#1 /includes/specialpage/SpecialPage.php(575): SpecialLiteSpeedCache->execute(NULL)
#2 /includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)
#3 /includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#4 /includes/MediaWiki.php(900): MediaWiki->performRequest()
#5 /includes/MediaWiki.php(527): MediaWiki->main()
#6 /index.php(44): MediaWiki->run()
#7 {main}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.