[08:00:28] it's a new sort of spam ? "Affiliation: Amazon Alexa" [11:15:03] I'm running into this: [11:15:04] PHP Warning: require(/var/www/mediawiki/vendor/composer/../wikimedia/at-ease/src/MediaWiki/Functions.php): failed to open stream: No such file or directory in /var/www/mediawiki/vendor/composer/autoload_real.php on line 70 [11:15:20] MediaWiki/Functions.php doesn't exist, Wikimedia/Functions.php does... [11:15:46] happens since Updating wikimedia/at-ease (v1.2.0 => v2.0.0): Downloading (100%) [11:17:49] hm... composer dump-autoload apparently fixed it? That was odd o_O [11:27:14] Hi, beeing a (wiki) newbe i have one principle question using the wikimedia api: is is possible to add, change or delete a wiki page? Would like to create a page with dynamic contents (changes once a week). [11:28:56] plannig to replace the OSM Software Watchlist (https://wambachers-osm.website/index.php/10-osm-reports/1602-countries-compare-2019-05-21) using a dynamic web page. [11:29:16] plannig to replace the OSM Software Watchlist (https://wambachers-osm.website/index.php/10-osm-reports/1602-countries-compare-2019-05-21) using a dynamic wiki web page. [11:31:04] of course using wiki.osm.org which is a wikimediea clone, i think. [12:16:55] hello [12:17:15] can someone help me with the errormessage at using php update.php [12:17:43] https://pastebin.com/mgDX3PSL [12:39:26] my error occurs on the update.php call after i imported my DB backup [14:04:32] is it possible to WRITE wiki pages using the api? nobody got an answer? [14:04:55] don't need to know how to do it, only if this is possible. [14:06:17] wambacher: it is possible. see tools like [[WP:AWB]] [14:07:56] @dennis: thanks [14:56:59] hello, room. Quick Question, is there a way to disable caching in mediawiki? My changes take such a long time to take effect... [14:57:25] I already have: $wgMainCacheType = CACHE_NONE; and $wgEnableParserCache = false; [16:29:27] https://pastebin.com/mgDX3PSL [16:29:50] can someone help me on this error (php update.php) ... once i re-imported my DB backup [16:37:58] Hello folks. At our company, we have a MediaWiki instance running for a client, which acts as reference manual for a piece of software we supplied to them. For various reasons, they want the complete manual to be available in print as well. So my team has located the 'Collections' extension, which also provides Wikipedia's 'Create a book' functionality. However, this extension has PDF export disabled since quite some time, apparently due to lack [16:37:58] of development on the electron backend docker render service. [16:38:53] So, I implemented a Docker container based on the suggested replacement for the NodeJS providing the rendering browser in a container. [16:39:43] i need help with my mediawiki installation, i wanted to re-import my DB and now it the wiki does not work anymore. Error occurs on php update.php (https://pastebin.com/mgDX3PSL) [16:41:06] Then I reverted the "Service disabled"-parts of the Collections extensions and implemented a new render service, 'url-to-pdf' (Using the API provided by https://github.com/alvarcarto/url-to-pdf-api), copying the most parts of the electron render service. [16:42:12] I think I am fairly close to a solution that could also be used by the Collections extension, thereby fixing all MediaWiki instances that currently lack PDF rendering capabilities. [16:43:29] I have read through many bug reports and the relevant wiki pages. My first question is though: Are there people trying to fix this right now? [16:47:22] I didn't say this yet: I am a system administrator by profession, and though I have quite some experience in development as well, my PHP skills aren't sharp. Fortunately, we have some people that can help me with this at our company. It is still a big task to understand a codebase as large as MediaWiki's, the language notwithstanding. [16:48:06] (Or even understanding the parts you need to to accomplish the task I have in mind.) [16:51:16] Surfer2011, it is unclear from which version of MediaWiki you are trying to upgrade. Did you read the release notes? Did you already try to fix this issue before you came here? [16:52:08] ^yes i tried a lot .... i don't know which version the DB backup came from ... i moved it after not upgrading it for at least 2 years to a new server [16:52:28] the db dump i have i would love to put into the new installed system (new domain, new server) [16:56:54] Surfer2011, I don't know a lot about MediaWiki, but I assume the version is stored in your database dump somewhere, you might use a search engine or be lucky and someone here hint you to it. I strongly suspect you will have to do your upgrades in steps, e.g. (MADE UP, not relevant to this project) 0.3->1.0->2.0->2.5 . [16:58:18] Surfer2011, you could also, if you know it is at least 2 years old (look at the modification date of the dump), pull a version from back then and afterwards follow the upgrade dance until you arrive at the present version. [16:58:28] in the pastebin link is the error ... from the update command [16:59:02] Surfer2011, I looked there, but it only seems to report the version to upgrade to, not the version it is upgrading from, which is a pity. [16:59:37] Surfer2011, I assume this is a clean install with no extra Extensions enabled? [17:00:03] yes [17:01:16] Surfer2011, when was your backup last modified? [17:01:41] dunno for sure [17:01:48] check the file [17:02:09] Are you on a graphical desktop environment? [17:02:38] Are you using MacOS or Windows? [17:02:57] no just ssh and the original mediawiki is not running anymore ... server broke ... [17:02:57] but i got all the http-file directory of the mediawiki as well as the db dump [17:03:54] hello [17:04:09] i want to change my media wiki font [17:04:17] i only have ttf file of font [17:04:19] what to do ? [17:04:30] a_, modify the CSS [17:04:46] where upload ttf file ? [17:04:48] a_, of your skin [17:05:00] a_, where you define it in the CSS [17:06:00] Surfer2011, you can use the ls command with flags -lt , a.k.a. `ls -al /path/to/mydatabase.dump` [17:06:07] when i go to define it in css [17:06:12] i need url to it [17:06:26] Surfer2011, I mean `ls -lt …` [17:06:35] i need to upload font somewhere in media wiki as raw file [17:07:07] Date is about May 2018 [17:07:30] a_, https://www.mediawiki.org/wiki/Customizing_MediaWiki_for_beginners [17:08:26] a_, I don't think this covers self uploaded files, but it should get you going. [17:08:26] that link use google fonts but google fonts does not have my font [17:09:48] a_, there are other font providers. You could upload your font somewhere yourself and address it like that. Or you could find out how to provide extra fonts mediawiki collects as static files. [17:10:46] a_, this might be interesting: https://www.mediawiki.org/wiki/Topic:Sz37vdzy06jy1jms [17:11:24] Surfer2011, do you know the backup is way older than this? It could be that a copy changed the modification date when it occured, so this could be the time of last bad copy. [17:12:04] could be [17:12:21] Surfer2011, now it sounds as if you are trying to downgrade, if your backup is really from 05-2018 [17:14:04] how would be the procedere? .... install new mediawiki (works and is accessable tried that before) ... then import the sql dump? and ready to go? [17:14:22] Surfer2011, as I am reading right now, upgrading should be no problem no matter which version, since 1.5 (2006-03), so this should work regardless the backup age. [17:14:42] Surfer2011, https://stackoverflow.com/questions/19074643/determining-mediawiki-version-from-the-database-only [17:15:21] i cant find some provider that have my font or let user upload fonts. do you have some link of them? [17:15:21] Surfer2011, you can still try to find out your version using the query in the accepted answer. [17:20:45] a_, where is your MediaWiki instance hosted? Is it reachable from the internet? [17:21:18] yes, it is hosted in miraheze [17:22:38] a_, you should still be able to upload your font as you upload any other file, see: https://www.mediawiki.org/wiki/Topic:U7kgvpfjrwtvga7x [17:23:03] my version is 1.25.2 [17:23:58] Surfer2011, than this is the MediaWiki version you should try to recover your stuff from. Just make sure that this site is not publicly accessible before you can upgrade. [17:24:58] This is what I would try now. (I suppose you tried using a search engine on the errors in what you pasted.) [17:25:29] yes i tried that but no success [17:25:42] same error? [17:25:45] so ... install 1.25.2 fresh .... then re-import DB dump? [17:25:59] Aaah, you tried the searching :P [17:26:22] Surfer2011, how are you importing the db dump? [17:26:41] Like, what are you doing. [17:27:16] gunzip < wiki.sql.gz | mysql -u root -p wiki_db [17:29:10] Surfer2011, what is the distribution and release thereof you are running this on? [17:30:00] openmediavault ... in a docker Letsencrypt (by LinuxServer.io) [17:30:48] Surfer2011, you got a link to that? [17:31:30] this is the container it runs in https://github.com/linuxserver/docker-letsencrypt [17:34:47] Surfer2011, on top of that, you designed your own Dockerfile? [17:35:49] There is https://hub.docker.com/_/mediawiki/, which is an official image supported by the docker folks. [17:36:24] I'm gonna be AFK for maybe half an hour, but I'll be back... [17:37:14] no not my own docker file [17:37:46] and i would preferr the installation inside the letsencrypt container ... because the mediawiki container ist not easy to set up inside of openmediavaul [18:19:52] Surfer2011, I see that OpenMediaVault 4 is based on Debian 9, can you confirm that? [18:20:09] yes [18:22:17] Surfer2011, what happens if you start with a fresh DB? [18:22:18] I just want to confirm the basic installation is working, and restoring is the only problem. [18:23:04] it's possibly an issue with LocalSettings.php [18:23:19] basic installation is working ... got the page up and running [18:23:48] I would try the following 1) restore db dump 2) unpack fresh files (for most recent mediawiki that you wish to install, so either 1.31 or 1.32), 3) do NOT copy your LocalSettings over, 4) Run the web installer, pointing it at your existing restored db to upgrade it and generate a fresh LocalSettings.php [18:24:18] That sounds like a really good idea [18:24:44] 5) copy images directory over and migrate configuration from old LocalSettings as needed. You'll need to grab fresh versions of all of your extensions, and follow their install instructions (don't just blidly copy/paste all the old stuff from LocalSettings) [18:24:52] I assumed Surfer2011 didn't restore his LocalSettings.php, but I don't really know [18:25:06] wait i will try this one sec [18:25:09] upgrade.php won't work without a LocalSettings.php in place, so that's what I was assuming [18:25:51] Skizzerz, see, that's why I said initially I don't know a lot about the platform. Thanks for your help [18:26:09] thanks to you too for being there and helping out :) [18:26:58] I can't really answer your question re Collections extension though. You can try seeing if there are any relevant tickets on phabricator for the extension and resurrecting them perhaps? That should alert anyone watching the ticket at least [18:29:54] Skizzerz, I will try, I still have to get the okay to get this into the public domain, but I think there is nothing standing against it. When this is sorted, I can reply to many old tickets I have already found. [18:30:23] so fresh install ... access the web-mediawiki page and do the setup? download LocalSettings.php but NOT put it in the directory? [18:30:33] import the DB ... and then put the localSetting back? [18:30:37] no [18:30:42] follow the instructions I listed [18:30:54] Surfer2011, this is the new pristine LocalSettings, put it where it asks you to [18:30:54] step 1 is restore db dump [18:31:00] step 2 is web installer pointing at the EXISTING database [18:31:07] step 3 put the new LocalSettings into place [18:31:45] restore dump = import dump into MariaDB? [18:31:48] yes [18:31:57] and set up users/permissions appropriately [18:36:05] does it matter if the db was mysql and will now be imported to mariadb? [18:36:54] Surfer2011, mariadb is compatible. [18:38:50] ok thought so was just asking to make sure [18:40:38] I don't know what Oracle is doing with MySQL nowadays, but last I looked, a big part was catching up with MariaDB while still trying to implement incompatible interfaces. [18:41:01] :D [18:41:14] i imported DB now [18:48:01] sql [18:51:49] NICE .. [18:51:50] works [18:51:56] only images are missing [18:52:15] can i copy-paste the image folder? or are there pathes that need to be fixed? [18:52:52] Should be copy-pasteable, as long as you put them in the right place with the same image dir config [18:55:00] mh no links :-( [18:57:19] ah works ... perfekt .. thanks guys :D [18:57:23] great help [19:01:43] Surfer2011, glad you got it running :) [19:03:14] me too ^^ ... [20:03:13] how disable Content Security Policy for one site in mediawiki ? [20:04:34] i want to load font from third party resources [20:06:05] any one knows ? [20:09:50] aaa__: CSP isn't enabled by default, but you can configure it via $wgCSPHeader [20:10:21] if you're adding the header via htaccess rewrites or nginx config instead, you'll need to tweak those [20:10:42] I recommend against disabling it entirely, and rather whitelisting the bits that you know you need [20:11:28] thank you :)