[04:58:30] When exporting templates/modules from one wiki into a different wiki that is not part of the farm/cluster/network, what is ideal way to keep the template/module pages imported synchronized with the source wiki? https://mediawiki.org/w/api.php?action=help&modules=import states "For interwiki imports: import the full history, not just the current version." but what if I don't want the full history, and only the history after [04:58:30] a specific revision? [05:01:08] for attribution purposes you really should have the full history [05:01:36] as for keeping things synced, I don't think there really is an ideal way [05:01:48] automated updates might be reasonable for some templates but certainly not all [05:02:18] since changes may bring further automated checking or parameter deprecations that you will want to attend to in your uses. [05:02:30] or be aware of, before importing [05:03:13] > you really should have the full history [05:03:29] Izno, yes, I already have the full history, and don't need it during updates [05:03:44] and by this I probably mean for the first import; subsequent imports can probably just reference the unique ID of the revision of the page you're copying from [05:03:52] which it sounds like your plan [05:11:48] missed anything after "which it sounds like your plan" [05:13:39] nothing was sent [05:51:14] Oh https://mediawiki.org/wiki/Manual:Parameters_to_Special:Export mentions: Limiting Results, offset: The timestamp at which to start, which is non-inclusive. This looks like exactly what I was asking about, and I guess "Not all of these are available through the Special:Export UI." means this is one of those things that is not included. [06:11:42] The API sandbox doesn't have an export action. How come? [06:13:10] or is the export capability not part of the API? [06:14:14] Perhaps I must enable the export api "Keep in mind that that exporting is still possible, if you have the API enabled." [06:24:11] Ah, if I can create a special wiki page with links to all the pages in the Template and Module namespaces (note: I have configured these to be exact mirror duplicate copies of Wikipedia/Mediawiki,Wipimedia Commons official sources, and no local edits possible), where clicking the link for each specific page would query an export/import process if the article is out of date, then I can simplify this process to be manually [06:24:11] triggered, yet still automated in the backend [06:27:19] but I might have to create my own solution since I'd want to include all the templates, except, filter out namespaces that are unnecessary, especially filter out the main namespace pages [07:00:44] hello , I am stuck somewhere while setting up the mediawiki development environment , can anyone help me ? [07:10:20] Guest53, I am still somewhat new myself, but I can try to help. [10:21:32] Hi, I get the upgrade1_5.php running. But it throws a Fatall error: Call to undefined function symlink() in FiveUpgrade.inc on line 769. [10:22:40] Could you help me to identify the reason? [10:24:20] Forest: symlink() is a core PHP function. I would be surprised if its "undefined" on your installation https://www.php.net/manual/function.symlink.php [10:41:00] Vulpix: yeah it would supprise, but that is the message. I fear it depends on the name of files to copy. [13:46:20] Vulpix: after several test it really looks like the function is undefined. Can't explain why. As I'm not so familiar to php could you give me a tipp where symlink should be configured? [13:53:24] Forest: Your hosting provider may have disabled that function to prevent abuse or as a security measure [13:54:30] Also you may be using a very very old php version, or be on Windows [13:55:18] Vulpix: it's an inherited system coming from Shadow-IT. It has php 4.4.0 [13:55:34] on windows [13:56:02] The error makes sense, then [13:57:12] I wan't to transfer it to a new server but I need to solve the mediawiki update to 1.5 on the current one. [14:01:11] You can comment-out the relevant lines. Looks like it's inside an "if". You'll need to comment-out 3 consecutive lines [14:01:40] PHP 4.4.0? wow, dang, that's ancient o___O [14:01:57] as it's MediaWiki 1.5 :D [14:02:22] I'm surprised that MediaWiki 1.5 works at all on Windows [14:04:12] heh, indeed, 1.5 was released...a while ago, yeah; it was a big release at the time ;-) [14:09:46] yeah it's a heriloom for museum ;) But still used and as usual important for the users [15:57:40] Vulpix: your comment-out tipp worked. Due the update my wiki lost a lot of linked files and also changed the navigation links. I'll try to analyze it next days. Thanks for your help [21:45:48] does anyone have any experience changing URL's from /index.php/$1 to /wiki/$1 and could help me out? [21:47:00] what have you tried already and what didn't work? [21:47:14] what webserver software are you using? [21:47:54] Apache through A2 Hosting. [21:48:32] I've tried [21:48:33] .htaccess: [21:48:33] RewriteEngine On [21:48:34] # main rewrite rule [21:48:34] RewriteRule ^/?wiki(/.*)?$ /w/index.php [L] [21:48:35] # Redirect / to Main Page [21:48:35] RewriteRule ^/*$ /w/index.php [L] [21:48:36] and, in LocalSettings.php: [21:48:36] $wgScriptPath = ""; [21:48:37] $wgArticlePath = "/wiki/$1"; [21:48:38] but just gives me a 404 [21:49:09] that all assumes your wiki files are in a subdirectory named "w" [21:49:11] is that the case? [21:49:28] (note: it is best practice to not have the wiki files directly in your website root, hence why the guides all do that) [21:50:57] I would recommend creating a subdirectory called w and moving all of the wiki files there (keep the .htaccess directly in the website root, however) [21:50:59] no, but I also tried [21:50:59] RewriteEngine On [21:51:00] RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/spicewars.whiki.xyz/index.php [L] [21:51:00] RewriteRule ^/*$ %{DOCUMENT_ROOT}/spicewars.whiki.xyz/index.php [L] [21:51:11] if you do not wish to do that, then remove the /w part from the original bit you pasted [21:51:21] so that it reads /index.php instead of /w/index.php [21:53:00] (if you move the wiki files to a new directory called w, you will need to update $wgScriptPath = '/w';) [21:55:06] I tried [21:55:06] RewriteEngine On [21:55:07] # main rewrite rule [21:55:07] RewriteRule ^/?wiki(/.*)?$ /index.php [L] [21:55:08] # Redirect / to Main Page [21:55:08] RewriteRule ^/*$ /index.php [L] [21:55:09] and that didn't work either? [21:58:23] that should have worked (although I will note the final rewrite rule for /* is superfluous -- the server will do that by default anyway when your files live in the site root) [21:58:34] Ah I figured it out. My .htaccess file was in the wrong place. [21:58:44] Thanks for the insight! :)