[01:21:18] Jdlrobson: hi, could https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/3e6a240c4852f120ab787c45b922d36afa9a3869 have broken visual editor [01:21:53] we've had a few users for Citizen complain about VE at Miraheze timing with when that was deployed [01:22:23] https://github.com/StarCitizenTools/mediawiki-skins-Citizen/issues/435 [06:50:43] spamprotectiontext On my wiki, i triggered spam blacklist when trying to post something, and MediaWiki:Spam-blacklist is blank [06:51:01] I temporarily disabled the SpamBlacklist extension and then it worked [07:19:55] I think default config includes Wikimedia meta's [07:20:03] ryzenda: ^ [07:20:05] After I grant: "In order to complete your request, Citation bot needs permission to perform the following actions on your behalf on all projects of this site:" how do I remove the grant? [07:20:53] https://meta.wikimedia.org/wiki/Special:OAuthManageMyGrants [07:20:59] or on whichever wiki [07:24:15] RhinosF1, Thanks. Where can I find a link to that navigating MediaWiki site? For example on https://meta.wikimedia.org/wiki/ [07:24:49] ryzenda: to what? [07:25:20] I don't see it listed on https://meta.wikimedia.org/wiki/Special:SpecialPages [07:25:37] So I can remember where to find it next time. I'll probably forget memorizing the URL path. [07:26:31] oh, I see "manage connected applications" [07:26:36] that's the one [07:27:06] yes that [08:27:57] Page https://mediawiki.org/wiki/Improving_URL_citations_on_Wikimedia links to https://en.wikipedia.org/wiki/Help:Citation_tools%7C (with %7C at the end) for link in "For more, see Help:Citation_tools" [08:40:05] Fixed [10:15:35] Does anyone have experience with SharedDB for users? I'm having difficulty setting one up. [10:35:01] If anyone has any idea about how to solve this: https://www.mediawiki.org/wiki/Topic:Wrx7a03lq7pk4xhy would be appreciated :) [10:48:44] AnnoyingOrange: Your error message gives no details. Set $wgShowExceptionDetails = true; in LocalSettings.php and try again to get a more descriptive error message [10:52:25] @vulpix I get this: https://dpaste.org/DW9c [10:52:59] Looks like a permission error [10:54:09] "Error 1142: SELECT command denied to user 'wiki2'@'localhost' for table 'mwbj_actor' (localhost)" would probably be your issue [10:54:43] check that your wiki2 user has the correct permissions/password [11:03:31] How do I ensure that it has the correct permissions? It looks fine in cPanel? [11:22:52] Okay, I've been able to grant the users, but now when I try to log in, I'm getting the error that the action has been cancelled to protect against hijacking? [11:32:08] AnnoyingOrange: See https://www.mediawiki.org/wiki/Manual:How_to_debug/Login_problems [15:26:04] Hi, I hope you are doing fine. [15:26:07] I have a question. :) [15:26:32] I'm upgrading one wiki from MediaWiki 1.29 to the latest 1.37. But I'm not doing it directly from 1.29 to 1.37, but in steps. [15:26:42] i did an upgrade from 1.29 to 1.31 and it is working fine. [15:26:54] Now, on which version I should upgrade from 1.31 to? [15:27:02] 1.34 or 1.35 [15:28:31] You should be fine going to 1.37 from 1.29 [15:29:50] I'm asking because of actors. [15:30:28] I don't want to get the wiki broken again. [15:33:27] Reedy: Sorry, if you responded, I wasn't able to see your answer. [15:33:42] On my last message about actors. [15:33:55] There wasn't much to reply to [15:33:58] The answer is still the same [15:34:03] Upgrade is in theory supported [15:34:20] If it isn't going to work across multple versions, it probably wouldn't going up in steps either [15:34:57] Thanks, I'll do it directly, but I'll generate backup just in case. Thank you Reedy! [15:35:00] Have a nice day! [17:12:16] Hi all [18:06:04] Hi [18:08:59] Mediawiki vector skin help please [18:09:10] Ho to add custom button menu [18:09:52] Like page besides [18:16:14] andre [18:16:17] Here [18:16:23] @andre [18:16:24] add how? via an extension? [18:16:33] via javascript? [18:17:14] You mean victor.js [18:17:44] But I'm can't find Victor.js [18:18:50] if you want to do it via javascript, it's MediaWiki:Vector.js (check your spelling) for site-wide changes or User:Yourusername/vector.js for things specific to your account [18:19:04] otherwise you can do it via a js page rolled into a Gadget if the Gadgets extension is installed [18:21:25] Hi [18:21:28] https://www.wikidoc.org/index.php/The_WikiDoc_Living_Textbook_of_Anesthesiology [18:21:53] Can you see page button besides home button [18:21:55] How to add this [18:22:30] moonmoon I went to add this can you give me this script [18:22:50] Page is there by default in vector, although the exact name of the tab will vary by the page's namespace [18:23:04] the Home one there is something custom, and I'm not sure how they added it [18:23:26] it looks like they performed a number of customizations on the skin itself [18:24:14] Yeah [18:25:41] https://en.wikicyclopedia.xyz/wiki/Main_Page [18:25:49] I'm same customize [18:25:54] On my wiki [18:26:11] But I'm can't add home button [18:28:24] moonmoon Can you tell me how I can add this button [18:36:52] Hi [21:09:13] I'm investigating the "Sorry! We could not process your edit due to a loss of session data." messages I get, testing in my dev mediawiki enironment with $wgSessionCacheType = CACHE_ACCEL; (APCu) and glancing at the output from the apc.php script (from https://pecl.php.net/package/APCu) mentioned in https://www.mediawiki.org/wiki/Manual:Performance_tuning [21:09:41] I just edited a post, and got that message,and glanced at the output of apc.php script and I am confused why that error messsage is showing up. [21:10:06] Free: 124.8 MBytes (97.5%) Hits: 3854 (60.8%) Used: 3.2 MBytes (2.5%) Misses: 2490 (39.2%) [21:10:20] that is from a refresh of apc.php right after the error [21:13:19] Searching for "session" in the "User Cache Entries" page, I see 1 match: 1 hit 744 size 2022/03/17 14:11:39 last accessed 2022/03/17 14:11:38 last modified 2022/03/17 14:11:38 created at 3599 seconds timeout [21:15:34] Cache Information Cached Variables 272 ( 1.5 MBytes) Hits 610 [21:15:34] Misses 346 Request Rate (hits, misses) 68.29 cache requests/second Hit Rate 43.57 cache requests/second Miss Rate 24.71 cache requests/second Insert Rate 20.14 cache requests/second Cache full count 0 [21:21:35] Debugging in mediawiki-1.37.1/includes/EditPage.php I see the error message is coming from line 4059 as stored in the $note variable because this condition is evaluated as true: ( $this->mTriedSave && !$this->mTokenOk ) [21:23:22] During error, $this->mTriedSave equals true and $this->mTokenOk equals false [21:27:49] Same values at the very beginning of the getPreviewText() function call. I shall try to find what is calling this function [21:28:29] ryzenda: well the problem is thankfully easy [21:28:34] you identified it yourself :) [21:28:38] $wgSessionCacheType = CACHE_ACCEL; [21:28:40] don't do that [21:28:55] apcu is not persistent enough to act as a session cache [21:29:02] either use memcached/redis, or use the database [21:32:25] if your php process restarts on each request (such as fastcgi), or it just restarts after a period of time, or your server reboots, etc. you'll lose all of your session data. Which is terrible for a production wiki even if there wasn't a potential bug lurking around the session handling [21:33:26] I am using a shared webhosting environment and it does not seem possible to use memcached or redis, and I can't afford to pay for an environment to run those servers at this time, so I'm trying to find an optimal way to work with the environment that I have. [21:34:08] but I think I understand what you mean re: CACHE_ACCEL. I didn't realize that the data is not persistent enough. [21:34:14] CACHE_DB then for sessions [21:34:36] I was hoping to figure out a way to identify why the data is not persisting [21:34:37] definitely use CACHE_ACCEL for your MainCacheType, but it's very unsuitable for sessions imo [21:34:53] it's a shared hosting environment, they're probably killing your php processes on you after a period of inactivity [21:35:00] which also kills your cache [21:39:15] Yep. I see the php process is defunct 30 seconds after the request