Project:Support desk/Flow/2021/05
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
Reintegrateing an existing Wiki to an Apache Server
I'm hosting a local wiki on my own computer for documentation of my private projects, but recently I had to change my PC due to hardware failures. I copied all my data inclusive the XAMPP and the Mediawiki-Installation 1:1 to the new HDD and used the oppertunity to move the wiki installation to a bigger partition. Now is the question how to reintegrate the existing installation to the Apache server, so that I can access it again. 91.42.64.184 (talk) 11:23, 2 May 2021 (UTC)
- You need to publish the MediaWiki installation folder to Apache, by either copying it to the public htdocs or configuring a virtual path that points to wherever it's currently located. And enable mod_php if it isn't enabled already. Ciencia Al Poder (talk) 11:43, 2 May 2021 (UTC)
- Thanks for your reply. It kind of worked, because I'm now in the embarassing situation, that I somehow misplaced my mySQL-Database. Because I didn't made any specific change in the original installation, I assume it is on its default location. Where does the MediaWiki Installer create the Database? 91.42.72.62 (talk) 09:34, 4 May 2021 (UTC)
- Scratch my last reply. I found the missing database, but now with everything in place MediaWiki tells me this:
- [513185524c1d04a322621d90] 2021-05-04 09:52:26: Fatal exception of type Wikimedia\Rdbms\DBQueryError
- It's getting better and better... 91.42.72.62 (talk) 09:55, 4 May 2021 (UTC)
- Apparently, you'll need to add $wgShowExceptionDetails = true; to your LocalSettings.php to see a more detailed error message. Ciencia Al Poder (talk) 10:20, 4 May 2021 (UTC)
- Late answer but an answer: Because I had a new xampp installation with a fresh mysql install, the wiki database was not integrated. I copied the original mysql config file according to a mysql FAQ into the mysql folder of my xampp installation and now my wiki works with a few exceptions I'm currently fixing. 91.42.77.5 (talk) 09:23, 10 May 2021 (UTC)
Mediawiki Update Issues
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I' currently trying to update an 1.31.x mediawiki to the latest minor version (1.31.14), but I'm running into some troubles.
I was following the instructions here: Manual:Upgrading
- Downloading the 1.31.14 release
- Replacing the files in my mediawiki system with the new ones from the latests release
- Trying to reload the page was ending up in a white screen, the web server logs showed some missing libraries from the ChameleonSkin
I didn't run the update script as the database scheme hasn't changed.
Any ideas what is missing in the update steps.
Do I have to run composer update to regenerate the autoload stuff?
I'm not that familiar with updating a mediawiki system, so any advice is welcome.
Thanks a lot. 2001:16B8:24EA:8F00:70E9:F35D:7254:31E1 (talk) 14:29, 2 May 2021 (UTC)
- How did you download the MW files? The tarball has all the libraries/dependencies/whatever so I find it the easiest way. I guess with composer you could run it again and hopefully get whatever is missing.
- At step 2 it's better to add your old files (LocalSettings etc) to the new folder rather than overwrite the old folder with the new files. Maybe that's what you meant anyway.
- I'm not an expert but I'd just run update.php - it can't do any harm.
- Also I'd either get the latest version of that skin (or one that is known to work with MW 1.31.14) and/or change the default skin to Vector to see if that works first. Jonathan3 (talk) 16:01, 2 May 2021 (UTC)
- I was now able to solve my problem, the combination of
- composer update --no-devs
- maintenance/update.php
- resolved the situation for me.
- Thanks a lot. 2001:16B8:24EA:8F00:70E9:F35D:7254:31E1 (talk) 16:53, 2 May 2021 (UTC)
- You're welcome :-) Jonathan3 (talk) 17:26, 2 May 2021 (UTC)
Can't upgrade nor install MediaWiki anymore (error 1059)
Hello everyone,
I had an old version of MediaWiki installed on my server (1.25) running with PHP5.
I did a PHP upgrade today to 7.4, and I thought it was a good idea to upgrade mediaWiki to 1.35.2.
I tried to follow the Upgrade instructions in documentation, so I backup everything (files and db), got the tarball file, created a new folder, unpacked the 1.35.2 version in it and run the "mw-config/index.php" file. (I don't use command-line - I don't even know how to do that)
After putting the $wgUpgradeKey, it tells me everything is fine ("The environment has been checked. You can install MediaWiki.") but as soon as I press "Continue", it crashes into this :
[YI7bTS7uGRDyT2y2rOZTdQAAAAE] /ollioules/mw-config/?page=Upgrade Wikimedia\Rdbms\DBQueryError from line 1699 of /home/julienbu/www/ollioules/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1059: Identifier name '/* Wikimedia\Rdbms\DatabaseMysqlBase::doSelectDomain */ `julienbuphotos`' is too long (mysql10-13.perso)
Function: DatabaseInstaller::needsUpgrade
Query: SHOW TABLES LIKE 'wiki\_ollioules\_cur'
Backtrace:
#0 /home/julienbu/www/ollioules/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /home/julienbu/www/ollioules/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /home/julienbu/www/ollioules/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /home/julienbu/www/ollioules/includes/libs/rdbms/database/DatabaseMysqlBase.php(558): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /home/julienbu/www/ollioules/includes/installer/DatabaseInstaller.php(678): Wikimedia\Rdbms\DatabaseMysqlBase->tableExists(string, string)
#5 /home/julienbu/www/ollioules/includes/installer/WebInstallerUpgrade.php(56): DatabaseInstaller->needsUpgrade()
#6 /home/julienbu/www/ollioules/includes/installer/WebInstaller.php(269): WebInstallerUpgrade->execute()
#7 /home/julienbu/www/ollioules/mw-config/index.php(82): WebInstaller->execute(array)
#8 /home/julienbu/www/ollioules/mw-config/index.php(40): wfInstallerMain()
#9 {main}
Something is strange with "Identifer Name" being way too long (I only specified julienbuphotos in $wgDBname)...
I get the same error if I try to do a fresh install (removing LocalSettings.php, then using other table names).
My connection ids are these :
$wgDBtype = "mysql";
$wgDBserver = "mysql10-13.perso";
$wgDBname = "julienbuphotos";
$wgDBuser = "julienbuphotos";
Thank you for your help.
Julien 2A01:E0A:2BC:2930:543:C8EF:7933:CA99 (talk) 17:23, 2 May 2021 (UTC)
- sounds like maybe a mediawiki bug. The comment shouldnt be part of the identifier name. Bawolff (talk) 05:38, 5 May 2021 (UTC)
- Yes, it seems so.
- Anyway, I found a workaround using SSH instead of web installer. 2A01:E0A:2BC:2930:11E4:5181:845A:43B (talk) 11:18, 5 May 2021 (UTC)
Impossible to import dumps onto my wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- I keep getting "Error 524: A timeout occurred". I have verified the web beforehand to see whether I could figure that out myself, but I could not find anything that solves my issue.
- Is there a way to disable the timeout error on Mediawiki for this issue to subside? MarioSuperstar77 (talk) 21:44, 2 May 2021 (UTC)
- Hi, please provide clear steps to reproduce. You only mention an error but not what happened before. Which exact MediaWiki version? Malyacko (talk) 14:44, 3 May 2021 (UTC)
- Hello, so like I said, I have the latest installation of Mediawiki being the version 1.35.2.
- To reproduce, I would go to special:import then fill in the required fields and then I supply a backup xml file that is 22.3MB in size (The compressed .gz variant of the file does not work because Mediawiki gives me an error that it isn't a valid <mediawiki> file, so I figured that must mean that the file must be sent uncompressed), after waiting for about one minute with Cloudflare active, I get a timeout error, but after disabling cloudflare I get a 500 error, so doing that solved nothing.
- Note that I specified in the localsettings file that the import timeout must be 30000 seconds. MarioSuperstar77 (talk) 18:16, 3 May 2021 (UTC)
- try using commandline manual:importDump.php for large dumps. Bawolff (talk) 05:36, 5 May 2021 (UTC)
- It took a while, but it seems to have worked, thanks! MarioSuperstar77 (talk) 23:33, 7 May 2021 (UTC)
- Other details I forgot to mention, but that could be useful to troubleshoot this issue, my server is running PHP 7.4 on mysql, has the latest version of Mediawiki installed and is protected by Cloudflare (Which previously caused me issues while updating another part of the website). MarioSuperstar77 (talk) 21:54, 2 May 2021 (UTC)
Rollback all changes to a certain time / modification control
My wiki has been victim of spam... some (probably bot) users have created advertisement content on the main page and created several pages with non-sense content etc (it's a real flood of edits, >500, more than I can view on the "recent changes" pages).
Since it is a fairly new wiki with no users except for 2-3 administrators, we can be sure there are no "good/preservable" edits since we last edited it (4 days ago). Is it possible to undo all changes up to this point? (I have found no such feature documented under the "reverting" or "spam" articles)
Also a question as mediawiki Newbie: I am surprised that our new and completely unknown wiki is already victim of spam... since it is a small project, can we establish a "changes and user accounts need to be approved by admin"-filter, so that all content changes aren't published rightaway? I know, that takes away a lot of the "wiki-spirit", being open and freely editable. but that would be better in our case than having to deal with vandalism all the time... HannesHo (talk) 22:00, 2 May 2021 (UTC)
- to make answering easier: I found a maintenance script "purgeChangedPages.php" ... is this a what I could use? the documentation however isn't very informative for me. what does "squid"/"varnish" mean, as a verb. the doc links to software. I'm confused HannesHo (talk) 06:11, 3 May 2021 (UTC)
- If you have the nuke extension, you can simply delete all the offending pages in just a few clicks. Alternatively, there is SmiteSpam and NukeDPL. MarioSuperstar77 (talk) 11:05, 3 May 2021 (UTC)
Save new page: Service Unavailable
Hi all!
I have a new Wiki instance (MediaWiki 1.35.2 with active VisualEditor, SyntaxHightlight_GsSHi and Math extensions) running on a UBuntu VM.
It works well using VisualEditor with regular Wiki pages. Creating a Discussion page or using the source editor does not work.
I made a Wireshark trace and got following results:
# save discussion page -> ERROR
… POST /w/api.php HTTP/1.1 (application/x-www-form-urlencoded)
… HTTP/1.1 200 OK , JavaScript Object Notation (application/json)
… POST /w/index.php?title=Benutzer_Diskussion:User_Name&action=submit HTTP/1.1
… HTTP/1.1 503 Service Unavailable (text/html)
… GET /login/css/latofonts.css HTTP/1.1
… HTTP/1.1 404 Not Found (text/html)
# save: source editor -> ERROR
… HTTP/1.1 200 OK , JavaScript Object Notation (application/json)
… HTTP/1.1 503 Service Unavailable (text/html)
… POST /w/index.php?title=Benutzer:User_Name&action=submit HTTP/1.1
… GET /login/css/latofonts.css HTTP/1.1
… HTTP/1.1 404 Not Found (text/html)
# save: visual editor -> OK
… POST /w/api.php HTTP/1.1
… HTTP/1.1 200 OK , JavaScript Object Notation (application/json)
… POST /w/api.php HTTP/1.1
… HTTP/1.1 200 OK , JavaScript Object Notation (application/json)
… POST /w/api.php HTTP/1.1
… HTTP/1.1 200 OK , JavaScript Object Notation (application/json)
… GET /w/index.php/Benutzer:User_Name HTTP/1.1
… HTTP/1.1 200 OK (text/html)
… GET /w/load.php?lang=de&modules=ext.math.styles%7Cext.pygments%7Cext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.toc.styles%7Cmediawiki.ui.icon%7Cskins.vector.icons%2Cstyles&only=styles&skin=vector HTTP/1.1
… GET /w/load.php?lang=de&modules=ext.math.styles%7Cext.pygments%7Cext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.toc.styles%7Cmediawiki.ui.icon%7Cskins.vector.icons%2Cstyles&only=styles&skin=vector HTTP/1.1
… HTTP/1.1 200 OK (text/css)
… HTTP/1.1 200 OK (text/css)
… GET /w/opensearch_desc.php HTTP/1.1
… HTTP/1.1 200 OK (application/opensearchdescription+xml)
Any clue why I get a 503 Service Unavailable error? GreatOom (talk) 13:20, 3 May 2021 (UTC)
- This problem has been solved. It is no Mediawiki issue. There was an external Firewall blocking specific HTTP packets. GreatOom (talk) 11:24, 10 May 2021 (UTC)
sync password
Hey Everyone
I am Anam, I am working
on a research project on Urdu DBpedia.
For evaluation purposes, I require the Sync password of the Db Pedia mapping tool.
I wanted to know, that form where and how can I get this password? I am new to this channel hope you can help me
left panel ( sync ontology with media wiki)[1] Anamt76188 (talk) 15:48, 3 May 2021 (UTC)
- You may need to ask DBpedia about their "mapping tool" (not sure what that is). This page is for support requests about the MediaWiki software itself. Malyacko (talk) 18:07, 3 May 2021 (UTC)
I can't add an info box
I'm working on a project with MediaWiki. However, although I have read all the documents and have done what is written carefully, I cannot add the information box on the right side of the page. Can you please explain to me? How can I place a box with an example in the image on the pages?
İmage: https://prnt.sc/12fuyrt 46.197.195.129 (talk) 21:39, 3 May 2021 (UTC)
- That's a Template - see the source code of the page on which you took the screenshot. Please also elaborate which specific documents you read (links) and what exactly is unclear and why. Malyacko (talk) 08:22, 4 May 2021 (UTC)
I can't publish a page/edit text with the formatting toolbox
I'm working on a project with MediaWiki and I can't seem to publish a new page with my work and I don't have the tool box available for formatting. I also cannot see the syntax or visual editing screens. I just see the page that shows changes and previews a page. I have saved the page multiple times and am able to retrieve my work but it's not published so can't see it on the main page or edit it either! Can you please explain how to access the editing pages? How can see the visual editing page again? 86.27.8.90 (talk) 23:22, 3 May 2021 (UTC)
forgot username and password, pls help
hellp wiki team,
Namaste and regards from Nepal.
this is sudan bhattarai, form ktm. i forgot my username and password of wikimedia commons how can i retrieve them? i would be very grateful for this help. actually i have forgotten these of wiki english, wiki nepali pages also. pls dohelp. yes, i have already tried from the password retreival page and i am not getting any mail frpm wiki so that i can change my pw.
thanks in adv
s.b aka sudan bhattarai upadhaya 2400:1A00:B050:EA3E:5C3A:2550:AE13:E893 (talk) 06:50, 4 May 2021 (UTC)
- Hi, if you basically cannot remember your name/address and also lost your keys, what is your idea how we could help...? Malyacko (talk) 08:21, 4 May 2021 (UTC)
- You may want to ask Trust and Safety, but it will also depend on what information you can provide to show that you're really the user of that account. Leaderboard (talk) 08:39, 4 May 2021 (UTC)
Search for string in pages?
Is there a "search for string in pages" search for MediaWiki? Karl-police (talk) 09:14, 4 May 2021 (UTC)
- Where are basically you finding the "search for string in pages" option?? ↠Tanbirzx (✉) 09:52, 4 May 2021 (UTC)
- Huh? Karl-police (talk) 09:53, 4 May 2021 (UTC)
- Have you tried the normal search? Special:Search Ciencia Al Poder (talk) 11:04, 4 May 2021 (UTC)
- Indeed, with "Everything" aswell. Didn't work that well. Didn't find the text, which was inside a table. Karl-police (talk) 11:06, 4 May 2021 (UTC)
Karl-police (talk) 11:06, 4 May 2021 (UTC)
- Maybe you haven't populated the search index of your wiki. See Manual:updateSearchIndex.php and Manual:rebuildtextindex.php Ciencia Al Poder (talk) 11:38, 4 May 2021 (UTC)
- But if I try to search for something new, it shows up. Can it still be an update issue? Karl-police (talk) 11:40, 4 May 2021 (UTC)
- I find the inbuilt search no use for this sort of thing (though I'll look into the links posted above now).
- I use Extension:Replace Text for this - on the first screen just put in your search term as the "old text" and click "continue" - the next screen won't do any replacements, but will show you which pages it found the text in. Add some unique text like "xyzzy" as the "new text" if you're scared of accidentally replacing the text... Jonathan3 (talk) 13:13, 4 May 2021 (UTC)
- Can replace permission be denied there? Karl-police (talk) 13:38, 4 May 2021 (UTC)
- If you are wondering whether you can install the extension but limit who can use it - then yes - see Extension:Replace_Text#Installation.
- If you are wondering whether you can search for text without replacing it - then yes - just click "continue" on the first screen but not "replace text" on the second. Jonathan3 (talk) 18:26, 4 May 2021 (UTC)
MobileApp support
Hello everyone,
Anyone have any suggestions on where to look on how to make an ios or android app. I see there is an extension called MobileApp but outside of that there really is no extra support. Any suggestions would be great.
Thank you 24.45.134.47 (talk) 14:44, 4 May 2021 (UTC)
- Hi, is this question about MediaWiki or Wikimedia? Could you elaborate which underlying problem you want to solve, regarding which content existing where? Malyacko (talk) 18:44, 4 May 2021 (UTC)
correcting wiki bio errors
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am using Media Monkey 5.0.0.2338 on Windows 10 PC
The Wiki bio entry for composer/artist John Adams (born 1947) is mistakenly the entry for John Luther Adams (born 1953). The image retrieved is the correct one but the bio is for the wrong person who has a similar name. Also I have discovered an incorrect genre in another Wiki bio.
Additional errors I have found:
Kay Adomeit (a classical conductor) has the bio and genre of the R&B group "Kai"
Vadim Afanasiev (Russian choral conductor) has the bio of "Vadim Brodsky"
Alexander & Daykin (classical piano duo) has the bio of "Marshall & Alexander"
Is there a way for me, as a user, to remove the wrong entries and replace them with correct ones?
Thank you. Tim MacKay (talk) 23:38, 4 May 2021 (UTC)
- @Tim MacKay Welcome to the support desk for the MediaWiki software. Whatever Media Monkey is, you'll have to ask that question in a Media Monkey forum instead. Malyacko (talk) 08:05, 5 May 2021 (UTC)
- @Malyacko Thank you for responding. I got my forums confused. Please remove this post. Tim MacKay (talk) 15:09, 5 May 2021 (UTC)
Reverse Proxy (Apache) with official docker Mediawiki (latest) not show login page
I start a mediawiki docker instance behind a reverse proxy with apache. Mediawiki its configured to be closed and login its required by all pages.
When I visit http://internal_ip/ all works perfectly by when I visit https://publicdomain/dir1/wiki Mediawiki loads and show "You need to authenticate" page, but when I click in Login only reload the page and not shows the user login form.
I tried to made a reverse proxy in root folder, and every thing runs fine, but in dir/wiki I cant login.
I tried to edit LocalSetting.php in server variable, and in base url configurations but nothing changes.
There is a recomended configuration for reverse proxy in apache? Victordariovera (talk) 04:25, 5 May 2021 (UTC)
- probably something wrong with rewrite rules or short url. Do $wgArticlePath, $wgServer, and $wgScriptPath reflect the public domain name and path? Bawolff (talk) 03:20, 6 May 2021 (UTC)
Fresh Mediawiki Install on SLES keep on failing
Dear MW-Team and Users,
from the download Page I got mediawiki-1.35.2.tar.gz.
I checked the Checksums and they where the same.
So I throw the tar.gz on the Server extracted it with xfcz and moved (renamed) it to /srv/www/htdocs/wiki.
All precisites where matched: PHP 7.4.6, not the ones with the upstreaming Bug, with intl, APCu, mbstring, fileinfo and everything else that was needed.
Mediawiki says all has been check you can install.
When I go for to the WebInstall, and the installer collected all the information, it askes: "do you want to install ?"
I say "for sure!"
Then it states:
/mw-config/index.php?page=Install
Wikimedia\Rdbms\DBQueryError from line 1699 of /srv/www/htdocs/wiki/includes/libs/rdbms/database/Database.php: A databse query error has occured. Did you forget to run your application's database4 schema updater after upgrading ?
Error 1064: You have an error in your SQL Syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"UNKNOWN", "BITMAP", "DRAWING", "AUDIO", "VIDEO", "MULTIMEDIA", "OFFICE", "TEXT"' at line 8. (Line 8 is a comment, its line 1065, lol)
Function: Wikimedia\Rdbms\Database::sourceFile(
/srv/www/htdocs/wiki/maintaince/tables.sql )
Query: CREATE TABLE 'image' (
[...]
img_media_type ENUM("UNKNOWN", "BITMAP", "DRAWING", "AUDIO", "VIDEO", "MULTIMEDIA", "OFFICE", "TEXT", "EXECUTEABLE", "ARCHIVE", "3D") default NULL,
img_major_mime ENUM("unknown", "bitmap", "drawing", "audio", "video", "message", "model", "multipart", "chemical") NOT NULL default "unknown",
[...]
They look like the guilty ones, but here are more things stated.
I'm using a mysql-server on version 5.5.8 btw.
This is funny, I'm trying to do a fresh Install on a new Database, I can't run update.php, because im not having a LocalSettings.php, since the Installer is not finishing.
Any ideas except trying the latest snapshot or should I stick for now with using the 1.31.14 or 1.35.1 ? 2A02:908:2F38:B00:4886:7151:3973:75BC (talk) 13:14, 5 May 2021 (UTC)
- very weird. Mysql 5.5.8 is pretty old, but enums go back way before that so im confused. I guess check that tables.sql is the same as the official version. Super weird.
- DB stuff was rewritten recently, so code might be different in latest version,maybe it would work better. Bawolff (talk) 03:18, 6 May 2021 (UTC)
- I tryed 1.35.1 and failed, I tryed the snapshot and also failed.
- I'm always installing in a empty (clean/fresh) DB:
- [8dd616f69e2269316e9d6783] /mw-config/index.php?page=Install Wikimedia\Rdbms\DBQueryError from line 1699 of /srv/www/htdocs/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"UNKNOWN", "BITMAP", "DRAWING", "AUDIO", "VIDEO", "MULTIMEDIA", "OFFICE", "TEXT"' at line 8 ('MY-DB-SERVERNAME')
- Function: Wikimedia\Rdbms\Database::sourceFile( /srv/www/htdocs/wiki/maintenance/tables.sql )
- Query: CREATE TABLE `image` (
- img_name varchar(255) binary NOT NULL default '' PRIMARY KEY,
- img_size int unsigned NOT NULL default 0,
- img_width int NOT NULL default 0,
- img_height int NOT NULL default 0,
- img_metadata mediumblob NOT NULL,
- img_bits int NOT NULL default 0,
- img_media_type ENUM("UNKNOWN", "BITMAP", "DRAWING", "AUDIO", "VIDEO", "MULTIMEDIA", "OFFICE", "TEXT", "EXECUTABLE", "ARCHIVE", "3D") default NULL,
- img_major_mime ENUM("unknown", "application", "audio", "image", "text", "video", "message", "model", "multipart", "chemical") NOT NULL default "unknown",
- img_minor_mime varbinary(100) NOT NULL default "unknown",
- img_description_id bigint unsigned NOT NULL,
- img_actor bigint unsigned NOT NULL,
- img_timestamp varbinary(14) NOT NULL default '',
- img_sha1 varbinary(32) NOT NULL default ''
- ) ENGINE=InnoDB, DEFAULT CHARSET=binary
- Backtrace:
- #0 /srv/www/htdocs/wiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
- #1 /srv/www/htdocs/wiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
- #2 /srv/www/htdocs/wiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
- #3 /srv/www/htdocs/wiki/includes/libs/rdbms/database/Database.php(5073): Wikimedia\Rdbms\Database->query()
- #4 /srv/www/htdocs/wiki/includes/libs/rdbms/database/Database.php(5008): Wikimedia\Rdbms\Database->sourceStream()
- #5 /srv/www/htdocs/wiki/includes/installer/DatabaseInstaller.php(232): Wikimedia\Rdbms\Database->sourceFile()
- #6 /srv/www/htdocs/wiki/includes/installer/DatabaseInstaller.php(267): DatabaseInstaller->stepApplySourceFile()
- #7 /srv/www/htdocs/wiki/includes/installer/Installer.php(1732): DatabaseInstaller->createManualTables()
- #8 /srv/www/htdocs/wiki/includes/installer/WebInstallerInstall.php(44): Installer->performInstallation()
- #9 /srv/www/htdocs/wiki/includes/installer/WebInstaller.php(269): WebInstallerInstall->execute()
- #10 /srv/www/htdocs/wiki/mw-config/index.php(82): WebInstaller->execute()
- #11 /srv/www/htdocs/wiki/mw-config/index.php(40): wfInstallerMain()
- #12 {main}
- With 1.31.14 I was able to install the DB.
- I'm not sure, because im "just" installing and using Mediawiki since the last 3 LTS Versions, but there seems something quiet not perfect, maybe it's not only ENUMS... but im probably not helpful, so sorry for that.
- After that I upgraded Mediawiki to 1.35.1 by swaping the dirs and copying the LocalSettings from the 1.31.14 Install and then run the update.php on the new. Now Im going for patching to 1.35.2, and it will be fine (I think).
- Sorry for the missinformation, I'm on a mysql 5.6.25. 2A02:908:2F38:B00:A071:8BDB:C8D5:52D1 (talk) 07:06, 6 May 2021 (UTC)
no puedo entrar en la pagina de ceibal
buenos dias mi nombre es ismael garcia, soy estudiante de la universidad abierta y a distancia de mexico y estoy tratando de obtener informacion del plan ceibal para mis tareas del modulo actual, ya me registre en la pagina de entrada de la wiki, ya confirme mi correo, pero no me permite entrar, me pueden ayudar? de antemano gracias Mayeyito (talk) 15:30, 5 May 2021 (UTC)
- No creo que esta es el wiki correcto! Jonathan3 (talk) 16:05, 7 May 2021 (UTC)
A Translate extension compatible with PostgreSQL?
Hello all,
I recently joined a project and I volunteered to work on their wiki. We would like to extend the wiki to allow for user translations of articles. Unfortunately, it seems the popular Extension:Translate requires a MySQL database, whereas we have are using PostgreSQL. I read that migrating from PostgreSQL to MySQL is nontrivial and furthermore I have precious little knowledge in databases. Therefore we are looking for a solution that is compatible with our system.
So I have been looking to test the ContentTranslation extension, but I don't quite understand how to do this part
The extension needs the Content Translation server (a.k.a. cxserver) up and running
I am on Windows 10, and the setup guide page doesn't seem to cater to Windows users, unless I'm mistaken which is likely since I've never done something like this before. May I have some help (links, guides) in getting started with this?
Thank you in advance,
Orfeas XMissingno (talk) 17:43, 5 May 2021 (UTC)
Donationinterface
Hi all
i am trying to implemt a donation page using Extension:DonationInterface#Implementation for paypal only
could some one guide me through all the complete steps
$wgDonationInterfaceAdyenGatewayEnabled = true; $wgDonationInterfaceAmazonGatewayEnabled = true; $wgDonationInterfaceAstroPayGatewayEnabled = true; $wgDonationInterfaceGlobalCollectGatewayEnabled = true; $wgDonationInterfaceIngenicoGatewayEnabled = true; $wgDonationInterfaceEnableMinFraud = true; $wgDonationInterfaceEnableReferrerFilter = true; $wgDonationInterfaceEnableSourceFilter = true;
<?php # settings.d/wikis/paymentswiki/settings.d/01-DI-real.php
$wgGlobalCollectGatewayAccountInfo = array( 'default' => array( 'MerchantID' => '1234', ), );
$wgPaypalGatewayAccountInfo = array( 'default' => array( 'AccountEmail' => 'magoo@localhost.net', ), );
Thanks
Franking FranKings (talk) 19:47, 5 May 2021 (UTC)
- You could just use the Widgets extension to put a PayPal form on a wiki page. Though the other extension probably does more than just that! Sorry I can't help with it. Jonathan3 (talk) 07:18, 6 May 2021 (UTC)
- Following the documentation here Extension:DonationInterface#Installation
- but it is difficult to follow . Has anyone implemeted this for only paypal ? FranKings (talk) 18:52, 8 May 2021 (UTC)
custom extension to add share, like, rate, before every section
hi,
I am trying to write an extension to insert a custom div that will have like, share and rate options before each section.
public static function onParserSectionCreate($parser, $section, &$sectionContent, $showEditLinks)
{
if ($section <= 0 || !$showEditLinks) {
return true;
}
// Could theoretically break if another extension loads before us
if (preg_match_all('/(?=<\/h2\>)/', $sectionContent, $matches) > 0) {
$index = 0;
foreach ($matches as $key => $val) {
$sectionContent = Html::Rawelement(
"div",
['class' => "socialadons", 'id' => "div-social" . $index],
"" . $sectionContent
);
$index++;
}
}
return true;
}
Problem the $index remains 0 all the time. How to get this $index value incremented by 1 on each section. Any hint or help will be highly appreciated. Thank you all. 2001:8F8:146D:5345:C983:734A:D7F9:ABD9 (talk) 00:19, 6 May 2021 (UTC)
- try using $parser->getOutput()->setExtensionData( 'yourextname-index', $index) and similarly with getExtensionData() to get the value.
- Also be very careful about running regexes over html content. Im not sure where in the parser this is, but if its after html sanitization you may cause an xss if there is an attribute containing <h2> (many places escape < in attributes, but html5 does not require that and some extensions probably dont) Bawolff (talk) 03:12, 6 May 2021 (UTC)
- Thank you for helping, where should i add the mentioned code, within myextension.Hooks, extension.json or LocalSettings.php? 2001:8F8:146D:5345:5C60:1D2D:D28:FF33 (talk) 08:22, 6 May 2021 (UTC)
- Update:
- i tried the above code with (foreach ($matches as $key => $i)), and removed the $index = 0; and replaced ['class' => "socialadons", 'id' => "div-social" . $i],
- the issue here that $i returns Array. so the final code generated code is like <div class="socialadons" id="div-socialArray">
- While Array should be a sequence number instead. i Don't know how to get is as number. 2001:8F8:146D:5345:5C60:1D2D:D28:FF33 (talk) 09:29, 6 May 2021 (UTC)
Is it possible to get a collapsible sidebar like the one on https://sites.google.com/site/samskritavyakaranam?
Hi,
We recently added a collapsible sidebar on our wiki, https://samskritavyakaranam.miraheze.org. We noticed that the sidebar section headings, when clicked, act only as toggles and cannot be turned into links themselves.
Would it be possible to get/develop a sidebar like the one on https://sites.google.com/site/samskritavyakaranam where clicking only the arrow beside the heading expands/collapses a section and the section heading be a link to a page itself?
Thanks! Haritosh (talk) 01:50, 6 May 2021 (UTC)
- What about the "Tree and Menu" extension? Jonathan3 (talk) 07:16, 6 May 2021 (UTC)
- that might work, but getting a tree onto the sidebar involves working with the BeforePageDisplay hook, and the miraheze system admins say a new extension needs to be developed from scratch for that. Could someone help us out with that? Haritosh (talk) 13:38, 11 May 2021 (UTC)
Special:MyLanguage/Help:Special_pages always opens in english language
Hello,
maybe this is a stupid question, but I can't find a solution to it:
When clicking on the HELP-Icon on Special:SpeciaPages (in the right upper corner) in my private mediawiki installation, only the english language appears. That is Special:MyLanguage/Help:Special pages. In my settings "German" language is selected, so I expected Help:Special pages/de as the landing page.
What I'm missing here? 195.234.139.194 (talk) 13:02, 6 May 2021 (UTC)
- In which "settings" is the German specified? is this on your private wiki or here on mediawiki.org? – Ammarpad (talk) 19:56, 6 May 2021 (UTC)
- we dont transfer settings over from those links. Its a decent idea that we should... Bawolff (talk) 01:09, 8 May 2021 (UTC)
How Do I Quit MediaWiki?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- MediaWiki hitchhiked on another site I was attempting to access and before I realized my error, I'd signed up for MediaWiki. I have absolutely no use for the service, so how do I quit and clear all traces of it out of my computer. 2600:8801:3607:9900:CF4:419E:165A:A57B (talk) 16:57, 6 May 2021 (UTC)
- If you sign up for one Wikimedia site, you sign up for all of them.
- Assuming you created an account over Wikipedia, then by visiting this site your account shows up there. However, it is impossible to delete accounts on Wikimedia sites, this includes both Wikipedia and Mediawiki.org, so to answer your question, you can't.
- If having a profile here, but not Wikipedia bothers you I can suggest you to request your user pages to be locked. Though, I am not sure if it would work since that is not common. Most of the admins who run those sites want to allow as many people as possible to access every page on there, including your user profile. MarioSuperstar77 (talk) 23:40, 7 May 2021 (UTC)
- Many have tried but few have succeeded. Jonathan3 (talk) 16:03, 7 May 2021 (UTC)
- hit the logout button in upper left corner.
- Delete all cookies if you want to be paranoid. Bawolff (talk) 01:08, 8 May 2021 (UTC)
- There is some discussion about deleting user accounts here: GDPR (General Data Protection Regulation) and MediaWiki software.
- There is a "Wikimedia stewards" <stewards@wikimedia.org> email address - they can remove your IP address from history/talk pages etc so maybe there are options for user accounts (renaming, removing email address, IP logs or whatever). Jonathan3 (talk) 08:36, 8 May 2021 (UTC)
- Also https://meta.wikimedia.org/wiki/Right_to_vanish Jonathan3 (talk) 19:29, 10 May 2021 (UTC)
Update Sidebar Automatically
- Hi All,
- I'm trying to update the sidebar on my media wiki site with all of the pages that have been created. So whenever we add a new page we'd like it to show up on the sidebar automatically rather than have to manually be updated. Is there a good way to do this? Thanks! Adillawn (talk) 17:33, 6 May 2021 (UTC)
- You can see this-
- Manual:Interface/Sidebar ↠Tanbirzx (✉) 19:21, 6 May 2021 (UTC)
- I think you can put Extension:CategoryTree on the sidebar. Jonathan3 (talk) 18:07, 6 May 2021 (UTC)
Breadcrumbs2 not working with & symbol in category names
Hello. Thought I should post here because the extension is unmaintained. I had to modify the class PHP to get it working in 1.35 as per a comment in 2019 (changing DELIM to self::DELIM,and CRUMBPAGE to self::CRUMBPAGE except the definitions) . Breadcrumbs2 doesn't recognise categories with the symbol '&' in their names. Anyone have any ideas? Extension:BreadCrumbs2 InnerCitadel (talk) 19:50, 7 May 2021 (UTC)
Deleting thumbnails?
Hi all, I'm running out of disk space and hoping to buy myself some time by deleting thumbnails. I've found however that if I do delete a particular set of thumbnails, the next pageview will not see the image. Is there any way to delete the thumbnail directory but have the images instantly regenerate, to avoid any viewers seeing broken image links? Thanks Garuda3 (talk) 22:20, 7 May 2021 (UTC)
- Setup a 404 handler, see Manual:thumb_handler.php
- Alternatively, refreshLinks.php might do that im not sure. Bawolff (talk) 01:07, 8 May 2021 (UTC)
- Thanks for this, it doesn't appear to be working at the moment. I'll take another look. Garuda3 (talk) 13:14, 11 May 2021 (UTC)
- Hmm still not sure what I'm doing wrong here, I placed the code in my .htaccess file in the root directory. Any idea what is going wrong? Thanks Garuda3 (talk) 18:06, 11 May 2021 (UTC)
Page Approval
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there any plugin that would make a user's post require the approval of an administrator before it goes public? JokerLow (talk) 13:59, 8 May 2021 (UTC)
deny edit for users, allow only user page to be created and edited
to preventing abusers, i would like to prevent non-confirmed users from editing/creating articles.
but I want to allow, to editing userpage. this should contain a template, which is to be filled, and checked. the user will then be asigned to group, which can edit/create articles. can this be achieved?
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['xxx']['read'] = true;
$wgGroupPermissions['xxx']['edit'] = true;
$wgGroupPermissions['xxx']['createtalk'] = true;
$wgGroupPermissions['xxx']['createpage'] = true;
$wgGroupPermissions['xxx']['editmyoptions'] = true;
$wgGroupPermissions['xxx']['editmyprivateinfo'] = true;
$wgGroupPermissions['xxx']['writeapi'] = true;
$wgGroupPermissions['xxx']['editmywatchlist'] = true;
$wgGroupPermissions['xxx']['viewmyprivateinfo'] = true;
$wgGroupPermissions['xxx']['viewmywatchlist'] = true;
do i do something wrong ? 80.108.171.42 (talk) 10:32, 9 May 2021 (UTC)
- If I understand correctly, you want the user to do something (fill a template somewhere) and have the rights automatically assigned then? That's not possible without additional work (eg a bot). Leaderboard (talk) 11:10, 9 May 2021 (UTC)
- well, as user number is limited, will do verificaton manually. this is not an issue, but currently, new users cannot edit their userpage.
- mulatschak.com/wiki
- i'd like users being able to writing info on the Special:MyPage only, until verification is done, and user is assigned to appropriate group 80.108.171.42 (talk) 12:08, 9 May 2021 (UTC)
- A quick and dirty way to do that would be to set a namespace restriction for * to the user namespace, and you then add the user to an appropriate group that does not have this restriction. Leaderboard (talk) 12:19, 9 May 2021 (UTC)
why do navigation items show in wrong language after scratch install?
I have chosen EN as install language ANS as wiki language, navigation shows in germann now ?!
was scratch install.
$wgShellLocale = "en_US.utf8";
$wgLanguageCode = "en";
extension MLEB (language pack) was installed within scratch install 80.108.171.42 (talk) 10:29, 10 May 2021 (UTC)
- Is your browser configured to display webpages in German as preferred language? Usually in your browser you configure language preferences for webpages, and this tells websites that support that to use your preferred language. That's what MLEB actually does. Ciencia Al Poder (talk) 10:56, 10 May 2021 (UTC)
- What is a "scratch install"? Malyacko (talk) 10:56, 10 May 2021 (UTC)
- Probably means installed from scratch. Jonathan3 (talk) 11:45, 10 May 2021 (UTC)
How to load jquery.ui.core for Semantic Results datatables format
Hi,
I am trying to use Semantic Results Format datatables printer and it fails it seems because jquery.ui has been removed. I can see the jquery ui scripts in the arrays in resources/Resources.php but I don't know how to enable them for my wiki.
I get this error in the console (and no table)
'Error: Unknown module: jquery.ui.core'
TIA 38.97.212.205 (talk) 02:19, 11 May 2021 (UTC)
- I'd switch to the datatable class of the table format. It also allows for searching within the results and additionally avoids the awkward query panel. [[kgh]] (talk) 21:38, 24 February 2022 (UTC)
Force email domain for new users
Hi all!
I'd like to restrict the Wiki users to a specific email domain. They should just use their EDU account. I did some search but I found only some outdated results, e.g. using "$wgEmailDomain".
Is there some documentation how it works in current MediaWiki release?
Also I'd like to force a specific user name based on the email address.
So the email address is something like "FirstName.LastName@domain.com" and I want a username "FirstNameLastName". Any clues how to force this?
Thanks in advance for your help. GreatOom (talk) 06:45, 11 May 2021 (UTC)
- i guess AuthManager can do this. the docs are a bit "dense" though. Bawolff (talk) 07:08, 11 May 2021 (UTC)
- Thanks for your reply. I looked the at theAuthManager pages but it does not help me because I'm a newbie here and I have no idea how to realize this using that extension.
- I assume that there are many others with similar needs since there are many outdated posts about such a request. I need a simple example… GreatOom (talk) 07:50, 11 May 2021 (UTC)
- You could use Extension:ConfirmAccount and manually confirm/deny potential users. Jonathan3 (talk) 08:00, 11 May 2021 (UTC)
- … and manually confirm/deny potential users.
- This is no solution for me since there may many new users for a lecture while I'm not in the office. It must be handled without any interaction from an admin. GreatOom (talk) 08:26, 11 May 2021 (UTC)
- I found ApiValidateSignup.php (SignupAPI). Is it possible to add a hook for this API where I can make my own checks? GreatOom (talk) 12:57, 11 May 2021 (UTC)
- The AuthManager stuff is impossible to understand. What about just letting anyone create an account but use Manual:Hooks/UserLoggedIn and the User object from that to getEmail, check it, then if you don't like it doLogout? Probably too late by then to have any impact on the username. Jonathan3 (talk) 21:04, 11 May 2021 (UTC)
- you could use Manual:Hooks/isValidEmailAddr to only allow .edu emails. Bawolff (talk) 00:10, 12 May 2021 (UTC)
- This looks good. I check now the documentation about Hooks to get a clue how to use it. Manual:Hooks is not really helpful for me. Now I look for samples.
- I will post my solution when I got it working. GreatOom (talk) 07:00, 12 May 2021 (UTC)
- something like
$wgHooks["isValidEmailAddr"][] = function($email, &$result) { if (substr($email, -4) !== '.edu' ) { $result = false; return false; } };- Totally untested, i prob made a mistake. Bawolff (talk) 07:55, 12 May 2021 (UTC)
- Many thanks Bawolff!
- It works great. I modified your code so that it is easier to use:
$wgHooks["isValidEmailAddr"][] = function($email) {$mailDomain = 'myDomain.edu';return (substr($email, -strlen($mailDomain)) == $mailDomain );};GreatOom (talk) 09:22, 14 May 2021 (UTC)- note, its the $result parameter that matters the most. Returning false means dont do other validation checks and use the value of $result instead. Bawolff (talk) 00:01, 17 May 2021 (UTC)
- Thanks for your help.
- I modified the code so that "$result" is assigned, too.
$wgHooks["isValidEmailAddr"][] = function($email, &$result) {$mailDomain = 'myDomain.edu';$result=(substr($email, -strlen($mailDomain)) == $mailDomain );return $result;};GreatOom (talk) 06:51, 17 May 2021 (UTC)- Wow, this is the solution I was looking for
- What if I want to allow multiple domains? Cfoh (talk) 08:03, 8 July 2021 (UTC)
Capablanca 1924 Chess Tournament New York article.
I took two photos of the Cablegram and follow up letter received by the tournament sent by Cabablanca. Both are agreeing to attend this event.
I cannot see how to attach them to the article. ScorpioArtist1 (talk) 21:47, 11 May 2021 (UTC)
- please ask at w:WP:TEAHOUSE Bawolff (talk) 00:07, 12 May 2021 (UTC)
compare pages from two sites in a wiki family
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I have two sites in a wiki family. say mydomain.com.au/site1 and mydomain.com.au.site2.
I'd like to compare one page on site1 with another page on site2. what are the options I can do this?
Special:Comparepage seems only support page(revision) within a specific site.
Thanks. 132.234.229.100 (talk) 00:16, 12 May 2021 (UTC)
- not much. Extension:DoubleWiki i suppose. Bawolff (talk) 07:48, 12 May 2021 (UTC)
- If you just need it for your own purposes there are online diff tools like https://www.diffchecker.com/ Jonathan3 (talk) 20:43, 12 May 2021 (UTC)
- Thanks. 132.234.47.150 (talk) 05:37, 13 May 2021 (UTC)
My hosting provider doesn't support APCu OR Memcached but does support Redis
My shared website hosting provider doesn't support APCu OR Memcached but does support Redis.
Can I use Redis for MediaWiki rate limiting and if yes, are there any special configurations I might need to ask the sysadmins to do?
Thanks, 2001:44C8:428C:BBD1:C8AA:C626:A90F:3B59 (talk) 06:52, 12 May 2021 (UTC)
- By the way, there is also
APCthere (but I ensure that noAPCu) if it matters. 2001:44C8:428C:BBD1:C8AA:C626:A90F:3B59 (talk) 07:45, 12 May 2021 (UTC) - yes, see instructions manual:$wgMainCacheType & Manual:$wgObjectCaches.
- APC is the old name for apcu. Unless you have a crazy old version of php, you probably dont actually have apc. Regardless, i think mediawiki supports both apc and apcu. Bawolff (talk) 07:45, 12 May 2021 (UTC)
- The hosting provider I consider to work with is Namecheap which offers PHP 7.4 and according to the webpage in their website named "PHP modules, limits and extensions on shared hosting servers" (I can't post a link as an anonymous user) they do have APC but it's disabled by default and could be enabled per need.
- That said; given your reply I guess I'll just use Redis (hopefully, it will be easy for me to configure...). 2001:44C8:428C:BBD1:C8AA:C626:A90F:3B59 (talk) 09:02, 12 May 2021 (UTC)
404 to use HTTPS connection
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
My site is wiki.xdi8.top. I intended to allow both HTTP and HTTPS connection, and set short URL as /wiki as well. Now it works using HTTP. However, it gives out Not Found: The requested URL /wiki/example was not found on this server. whenever using https://wiki.xdi8.top/wiki/example or https://wiki.xdi8.top/w/index.php/example.
Thanks for your help. 物灵 (talk) 08:40, 12 May 2021 (UTC)
- check document root configured on web server (assuming apache)? 132.234.228.78 (talk) 08:56, 12 May 2021 (UTC)
DocumentRoot "/var/www/html"in both global and<VirtualHost _default_:443>configuration. 物灵 (talk) 09:05, 12 May 2021 (UTC)- The site is still in use so I temporarily closed HTTPS. Please ask me if any information is needed. 物灵 (talk) 09:38, 12 May 2021 (UTC)
- Looks like you're missing rewrite rules for the https virtual host, since https://wiki.xdi8.top/w/index.php?title=%E9%A6%96%E9%A1%B5 works fine. Ciencia Al Poder (talk) 09:45, 12 May 2021 (UTC)
- It seems OK now. I am not familiar with Apache. I only made rewrite rules in another configuration file. Perhaps it does not apply in SSL. 物灵 (talk) 10:03, 12 May 2021 (UTC)
Message at top of the wiki
I recently took on the task to migrate the company wiki and there is a message at the top of the pages that needs to go but as I'm new with all the wiki stuff and I was not part of the original configuration I have no idea where can I find this configuration. NatanaelSoltero (talk) 14:44, 12 May 2021 (UTC)
- Maybe you're talking about the Sitenotice Ciencia Al Poder (talk) 15:02, 12 May 2021 (UTC)
Photo not being accepted
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm trying to upload a photo of myself for my wiki, and I'm continuing to get an error message stating that it can't be determined if the photo is suitable. Please advise. SorenStauss (talk) 17:35, 12 May 2021 (UTC)
- More details would be needed. Leaderboard (talk) 18:47, 12 May 2021 (UTC)
- There isn't more info to give. I tried to upload a photo that was taken by me, with my phone. I stated the error I received. I haven't any other details to give. SorenStauss (talk) 21:13, 12 May 2021 (UTC)
- Something similar was here: Project:Village Pump/Flow/2017#h-unable_to_put_a_picture_into_my_wiki-2017-10-05T14:55:00.000Z. Jonathan3 (talk) 20:40, 12 May 2021 (UTC)
- Thanks. I looked there and it seems that issue was also unresolved. SorenStauss (talk) 21:14, 12 May 2021 (UTC)
- It's not a technical bug; it is an intentional configuration of one website (Wikimedia Commons). Please bring this up on Wikimedia Commons. Thanks!. Malyacko (talk) 22:15, 12 May 2021 (UTC)
Template importation showing error in Module:Unicode_data at line 15: attempt to call field 'length' (a nil value).
https://manchuriaverse.miraheze.org/wiki/Template:Hangul
I get an error while importing this template. I already have the Module:Unicode_data, but still it shows errors.
The error in question is...
Lua error in Module:Unicode_data at line 15: attempt to call field 'length' (a nil value).
Is there any solution for this? Kyuzoaoi (talk) 01:09, 13 May 2021 (UTC)
- Where are you importing it from? Some of the Lua modules relied upon are slightly different in your site compared with Wiktionary. Maybe you need to import every one from scratch rather than rely on having any of them already. Jonathan3 (talk) 11:55, 13 May 2021 (UTC)
After migrating my website to another shared hosting provider I get MessageCache.php: Process cache for 'he' should be set by now
A principally all core MediaWiki 1.35 website in Hebrew.
After migrating my website from one shared hosting provider to another shared hosting provider, I get MessageCache.php: Process cache for 'he' should be set by now.
That's the output I get when navigating to my website from a browser.
[YJ0efPHm0mDLUy5yQDQcuQAAAVc] /example.com/ LogicException from line 409 of /home/user/public_html/example.com/includes/cache/MessageCache.php: Process cache for 'he' should be set by now.
Backtrace:
#0 /home/user/public_html/example.com/includes/cache/MessageCache.php(1091): MessageCache->load(string)
#1 /home/user/public_html/example.com/includes/cache/MessageCache.php(1017): MessageCache->getMsgFromNamespace(string, string)
#2 /home/user/public_html/example.com/includes/cache/MessageCache.php(988): MessageCache->getMessageForLang(Language, string, boolean, array)
#3 /home/user/public_html/example.com/includes/cache/MessageCache.php(930): MessageCache->getMessageFromFallbackChain(Language, string, boolean)
#4 /home/user/public_html/example.com/includes/language/Message.php(1304): MessageCache->get(string, boolean, Language)
#5 /home/user/public_html/example.com/includes/language/Message.php(862): Message->fetchMessage()
#6 /home/user/public_html/example.com/includes/language/Message.php(954): Message->toString(string)
#7 /home/user/public_html/example.com/includes/Title.php(661): Message->text()
#8 /home/user/public_html/example.com/includes/MediaWiki.php(131): Title::newMainPage()
#9 /home/user/public_html/example.com/includes/MediaWiki.php(151): MediaWiki->parseTitle()
#10 /home/user/public_html/example.com/includes/MediaWiki.php(902): MediaWiki->getTitle()
#11 /home/user/public_html/example.com/includes/MediaWiki.php(543): MediaWiki->main()
#12 /home/user/public_html/example.com/index.php(53): MediaWiki->run()
#13 /home/user/public_html/example.com/index.php(46): wfIndexMain()
#14 {main}
How would you suggest to solve that problem? 2001:44C8:44CD:2F1A:CD15:2954:A8D5:5EFB (talk) 12:54, 13 May 2021 (UTC)
- reminds me of https://phabricator.wikimedia.org/T258860 Malyacko (talk) 13:12, 13 May 2021 (UTC)
- @Malyacko thanks for the reference.
- After reading the last comment in the linked thread I assumed that I should change
CACHE_MEMCAHEDtoCACHE_NONEand it helped, the error no longer occurs, although I do get a 404 Not Found page now, which I should try to investigate in the server environment level, I guess. 2001:44C8:44CD:2F1A:CD15:2954:A8D5:5EFB (talk) 13:36, 13 May 2021 (UTC)
After migrating my website from another shared hosting to another, all webpages include 404 Not Found
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
A principally all core MediaWiki 1.35 website in Hebrew.
After migrating my website from another shared hosting to another, all webpages include 404 Not Found.
The migration does not include a domain change.
Things I have tried to solve the problem but failed:
- Non-root DB username and its password as well as a DB name have been performed in LocalSettings.PHP
- I have tried to navigate to
public_html/example.comand runphp update.phpbut I don't have such a file in the website's file tree: Could not open input file: update.php - I have tried to move the
.htaccessfile from example.com topublic_html
How would you suggest to solve that problem? 2001:44C8:44CD:2F1A:CD15:2954:A8D5:5EFB (talk) 14:25, 13 May 2021 (UTC)
- Have been performed == have been updated accordingly* 2001:44C8:44CD:2F1A:CD15:2954:A8D5:5EFB (talk) 14:41, 13 May 2021 (UTC)
- Did you install mediawiki on the new hosting? The question may seem stupid, but you said there's no update.php file on the new hosting, and that means there's no mediawiki installation there...
- Maybe your old hosting provided an automatic installation of MediaWiki. In the new one you may need to install it yourself. See Manual:Installation guide. I assume you already exported the database and images from the old hosting to the new one. See also Manual:Moving a wiki Ciencia Al Poder (talk) 14:58, 13 May 2021 (UTC)
- @Ciencia Al Poder I have indeed "installed" MediaWiki on the new hosting environment by extracting a zip which contains my exact web application root directory (example.com) from my previous hosting environment, on the new hosting environment --- with all its previous data; I don't have any indication that the zip containing the file tree was corrupted because generally all files are there:
- .htaccess
- LocalSettings.php
- robots.txt
- Google's search console validation file
- The websites' logo file
- Various other files (non directories)
- Various directories
- So yes, I have no idea why just update.php is not there in the file tree.
- That said;
- In my old hosting I have done a traditional MediaWiki installation; I didn't use any tool to install it. 2001:44C8:44CD:2F1A:CD15:2954:A8D5:5EFB (talk) 15:38, 13 May 2021 (UTC)
- note that update.php is inside the maintenace folder and not directly on the root folder. Basically, you'll have to run php maintenance/update.php Ciencia Al Poder (talk) 16:07, 13 May 2021 (UTC)
- @Ciencia Al Poder thanks, I didn't recall that full command
php maintenance/update.php - I navigated to my site dir and ran it but got:That's strange because it happened when according to Namecheap Cpanel "PHP tweaks" tool my PHP version was 7.3 and it keeps happening after I have changed it to 7.4 and double checked that it was indeed changed...
Error: You are using an unsupported PHP version (PHP 7.2.34). MediaWiki 1.35 needs PHP 7.3.19 or higher. Check if you might have a newer PHP executable with a different name.
- I think that this is a problem with the server environment...
- Is there anything else you might kindly suggest me to check or do to finally update the database? 2001:44C8:44CD:2F1A:CD15:2954:A8D5:5EFB (talk) 16:27, 13 May 2021 (UTC)
- Cpanel may change the php version used by the web server, but not the php version used to run commands from the command line. It may have several php versions available under different names (for example, php73 or similar), or you may need to specify the full path to where php is installed. Help pages on your host may indicate how to run php7.3 from your command line. Ciencia Al Poder (talk) 16:32, 13 May 2021 (UTC)
- @Ciencia Al Poder Sadly I didn't find anything like this.
- There is a PHP extension named "SSH2" which I thought I could turn on but the Cpanel tool doesn't let me turn it on (the PHP manual doesn't include any explanation that I personally have understood what it even does).
- Anyway,
- I might have no other choice but to open a support ticket in Namechape's support system to ask them what can be done,
- As most shared hosting provider support teams deal primarily with WordPress, I am afraid I might need to cancel that particular hosting plan and quickly find a new hosting provider while my webiste is off all that time and SEO damage is happening naturally (my old hosting plan already expired). 2001:44C8:44CD:2F1A:CD15:2954:A8D5:5EFB (talk) 17:00, 13 May 2021 (UTC)
- Hello again @Ciencia Al Poder, the staff upgraded all PHP versions on the environment globally to 7.4 and I could then run
php maintenance/update.phpsuccessfully but I still have the same 404 Not Found problem. - In the following trace, please note the
USER_EX?AMPLEwhich should have beenUSER_EX-AMPLEinstead but includes a?for some reason. - ==Trace==
- 2001:44C8:42C0:D152:D412:B6F7:487B:5B86 (talk) 07:15, 14 May 2021 (UTC)
$ php maintenance/update.php MediaWiki 1.35.2 Updater Your composer.lock file is up to date with current dependencies! Going to run database updates for USER_EX?AMPLE Depending on the size of your database this may take a while! Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0 ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...already have interwiki table ...indexes seem up to 20031107 standards. ...have rc_type field in recentchanges table. ...index new_name_timestamp already set on recentchanges table. ...have user_real_name field in user table. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. ...have pagelinks; skipping old links table updates ...il_from OK ...have rc_ip field in recentchanges table. ...index PRIMARY already set on image table. ...have rc_id field in recentchanges table. ...have rc_patrolled field in recentchanges table. ...logging table already exists. ...have user_token field in user table. ...have wl_notificationtimestamp field in watchlist table. ...watchlist talk page rows already present. ...user table does not contain user_emailauthenticationtimestamp field. ...page table already exists. ...have log_params field in logging table. ...logging table has correct log_title encoding. ...have ar_rev_id field in archive table. ...have page_len field in page table. ...revision table does not contain inverse_timestamp field. ...have rev_deleted field in revision table. ...have img_width field in image table. ...have img_metadata field in image table. ...have user_email_token field in user table. ...page_namespace is already a full int (int(11)). ...ar_namespace is already a full int (int(11)). ...rc_namespace is already a full int (int(11)). ...wl_namespace is already a full int (int(11)). ...qc_namespace is already a full int (int(11)). ...log_namespace is already a full int (int(11)). ...have img_media_type field in image table. ...already have pagelinks table. ...image table does not contain img_type field. ...already have unique user_name index. ...user_groups table exists and is in current format. ...have ss_total_pages field in site_stats table. ...user_newtalk table already exists. ...have iw_trans field in interwiki table. ...wl_notificationtimestamp is already nullable. ...index times already set on logging table. ...have ipb_range_start field in ipblocks table. ...no page_random rows needed to be set ...have user_registration field in user table. ...templatelinks table already exists ...externallinks table already exists. ...job table already exists. ...have ss_images field in site_stats table. ...langlinks table already exists. ...querycache_info table already exists. ...filearchive table already exists. ...have ipb_anon_only field in ipblocks table. ...have user_newpass_time field in user table. ...redirect table already exists. ...querycachetwo table already exists. ...have ipb_enable_autoblock field in ipblocks table. ...index pl_namespace on table pagelinks includes field pl_from. ...index tl_namespace on table templatelinks includes field tl_from. ...index il_to on table imagelinks includes field il_from. ...have rc_old_len field in recentchanges table. ...have user_editcount field in user table. ...page_restrictions table already exists. ...have log_id field in logging table. ...have rev_parent_id field in revision table. ...have pr_id field in page_restrictions table. ...have rev_len field in revision table. ...have rc_deleted field in recentchanges table. ...have log_deleted field in logging table. ...have ar_deleted field in archive table. ...have ipb_deleted field in ipblocks table. ...have fa_deleted field in filearchive table. ...have ar_len field in archive table. ...have ipb_block_email field in ipblocks table. ...index cl_sortkey on table categorylinks includes field cl_from. ...have oi_metadata field in oldimage table. ...have ar_page_id field in archive table. ...have img_sha1 field in image table. ...protected_titles table already exists. ...page_props table already exists. ...updatelog table already exists. ...category table already exists. ...category table already populated. ...have ar_parent_id field in archive table. ...have user_last_timestamp field in user_newtalk table. ...protected_titles table has correct pt_title encoding. ...have ss_active_users field in site_stats table. ...ss_active_users user count set... ...have ipb_allow_usertalk field in ipblocks table. ...change_tag table already exists. ...user_properties table already exists. ...log_search table already exists. ...l10n_cache table already exists. ...ct_rc_id key doesn't exist. ...have rd_interwiki field in redirect table. ...*_mime_minor fields are already long enough. ...iwlinks table already exists. ...index iwl_prefix_title_from already set on iwlinks table. ...have ul_value field in updatelog table. ...have iw_api field in interwiki table. ...iwl_prefix key doesn't exist. ...have cl_collation field in categorylinks table. ...categorylinks up-to-date. ...module_deps table already exists. ...ar_page_revid key doesn't exist. ...skipping index ar_revid because index ar_revid_uniq already set on archive table. ...user_last_timestamp is already nullable. ...index user_email already set on user table. ...up_property in table user_properties already modified by patch patch-up_property.sql. ...uploadstash table already exists. ...user_former_groups table already exists. ...have rev_sha1 field in revision table. ...batch conversion of user_options: nothing to migrate. done. ...user table does not contain user_options field. ...have ar_sha1 field in archive table. ...index page_redirect_namespace_len already set on page table. ...have us_chunk_inx field in uploadstash table. ...have job_timestamp field in job table. ...have ipb_parent_block_id field in ipblocks table. ...index ipb_parent_block_id already set on ipblocks table. ...category table does not contain cat_hidden field. ...have page_content_model field in page table. ...site_stats table does not contain ss_admins field. ...recentchanges table does not contain rc_moved_to_title field. ...sites table already exists. ...have fa_sha1 field in filearchive table. ...have job_token field in job table. ...have job_attempts field in job table. ...have us_props field in uploadstash table. ...ug_group in table user_groups already modified by patch patch-ug_group-length-increase-255.sql. ...ufg_group in table user_former_groups already modified by patch patch-ufg_group-length-increase-255.sql. ...index pp_propname_page already set on page_props table. ...index img_media_mime already set on image table. ...iwl_prefix_title_from index is already non-UNIQUE. ...index iwl_prefix_from_title already set on iwlinks table. ...have ar_id field in archive table. ...have el_id field in externallinks table. ...have rc_source field in recentchanges table. ...have page_links_updated field in page table. ...have user_password_expires field in user table. ...have pp_sortkey field in page_props table. ...recentchanges table does not contain rc_cur_time field. ...index wl_user_notificationtimestamp already set on watchlist table. ...have page_lang field in page table. ...have pl_from_namespace field in pagelinks table. ...have tl_from_namespace field in templatelinks table. ...have il_from_namespace field in imagelinks table. ...img_major_mime in table image already modified by patch patch-img_major_mime-chemical.sql. ...oi_major_mime in table oldimage already modified by patch patch-oi_major_mime-chemical.sql. ...fa_major_mime in table filearchive already modified by patch patch-fa_major_mime-chemical.sql. ...comment fields are up to date. ...hitcounter doesn't exist. ...site_stats table does not contain ss_total_views field. ...page table does not contain page_counter field. ...msg_resource_links doesn't exist. ...msg_resource doesn't exist. ...bot_passwords table already exists. ...have wl_id field in watchlist table. ...cl_collation key doesn't exist. ...index cl_collation_ext already set on categorylinks table. ...collations up-to-date. ...index rc_name_type_patrolled_timestamp already set on recentchanges table. ...rev_page_id index already non-unique. ...pl_namespace, tl_namespace, il_to indices are already non-UNIQUE. ...have ct_id field in change_tag table. ...rc_ip in table recentchanges already modified by patch patch-rc_ip_modify.sql. ...have el_index_60 field in externallinks table. ...ug_user_group key doesn't exist. ...have ug_expiry field in user_groups table. ...img_media_type in table image already modified by patch patch-add-3d.sql. ...ip_changes table already exists. ...index PRIMARY already set on categorylinks table. ...index PRIMARY already set on templatelinks table. ...index PRIMARY already set on pagelinks table. ...index PRIMARY already set on text table. ...index PRIMARY already set on imagelinks table. ...index PRIMARY already set on iwlinks table. ...index PRIMARY already set on langlinks table. ...index PRIMARY already set on log_search table. ...index PRIMARY already set on module_deps table. ...index PRIMARY already set on objectcache table. ...index PRIMARY already set on querycache_info table. ...index PRIMARY already set on site_stats table. ...index PRIMARY already set on user_former_groups table. ...index PRIMARY already set on user_properties table. ...comment table already exists. ...revision_comment_temp table already exists. ...have ar_comment_id field in archive table. ...have fa_description_id field in filearchive table. ...img_description field does not exist in image table, skipping modify field patch. ...have ipb_reason_id field in ipblocks table. ...have log_comment_id field in logging table. ...have oi_description_id field in oldimage table. ...have pt_reason_id field in protected_titles table. ...have rc_comment_id field in recentchanges table. ...rev_comment field does not exist in revision table, skipping modify field patch. ...have img_description_id field in image table. ...index PRIMARY already set on l10n_cache table. ...bot_passwords.bp_user is already unsigned int. ...change_tag.ct_log_id is already unsigned int. ...change_tag.ct_rev_id is already unsigned int. ...page_restrictions.pr_user is already unsigned int. ...user_newtalk.user_id is already unsigned int. ...user_properties.up_user is already unsigned int. ...slots table already exists. ...have slot_origin field in slots table. ...content table already exists. ...slot_roles table already exists. ...content_models table already exists. ...actor table already exists. ...revision_actor_temp table already exists. ...have ar_actor field in archive table. ...have ipb_by_actor field in ipblocks table. ...have img_actor field in image table. ...have oi_actor field in oldimage table. ...have fa_actor field in filearchive table. ...have rc_actor field in recentchanges table. ...have log_actor field in logging table. ...rev_text_id field does not exist in revision table, skipping modify field patch. ...table site_stats already modified by patch patch-site_stats-modify.sql. ...index rc_namespace_title_timestamp already set on recentchanges table. ...change_tag_def table already exists. ...el_index_60 in table externallinks already modified by patch patch-externallinks-el_index_60-drop-default.sql. Running maintenance/deduplicateArchiveRevId.php... ...Update 'DeduplicateArchiveRevId' already logged as completed. Use --force to run it again. done. ...have ct_tag_id field in change_tag table. ...index ar_revid_uniq already set on archive table. ...index log_type_action already set on logging table. ...type_action key doesn't exist. ...index PRIMARY already set on interwiki table. ...index PRIMARY already set on page_props table. ...index PRIMARY already set on protected_titles table. ...index PRIMARY already set on site_identifiers table. ...index rc_this_oldid already set on recentchanges table. ...transcache doesn't exist. Running maintenance/populateChangeTagDef.php... ...Update 'PopulateChangeTagDef' already logged as completed. Use --force to run it again. done. ...index change_tag_rc_tag_id already set on change_tag table. ...have ipb_sitewide field in ipblocks table. ...ipblocks_restrictions table already exists. ...change_tag table does not contain ct_tag field. ...valid_tag doesn't exist. ...tag_summary doesn't exist. ...archive table does not contain ar_comment field. ...ipblocks table does not contain ipb_reason field. ...image table does not contain img_description field. ...oldimage table does not contain oi_description field. ...filearchive table does not contain fa_description field. ...recentchanges table does not contain rc_comment field. ...logging table does not contain log_comment field. ...protected_titles table does not contain pt_reason field. ...table job already modified by patch patch-job-params-mediumblob.sql. ...ar_usertext_timestamp key doesn't exist. ...usertext_timestamp key doesn't exist. ...archive table does not contain ar_user field. ...ipblocks table does not contain ip_by field. ...img_user_timestamp key doesn't exist. ...image table does not contain img_user field. ...oldimage table does not contain oi_user field. ...filearchive table does not contain fa_user field. ...recentchanges table does not contain rc_user field. ...logging table does not contain log_user field. ...index un_user_ip already set on user_newtalk table. ...watchlist_expiry table already exists. ...page_restrictions in table page already modified by patch patch-page_restrictions-null.sql. ...index ipb_address_unique already set on ipblocks table. ...have rev_actor field in revision table. ...archive table does not contain ar_text_id field. ...lc_lang is up-to-date. ...ll_lang is up-to-date. ...site_language is up-to-date. ...index ipb_address_unique on table ipblocks has no field ipb_anon_only; added. ...ipb_address_unique index up-to-date. ...actor_name in table actor already modified by patch patch-actor-actor_name-varbinary.sql. ...site_global_key in table sites already modified by patch patch-sites-site_global_key.sql. ...iwl_prefix in table iwlinks already modified by patch patch-extend-iwlinks-iwl_prefix.sql. ...site_stats is populated...done. ...Update 'populate rev_len and ar_len' already logged as completed. Use --force to run it again. ...Update 'populate rev_sha1' already logged as completed. Use --force to run it again. ...img_sha1 column of image table already populated. ...protocol-relative URLs in externallinks table already fixed. ...fa_sha1 column of filearchive table already populated. ...*_from_namespace column of backlink tables already populated. ...Update 'FixDefaultJsonContentPages' already logged as completed. Use --force to run it again. ...Update 'cleanup empty categories' already logged as completed. Use --force to run it again. ...RFC and PMID already added to interwiki database table. ...Update 'populate pp_sortkey' already logged as completed. Use --force to run it again. ...Update 'populate ip_changes' already logged as completed. Use --force to run it again. ...externallinks table indexes up to date Purging caches...done. Done in 0.2 s.
- Okay, good news; changing the website's file tree from
public_html/example.com/topublic_html/solved the problem --- the website is working now :) - I can only hope that the trace I pasted above doesn't put my website in any seucurity risk --- is it? (I ask just for general knowledge even though the username and the domain don't appear there). 2001:44C8:42C0:D152:D412:B6F7:487B:5B86 (talk) 07:24, 14 May 2021 (UTC)
- There's no private information presented on the log, so there should be no problem Ciencia Al Poder (talk) 08:48, 14 May 2021 (UTC)
Our wiki reported errors in connection with MagicWord
Suddenly our wiki showed error and could not get further: the error messages are as follows. Can someone guide us? Thanks.
Warning: preg_match() [function.preg-match]: Compilation failed: group name must start with a non-digit at offset 8 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 860
Warning: preg_match() [function.preg-match]: Compilation failed: group name must start with a non-digit at offset 8 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 860
Warning: preg_match() [function.preg-match]: Compilation failed: group name must start with a non-digit at offset 8 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 860
Warning: preg_match() [function.preg-match]: Compilation failed: group name must start with a non-digit at offset 8 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 860
Warning: preg_match_all() [function.preg-match-all]: Compilation failed: group name must start with a non-digit at offset 4 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 834
Warning: Invalid argument supplied for foreach() in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 835
Warning: preg_replace() [function.preg-replace]: Compilation failed: group name must start with a non-digit at offset 4 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 839
Warning: preg_match_all() [function.preg-match-all]: Compilation failed: group name must start with a non-digit at offset 4 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 834
Warning: Invalid argument supplied for foreach() in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 835
Warning: preg_replace() [function.preg-replace]: Compilation failed: group name must start with a non-digit at offset 4 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 839
Warning: preg_match() [function.preg-match]: Compilation failed: group name must start with a non-digit at offset 8 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 860
Warning: preg_match() [function.preg-match]: Compilation failed: group name must start with a non-digit at offset 8 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 860
Warning: preg_match() [function.preg-match]: Compilation failed: group name must start with a non-digit at offset 8 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 860
Warning: preg_match() [function.preg-match]: Compilation failed: group name must start with a non-digit at offset 8 in /home/06/66/2926606/web/encyclo/includes/MagicWord.php on line 860 143theos (talk) 17:53, 13 May 2021 (UTC)
- Might be this?
- Manual:Common_errors_and_symptoms#All_pages_have_no_content,_but_when_editing_a_page_the_wiki_text_is_there Jonathan3 (talk) 21:08, 13 May 2021 (UTC)
best way to add interlanguages into sidebar using extension: Interwiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, Reading the manual, I suppose to add [[de:Hauptseite]] in order to add a interlanguage link in sidebar. Just wondering if I have to manually add every one of the other languages in this way? (guess the harder part is to find out page name in languages I don't read.
Thanks 132.234.47.150 (talk) 23:11, 13 May 2021 (UTC)
- for example, i'd like to add a link for Finnish. I created interwiki prefix and etc. then on the page, I need to add
- , I wouldn't know the "target" part unless I can read Finnish. 132.234.47.150 (talk) 23:14, 13 May 2021 (UTC)
- You have to manually add the interlanguage links on every page. There's no automatic way to do that, unless there's already an interlanguage link back to your wiki from the remote one. You can run pywikibot script to make those links reciprocal Ciencia Al Poder (talk) 13:09, 15 May 2021 (UTC)
- Thanks. 132.234.47.150 (talk) 23:14, 16 May 2021 (UTC)
Unable to run the AllPagesBot
I am trying to run the AllPagesBot (Manual:Chris G's botclasses/AllPagesBot.php ) to get a list of urls to all wiki pages. I have created a new bot username and password and replaced the login information at the appropriate line but login still fails repeatedly. Saumyagoyal01 (talk) 07:36, 14 May 2021 (UTC)
- What makes you think that it fails? Malyacko (talk) 09:30, 14 May 2021 (UTC)
- Sorry for the lack of detail. I added print statement checks around the `$wiki->login( $user,$pass );` line so that I know that the program doesn't proceed beyond this line. While running the program retries the login post request 10 times (according to the query function in botclasses.php ) before finally throwing an HTTP error. The error code for login post requests is 403.
- EDIT: I changed the url from http to https in the bot and it has stopped retrying repeatedly. Now I am getting a straight forward login error. I have tried both the possibilities of giving `username@botname` as user and `botpassword` as password, and giving `username` as user and `botname@botpassword` as password but both fail. Could you please describe in what format I am supposed to give the login and password details? Saumyagoyal01 (talk) 11:35, 14 May 2021 (UTC)
- Where to see code that you use for authentication? Which MediaWiki version do you run? Malyacko (talk) 14:14, 14 May 2021 (UTC)
- I am using wikimedia version 1.37.0-wmf.5 as shown on the Special:Version page. Code for authentication is called on line 18 of the AllPagesBot.php which is `$wiki->login( $user,$pass );` . This calls the login function on line 452 of botclasses.php ( at url https://en.wikipedia.org/wiki/User:RMCD_bot/botclasses.php ). Sorry if I misunderstood your question, I am new to using the wikimedia api Saumyagoyal01 (talk) 17:47, 14 May 2021 (UTC)
- Code on that "AllPagesBot.php" page is nine years old and MediaWiki authentication has likely seen some changes in the meantime. Did you intentionally choose to use "Chris G's botclasses" over some potentially more actively maintained bot frameworks? Malyacko (talk) 19:21, 14 May 2021 (UTC)
- @Saumyagoyal01 ping? Malyacko (talk) 20:27, 20 May 2021 (UTC)
Missing pages after migration
I recently migrated and upgraded my wiki to a newer server but I notices some links to some pages are red and when I follow the link it takes me to a page that says that that page don't exist but it does exist in the older wiki. 2806:2F0:5001:C8E6:794D:B9A1:BDA1:4703 (talk) 16:48, 14 May 2021 (UTC)
- Did you restore the database with the most recent backup, or did you restore it from an ancient backup? Also, check if the pages that are missing have non-ascii characters in the title, which may indicate they may be restored with failed characters due to bad encoding Ciencia Al Poder (talk) 13:11, 15 May 2021 (UTC)
- In my old wike some pages feature a link to get to the previous page at the top of the page but after migration those are gone, is there a feature part of an extension? Is there any extension for version 1.35 that does the same? 2806:2F0:5001:C8E6:192A:61FB:6D0B:892E (talk) 18:36, 18 May 2021 (UTC)
- It may be provided by a Extension:BreadCrumbs or similar (there are several ones like this) Ciencia Al Poder (talk) 14:41, 19 May 2021 (UTC)
Understanding page lag
I run a small 4k page wiki. Pages in my template namespace frequently take a long time to load and I'm not sure why. Basic developer tools in-browser indicates its largely a rendering issue, but I'm not sure how to boil it down more than that. I've installed apc and have set:
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = array();
$wgCacheDirectory = "$IP/cache"
How can I learn more about what is causing these problems?
I'm running:
| Product | Version |
|---|---|
| MediaWiki | 1.35.2 |
| PHP | 7.4.18 (apache2handler) |
| MySQL | 5.7.33-0ubuntu0.16.04.1-log |
| ICU | 65.1 |
| Lua | 5.1.5 |
| Elasticsearch | 6.5.4 |
Backlitt (talk) 18:04, 14 May 2021 (UTC)
- First off, check size of apcu.shm_size if its too small, could cause issues (normally you want somewhere between 32mb-256mb depending on size of site)
- Follow instructions at Profiling to see what part is taking long Bawolff (talk) 00:33, 15 May 2021 (UTC)
- apcu.shm_size doesn't seem to be a problem (1 segment with 32 bytes; cache full count is always zero; never seen the used cache go above 10%).
- Wasn't having luck with Tideways, but I did manage to get this return from wgProfiler on one of my problem pages (Template:ambox):
| wgProfiler readout |
|---|
|
- I did have $wgUseCategoryBrowser enabled, and disabled that. Basically the same sort of results. Backlitt (talk) 18:19, 18 May 2021 (UTC)
What could make Common.css to be not effective?
I have upgraded my principally all core MediaWiki website from 1.35.0 to 1.35.2 ; the site itself works fine but from some reason CSS code in Special:Common.css (which is the same as before) is just not effective or ignored.
What might cause that problem?
Thanks, 2001:44C8:42C0:D152:D423:1042:C26A:F41E (talk) 18:12, 14 May 2021 (UTC)
- I think it's a bug in the beta version CDN of my new hosting environment (now the CSS does get loaded)...
- Webpages with www get loaded with no CSS at all --- another strange behavior 2001:44C8:42C0:D152:D423:1042:C26A:F41E (talk) 18:16, 14 May 2021 (UTC)
- Favicons struggle to get loaded on my site, but I am fairly certain this is Cloudflare's doing.
- You might want to contact your host and Cloudflare (Assuming you have your site protected by it) to get this solved. MarioSuperstar77 (talk) 19:20, 14 May 2021 (UTC)
- Either a staff member there added some strange CSS-JS
.htaccessdirectives I have deleted or these strange CSS-JS.htaccessdirectives I have deleted were added by the beta CDN. - Problem fixed via
.htaccess. 2001:44C8:42C0:D152:4522:E95F:B71F:AF59 (talk) 20:31, 14 May 2021 (UTC)
Injecting HTML between two well defined areas of a website with LocalSettings.php
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Principally all-core MediaWiki 1.35.2 with Skin:Timeless.
I would like to add a div tag with some plain text in it, exactly between #mw-content-container (main content area) and #footer-bottom (main footer area) in skin:Timeless directly via LocalSettings.php.
- I don't want to customize timeless itself
- I don't want to inject that code with JavaScript...
- I need that to be from PHP but in a way that won't change the core...
- I prefer not to use any additional extension for this.
Please share with me just a concept name of a PHP 7.4 method or something similar for code injection and I would try to read about it and implement it...
I prefer PHP injection over JavaScript injection because its more SEO-friendly (Google crawlers run scripts in 2021, yes, but I don't know about various other search engine crawlers).
Thanks, 2001:44C8:428B:34E0:90CF:7E77:DDA5:EA2C (talk) 08:18, 15 May 2021 (UTC)
- See Manual:Hooks/SkinAfterContent – Ammarpad (talk) 09:14, 15 May 2021 (UTC)
- Hello @Ammarpad. I have tried to add a code with the following pattern to the end of my LocalSettings.php but my website just stop working (HTTP error 500) so for now I have deleted that code:2001:44C8:428B:34E0:90CF:7E77:DDA5:EA2C (talk) 11:06, 15 May 2021 (UTC)
public static function onSkinAfterContent( &$data, Skin $skin ) { <div> <span>טקסט</span> </div> } - Sorry for any embarrassment, I barely know PHP. 2001:44C8:428B:34E0:90CF:7E77:DDA5:EA2C (talk) 11:11, 15 May 2021 (UTC)
- Use this:– Ammarpad (talk) 11:25, 15 May 2021 (UTC)
$wgHooks['SkinAfterContent'][] = function(&$data, Skin $skin) { $data = "<div><span>טקסט</span></div>"; return true; }; - Fine, thanks. 2001:44C8:4306:9FD6:48E4:2653:831E:9D69 (talk) 13:30, 15 May 2021 (UTC)
Making the Wiki more user friendly
Hello, are there any plugins that might make a wiki page more user friendly? Easier to use as in making pages and editing them as well as searching through it. JokerLow (talk) 18:12, 15 May 2021 (UTC)
- You can make a page in a wiki. At first you should choose a suitable topic. Then you can make a page about that topic. But make sure that your page is carrying some proper references. After publishing your page anyone can see it on the search box easily. ↠Tanbirzx (✉) 19:05, 15 May 2021 (UTC)
- That's not what I meant, probably my fault for not explaining it better, since I'm pretty tired, so I'm sorry about that.
- What I meant is, are there any plugins that could make the wiki user interface and editing system more pleasing and easy for new people to use?
- Like looking at fandom.com, when making a page and editing it, it is a very easy and pleasing thing to do, so I was wondering if there are any plugins which could imitate the same feeling. JokerLow (talk) 20:05, 15 May 2021 (UTC)
- You should have the Visual Editor already installed, if not then it is available there: VisualEditor MarioSuperstar77 (talk) 20:27, 15 May 2021 (UTC)
- If you do install the extension (Because it is missing on your installation), make sure to unzip the file in the /extension directory and then validate the file via localsettings.php, then update your site either via update.php (Under /maintenance) or by "re-installing" Mediawiki, I don't know how to explain it, but that won't actually re-install Mediawiki, it will just update it. MarioSuperstar77 (talk) 21:48, 15 May 2021 (UTC)
- Oh so its just VisualEditor that makes editing more pleasant and easy for people? JokerLow (talk) 11:57, 17 May 2021 (UTC)
Private Wikis
This probably sounds like a really silly question, but I've exhausted all other opportunities at this point and I don't really want to waste investment in getting to grips with this if this isn't possible, so just hear me out:
I'm trying to make use of a wiki format to make my worldbuilding notes for a writing project I'm working on more streamlined and coherent, and for this reason I'd rather not have all of the rough edges and spoilers out there for the public to see, so is there some way to make a wiki created with this available to view by only an exclusive number of people and nobody else? 92.14.87.38 (talk) 20:08, 15 May 2021 (UTC)
- Basically, yes.
- You might create a user group which has the right to
readand edit everything. At least you should be a member yourself. - The main page is to be visible for everybody, and perhaps there are a few pages where you publish your work.
- Then create a
Private:namespace. Givereadand perhaps edit right (and page creation) to close user groups. Revocate such rights for this namespace in general. TheMediaWiki:namespace is an example for a namespace which may be edited by members of sysop group only, However, it can bereadby everybody. - Please note that a wiki is made to publish information, not to hide. Technically it is possible to organize things in the way you asked, but it might be a bit tricky to confgure. foundation: is a wiki which works as you expect. Note that traces like page lists or links might be visible or could be guessed. PerfektesChaos (talk) 22:24, 15 May 2021 (UTC)
- Hide the whole thing using .htaccess and give your friends passwords :-) Jonathan3 (talk) 08:56, 16 May 2021 (UTC)
- See manual:Preventing access. Having private to public, with some usrs read only (everything) and some other users read/write everything is one of the easier scenarios to set up with mediawiki. Bawolff (talk) 10:01, 16 May 2021 (UTC)
- Hide the whole thing with a password is a better option so your site doesn't get indexed by anything. STEM (talk) 22:29, 21 May 2021 (UTC)
Unable to change my Wiki's logo
I've tried multiple different methods of changing my Wiki site's logo, but each one simply caused my site to crash (unable to load or show anything). I need help changing the site's logo that doesn't cause the entire site to go down. 2603:6010:8200:3D5A:35A8:3DE2:AC3A:893C (talk) 01:28, 16 May 2021 (UTC)
- Have you read Manual:$wgLogos? I can see an example there. – Ammarpad (talk) 08:55, 16 May 2021 (UTC)
- How to debug Bawolff (talk) 09:58, 16 May 2021 (UTC)
Failed to create continuous numeric list
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi guys
I created a numeric list. but when I insert a code block between two items, second item's number will reset to 1. How can I fix it?
Thank you so much 62.102.131.170 (talk) 12:14, 16 May 2021 (UTC)
- Not possible with wikitext only. You can set the next value with HTML directly though. Something like this:
#A #B #C Some text in between # <li value="4">D</li> #E
- A
- B
- C
- Some text in between
- D
- It works. Thank you so much 62.102.131.170 (talk) 11:28, 17 May 2021 (UTC)
Upgrade mediawiki 1.24.1 to 1.35.2 error not found
Hello,
ive upgraded my wiki and now, i can't access, error 404...
http://wiki.domain.fr/ redirect to http://wiki.domain.fr/wiki/Accueil with 404...
log apache give only Get 404...
htaccess:
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
# main rewrite rule
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
<FilesMatch "\.(exe|sp|smx|conf|py|zip|rar|txt|sh|tar.gz)$">
Allow from all
</FilesMatch>
php_value upload_tmp_dir tmp/
LocalSettings.php:
$wgScriptPath = "/wiki";
$wgScriptExtension = ".php";
$wgArticlePath = "$wgScriptPath/$1";
$wgUsePathInfo = true;
$wgServer = "http://wiki.domain.fr";
I can't use https://shorturls.redwerks.org/, he said:
Sorry, this does not look like a wiki.
We could not find a rel=EditRSD in the url you specified nor could we find a generator meta item with MediaWiki information in it.
- MediaWiki is located at:
/opt/wiki/index.php - .htaccess is located at:
/opt/wiki/.htaccess
VirtualHost:
<VirtualHost *:80>
ServerAdmin dtc@localhost
DocumentRoot /opt/wiki
ServerName wiki.domain.fr
Alias /opt/wiki "/var/www/html/wiki/"
<Directory /var/www/html/wiki/>
Options FollowSymLinks Indexes
DirectoryIndex index.php
AllowOverride All (tested FileInfo same)
Require all granted
Require valid-user
</Directory>
ErrorLog ${APACHE_LOG_DIR}/errorwiki.log
CustomLog ${APACHE_LOG_DIR}/accesswiki.log combined
</VirtualHost>
Apache 2.4.38
php7.3-fpm Free4Funs (talk) 18:35, 16 May 2021 (UTC)
- $wgScriptPath should be ''
- $wgArticlePath should be '/wiki/$1'
- Using single quoutes (') not double quotes (") is important here.
- That will match your localsettings.pho to what you have in .htaccess, but may or may not be what you actually want. Bawolff (talk) 22:10, 16 May 2021 (UTC)
- same, getting 404:
- $wgScriptPath = ;
- $wgScriptExtension = ".php";
- $wgArticlePath = '/wiki/$1';
- $wgUsePathInfo = true;
- XX.XXX.XXX.XXX - - [17/May/2021:08:19:47 +0200] "GET /wiki/Accueil HTTP/1.1" 404 397 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 OPR/76.0.4017.107" Free4Funs (talk) 06:20, 17 May 2021 (UTC)
Lua not working
I'm trying to import Infobox templates from Wikipedia onto my wiki, but I'm running into trouble from Scribunto. I get this error message: "Lua error: Internal error: The interpreter has terminated with signal "11"." I'm on a Windows 64-bit computer. I don't know what I can do. 2603:6010:8200:3D5A:35A8:3DE2:AC3A:893C (talk) 22:11, 16 May 2021 (UTC)
- Have you tried to search for that error message? Malyacko (talk) 07:27, 17 May 2021 (UTC)
- I've only just installed Scribunto myself, but I guess the first question is whether any Lua module works on your wiki. Jonathan3 (talk) 08:42, 18 May 2021 (UTC)
EmbedVideo plugin margin
I'm using the embedvideo plugin on my site and it works fine however the text of the page completely surrounds it. I'm not sure where I include some sort of margin-left: 50px to make it work so any suggestions, I'm new to css.
24.45.134.47 (talk) 02:41, 17 May 2021 (UTC)
- Forgot to say thanks and to include some code:
- Dannyelectron (talk) 03:09, 17 May 2021 (UTC)
{{#evt:service=youtube||||id={{{id}}}|dimensions={{{dimensions|480x360}}}|alignment={{{alignment|right}}}|description={{{description}}}|urlargs=start={{{start|0}}}|autoresize=true}}
Administrator cannot login
I have accidentally locked myself out of my wiki that I am building. I logged out and the wiki now renders with no login navigation available. This has occured whilst trying a new skin Tweeki. The last time I looked there was a login in the footer (but that might have been at the Twiki example site not my wiki)
It is moma.miraheze.org
my username is museumofmovingart and my email address is movingmoma@protonmail.org Museumofmovingart (talk) 09:26, 17 May 2021 (UTC)
- You can go to https://moma.miraheze.org/wiki/Special:UserLogin. Leaderboard (talk) 09:34, 17 May 2021 (UTC)
'""C:' is not recognized as an internal or external command, operable program or batch file.
Hello everyone,
After I received "Lua error: Internal error: The interpreter exited with status 1" when trying to create a module, I assigned an error file log through LocalSettings.php ($wgScribuntoEngineConf['luastandalone']['errorFile']). I discovered that I had to point a Lua Path ($wgScribuntoEngineConf['luastandalone']['luaPath']), which I did, to this location:
" 'C:/xampp/htdocs/mediawiki/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_Win64_bin/lua5.1' "
It still didn't work. Nevertheless, I got this message in the error log:
""C:' is not recognized as an internal or external command, operable program or batch file.
I tried to view if php's proc_open was restricted, either in .htaccess or in php.ini, but it seemed to not be the case. I didn't manually download this extension (it came with the original mediawiki download), and I don't know if I need to execute the command "chmod a+x /path/to/extensions/Scribunto/includes/engines/LuaStandalone/binaries/yourOS/lua" (and where I would need to execute it [in Ubuntu? I don't know, I'm fairly a noob when it comes to this]).
Please, help me fix this,
Thanks in advance. ChromiaIV (talk) 10:45, 17 May 2021 (UTC)
- What exactly is your config? Did you use quotes as you have written out here as that looks wrong. Bawolff (talk) 07:52, 19 May 2021 (UTC)
- My config is the following:
- $wgScribuntoDefaultEngine = 'luastandalone';
- $wgScribuntoUseGeSHi = true;
- $wgScribuntoUseCodeEditor = true;
- $wgScribuntoEngineConf['luastandalone']['errorFile'] = 'C:/xampp/htdocs/mediawiki/Imagens';
- $wgScribuntoEngineConf['luastandalone']['luaPath'] = 'C:/xampp/htdocs/mediawiki/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_Win64_bin/lua5.1'; ChromiaIV (talk) 10:53, 19 May 2021 (UTC)
Import Error
When I try to import from zh.wikipedia.org ( with $wgImportSources ), server throw a error with no stack:
Fatal error: Maximum execution time of 120 seconds exceeded in $IP/mediawiki/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php on line 461
By the way, I comment out this file's line 131 because it make some error. SunAfterRain 13:52, 17 May 2021 (UTC)
Wiki search jump to a section in a page instead of just showing the page
Hello there,
By default, when I click on a search result, wiki takes me to the page and I have to find the search term inside the page again. Is there an option that I can turn on or an extension that I can download so it automatically jumps to the section where the search term lives? 68.129.140.104 (talk) 14:13, 17 May 2021 (UTC)
- Not that I'm aware of, though it would be useful! Jonathan3 (talk) 08:40, 18 May 2021 (UTC)
How do I enable 2FA for myself on MediaWiki?
How do I enable 2FA for myself on MediaWiki?
1Password is nagging me to turn on 2FA for MediaWiki. BMC-Bruce (talk) 16:59, 17 May 2021 (UTC)
- On this site? You need to ask for 2FA tester on Meta. If this is your own wiki, look at Extension:OATHAuth. Leaderboard (talk) 19:09, 17 May 2021 (UTC)
PHP (multiple) version issues
Using: RHEL 8
trying to install MediaWiki 1.3.5
I have two versions of php loaded to my server - one (loaded first) is for Nagios monitoring ( version 7.2.24 ) and one I just installed ( version 8.0.6 ). When "I" run 'php --version' (as myself or as root) I get:
# php --version
PHP 8.0.6 (cli) (built: May 17 2021 10:20:11) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.6, Copyright (c) Zend Technologies
Unfortunately, the index.php sees:
MediaWiki 1.35 internal error
MediaWiki 1.35 requires PHP 7.3.19 or higher; you are using PHP 7.2.24
How can I / Where can I change the path so MediaWiki sees /usr/local/bin/php and not /usr/bin/php.
I cannot remove the older version or it breaks my monitoring software.
And - thank you.
--
Jeff 170.94.252.219 (talk) 18:07, 17 May 2021 (UTC)
- so, seeing that (at least in some pages) v8 might not be supported, I installed
- # php --version
- PHP 7.4.19 (cli) (built: May 17 2021 13:24:07) ( NTS )
- Copyright (c) The PHP Group
- Zend Engine v3.4.0, Copyright (c) Zend Technologies
- still seeing the same error. I need it to look at /usr/local/bin, and not /usr/bin. 170.94.252.219 (talk) 18:29, 17 May 2021 (UTC)
- thanks for the help - I got it. 170.94.252.219 (talk) 20:00, 17 May 2021 (UTC)
- What was your answer? :-) Jonathan3 (talk) 08:39, 18 May 2021 (UTC)
- command line pho is separate from webserver php. Bawolff (talk) 07:49, 19 May 2021 (UTC)
- Yes but I was hoping he'd say what he did. I've had a similar problem in the past but have forgotten how I fixed it :-) Jonathan3 (talk) 08:36, 19 May 2021 (UTC)
Bad search filter error
I have moved my mediawiki server to the AWS cloud and in the process, updated the server OS (Ubuntu 20.04.2 LTS). I previously was using LDAPAuthentication and am struggling to transition to the newer LDAP Stack configuration. I am able to connect to my LDAP server (verified via ldapsearch), but my login on the mediawiki consistently comes up with the error Could not authenticate credentials against domain "XXX".
| Product | Version |
|---|---|
| MediaWiki | 1.31.0 |
| PHP | 7.4.3 (apache2handler) |
| MySQL | 5.7.33 |
| ICU | 66.1 |
| Extension | Version | License | Description | Authors |
|---|---|---|---|---|
| LDAPAuthentication2 | 1.0.2 (7868a59) 15:04, 7 January 2021 | GPL-2.0 | Allows authentication against a LDAP resource | Cindy Cicalese, Mark A. Hershberger and Robert Vogel |
| LDAPProvider | 1.0.5 (a785458) 10:54, 7 January 2021 | GPL-2.0+ | Provides a common infratructure to connect to a LDAP resource and run queries against it | Cindy Cicalese, Mark A. Hershberger and Robert Vogel |
| PluggableAuth | 5.4 (eb1b638) 15:14, 2 January 2021 | License | Provides framework for pluggable authentication and authorization | Cindy Cicalese |
I ran the Config conversion tool to convert my old LDAP Authentication code to a new json file. I have tweaked this a bit from that conversion, but have had no success. My ldapprovider.json is as follows:
{
"XXX": {
"connection": {
"server": "XXX.XXX.XXX.EDU",
"port": "636",
"enctype": "ssl",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "ou=active,ou=users,ou=data,o=xxx",
"searchstring": "uid=USER-NAME,ou=active,ou=users,ou=data,o=xxx"
}
}
}
I have the following in my LocalSetting.php:
#---------------LDAP---------------
#---------------Extension LDAPProvider---------------
#provides classes and configuration to query data from LDAP resources
wfLoadExtension( 'LDAPProvider' );
$ldapJsonFile = "$IP/extensions/LDAPProvider/docs/ldapproviderXXX.json";
$LDAPProviderDomainConfigs = $ldapJsonFile;
#---------------Extension PluggableAuth---------------
#provides a framework for creating and using authentication and authorization extensions
wfLoadExtension( 'PluggableAuth' );
$wgPluggableAuth_EnableAutoLogin = false; #if true, disables the logout option
$wgPluggableAuth_EnableLocalLogin = false;
$wgPluggableAuth_ButtonLabel = "Login...";
#---------------Extension LDAPAuthentication2---------------
wfLoadExtension( 'LDAPAuthentication2' );
$LDAPAuthentication2AllowLocalLogin = false;
I have turned on debugging and will get the following:
LDAPAuth2.log error log
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: In execute()
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: Getting PluggableAuth singleton
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: Class name: MediaWiki\Extension\LDAPAuthentication2\PluggableAuth
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: ldap_connect( $hostname = 'ldaps://XXX.XXX.XXX.EDU:636', $port = 389 );
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: # __METHOD__ returns Resource id #32
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: Setting LDAP_OPT_PROTOCOL_VERSION to 3
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: ldap_set_option( $linkID, $option = 17, $newval = 3 );
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: # returns 1
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: Setting LDAP_OPT_REFERRALS to 0
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: ldap_set_option( $linkID, $option = 8, $newval = 0 );
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: # returns 1
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: Setting LDAP_OPT_DEREF to 1
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: ldap_set_option( $linkID, $option = 2, $newval = 1 );
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: # returns 1
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: ldap_bind( $linkID, $bindRDN = '', $bindPassword = 'XXXX' );
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: # returns 1
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: MediaWiki\Extension\LDAPProvider\Client::getSearchString: User DN is: 'uid=xxxxxxxx,ou=active,ou=users,ou=data,o=xxx'
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: ldap_bind( $linkID, $bindRDN = 'uid=xxxxxxxx,ou=active,ou=users,ou=data,o=xxx', $bindPassword = 'XXXX' );
2021-05-13 17:11:22 ip-10-252-16-148 iacwikidb-iacwiki_: # returns
2021-05-13 17:11:38 ip-10-252-16-148 iacwikidb-iacwiki_: Authentication failure.
2021-05-13 17:11:38 ip-10-252-16-148 iacwikidb-iacwiki_: ERROR: Could not authenticate credentials against domain "XXX"
I have also ran
php extensions/LDAPProvider/maintenance/ShowUserInfo.php --domain="XXX" --username="xxxxxxxx"
[6cf4b4fecc02ccf74f908e39] [no req] MWException from line 209 of /wikidata/wikis/mediawiki/extensions/LDAPProvider/src/Client.php: Error in LDAP search: Bad search filter
Backtrace:
#0 /wikidata/wikis/mediawiki/extensions/LDAPProvider/src/UserInfoRequest.php(61): MediaWiki\Extension\LDAPProvider\Client->search()
#1 /wikidata/wikis/mediawiki/extensions/LDAPProvider/src/Client.php(242): MediaWiki\Extension\LDAPProvider\UserInfoRequest->getUserInfo()
#2 /wikidata/wikis/mediawiki/includes/libs/objectcache/BagOStuff.php(156): MediaWiki\Extension\LDAPProvider\Client->MediaWiki\Extension\LDAPProvider\{closure}()
#3 /wikidata/wikis/mediawiki/extensions/LDAPProvider/src/Client.php(243): BagOStuff->getWithSetCallback()
#4 /wikidata/wikis/mediawiki/extensions/LDAPProvider/maintenance/ShowUserInfo.php(48): MediaWiki\Extension\LDAPProvider\Client->getUserInfo()
#5 /wikidata/wikis/mediawiki/maintenance/doMaintenance.php(94): MediaWiki\Extension\LDAPProvider\Maintenance\ShowUserInfo->execute()
#6 /wikidata/wikis/mediawiki/extensions/LDAPProvider/maintenance/ShowUserInfo.php(71): require_once(string)
Any help is greatly appreciated. I am unsure of what my issue is. I am planning on upgrading to 1.35, but wanted to get this sorted out before I proceed with that upgrade. Serrkind (talk) 18:38, 17 May 2021 (UTC)
- @Serrkind On an unrelated note, you are running an outdated insecure version. Please upgrade for your own safety. Malyacko (talk) 08:59, 18 May 2021 (UTC)
- Yes, thank you. That is my plans once I have the LDAP Authentication running. Serrkind (talk) 13:23, 18 May 2021 (UTC)
File upload does not work
Using Centos 7, Mediawiki 1.32.
I followed the guide and various posts. I set wgEnableUploads, made apache the owner of the entire wiki folder recursively, chmod 777 the folders, tried the chcon commands but nothing to do.
I enabled logging and the only errors I see are the ones i'm listing here below:
ZipDirectoryReader: Fatal error: zip file lacks EOCDR signature. It probably isn't a zip file.
UploadBase::detectVirus: virus scanner disabled
[Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of /tmp/phpb3oRcS for magic numbers.
[Mime] MimeAnalyzer::doGuessMimeType: getimagesize detected /tmp/phpb3oRcS as image/jpeg
[Mime] MimeAnalyzer::guessMimeType: guessed mime type of /tmp/phpb3oRcS: image/jpeg
[Mime] MimeAnalyzer::improveTypeFromExtension: improved mime type for .jpg: image/jpeg
UploadBase::verifyExtension: mime type image/jpeg matches extension jpg, passing file
UploadBase::verifyFile: all clear; passing.
[DBQuery] startAtomic: entering level 0 (LocalFile::lockingTransaction)
[DBQuery] endAtomic: leaving level 0 (LocalFile::lockingTransaction)
[LocalFile] Failed to lock 'A.jpg'
MediaWiki::preOutputCommit: primary transaction round committed
MediaWiki::preOutputCommit: pre-send deferred updates completed
MediaWiki::preOutputCommit: LBFactory shutdown completed
[GlobalTitleFail] MessageCache::parse called by ErrorPageError->report/OutputPage->showErrorPage/Message->parseAsBlock/Message->toString/Message->parseText/MessageCache->parse with no title set.
User: loading options for user 1 from override cache.
User: loading options for user 1 from override cache.
User: loading options for user 1 from override cache.
OutputPage::sendCacheControl: no caching **
Request ended normally
[session] Saving all sessions on shutdown
[DBConnection] Wikimedia\Rdbms\LoadBalancer::closeAll: closing connection to database 'localhost'.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::closeAll: closing connection to database 'localhost'.
I simply tried to upload a jpg file named A.jpg.
PS I also modified the database name, since it had non aplhanumeric chars.
What am I missing?
Thank you in advance. Shinkun x (talk) 21:43, 17 May 2021 (UTC)
- As a fellow amateur, I'd try to upload other files to your wiki, and that file to another wiki. Jonathan3 (talk) 08:36, 18 May 2021 (UTC)
- maybe something weird with the db. Bawolff (talk) 07:48, 19 May 2021 (UTC)
- Isn't there anything else to try/that I am missing? It is kinda too much generic, like this... Shinkun x (talk) 16:00, 19 May 2021 (UTC)
- Have you experimented by trying to upload other files to your wiki?
- Have you tried to upload the same A.jpg file to another wiki? Jonathan3 (talk) 23:50, 20 May 2021 (UTC)
Copying article
How to Automatically copies specified articles from Wikipedia to my wiki Suntq (talk) 01:05, 18 May 2021 (UTC)
- Maybe it is not possible to copy articles and information automatically. You can follow a manual way to copy some data.
- For more help you can read this-
- Help:Export ↠Tanbirzx (✉) 04:52, 18 May 2021 (UTC)
Personal Site
Hi, I recently heard that mediawiki is a website where you get to have your own personal and private wiki page that you and chosen friends can edit. Do you know where I can find that feature, because I haven't found it yet. HT and BP Adventures (talk) 12:54, 18 May 2021 (UTC)
- That statement is incorrect. See Project:About. You can set up your own instance however if you want. Leaderboard (talk) 14:13, 18 May 2021 (UTC)
Constantly updating database (1.23.6) to a currently not yet fully upgraded wiki (1.35.x)
Hi there,
My wiki is about 14 years old and it is currently running on MediaWiki 1.23.6. Now I have some capacity to upgrade it all to the latest version, and I succeeded to upgrade the wiki and the database to some degree with the following steps (roughly):
- creating a database 1.23.6 backup from my live site
- importing the database backup to a local instance
- running php update.php (and fix mw_actor duplicate entry for an empty string issue then running the update script again) so that it gets upgraded to 1.35.x
- fixing multiple upgrade issues (extensions, skins, etc)
The preliminary working version seems to work, but my live site wiki is updated on daily basis and I have to replicate those changes to the experiment. The scenario I'm assuming to be viable:
- creating another database 1.23.6 backup from the live site
- re-importing the newer version of the database to the local instance, so that it's 1.23.6 again and there is nothing from the update.php script here
- running php update.php
However, the last step, running the updater, fails with the following error:
[66de72975fa83c5cdb91a36a] [no req] Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/html/w/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Error 1146: Table 'wiki.mw_revision_comment_temp' doesn't exist (172.21.0.2) Function: MessageCache::loadFromDB(en)-small Query: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `mw_page` JOIN `mw_revision` ON ((page_id = rev_page)) JOIN `mw_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `mw_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `mw_revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `mw_actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) LEFT JOIN `mw_user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)
I'm assuming the MediaWiki database does not contain any migration info as now, because the new backup overwrites my local wiki database entirely after the update.php script is expected to work fine, however it doesn't. So, it turns out, the database migration version is stored somewhere else, say on the wiki file system?
My questions are:
- Where does MediaWiki store the last applied database migration info? (For example, drop the last database migration version back to 1.23.6 so that the update.php could run again)
- Or am I just doing it entirely wrong and there's a correct way for my scenario? 178.94.86.168 (talk) 13:06, 18 May 2021 (UTC)
- Your steps seem correct. However, there's one point that may cause issues:
- running php update.php (and fix mw_actor duplicate entry for an empty string issue then running the update script again) so that it gets upgraded to 1.35.x
- Do you mean you run update.php, it fails, you fix the problem on the database and then run update.php again? update.php runs other maintenance scripts, some of them can run only once. One of those scripts may not run again if it failed in the middle, leaving some inconsistencies, even if you run update.php again. So best idea is to fix the cause of the script failure before running update.php (restoring from backup if necessary)
- On the other side, the error you're encountering seems to be a bug. The updater shouldn't try to get messages from the database at this stage (phab:T231378). Maybe this happens when you're upgrading from a "very old version" to 1.35. You can try to do the upgrade to 1.31 first Ciencia Al Poder (talk) 13:41, 18 May 2021 (UTC)
- @Ciencia Al Poder
- (sidenote: My current upgrade version is 1.35.2 (as I'm interpreting RELEASE-NOTES-1.35 correctly))
- By the way, I forgot to mention that the "actor" table error occurred a few mins after in the middle of the update.php progress, but the bigger error in my initial message is occurring immediately, just once I re-run the update.php script.
- > Do you mean you run update.php, it fails, you fix the problem on the database and then run update.php again?
- Yes. I've encountered an error while running the script that failed with a duplicate row in mw_actor (not complete as this is only found from a log message in git that I use to make the wiki and database snapshots):
Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/html/w/includes/libs/rdbms/database/Database.php: Error 1062: Duplicate entry for key 'actor_name' (172.21.0.2)Function: MigrateActors::addActorsForRows- Some googling led me to a solution to delete the row with an empty name and run the script again. I understand the downsides of such a fix and possible database state inconsistencies, but this is where I proceeded from and further, and it seemed to work unless I attempted to re-import the database backup from the old wiki site to the new wiki instance.
- > Maybe this happens when you're upgrading from a "very old version" to 1.35. You can try to do the upgrade to 1.31 first
- Not sure if it's really possible because I had to spend a few days to struggle with the upgrade issues and I did too many changes on top of it (and not even sure even if it's now possible even with git history capabilities without messing the things around).
- Anyway, this makes me think that MediaWiki migration data is stored on the file system, because the database is clean but does not behave the same way when I encountered the actor table error (for the first time, and only once).
- I'm wondering: if the database is clean ("clean" equals to "just reimported from the old wiki without any upgrades"), how does the update.php script know where to start the migration from and does it not start it from the very beginning (assuming the very beginning is 1.23.6 and not something in the middle)?
- Thank you! 178.94.86.168 (talk) 14:10, 18 May 2021 (UTC)
- Database migration state is stored in the updatelog table. When you import the database you're basically overwriting it, which means you always start from scratch.
- You may also try to run migrateComments.php before update.php (this is one of the scripts that runs only once) Ciencia Al Poder (talk) 15:18, 18 May 2021 (UTC)
- > You may also try to run migrateComments.php before update.php (this is one of the scripts that runs only once)
- Running `migrateComments.php` is producing `Error 1146: Table 'wiki.mw_revision_comment_temp' doesn't exist (172.21.0.2)`.
- > When you import the database you're basically overwriting it, which means you always start from scratch.
- Absolutely true. In theory. However, I still don't get why update.php fails immediately on the just imported 1.23.6 database as if I were running migrateComments.php immediately. Even deleting everything from the updatelog table doesn't change its behavior (at least I expected it to behave differently, not necessarily to work but at least producing different logs). I really don't get what is happening. 178.94.86.168 (talk) 22:52, 18 May 2021 (UTC)
- From what I understand, the update.php fails everytime, even the first attempt. There's no change, so I'm lost why do you think it stores upgrade state outside of the database. Anyway, that's not the problem you're having.
- The upgrade problem seems to be related to phab:T231378. Feel free to open a new task and mention it there, or add a comment to that task.
- The only recommendation I can do is to upgrade to 1.33 or 1.34 first, and then upgrade to 1.35, just in case a direct upgrade has a bug (which apparently there are) Ciencia Al Poder (talk) 14:47, 19 May 2021 (UTC)
- @Ciencia Al Poder
- > There's no change, so I'm lost why do you think it stores upgrade state outside of the database.
- Just because I encountered this error only once I re-imported a newer backup from the 1.23.6 live site a few days after I proceeded with the upgrade steps (assuming there were almost no changes at the live site, I'd assume it should survive the update.php running, and this why I suspect that the migration info is stored outside the database). But yeah, let's just skip it for a while.
- Regarding T231378, if I'm getting it correct, I would have to provide the backtrace first in my initial message, not just the "the table is missing, help" message... Now I see, that the question is incomplete and loses context greatly.
#0 /var/www/html/w/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)#1 /var/www/html/w/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)#2 /var/www/html/w/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)#3 /var/www/html/w/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)#4 /var/www/html/w/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)#5 /var/www/html/w/includes/libs/rdbms/database/DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call(string, array)#6 /var/www/html/w/includes/cache/MessageCache.php(573): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array)#7 /var/www/html/w/includes/cache/MessageCache.php(448): MessageCache->loadFromDB(string, NULL)#8 /var/www/html/w/includes/cache/MessageCache.php(371): MessageCache->loadFromDBWithLock(string, array, NULL)#9 /var/www/html/w/includes/cache/MessageCache.php(1091): MessageCache->load(string)#10 /var/www/html/w/includes/cache/MessageCache.php(1017): MessageCache->getMsgFromNamespace(string, string)#11 /var/www/html/w/includes/cache/MessageCache.php(988): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)#12 /var/www/html/w/includes/cache/MessageCache.php(930): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)#13 /var/www/html/w/includes/language/Message.php(1304): MessageCache->get(string, boolean, LanguageEn)#14 /var/www/html/w/includes/language/Message.php(862): Message->fetchMessage()#15 /var/www/html/w/includes/language/Message.php(954): Message->toString(string)#16 /var/www/html/w/extensions/Arrays/ExtArrays.php(56): Message->text()#17 /var/www/html/w/includes/HookContainer/HookContainer.php(321): ExtArrays::init(Parser)#18 /var/www/html/w/includes/HookContainer/HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)#19 /var/www/html/w/includes/HookContainer/HookRunner.php(2960): MediaWiki\HookContainer\HookContainer->run(string, array)#20 /var/www/html/w/includes/parser/Parser.php(532): MediaWiki\HookContainer\HookRunner->onParserFirstCallInit(Parser)#21 /var/www/html/w/includes/parser/Parser.php(477): Parser->firstCallInit()#22 /var/www/html/w/includes/parser/ParserFactory.php(142): Parser->__construct(MediaWiki\Config\ServiceOptions, MagicWordFactory, LanguageEn, ParserFactory, string, MediaWiki\SpecialPage\SpecialPageFactory, MediaWiki\Linker\LinkRendererFactory, NamespaceInfo, MediaWiki\Logger\LegacyLogger, MediaWiki\BadFileLookup, MediaWiki\Languages\LanguageConverterFactory, MediaWiki\HookContainer\HookContainer)#23 /var/www/html/w/includes/ServiceWiring.php(817): ParserFactory->create()#24 /var/www/html/w/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)#25 /var/www/html/w/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)#26 /var/www/html/w/includes/MediaWikiServices.php(1000): Wikimedia\Services\ServiceContainer->getService(string)#27 /var/www/html/w/includes/Setup.php(793): MediaWiki\MediaWikiServices->getParser()#28 /var/www/html/w/vendor/wikimedia/object-factory/src/ObjectFactory.php(172): {closure}()#29 /var/www/html/w/includes/StubObject.php(128): Wikimedia\ObjectFactory::getObjectFromSpec(array)#30 /var/www/html/w/includes/DeprecatedGlobal.php(55): StubObject->_newObject()#31 /var/www/html/w/includes/StubObject.php(172): DeprecatedGlobal->_newObject()#32 /var/www/html/w/includes/StubObject.php(115): StubObject->_unstub(string, integer)#33 /var/www/html/w/includes/StubObject.php(142): StubObject->_call(string, array)#34 /var/www/html/w/extensions/YearsOld/YearsOld.php(22): StubObject->__call(string, array)#35 /var/www/html/w/includes/Setup.php(806): efYearsOldSetup()#36 /var/www/html/w/maintenance/doMaintenance.php(91): require_once(string)#37 /var/www/html/w/maintenance/update.php(253): require_once(string)#38 {main}- So, if I'm getting it right, there are extensions that may cause this behavior? YearsOld, if I'm not mistaken, is a very old extension and not maintained for a decade (it is still loaded with the require_once pattern). Perhaps it's the root cause? (I have to check it later).
- > The only recommendation I can do is to upgrade to 1.33 or 1.34 first, and then upgrade to 1.35, just in case a direct upgrade has a bug (which apparently there are)
- I started a 1.23.6 to 1.31.x experiment yesterday and made some work. Hope it will work and will proceed with upgrade to 1.35 later.
- ----
- UPDATE. Well I disabled YearsOld, and update.php proceeds further! Wow... Sorry for messing around and losing tooooooo much time for your support... While it's running I hope I can do more later too. 178.94.86.168 (talk) 16:17, 19 May 2021 (UTC)
- UPDATE
- So yeah, the reason was the indirect "database state" outside database caused by the old extension. This is what I was looking for. A few mins after the update started, it failed with that very first actor table related error:
Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/html/w/includes/libs/rdbms/database/Database.php: Error 1062: Duplicate entry for key 'actor_name' (172.21.0.2)Function: MigrateActors::addActorsForRowsQuery: INSERT INTO `mw_actor` (actor_name) VALUES ()#0 /var/www/html/w/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException('Duplicate entry...', 1062, 'INSERT INTO `mw...', 'MigrateActors::...')#1 /var/www/html/w/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Duplicate entry...', 1062, 'INSERT INTO `mw...', 'MigrateActors::...')#2 /var/www/html/w/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError('Duplicate entry...', 1062, 'INSERT INTO `mw...', 'MigrateActors::...', false)#3 /var/www/html/w/includes/libs/rdbms/database/Database.php(2343): Wikimedia\Rdbms\Database->query('INSERT INTO `mw...', 'MigrateActors::...', 128)#4 /var/www/html/w/includes/libs/rdbms/database/Database.php(2323): Wikimedia\Rdbms\Database->doInsert('actor', Array, 'MigrateActors::...')#5 /var/www/html/w/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->insert('actor', Array, 'MigrateActors::...')#6 /var/www/html/w/includes/libs/rdbms/database/DBConnRef.php(369): Wikimedia\Rdbms\DBConnRef->__call('insert', Array)#7 /var/www/html/w/maintenance/includes/MigrateActors.php(219): Wikimedia\Rdbms\DBConnRef->insert('actor', Array, 'MigrateActors::...')#8 /var/www/html/w/maintenance/includes/MigrateActors.php(305): MigrateActors->addActorsForRows(Object(Wikimedia\Rdbms\MaintainableDBConnRef), 'log_user_text', Array, Array, 0)#9 /var/www/html/w/maintenance/includes/MigrateActors.php(115): MigrateActors->migrate('logging', Array, 'log_user', 'log_user_text', 'log_actor')#10 /var/www/html/w/maintenance/includes/LoggedUpdateMaintenance.php(45): MigrateActors->doDBUpdates()#11 /var/www/html/w/includes/installer/DatabaseUpdater.php(1385): LoggedUpdateMaintenance->execute()#12 /var/www/html/w/includes/installer/DatabaseUpdater.php(554): DatabaseUpdater->migrateActors()#13 /var/www/html/w/includes/installer/DatabaseUpdater.php(517): DatabaseUpdater->runUpdates(Array, false)#14 /var/www/html/w/maintenance/update.php(181): DatabaseUpdater->doUpdates(Array)#15 /var/www/html/w/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()#16 /var/www/html/w/maintenance/update.php(253): require_once('/var/www/html/w...')#17 {main}- I had to DELETE FROM mw_actor WHERE actor_name = ; Then it seems to proceed further. 178.94.86.168 (talk) 17:28, 19 May 2021 (UTC)
- Remember my first message. If update.php throws an error at the middle of a script, it may get skipped on further attempts to upgrade, leaving things inconsistent.
- Consider applying the manual fixes before running update.php (restoring from a backup first).
- If in doubt, run migrateActors.php again with the --force parameter (otherwise it will be skipped) Ciencia Al Poder (talk) 20:47, 19 May 2021 (UTC)
How to safely delete revisions by revision id (rev_id)?
Hello there,
I'm running a Wiki of several thousand pages on version 1.35.2, being in desperate need to delete some hundreds of thousands of old and redundant revisions in order to reduce the size of the database. I've gathered a list of id's (rev_id) of what I have to delete. But how do I do that? I believe the discontinued script deleteRevision.php (removed in Version 1.30) would have done the trick. However, the deleteOldRevisions.php doesn't help, since it needs page id's and removes every revision of that pages.
- Is there a script to delete by revision id?
- Is it otherwise safe to delete single revisions directly from the table 'revision' and execute purgeOldText.php afterwards? I have a bad feeing about that.
Any help is appreciated. Thanks a lot in advance! Totina (talk) 17:37, 18 May 2021 (UTC)
White screen and issues I don't understand
Firstly, when I change $wgLogo I get a white screen when the most I should expect is the wiki's icon missing if I messed something up. That means that I am stuck with the default icon that screams to be replaced until I can figure out what is the problem.
Secondly, when I added the snippet of code per "You see a Blank Page" right under <?php in localsettings.php on the second line to be more exact, nothing got printed on the screen, it remained completely blank.
What am I doing wrong?
That's what I wrote on localsettings.php, currently commented out: $wgLogo = '/icon-medium.png', it is meant to be looking for a file in the server's root directory called icon-medium.png. The file does exist on my wiki, but I thought to replace it because having a small image which's sole purpose is being used as the wiki's icon wasn't worth it.
Version of Mediawiki: 1.35.2
Version of PHP: 7.4
My wiki uses Cloudflare, it caused quite some trouble in the past, so that is why I am mentioning it. MarioSuperstar77 (talk) 18:53, 18 May 2021 (UTC)
- Did you forget to type the semicolon? Try
$wgLogo = '/icon-medium.png'; - What do you see if you go to
example.com/icon-medium.png? Jonathan3 (talk) 22:22, 18 May 2021 (UTC) - I did not notice that was missing. Man, coding is a chore for no reason.
- Now, the website works, but the logo does not display. Possibly caused by the web cache, so I will probably update this post once more later that week. MarioSuperstar77 (talk) 21:50, 20 May 2021 (UTC)
- It if helps, my Manual:$wgLogo is like
$wgLogo = $wgServer . '/images/uploadedimage.jpg';. I know it can be relative as well but the whole DOCUMENT_ROOT thing would just confuse me. Jonathan3 (talk) 23:51, 20 May 2021 (UTC) - Is $wgLogo deprecated, but Wikimedia forgot to point that out?
- It has been well over a week and the logo won't update. I tried to use a relative url like your example with
$wgServerand I tried to use a complete web-server path to my image file (Since apparently that is supported) and neither worked. On my wiki it specifically asks me to change $wgLogos, not $wgLogo, so again could it be that I am simply trying to use a deprecated feature? $wgLogos looks a tad bit too complicated for its own good, so I hope that I am wrong here and I somehow did something incorrectly when changing the logo. - Here were all my attempts:
- $wgLogo = '/icon-medium.png'; (The original that directly got the picture from the root folder of the webserver)
- $wgLogo = "http://www.mylittletrollpedia.com/icon-medium.png";
- $wgLogo = "https://www.mylittletrollpedia.com/icon-medium.png";
- $wgLogo = $wgServer . '/images/icon-medium.png'; MarioSuperstar77 (talk) 23:59, 25 May 2021 (UTC)
How to find pages that do NOT link to a certain template?
I can find pages that link to a certain template like this. But we're updating old pages to include the template, and really need to find all the pages on the wiki that do not link to that template (ideally with the ability to filter by namespace and category). That way we can check for anything that should have the template but doesn't. Is that possible? If so, how? Thanks! DarinWick (talk) 21:03, 18 May 2021 (UTC)
- Have you tried Help:CirrusSearch#Hastemplate in combination with a - or ! prefix? Malyacko (talk) 21:37, 18 May 2021 (UTC)
- Try https://help.fandom.com/wiki/Extension:DPL3/Parameters:_Criteria_for_page_selection#notuses
- Jonathan3 (talk) 22:25, 18 May 2021 (UTC)
{{#dpl: |notuses = Template:Shop-info }}
Mixly app for Chromebook
How can I use the Mixly app on my Chromebook? It is available to add to the Chrome browser. Works perfectly on my Laptop's Chrome browser. 102.39.187.14 (talk) 21:32, 18 May 2021 (UTC)
- Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions! What is "Mixly"? Malyacko (talk) 21:37, 18 May 2021 (UTC)
Causing some "lonely" namespaced-webpages NOT to appear in "Lonely pages" list
MediaWiki 1.35.2 website.
Current situation
In Special:LonelyPages I have many webpages which most of them aren't really "lonely", rather, they are namespaced webpages that are well-linked by various categories (and generally should remain such).
Desired situation
- I want that all categorized-but-non-namespaced-lonely webpages would appear in there
- I want that all categorized-but-namespaced-lonely webpages would disappear from there
Something I have tried already
I have already tried to create an a (formally "article") webpage and to put inside it all the relevant namespace-grouped-webpages in this pattern:
- Special:PrefixIndex_1
- Special:PrefixIndex_2
My question
How to reach the desired state without installing any extensions?
Notes
- Any tweak in CSS and/or JS or PHP is most welcome. 2001:44C8:4207:71AD:A8E4:67A6:513D:7860 (talk) 03:15, 19 May 2021 (UTC)
- A nice workaround I found is to run the webpage with the following script pattern as with Greasemonkey/Tampermonkey:
- AGAIN THAT EXAGGERATED SPAM FILTER --- I can't paste it here in a
<syntaxhighlight lang='text'>tag with the only domain in it being example.com
@Ciencia Al Poder 2001:44C8:4407:5199:7926:4EE0:1BA7:9502 (talk) 08:51, 20 May 2021 (UTC)
- Links to JSFiddle and Pastebin are also filtered ; man that's frustrating as I won't say the rest.
- @Bawolff are you in charge of the exceptions there and might add an exception for JSFiddle or Pastebin at least? Thanks anyway... 2001:44C8:4407:5199:7926:4EE0:1BA7:9502 (talk) 08:55, 20 May 2021 (UTC)
- Simply paste them without http: or https: Ciencia Al Poder (talk) 09:38, 20 May 2021 (UTC)
- Per the comment by Ciencia Al Poder above (the link lacks a web protocol):2001:44C8:4407:5199:4D79:75E2:522F:601A (talk) 10:23, 20 May 2021 (UTC)
const webPageToWorkOn = "www.example.com"; const listAndItsChildren = document.querySelectorAll(".special li"); if ( document.location.href == webPageToWorkOn ) { listAndItsChildren.forEach( (element) => { if ( element.innerHTML.includes(':') ) { element.style.display = 'none'; } }) };
Error contacting the Parsoid/RESTBase server: http-bad-status
I updated Mediawiki from 1.27 to 1.35. Then i activated the VE Extension but when i try to edit a page im getting the error "Error contacting the Parsoid/RESTBase server: http-bad-status". The VE Extension is working when im creating a page. 87.138.187.82 (talk) 09:48, 19 May 2021 (UTC)
- Perhaps the links provided on Project:Support desk/Flow/2021/05#h-Error_contacting_the_Parsoid/RESTBase_server:_http-bad-status_2-2021-05-27T21:33:00.000Z might be useful? TiltedCerebellum (talk) 04:39, 4 June 2021 (UTC)
How to load webpages with a short URL on a shared hosting webserver with a CDN with WWW redirects?
Manual:Short URL and Manual:Short URL/Apache are somewhat unclear to me ; perhaps due to not being a native English speaker and/or lacking some "heavy" Apache PCRE knowledge and/or too many "exception notes" and "warning notes" there --- I get lost there fast.
I have a MediaWiki 1.35 Hebrew website on a shared server with Apache as main server, Nginx as a "reverse proxy" and a CDN that requires me to redirect everything to include www..
Current pattern
- https://www.example.com/index.php?title=%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99
- https://www.example.com/index.php?title=%D7%93%D7%95%D7%92%D7%9E%D7%94
Desired pattern
- https://www.example.com/%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99
- https://www.example.com/articles/%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99
Interim notes
- The first example in each chapter is any webpage which is not an article
- The second example in each chapter is any webpage which is indeed an article
My question
As I feel quite lost with the referred article I ask: What to do in my specific case?
I don't care from broken pages due to moving all articles (hundreds) to a subdirectory, I really couldn't care less, I just want order and good long term organization. 2001:44C8:4207:71AD:A8E4:67A6:513D:7860 (talk) 11:40, 19 May 2021 (UTC)
- In great plea, your kind help, @Rogerhc, @Dantman 2001:44C8:4407:5199:4D79:75E2:522F:601A (talk) 14:33, 20 May 2021 (UTC)
- And maybe also @Kaganer and @Fadhum might kindly suggest some help to us reader in nearly mid 2021. 2001:44C8:4407:5199:4D79:75E2:522F:601A (talk) 14:35, 20 May 2021 (UTC)
- I'm sorry, but I don't have own experience in this issue. Kaganer (talk) 22:47, 20 May 2021 (UTC)
- I am not sure if it will help, but you can always try this Manual:$wgArticlePath. I have not tried this myself, but apparently it changes the article path accordingly, so instead of the examples you provided, you should simply get example.com/foo/bar, "bar" is the article's name. MarioSuperstar77 (talk) 01:46, 21 May 2021 (UTC)
- Thanks @MarioSuperstar77 I would gladly try that the moment I understand how to remove the load.php and its query strings from before such path component. 2001:44C8:470D:4270:2994:FCF8:7988:F6CC (talk) 05:27, 21 May 2021 (UTC)
- @RiverStyx23 or @Shirayuki do you have any focal update to share here?... 2001:44C8:470D:4270:38C1:2D1F:4900:329 (talk) 12:26, 21 May 2021 (UTC)
- Pinging multiple unrelated users may be considered spam. Shirayuki (talk) 12:40, 21 May 2021 (UTC)
- @Shirayuki I have no intention to tag your account here any more but you should know that all accounts tagged here are of people who have significantly contributed to these perhaps somewhat outdated, and (in my humble opinion) somewhat unaccessible guide/s (especially the Apache one); I personally don't recognize anymore such accounts. 2001:44C8:470D:4270:38C1:2D1F:4900:329 (talk) 13:14, 21 May 2021 (UTC)
- As one of the translation administrators, I did no editing those pages other than preparing them for translation. Shirayuki (talk) 13:49, 21 May 2021 (UTC)
- Alright, by a fast examination of the statistics I couldn't know for certain that you haven't had any significant actual experience with the task that this guide is supposed to make easier; I am sorry for any trouble caused. 2001:44C8:470D:4270:38C1:2D1F:4900:329 (talk) 14:02, 21 May 2021 (UTC)
Error at installation of Extension::EmbedVideo
wiki site : https://signipedia.ecoleetsurdite.be/
| MediaWiki | 1.35.0 |
| PHP | 7.3.19-1~deb10u1 (fpm-fcgi) |
Extension::EmbedVideo 2.8.0
| MariaDB | 10.3.27-MariaDB-0+deb10u1-log |
Hello,
I have installed the extension but mediawiki can not start.
A debug session gives me this error message (shortened due to error at posting):
No such file or directory in /var/www/signipedia.ecolesurdite.cblue.be/www/includes/AutoLoader.php on line 109
Any idea ?
Thanks a lot ! Benoit6540 (talk) 14:53, 19 May 2021 (UTC)
- For third-party extension issues I'd consider heading over to the maker's Gitlab page and asking/filing an issue there:
- https://gitlab.com/hydrawiki/extensions/EmbedVideo/-/issues TiltedCerebellum (talk) 04:37, 4 June 2021 (UTC)
Changing Language links to English Links
Hi,
We have a website wherein the links are pointing to Language links and the URL when tried to copied and sent to anyone shows lots of gibberish words. How Do I change the https: // links of the page to English. 223.230.23.253 (talk) 18:02, 19 May 2021 (UTC)
Help
I have a problem to sign in or to login so I need help please I am begging you I hope you will answer me as well 41.113.103.112 (talk) 18:56, 19 May 2021 (UTC)
- On which website and what exactly is the problem? – Ammarpad (talk) 12:43, 20 May 2021 (UTC)
- It is on Wikipedia when I sign in or log in
- it decline my name and my password
- Please help me 🤗🙏 41.113.102.155 (talk) 05:27, 22 May 2021 (UTC)
- What do you mean by "decline"? 94rain Talk 11:15, 22 May 2021 (UTC)
- I mean it rejects me 41.113.36.224 (talk) 11:48, 22 May 2021 (UTC)
- What error message did you see? Are you sure that you entered the correct username and password? 94rain Talk 16:39, 22 May 2021 (UTC)
- Yes 100% 41.113.29.101 (talk) 17:41, 22 May 2021 (UTC)
Support
I would like to support this wiki website by working e.g.help some few things as well or even you can give me a challenge for being a trainee Anything you want me to do even being an assistance of anyone else please
Name: Naledi Surname: Mathatho Country: South Africa
Thank you Have a good day 41.113.93.184 (talk) 10:33, 20 May 2021 (UTC)
- You're welcome. Please read How to contribute – Ammarpad (talk) 12:42, 20 May 2021 (UTC)
- Question: Do you allow children to work on this wiki website 41.113.102.155 (talk) 05:44, 22 May 2021 (UTC)
- we don't ask people's ages. People of all ages are welcome to contribute.
- That said, you may want to read through https://en.wikipedia.org/wiki/Wikipedia:Advice_for_parents - most of that page applies here too.
- https://en.wikipedia.org/wiki/Wikipedia:Guidance_for_younger_editors is more specific to wikipedia than mediawiki, but also a good read. Bawolff (talk) 08:37, 22 May 2021 (UTC)
- So the truth is I am a teenager and I want to support any wiki website by being a trainee mean you can teach me right 41.113.36.224 (talk) 11:52, 22 May 2021 (UTC)
- Here's a link that might be useful. You could maybe show your teacher: https://outreach.wikimedia.org/wiki/Education/Program_plans/South_Africa
- Or just find a page on Wikipedia that interests you, and start editing it. Maybe there's a page about your town, or you could translate something to your native language. If you get it wrong then you can learn from the criticism you will inevitably receive :-) Jonathan3 (talk) 13:44, 22 May 2021 (UTC)
- I can't log in 41.113.29.101 (talk) 16:29, 22 May 2021 (UTC)
- Like how please show a way 41.113.29.101 (talk) 14:58, 22 May 2021 (UTC)
- You don't need to log in to go through the pages at https://en.wikipedia.org/wiki/Wikipedia:Training/For_language_students Jonathan3 (talk) 17:05, 22 May 2021 (UTC)
- Thank you for your help but I still want to support and help you guys ❤️ on this wiki website as being a trainee 41.113.29.101 (talk) 18:21, 22 May 2021 (UTC)
Should directing MediaWiki to cache data with Redis be simple as with APCu or Memcached?
MediaWiki 1.35.2 on a shared server environment with Redis instead APCu or Memcached.
The main problem I'm trying to solve is the lack of cache-dependent rate-limiting.
Should $wgMainCacheType = CACHE_REDIS; suffice instead $wgMainCacheType = CACHE_ACCEL; (for APCu) or $wgMainCacheType = CACHE_MEMCACHED; (for Memcache) and if so, how to check that Redis successfully communicates with MediaWiki?
If it won't suffice, what special configuration/s might be needed for Redis and MediaWiki to work together? 2001:44C8:470D:4270:38C1:2D1F:4900:329 (talk) 10:27, 21 May 2021 (UTC)
$wgMainCacheType = CACHE_REDIS;crashed my website with a this page isn't working http error 500.- Maybe because Redis was off and there was no fallback beahvior; I am in current interaction with the hoster to turn Redis on and then I should check again. 2001:44C8:470D:4270:38C1:2D1F:4900:329 (talk) 12:24, 21 May 2021 (UTC)
- pretty sure thats not the syntax (unless things have changed).
- See manual:$wgObjectCaches for instructions on how to make mw talk to redis.
- Note, if the redis instance is shared there may be security implications. Bawolff (talk) 08:31, 22 May 2021 (UTC)
Extension Development Help
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I need help with developing an extension. I want to develop an extension where I can access pages that has been created an add new columns to them and access them later. Unfortunately though, I am having trouble finding the correct api for it. Can anyone here help? 2601:540:8:FC44:444F:3BE9:F321:5B55 (talk) 16:40, 21 May 2021 (UTC)
- What is a "column"? Is this about some existing table, or people creating a table? Or on a database level? Or something else? What does "access them later" mean in contrast to "access at any time"? Why would this need an extension instead of a bot? Malyacko (talk) 19:01, 21 May 2021 (UTC)
- Column in a database (Specifically PHPMyAdmin), adding a new column to pages, plus adding to users and adding a new input in when creating a page.
- Access later as when it is needed, to access them. When ever someone tries to access a page, it will grab the data.
- Do you know any reliable api for extensions, the ones I seen are quite confusing. I like the api resources to be how php.net is set up kind of way. The ones I have seen are all over the place.
- Sorry if it was confusing, I was kind of in a rush. 2601:540:2:C275:BD9D:DDB6:CDBC:C927 (talk) 17:09, 22 May 2021 (UTC)
- Do you maybe want to create an extension that lets you edit pages? Jonathan3 (talk) 13:39, 22 May 2021 (UTC)
- No.
- I pretty much just need some reliable MediaWiki api source that isn't all over the place. 2601:540:2:C275:BD9D:DDB6:CDBC:C927 (talk) 17:34, 22 May 2021 (UTC)
- It still sounds a bit cryptic to me - but have you looked at Extension:Cargo? Jonathan3 (talk) 17:54, 22 May 2021 (UTC)
- I pretty much want to create my own from extension from scratch. I have already started on it, and the PHP scripts works.
- Just don't know how to access the MediaWiki's stuff like database, pages, etc. Like do I use include to include the packages I want to use, how can I see what pages is viewed like Special Pages.
- Also, I meant MediaWiki documentation for programming MediaWiki extensions, not MediaWiki api source, sorry for that confusion.
- I don't actually like using other extensions or libraries to make projects I am working on as to prevent complications if it becomes very out-of-date, so to avoid that I would rather use as little as possible. 2601:540:2:C275:BD9D:DDB6:CDBC:C927 (talk) 18:22, 22 May 2021 (UTC)
- Good luck :-) Jonathan3 (talk) 22:09, 22 May 2021 (UTC)
- generally extensions create a new table (with a foreign key to page) instead of modifying the page table, for better maintainability.
- For your specific use case you might be interested in the page properties api (see example at Manual:page_props table) It allows associating metadata with a page.
- See also manual:database access and manual:extension. There is also class documentation at https://doc.wikimedia.org Bawolff (talk) 23:33, 22 May 2021 (UTC)
- Thanks, I'll look through them. 2601:540:1:183C:A8DE:90FE:C5A9:264B (talk) 03:45, 23 May 2021 (UTC)
- I looked through them and it helped quite a bit. Thanks. 2601:540:D:F9BF:A982:7D56:27FB:5F3B (talk) 16:08, 23 May 2021 (UTC)
- @Bawolff
- Now, how do I create a column for a table? 2601:540:D:F9BF:A982:7D56:27FB:5F3B (talk) 16:20, 23 May 2021 (UTC)
- Manual:Hooks/LoadExtensionSchemaUpdates. Also i would suggest looking at other extensions for examples.
- But you shouldnt modify core tables, instead create a new table that references the core table in a 1:1 relationship with a foreign key. Bawolff (talk) 20:18, 23 May 2021 (UTC)
- @Bawolff
- They were quite useful but now I have some more questions, if you can answer.
- For developing extensions where would I start in creating some special pages and inserting specific html elements in certain positions on specific pages. Like on creating page, user page, some different special pages, etc.
- I have looked at MediaWiki master for some answers but it would probably take forever to find the correct ones to work with.
- P.S, created myself an account so you know who you are talking to. Jonathanpecany (talk) 16:35, 25 May 2021 (UTC)
- Manual:Special pages for creating your own.
- In terms of inserting elements. Some pages have hooks for that (manual:hooks). You can also modify i18n messages. some places don't allow easy insertion points and you have to resort to javascript. Bawolff (talk) 05:12, 26 May 2021 (UTC)
- @Bawolff
- Thanks again, and I was actually thinking about using Javascript, but wanted to see if there was any easy way first before using Javascript. Well, I mean javascript is probably more easier, but not that efficient in my opinion.
- I do wish though that there were more tutorials on youtube or something in how to create media wiki extensions. Jonathanpecany (talk) 15:59, 26 May 2021 (UTC)
- Thanks again, I'll go look at them when I get a chance. 2601:540:4:FC15:71E9:9EBB:EA12:D0C4 (talk) 03:46, 24 May 2021 (UTC)
- So you don't have any documentation that can help? 2601:540:1:183C:B472:7BD3:DF8E:4C1C (talk) 00:13, 23 May 2021 (UTC)
Failed LDAP authentication after changing DC's
Hi Team!
We were changing Active Directory Domain Controllers to new operating system (from Windows Server 2012 to 2016).
Week later after the change, one of the guy from some branch office came back, that actually they had some MediaWiki instance deployed as local Knowledge Base, which stopped allowing users in - there's a domain authentication, and it keeps returning "Bad Password" even though they are entering correct credentials.
To be frank, I have no prior experience with MediaWiki, and did not participated in this activity - person who deployed it left company with no documentation behind. I have access to server, and database, but I just need a quick tip - what config file to check first, or focus on?
I suspect that either new version of the DC OS prevents User from authenticating (as IP's stayed the same), or there's some simple misconfiguration now (like old hostnames in the config). 80.52.52.158 (talk) 19:10, 21 May 2021 (UTC)
Image links changed on Upgrade from 1.27.4 to 1.35.2
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Running 1.35.2 on IIS10, Windows 2019 Server Standard
PHP 7.4.19, MySQL 8.0.25
PHP extensions enabled: php_exif.dll, php_fileinfo,dll, php_intl.dll, php_mbstring.dll, php_mysqli.dll, php_openssl.dll
Upgrade sequence:
Copied new files on top of old files. Deleted old folders not in the 1.35.2 distribution
Ran update successfully. Connected to site but got an error page indicating my 1.27.4 localsetting.php wouldn't work. Deleted localsetting.php, re-entered all the correct information and wiki started.
All but 3 of my images have links to non-existent folders inside my image folder. All the images "missing" are in the /wiki/image "root" but the links point to sub folders that don't exist.
Example:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Detailed Error Information: Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://192.168.191.6:8031/wiki/images/4/4f/NAR202_Dawson_Creek_945_1978-05-16.jpg
Physical Path C:\inetpub\wwwroot\NARDPI\Wiki\images\4\4f\NAR202_Dawson_Creek_945_1978-05-16.jpg
(Note: file is located in \images\ and in \images\thumb\ but there is no folder \images\4\4\)
Logon Method Anonymous
Logon User Anonymous
So where do this process go wrong and is there a fix? STEM (talk) 22:20, 21 May 2021 (UTC)
- After you deleted LocalSettings.php and "re-entered all the correct information", where did you enter that information?
- I'm going to guess that your Local Settings.php had
$wgHashedUploadDirectory = false;and this was part of "the correct information" which didn't get re-entered :-) The default is true, so MediaWiki is creating image links like /images/a/ab or /images/4/4f or whatever. If you add that line back I bet it'll start to create links like it used to. You might have to purge some pages (add&action=purge) - not sure. Jonathan3 (talk) 13:38, 22 May 2021 (UTC) - I knew it was something to do with the storage choice but only upgrading every few years, I couldn't remember exactly what it was. Much appreciated as this was the issue and now all the photo link work again! STEM (talk) 18:10, 23 May 2021 (UTC)
How to load webpages without index.php in a simple HTTP to HTTPS and www to non-www usecase?
MediaWiki 1.35.2 website on a shared LAMP server environment with APCu caching.
- No CDN.
- I have just one wildcard redirect from HTTP to HTTPS and from www to non-www for all webpages in my main
.htaccessfile:
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule (.*) https://example.com/$1 [R=301,L]
My problem is that webpages are being loaded with load.php and I want them not to but I don't find any clear explanation about how to do that in my specific usecase.
How should I change all webpages to be loaded without load.php (i.e. to to have short URLs instead long URLs) in my specific usecase? 2001:44C8:470D:4270:7D2E:149D:4A19:38EE (talk) 10:42, 22 May 2021 (UTC)
- I think load.php is necessary for MediaWiki to work properly - but it shouldn't appear as part of your page URL - are you saying that it does? Jonathan3 (talk) 13:31, 22 May 2021 (UTC)
- Hello @Jonathan3 sorry, in that post, I have confused
load.phpwithindex.php. It isindex.phpand its query strings that I'm after. 2001:44C8:470D:4270:7D2E:149D:4A19:38EE (talk) 14:07, 22 May 2021 (UTC) - It's all here: Manual:Short_URL/Apache. Jonathan3 (talk) 14:12, 22 May 2021 (UTC)
- @Jonathan3
- I got lost very fast with that webpage; perhaps me lacking some Apache PCRE knowledge, perhaps me not being a native speaker of English, perhaps being overwhelmed from the longevity (and especially the amount of special notes and exceptions) of a webpage of what, at least in my humble opinion on the matter, should be a rather simple and intuitive task.
- This is why I asked about it here, giving specific details about my usecase. 2001:44C8:470D:4270:7D2E:149D:4A19:38EE (talk) 14:19, 22 May 2021 (UTC)
- Do you want your URLs to be like
https://www.example.com/pagenameorhttps://www.example.com/wiki/pagename, or something else? Jonathan3 (talk) 14:37, 22 May 2021 (UTC) - @Jonathan3 if it's a non article webpage then as in the first example ; if it's an article webpage than as in the second example. 2001:44C8:470D:4270:7D2E:149D:4A19:38EE (talk) 14:45, 22 May 2021 (UTC)
- Define article, please. Jonathan3 (talk) 17:03, 22 May 2021 (UTC)
- I have no idea if you are the same person that I responded to earlier this week for the index.php nonsense, but if you are, I suggest you try to figure out how the software functions because it seems that in spite of the help that you are being provided (Considering that what you are asking for on this post specifically is impossible without breaking Mediawiki, load.php is an important component of Mediawiki, you cannot reliably disable it!) you are still unable to resolve your issue. If you are not that person, then that still applies to you, trying to understand how some piece of software work might be important. Heck, it took 2 months for my own site to be operational.
- Moreover, and since you are mentioning it, I am fairly certain that rewriting urls to be shorter is also possible via .htaccess, but I am as clueless as you are on how to do it.
- As my last tip, go to Manual:$wgArticlePath and give it a read, I have not used it on my installation, so I am not knowledgable on its reliability, but it covers your problem with your unoptimised url. If this works accordingly, you could get urls as short as
https://www.example.com/articlename. MarioSuperstar77 (talk) 23:35, 22 May 2021 (UTC) - @Example by article I mean to any webpage which is describing a certain topic, without or with a namespace but is not a special page (in any broad definition of the term to include "MediaWiki:X" pages and "MyWikiSite: pages" as well) pretty much as practically defined in Wikipedia. Special pages, again, in a borad MediaWiki definion, will not be under the
example.com/wiki/directory path. 2001:44C8:4405:657E:39DF:8565:C8F0:6AC9 (talk) 03:44, 23 May 2021 (UTC) - @Jonathan3 by article I mean to any webpage which is describing a certain topic, without or with a namespace but is not a special page (in any broad definition of the term to include "MediaWiki:X" pages and "MyWikiSite: pages" as well) pretty much as practically defined in Wikipedia. Special pages, again, in a borad MediaWiki definion, will not be under the
example.com/wiki/directory path. 2001:44C8:4405:657E:39DF:8565:C8F0:6AC9 (talk) 03:44, 23 May 2021 (UTC) - @MarioSuperstar77 I am that person. I think that you were mislead by a mistake I have made --- I didn't actually mean to load.php but to index.php.
- I am sorry for misleading the readers (sadly I cannot edit).
- My current problem is not about setting the article path as it is about removing index.php and its query strings from paths in general. 2001:44C8:4405:657E:39DF:8565:C8F0:6AC9 (talk) 03:47, 23 May 2021 (UTC)
- Oh and @MarioSuperstar77 and please rest assured that I generally to understand as best as I can how pieces of software work if I need and as best as I can ; in that particular case I do indeed come into significant trouble. 2001:44C8:4405:657E:39DF:8565:C8F0:6AC9 (talk) 03:50, 23 May 2021 (UTC)
- It seems that you want some namespaces to have the URL pattern example.com/wiki/Namespace:Title (and in the case of the main namespace, example.com/wiki/Title) - and other namespaces (like MediaWiki and Special) to have the URL pattern example.com/Namespace:Title.
- Is that right? Jonathan3 (talk) 12:25, 23 May 2021 (UTC)
- @Jonathan3 that's correct.
- Isn't that also the formal recommendation / norm / standard in MediaWiki community for websites in general? 2001:44C8:4400:7766:E5CD:F711:321B:495C (talk) 12:03, 24 May 2021 (UTC)
- And BTW @Jonathan3 if I'm not wrong $wgArticlePath doesn't do the distinction I have made and keeps everything without a "wiki" domain directory. 2001:44C8:4400:7766:E5CD:F711:321B:495C (talk) 12:09, 24 May 2021 (UTC)
- "Isn't that also the formal recommendation / norm / standard in MediaWiki community for websites in general?"
- No. Normally it's either example.com/Pagename (and example.com/Namespace:Pagename) or example.com/wiki/Pagename (and example.com/wiki/Namespace:Pagename) for every page consitently across the wiki.
- Wouldn't you rather have that? Jonathan3 (talk) 12:21, 24 May 2021 (UTC)
- @Jonathan3 I personally would because it still allows place for some webpages which are not created by wiki --- just a quick wild example --- a
phpinfo()webpage; such a webpage generally shouldn't be under/wiki/of course as you would probably agree and it can be nice that webpages which are wiki pages are situated in a designated directory. Well, I think I got the MediaWiki principle in this context. 2001:44C8:4400:7766:E5CD:F711:321B:495C (talk) 12:31, 24 May 2021 (UTC) - Before I respond to that point: is it the only reason for your URL structure proposal? Jonathan3 (talk) 12:45, 24 May 2021 (UTC)
- @Jonathan3 I don't understand what you meant to ask but my desire to load webpages without index.php and its query strings doesn't have anything to do with my contemplation to load webpages with /wiki/ or similar pattern. 2001:44C8:4400:7766:E5CD:F711:321B:495C (talk) 13:37, 24 May 2021 (UTC)
- No problem :-) Just that some things are easier to do than others and it makes sense to be sure of what you want before doing anything :-) Jonathan3 (talk) 15:27, 24 May 2021 (UTC)
- @Jonathan3 I think your last comment is redundant and can easily be grasped as sarcastic ; I generally always try to define a problem verbally before solving it; sometimes defining a problem is complex and/or hard and might even be a problem by itself; none of us is perfect and we can often fail doing so. I suggest that you would delete your last comment alongside my reply to it. 2001:44C8:4512:B6D6:A16F:69E9:F0A3:8BD9 (talk) 16:18, 24 May 2021 (UTC)
- I have been very patient with you and don't propose to delete anything. I have typed up a potential solution in one of your other threads here: Project:Support desk/Flow/2021/05#h-After_adding_$wgArticlePath_=_'/wiki/$1';_to_LocalSettings.php_I_get_404_on_all-2021-05-24T13:47:00.000Z. Jonathan3 (talk) 16:41, 24 May 2021 (UTC)
- @Jonathan3 patient? Why would you need to be very patient with me? I can ask a question, no one has to answer, surly not to reply comments that bias the discussion into irrelevance and can easily be grasped as sarcastic; I have so far done my best in defining my problems here; a man can't do better than its best.
- Furthermore, I should be thanked to created threads that could be later found via Google, help others, and bring more people to the community, some might contribute much. 2001:44C8:4512:B6D6:A16F:69E9:F0A3:8BD9 (talk) 17:34, 24 May 2021 (UTC)
- Here and not here* 2001:44C8:4512:B6D6:A16F:69E9:F0A3:8BD9 (talk) 19:04, 24 May 2021 (UTC)
- We can and generally should always learn. 2001:44C8:4512:B6D6:A16F:69E9:F0A3:8BD9 (talk) 19:04, 24 May 2021 (UTC)
- @Jonathan3 You might have been "very patient" with me but you have been evil with me with your response which I understand as baseless and sarcastic; you baselessly clued that I don't define problems in order or good based on one or two question/s I asked here, without any concrete example for this acquisition and with a generalization which again, I understand as baseless and evil.
- Besides speaking my own truth I wish you to be less hasty and generalizing in your conclusions on anonymous users having serious problems with MediaWiki in an very likely extremely hard topic such as Apache PCRE and to avoid defining people based one one or two question/s here in a user interface which is very not user friendly for anonymous users (one cannot edit posts) with possible language biases and other problems anonymous users encounter (such as spam filter and blocks for often no good reasons) and you don't. 2001:44C8:4512:B6D6:A16F:69E9:F0A3:8BD9 (talk) 20:38, 24 May 2021 (UTC)
- When I said "No problem:-) Just that some things are easier to do than others and it makes sense to be sure of what you want before doing anything:-)" I was trying to be friendly, but I can see from your responses that it came across very differently, for which I apologise. Jonathan3 (talk) 20:49, 24 May 2021 (UTC)
- @Jonathan3 Apology appreciated. 2001:44C8:4512:B6D6:A16F:69E9:F0A3:8BD9 (talk) 20:54, 24 May 2021 (UTC)
- Among everyone here, I certainly am losing patience anonymous user.
- You effectively flooded the support desk with an enormous amount of posts, either somewhat relevant or trivial at best.
- You call Jonathan hasty and insinuates he is judgemental, but whether that is the case or not, I don't know I don't speak for him, but after making incessant posts, barely listening to the advice provided, doing very little research on your own showing your lack of understanding of the software you're using, people are certainly going to be upset at you at some point. That case is evidenced by the fact that you ignored my advice the first time around (Though that was fruitless at the end of the day, since it does not work) and someone's else advice too, then asked the same exact question inquiring again about a tutorial to disable a component of Mediawiki "Load.php", but after realizing that it had nothing to do with your specific issue, you finally went back on your words and now the evil gremlin is "index.php".
- Do you really think that people might not lose patience eventually when you make them feel like they are talking to a wall? MarioSuperstar77 (talk) 21:07, 24 May 2021 (UTC)
- @MarioSuperstar77
- I didn't flood the support desk. Furthermore, from my experience with it, its content flow is totally natural; posts come and go; I didn't reply in pretty much any of my posts for almost two days.
- I didn't name Jonathan (an) "hasty" (person) and I don't think he is,Give an example.
barely listening to the advice provided
Give an example; In the discussed context I clearly said several times that I have tried reading the relevant documentations such as Manual:Short URL/Apache which I had and have hard time to understand (and suggested possible reasons) and note that this document was heavily criticized in its own talk page; if you mean to MediaWiki in general that's a wrong wild imagination.doing very little research on your own showing your lack of understanding of the software you're using
Give an example.And someone's else advice too
- Actually I was wrong to say that it doesn't do with my issue:
"Load.php", but after realizing that it had nothing to do with your specific issue, you finally went back on your words and now the evil gremlin is "index.php".
- Some Google Pagespeed insights errors about query strings do relate to that (
langquery string for example) attached to load.php; - I didn't notice that error for a long time and vaguely recalled it but yesterday or 2 days ago I did clearly notice it and my memory was refreshed with the fact that these errors are both about index.php and load.php
- A very ugly false generalization based based on my confusion between index.php and load.php which was based on a legitimate cognitive bias. 2001:44C8:414A:8E75:1887:18A1:37F3:BD4B (talk) 03:28, 25 May 2021 (UTC)
Do you really think that people might not lose patience eventually when you make them feel like they are talking to a wall?
$wgUsersNotifiedOnAllChanges and notifications of new User page non-edits
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I use Manual:$wgUsersNotifiedOnAllChanges I get emails like
- "Sitename page User:Username has been changed by Username"
- The Sitename page User:Username has been changed on 22 May 2021 by Username, see https://www.example.com/User:Username for the current revision.
But when I go to the User page, it does not exist.
I have one namespace which everyone can edit, and the remainder of the wiki is only editable by administrators/sysops. I've done this by $wgNamespaceProtection[NAMESPACE CONSTANT] = array( 'editing' ); for each non-editable namespace (including for NS_USER), then $wgGroupPermissions['*']['editing'] = false; $wgGroupPermissions['user']['editing'] = false; $wgGroupPermissions['sysop']['editing'] = true;. Maybe I've done something wrong there.
I see from Manual:User_rights that by default the "*" and "user" user groups have the "edit" permission. I don't want to restrict that site-wide, but do you think maybe MediaWiki thinks the newly registered used is allowed to edit his user page and goes to the point of sending the notification email before realising that $wgNamespaceProtection is set for NS_USER? Jonathan3 (talk) 13:06, 22 May 2021 (UTC)
- P.S. I have now changed ConfirmEdit from ReCaptchaNoCaptcha (which the Extension page now effectively states is useless) to QuestyCaptcha. Jonathan3 (talk) 14:35, 22 May 2021 (UTC)
- P.S. I created a test account without even looking at the User page and still got the email notification about the phantom page edit. Jonathan3 (talk) 14:40, 22 May 2021 (UTC)
- i suspect its some sort of bug, where the new user creation creates a log event about the new user registering. This shows up in special:recentchanges, and mediawiki thinks its an edit eventhough its just a log event. Bawolff (talk) 20:28, 23 May 2021 (UTC)
- Should I report it somewhere? Jonathan3 (talk) 23:28, 23 May 2021 (UTC)
- It's a handy notification that a user account has been created so I'll just leave it. Jonathan3 (talk) 20:43, 25 May 2021 (UTC)
Is loading webpages without index.php ALWAYS requires a redirect?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Just a small quick question for clarity, please.
Is loading webpages without index.php ALWAYS requires a redirect (or are there case in which we can do that without using any redirect at all)?
Thanks, 2001:44C8:470D:4270:7D2E:149D:4A19:38EE (talk) 15:03, 22 May 2021 (UTC)
- The server needs to be told what to do so I think "ALWAYS" (so on Apache you'll need the RewriteRule lines from Manual:Short URL/Apache). Jonathan3 (talk) 22:29, 22 May 2021 (UTC)
- it depends on how you define "redirect". You never need a client side redirect. If you're using apache you need either a rewriterule or an alias directive. There's other more obscure mehods i suppose, but i wouldnt reccomend. Bawolff (talk) 23:26, 22 May 2021 (UTC)
- @Bawolff what is that "alias directive"? It might be simpler for me to implement than all that Apache PCRE directives language which I find very hard to understand. 2001:44C8:4405:657E:39DF:8565:C8F0:6AC9 (talk) 03:52, 23 May 2021 (UTC)
- @Bawolff from a quick google search I understand that Alias directive also involve Apache PCRE but I am looking for a non Apache way to strip out index.php and all its query strings, so I guess that alias directives aren't for me, at least for now.
- Isn't there a PHP-only solution to prevent index.php and its query strings to appear in URLs? 2001:44C8:4405:657E:39DF:8565:C8F0:6AC9 (talk) 04:14, 23 May 2021 (UTC)
- Alias does not involve PCRE. The related directive AliasMatch uses PCRE, but Alias does not. https://httpd.apache.org/docs/2.4/mod/mod_alias.html has apache docs about it.
- Generally it works by doing:
- Alias /wiki /path/to/your/webroot/w/index.php
- in your httpd.conf (Not .htaccess). Note, the second argument is a file system path, not a web path.
- And then $wgArticlePath = '/wiki/$1'; in LocalSettings.php
- ($wgScriptPath still stays the same, and index.php is still used for actions other than view like edit).
- ---------
- There is no pure PHP solution, because PHP is not in control of this part of the website process. Control has not been handed to PHP at the time the web server makes this decision. Bawolff (talk) 09:53, 23 May 2021 (UTC)
- @Bawolff if I understood what you wrote correct, the Alias directive method requires htttpd.conf and cannot be utilized in .htaccess but my hosting is shared and I cannot access httpd.conf so this method is not applicable in my usecase. 2001:44C8:4405:657E:B5D6:B141:D388:F715 (talk) 09:56, 23 May 2021 (UTC)
- that is correct. You cannot use the alias method on a shared host. Bawolff (talk) 20:16, 23 May 2021 (UTC)
Help with Infobox
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm trying to figure out why I'm getting the error unrecognized punctuation on my infobox
https://pokesys.miraheze.org/wiki/Bulbasaur Mfsfreak (talk) 16:39, 22 May 2021 (UTC)
- I think you need Extension:Variables to make the infobox template work. All the squggly brackets in https://pokesys.miraheze.org/w/index.php?title=Template:Infobox&action=edit nearly made my eyes bleed :-) Jonathan3 (talk) 22:26, 22 May 2021 (UTC)
- that has help, thanks Mfsfreak (talk) 16:55, 23 May 2021 (UTC)
Small fonts in wikis
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I open any wiki website powered by MediaWiki, I see that the fonts are smaller than it was in 2020. Please give me instruction on how to resize fonts. I tried to resize browser fonts but it don't work. Sbb1413 (he) (talk • contribs) 17:10, 22 May 2021 (UTC)
- Which websites are you looking at and in which browsers? Jonathan3 (talk) 22:13, 22 May 2021 (UTC)
- All wiki websites in Google Chrome, including the WMF websites of Wikipedia, Commons, Wiktionary etc. Sbb1413 (he) (talk • contribs) 06:32, 23 May 2021 (UTC)
- On desktop? On mobile? Both? Does it also happen in Firefox? Malyacko (talk) 10:16, 23 May 2021 (UTC)
- On Chrome just press control-minus or control-plus to change font size (i.e. press the control key and before you release it, also press the - or + keys). Jonathan3 (talk) 12:27, 23 May 2021 (UTC)
- and ctrl-0 (zero) to reset to default. Bawolff (talk) 20:25, 23 May 2021 (UTC)
Footer edit
How to make changes and add line of text in footer in present version of Mediawiki? 112.198.65.78 (talk) 18:01, 22 May 2021 (UTC)
- Manual:Footer Malyacko (talk) 22:12, 22 May 2021 (UTC)
- I don't know but these might help:
- I found and checked MediaWiki Manual:Footer but it doesn't work. Anyone tried it? 112.198.65.78 (talk) 06:27, 23 May 2021 (UTC)
- What did you try? Jonathan3 (talk) 12:31, 23 May 2021 (UTC)
Infobox Template Building - Need Help Making Icons appear based on the input in the fields!
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
| Product | Version |
|---|---|
| MediaWiki | 1.35.1 |
| PHP | 7.3.28 (cgi-fcgi) |
| MySQL | 5.7.32-35-log |
| ICU | 63.2 |
| Lua | 5.1.5 |
Sample Page: https://wiki.twistedfates.net/wiki/Sandbox
This might be a long shot, but I'm working on building an infobox template for my project's wiki.
I've been doing research but I haven't located a good resource about this...I suppose I'm looking to make certain fields conditional, where if I enter a certain word, an image would show up next to it (illustrated at the sample page link). Another cool thing would be that clicking the image would link to a certain page category, like on the Monster Hunter Fandom wiki. Would there be a way to code that?
As a heads up, I'm not a coder/programmer, I'm an artist!
TL;DR: I want to make an infobox template with fields where if the author enters a certain word, an icon would appear next to it.
(optional) The icon would link to a page/category. How can I do this? Orribu (talk) 01:32, 23 May 2021 (UTC)
- You could use Help:Extension:ParserFunctions##switch.
- Let's say you use
{{infobox|...|animal=Dog|...}} - Template:Infobox could contain (among other things):
Animal: {{{animal|}}}. Picture: {{#switch: {{{animal|}}} | Cat = [[Image:Cat.jpg]] | Dog = [[Image:Dog.jpg]] | ... | [[Image:Default animal.jpg]] }}- You can add links to images: Manual:Linked_images#link=_Syntax_available_since_version_1.14. Jonathan3 (talk) 13:31, 23 May 2021 (UTC)
- Whoa, thank you so much @Jonathan3! It worked like a charm! You are the best! Orribu (talk) 05:33, 25 May 2021 (UTC)
- You're welcome! Jonathan3 (talk) 20:43, 25 May 2021 (UTC)
Suddenly I can't edit existing articles but I can create new ones
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
MediaWiki 1.35.2 website hosted on a shared LAMP hosting.
This is my .htaccess redirect rule in public_html:RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule (.*) https://example.com/$1 [R=301,L]
My problem
After adding this rule, and, after enabling APCu caching via changing $wgMainCacheType = CACHE_NONE; to $wgMainCacheType = CACHE_ACCEL; in LocalSettings.php, suddenly I generally can't edit existing articles --- but I can generally create new ones.
Error after editing existing articles (translating system message in Hebrew):
We are sorry, it is impossible to save your edit due to loss of login data;
Because that in example.com raw-HTML is enabled, a preview (of the edit) is hidden to prevent JavaScript attacks
If this is a legitimate edit try, please log out and login again and ensure that the browser accepts cookies from this website.
phpinfo() data about APCu
| APCu Support | Enabled |
| Version | 5.1.17 |
| APCu Debugging | Disabled |
| MMAP Support | Enabled |
| MMAP File Mask | no value |
| Serialization Support | php |
| Build Date | Mar 31 2021 17:46:15 |
| Directive | Local Value | Master Value |
|---|---|---|
| apc.coredump_unmap | Off | Off |
| apc.enable_cli | Off | Off |
| apc.enabled | On | On |
| apc.entries_hint | 4096 | 4096 |
| apc.gc_ttl | 3600 | 3600 |
| apc.mmap_file_mask | no value | no value |
| apc.preload_path | no value | no value |
| apc.serializer | php | php |
| apc.shm_segments | 1 | 1 |
| apc.shm_size | 32M | 32M |
| apc.slam_defense | Off | Off |
| apc.smart | 0 | 0 |
| apc.ttl | 0 | 0 |
| apc.use_request_time | On | On |
My question
What may cause the reported problem and how would you suggest to try to solve it? 2001:44C8:4405:657E:B5D6:B141:D388:F715 (talk) 11:55, 23 May 2021 (UTC)
- Sounds a bit like this: Project:Support desk/Flow/2016/07#h-Login_error_(session_hijacking_protection)-2016-07-11T08:56:00.000Z. There are a few topics like this. I had a similar problem at one stage. My settings now are:
- $wgMainCacheType = CACHE_ACCEL;
- $wgSessionCacheType = CACHE_DB;
Jonathan3 (talk) 13:22, 23 May 2021 (UTC)- sometimes this happens if apcu.shm_size is too small (apcu runs out of room and deletes sessions). Try increasing to 96mb.
- Failing that, having sessions stored in the db like Johnathan3 suggests can be a good solution, although there is a small performance cost. Bawolff (talk) 20:24, 23 May 2021 (UTC)
- Thank you both. 2001:44C8:4487:7025:E86D:73EB:DB08:F62F (talk) 09:23, 24 May 2021 (UTC)
Upgrade mediawiki to MediaWiki 1.36
Hi Team,
My current Mediawiki production version is as below
Current Product Version for help-wiki:-
MediaWiki:- 1.25wmf13
PHP :- 5.3.29 (apache2handler)
MySQL:- 5.7.32-google-log
Elasticsearch:- 1.3.2
We want to upgrade this to the below version
MediaWiki 1.36
PHP 7.4.19
Can you kindly help to let us know if MySQL:- 5.7.32-google-log and Elasticsearch:- 1.3.2 is compatible with the above version?
Also we will be using docker file to do the same. Any reference docker file will be really helpful.
Thanks in advance for your help
Regards,
Suv Suvsap (talk) 13:25, 23 May 2021 (UTC)
- See Compatibility#Database. (How is Elasticsearch used by MediaWiki?) Malyacko (talk) 16:09, 23 May 2021 (UTC)
- By Extension:CirrusSearch, I think. Jonathan3 (talk) 12:46, 24 May 2021 (UTC)
Problem with Special:Import - libxml_disable_entity_loader() is deprecated
Help! I'm trying to import a template using the Special:Import page. When I click on Upload, I get the following error messages:
Deprecated: Function libxml_disable_entity_loader() is deprecated in D:\xampp\htdocs\wiki\includes\import\WikiImporter.php on line 82
Deprecated: Function libxml_disable_entity_loader() is deprecated in D:\xampp\htdocs\wiki\includes\import\WikiImporter.php on line 94
Deprecated: Function libxml_disable_entity_loader() is deprecated in D:\xampp\htdocs\wiki\includes\import\WikiImporter.php on line 575
Deprecated: Function libxml_disable_entity_loader() is deprecated in D:\xampp\htdocs\wiki\includes\import\WikiImporter.php on line 630
This is the version I am using:
MediaWiki 1.35.2
PHP 8.0.6 (apache2handler)
MariaDB 10.4.19-MariaDB
Lua 5.1.4
I found the WikiImporter.php, but I don't know what I'm suppose to do with it. As far as I know, these are the default settings.
$oldDisable = libxml_disable_entity_loader( false ); --- Line 82
libxml_disable_entity_loader( $oldDisable ); --- Line 94
$oldDisable = libxml_disable_entity_loader( true ); --- Line 575
libxml_disable_entity_loader( $oldDisable ); --- Line 630 Raikkonso (talk) 17:55, 23 May 2021 (UTC)
- This is tracked at phab:T268847 – Ammarpad (talk) 18:52, 23 May 2021 (UTC)
- Thanks for the reply. Based on php.watch/versions/8.0/libxml_disable_entity_loader-deprecation
- "On code that only runs on PHP 8.0 and later, it is now safe to remove all function calls."
- Does that mean that I should remove the 4 lines from WikiImporter.php?
- $oldDisable = libxml_disable_entity_loader( false ); --- Line 82
- libxml_disable_entity_loader( $oldDisable ); --- Line 94
- $oldDisable = libxml_disable_entity_loader( true ); --- Line 575
- libxml_disable_entity_loader( $oldDisable ); --- Line 630 Raikkonso (talk) 04:07, 24 May 2021 (UTC)
Unable to delete special badtitle pages or remove wanted pages.
I have several pages on my wanted pages list that say
"invalid title in result set: Page name
how do I go about removing these from my wanted pages?
(Example)
I have a few badtitle pages from a Translation Extension. Is it possible to delete them without re-installing the extension?
Special:Badtitle/NS1198:Introduction to Basic Gameplay (Pokémon)/1/it
Another badtitle page shows up in my broken redirects. The page name is DE: and I can't delete it because I get the badtitle message every time I try.
https://mysterydungeonwiki.com/wiki/Special:BrokenRedirects SungHerSong (talk) 18:55, 23 May 2021 (UTC)
- try manual:cleanupTitles.php
- Often they can also be removed via the api using the page id number instead of title. Bawolff (talk) 20:20, 23 May 2021 (UTC)
- Excellent, thank you. That didn't fix all of the issues, but it fixed some. The DE: badtitle page is gone as well as a namespace redirect that fell into the void when I changed the Namespace number.
- The only ones that seem to be left are the "invalid title in result set: Page name" pages, but it seems the batch in that screenshot are gone. SungHerSong (talk) 21:28, 23 May 2021 (UTC)
- You could probably fix that by running refreshLinks.php but the script takes a long time. It will generally fix itself by itself slowly, without you doing anything, any time someone makes an edit (including null edit, but not including a simple purge) to a page that links to one of those titles. Bawolff (talk) 23:36, 23 May 2021 (UTC)
I get an error on batch testing with the Abuse Filter on my wiki site
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
[YKrWfcZBY-OwJQVK0zWy0QAAAEk] 2021-05-23 22:26:05: Fatal exception of type "TypeError"
Mediawiki: 1.35.2
PHP: 7.4 with MySQL
Protected by Cloudflare.
The server has mod_security installed, but I doubt the issue comes from that. I am pretty sure it would have dropped a 500 error on me if that was the culprit. MarioSuperstar77 (talk) 22:42, 23 May 2021 (UTC)
- See Manual:How to debug for how to get a stacktrace. Malyacko (talk) 22:59, 23 May 2021 (UTC)
After adding $wgArticlePath = '/wiki/$1'; to LocalSettings.php I get 404 on all webpages
MediaWiki 1.35.2 on a shared server with .htaccess in public_html.
After adding $wgArticlePath = '/wiki/$1'; to LocalSettings.php I get 404 on all webpages (non cached).
For now I have made this code piece a comment and the site works fine.
I guess I can solve it with a wildcard redirect in .htaccess but should I really make one? If I do than I quite miss the point of the entire $wgArticlePath = '/wiki/$1'; command; I thought it would instruct PHP to redirect users to the new path, somehow.
Sorry if I wrote nonsense, I am not an expert for neither Apache nor PHP. 2001:44C8:4400:7766:E5CD:F711:321B:495C (talk) 13:47, 24 May 2021 (UTC)
- I understood from something user:bawolff wrote in another thread that indeed, even in this case, a server redirect is a must and PHP doesn't handle this situation.
- Sadly, I don't know enough about Apache directives (and find any documentation about it as very hard and requires lots of perl and/or regex and/or special Apache terminology) ; I am still hoping to find a nice answer here though (and also hoping that one day Apache would be upgraded with a much more English-like server directive language that would be more similar to Bash/PHP/JavaScript). 2001:44C8:4400:7766:E5CD:F711:321B:495C (talk) 14:47, 24 May 2021 (UTC)
- Try this in LocalSettings.php:
$wgServer = "https://www.example.com"; $wgScriptPath =""; $wgArticlePath = "/$1";
- And this in .htaccess:
RewriteEngine on RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L]- It might not be perfect but it works for me :-) Jonathan3 (talk) 16:35, 24 May 2021 (UTC)
- If there is no --- no-Apache-directives solution than I think I just stay with the default behavior; in my personal case it doesn't really matter; if technology improves and Apache PCRE would be replaced with a much more "human-like-language" computer language level in the level of say Bash or JavaScript, or if there would be a PHP solution then I might try it for my personal website, in which it's not a must. Thanks for the examples. 2001:44C8:4512:B6D6:A16F:69E9:F0A3:8BD9 (talk) 17:13, 24 May 2021 (UTC)
- > "human-like-language" computer language level in the level of say Bash
- Ironically, its a pretty direct descendent of bourne shell scripting (if you have used the sed or grep command, which is commonly used in shell scripts, it should look familiar with mildly different syntax)
- $wgArticlePath is more about telling the web browser where to look for mediawiki (client-side). Apache rewrite rules are about telling the server where mediawiki is located on the server (server-side). If they don't match then the web browser will look for mediawiki somewhere other than where the web server thinks it is, and find nothing. Bawolff (talk) 05:39, 26 May 2021 (UTC)
Shared hosting .htaccess file examples for MediaWiki
I want to read a examples of a shared hosting .htaccess file (under public_html) example for a MediaWiki site.
Please kindly share your own, perhaps with an explanation about why you did what and why. This might help others and myself to ensure we also have good shared hosting .htaccess files, exchange data and develop discourse. Thanks. 2001:44C8:4512:B6D6:A16F:69E9:F0A3:8BD9 (talk) 16:15, 24 May 2021 (UTC)
ErrorDocument 500 /500.htmlErrorDocument 404 /404.htmlErrorDocument 403 /403.htmlErrorDocument 401 /401.htmlRewriteEngine OnRewriteCond %{HTTPS} offRewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}- What do you want me to say, it simply displays errors messages whenever you browse my website and it forces https connexions (Although in my case that is commented out). MarioSuperstar77 (talk) 17:55, 24 May 2021 (UTC)
- there's lots of examples at manual:short url. The difficulty is everyone wants something slightly different so there's no one answer.
- If you want to force https connections consider using HSTS:
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"- That will make it permenent and is more secure. Bawolff (talk) 05:31, 26 May 2021 (UTC)
Pages and view restrictions
Is there some way to restrict pages so they are hidden or at least not able to be viewed? I need to remove old documentation without removing access from a high level group. 73.229.112.33 (talk) 21:09, 24 May 2021 (UTC)
- If you revoke the "read" permission from a group they can't view the website. See here Manual:User rights.
- However, doing so on a namespace by namespace basis, you might need an extension because while it is possible to assign different types of protections on pages and namespaces, I do not believe it is possible to prevent them from being read without that affecting the entire wiki. MarioSuperstar77 (talk) 21:17, 24 May 2021 (UTC)
Problems with the WikiVoyage.pt
Guys, please, I am having two problems at Wikivoyage.pt: 1) I am not able to remove the categories there, it seems that they are added automatically... but categories are being added in English... How can I add and remove them manually? What about stoping the automatic process?2) there is a problem in the interface: when one opens the source code editor, there are some links in the taskbar to add the common templates automatically, but they appear, today, disfigured and it is not possible to understand their functions, can someone help? or where I can get help on this? Felipe da Fonseca (talk) 23:36, 24 May 2021 (UTC)
- These are two independent tasks.
- The one with detoriated icons might be solved globally.
- The categories were issued by voy:pt:Módulo:Map which is a local configuration issue and are not caused by a MediaWiki problem to be discussed here.
- That module appears to have been copied from an English project, either English Wikipedia or English Wikivoyage I guess. There are no precautions made to configure categories locally according to another project than the module has been written for. PerfektesChaos (talk) 07:41, 25 May 2021 (UTC)
- Do I just find the maps that are inserting the categories and remove them from there? How do I find them? Felipe da Fonseca (talk) 10:29, 25 May 2021 (UTC)
- i would guess the toolbar issue is caused by https://pt.wikivoyage.org/wiki/MediaWiki:Editor.js Bawolff (talk) 05:27, 26 May 2021 (UTC)
- And how did I solve this? I don't understand anything that happens on this page. Felipe da Fonseca (talk) 08:32, 26 May 2021 (UTC)
- well you could delete it. That would have other effects though. Bawolff (talk) 16:07, 27 May 2021 (UTC)
- The module was involved by things like voy:pt:Predefinição:Mapframe / voy:pt:Predefinição:Maplayers / voy:pt:Predefinição:Maplink.
- This is an issue that you need to solve within the voy:pt: community, it is nothing which is in scope of this global software maintenance here.
- If voy:pt: has not enough technical experience, you might ask at greater w:pt: for support. PerfektesChaos (talk) 19:11, 26 May 2021 (UTC)
- personally i think it is in scope for here (but not for phabricator), but its kind of unlikely anyone is going to help the poster from here. Bawolff (talk) 16:10, 27 May 2021 (UTC)
- I am asking help here. Felipe da Fonseca (talk) 19:20, 26 May 2021 (UTC)
- I do know.
- However, this project here is maintaining global MediaWiki software.
- You have two local problems in voy:pt: which are not caused by global MediaWiki software. You need to find a local solution for programming located at voy:pt. You might ask other pt people. PerfektesChaos (talk) 19:40, 26 May 2021 (UTC)
- I am doing this and asking here. I am sure some one gere can help. Thanks for your time. Felipe da Fonseca (talk) 19:52, 26 May 2021 (UTC)
Action.php Problems after server crash
I had a massive crash of my webserver with corruption of my database, so that I had to use a backup. Luckely the wiki is up and running now, but it doesn't load the skins, anything specified in CSS or pictures. Plain text is fine, the article pages are fine, I can create new pages...
Above all pages is the following line: "Warning: Private methods cannot be final as they are never overridden by other classes in PathToWiki\includes\actions\Action.php on line 69"
Can someone explain to me how I get this working again, so that I have my CSS and pictures back? 91.42.81.35 (talk) 08:26, 25 May 2021 (UTC)
- This suggested you upgraded PHP, or you changed the (PHP) error reporting level to include warnings now. (BTW, this problem is fixed in MediaWiki alpha and 1.36, and probably 1.35) – Ammarpad (talk) 17:40, 25 May 2021 (UTC)
- Ah... it's possible this happend while I fixed my webserver. I upgraded Apache and maybe (basically in brain auto mode) also PHP... So I have to upgrade mediawiki as well to fix my problem? Or how do I change PHP to not include warnings anymore? 91.42.81.35 (talk) 17:56, 25 May 2021 (UTC)
- You can see the compatibility guidelines for MW here if it helps: Compatibility TiltedCerebellum (talk) 04:28, 4 June 2021 (UTC)
Elastic search
Trying to install elasticsearch ~7.0 But i have added semantic-media-wiki 3.2.3 in my project.
So its giving Below Error,
mediawiki/semantic-media-wiki 3.2.3 requires elasticsearch/elasticsearch ^5.3|^6.0 -> satisfiable by elasticsearch/elasticsearch[5.x-dev, 6.0.x-dev, 6.5.x-dev, 6.7.x-dev, 6.8.x-dev, 6.x-dev, v5.3.0, v5.3.1, v5.3.2, v5.4.0, v5.5.0, v6.0.0, v6.0.0-beta1, v6.0.1, v6.1.0, v6.5.0, v6.5.1, v6.7.0, v6.7.1, v6.7.2, v6.8.0, v6.8.1]
but these conflict with your requirements or minimum-stability.
is it better for me to installl lower veriosn of elastic search i.e 5.3 or 6.0.
Or i have to downgrade the semantic-media-wiki version?? 143.97.2.35 (talk) 11:22, 25 May 2021 (UTC)
- Install a lower version of Elasticsearch —TheDJ (Not WMF) (talk • contribs) 11:31, 25 May 2021 (UTC)
- Version dependencies are listed on the Cirrus Search extension page:
- Extension:CirrusSearch#Dependencies TiltedCerebellum (talk) 04:29, 4 June 2021 (UTC)
Failed opening required '/var/www/html/skins/Vector/Vector.php'
Hi Team,
We are using the old version for mediawiki stack as below:-
MediaWiki:- 1.25wmf13
PHP :- 5.3.29 (apache2handler)
MySQL:- 5.7.32-google-log
Elasticsearch:- 1.3.2
We are trying to upgrade the PHP version to php:7.4.3-apache via docker file
Docker file:-
FROM php:7.4.3-apache
RUN apt-get update; \
apt-get install -y libmysqlclient-dev imagemagick libldap2-dev libonig-dev; \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/; \
docker-php-ext-install ldap; \
docker-php-ext-install mysqli; \
docker-php-ext-install mbstring
RUN ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
COPY apache2-conf/sites-enabled /etc/apache2/sites-enabled
COPY wiki /var/www/html
We are getting the below error:-
Warning: require_once(/var/www/html/skins/Vector/Vector.php): failed to open stream: No such file or directory in /var/www/html/LocalSettings.php on line 143 Fatal error: require_once(): Failed opening required '/var/www/html/skins/Vector/Vector.php' (include_path='/var/www/html/vendor/pear/console_getopt:/var/www/html/vendor/pear/mail:/var/www/html/vendor/pear/mail_mime:/var/www/html/vendor/pear/net_smtp:/var/www/html/vendor/pear/net_socket:/var/www/html/vendor/pear/pear-core-minimal/src:/var/www/html/vendor/pear/pear_exception:.:') in /var/www/html/LocalSettings.php on line 143
can someone help?
Thanks Suvsap (talk) 11:31, 25 May 2021 (UTC)
- Ensure /var/www/html/skins/Vector/Vector.php exists. Otherwise, you may need to follow Skin:Vector installation instructions depending on your MediaWiki versions, like for example using wfLoadSkin( 'Vector' ); instead of require_once. Ciencia Al Poder (talk) 11:42, 25 May 2021 (UTC)
Special page to list all redirect pages
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Does this exist? I know about Special:DoubleRedirects but wonder about one for normal redirects. It's not hard to search for "#redirect" so it's not a big deal either way :-) Thanks. Jonathan3 (talk) 15:01, 25 May 2021 (UTC)
- special:listredirects
- There is a list of special pages at special:specialpages Bawolff (talk) 05:21, 26 May 2021 (UTC)
- I'd looked there and didn't spot it - apologies! Jonathan3 (talk) 07:44, 26 May 2021 (UTC)
Error: 1048 Column 'old_id' cannot be null (localhost) After moving on other server
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello every one,
I've installed my mediawiki on anther server because the other have crashed.
I've installed mediawiki 1.33, I've copied the images and extention directory and I've updated the LocalSetting.php file. I've run "update.php".
I manage to connect to my wiki, I can display the different pages. But when I try to update a page, after click on "save" button I have this error in the page :
[53a66f876a2c40e4ab24c3ce] /index.php?title=Accueil&action=submit Wikimedia\Rdbms\DBQueryError from line 1587 of /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: INSERT INTO `text` (old_id,old_text,old_flags) VALUES (NULL,'\n== Communications internes ==\nTemplate:Msgbox\n\n\n* Résultats Audit 2020 Renouvellement Certification EN9100\n\n* Résultat Audit EN9100 Suivi 2\n\n* Calendrier de Présence\n\n== Bienvenue aux nouveaux arrivants ==\nTemplate:Msgbox\n\n\nLivret d\'accueil\n\n\n== Bulletin INFO STEEL ==\n\n\nTemplate:Msgbox\n\n\n* Bulletin INFO STEEL\n\n== Postes à pourvoir ==\nTemplate:Msgbox\n\nA compléter...\n\n== Site internet ==\n\nframe|left|link=http://www.steel-electronique.fr\n\n\n\n\n\n\n\n\n\n\n== Pour démarrer ==\n* Liste des paramètres de configuration\n* FAQ sur MediaWiki\n* Liste de discussion sur les distributions de MediaWiki\n* Adaptez MediaWiki dans votre langue','utf-8') Function: MediaWiki\Storage\SqlBlobStore::storeBlob Error: 1048 Column 'old_id' cannot be null (localhost)
Backtrace:
- 0 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(2149): Wikimedia\Rdbms\Database->query(string, string)
#3 /var/www/html/mediawiki/includes/Storage/SqlBlobStore.php(246): Wikimedia\Rdbms\Database->insert(string, array, string)
#4 /var/www/html/mediawiki/includes/Revision/RevisionStore.php(944): MediaWiki\Storage\SqlBlobStore->storeBlob(string, array)
#5 /var/www/html/mediawiki/includes/Revision/RevisionStore.php(685): MediaWiki\Revision\RevisionStore->storeContentBlob(MediaWiki\Revision\SlotRecord, Title, array)
#6 /var/www/html/mediawiki/includes/Revision/RevisionStore.php(620): MediaWiki\Revision\RevisionStore->insertSlotOn(Wikimedia\Rdbms\DatabaseMysqli, integer, MediaWiki\Revision\SlotRecord, Title, array)
#7 /var/www/html/mediawiki/includes/Revision/RevisionStore.php(511): MediaWiki\Revision\RevisionStore->insertRevisionInternal(MediaWiki\Revision\MutableRevisionRecord, Wikimedia\Rdbms\DatabaseMysqli, User, CommentStoreComment, Title, integer, integer)
#8 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(3883): MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}(Wikimedia\Rdbms\DatabaseMysqli, string)
#9 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(53): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure)
#10 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(609): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#11 /var/www/html/mediawiki/includes/Revision/RevisionStore.php(519): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure)
#12 /var/www/html/mediawiki/includes/Storage/PageUpdater.php(985): MediaWiki\Revision\RevisionStore->insertRevisionOn(MediaWiki\Revision\MutableRevisionRecord, Wikimedia\Rdbms\DBConnRef)
#13 /var/www/html/mediawiki/includes/Storage/PageUpdater.php(756): MediaWiki\Storage\PageUpdater->doModify(CommentStoreComment, User, integer)
#14 /var/www/html/mediawiki/includes/page/WikiPage.php(1914): MediaWiki\Storage\PageUpdater->saveRevision(CommentStoreComment, integer)
#15 /var/www/html/mediawiki/includes/EditPage.php(2294): WikiPage->doEditContent(WikitextContent, CommentStoreComment, integer, boolean, User, string, array, integer)
#16 /var/www/html/mediawiki/includes/EditPage.php(1586): EditPage->internalAttemptSave(array, boolean)
#17 /var/www/html/mediawiki/includes/EditPage.php(687): EditPage->attemptSave(array)
#18 /var/www/html/mediawiki/includes/actions/EditAction.php(60): EditPage->edit()
#19 /var/www/html/mediawiki/includes/actions/SubmitAction.php(38): EditAction->show()
#20 /var/www/html/mediawiki/includes/MediaWiki.php(499): SubmitAction->show()
#21 /var/www/html/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#22 /var/www/html/mediawiki/includes/MediaWiki.php(865): MediaWiki->performRequest()
#23 /var/www/html/mediawiki/includes/MediaWiki.php(515): MediaWiki->main()
#24 /var/www/html/mediawiki/index.php(42): MediaWiki->run()
#25 {main}
Have you an idea to fix this problem ?
Thank you. Jca31220 (talk) 15:41, 25 May 2021 (UTC)
- The old_id column of the text table is an auto_increment field, which means it automatically gets a value on new inserts. Apparently, that's not the case on your installation.
- Can you check if that column on your installation has the auto_increment flag set? Maybe this problem is happening on other tables, too Ciencia Al Poder (talk) 16:18, 25 May 2021 (UTC)
- did you move db servers as well? Maybe an improperly restored backup. Bawolff (talk) 05:20, 26 May 2021 (UTC)
- Thank you !!!!! That was my problem. I add the auto_increment on the column and that fix my problem.
- And effectively, my backup wasn't very clean.
- But thank you for your quick answer.
- Have a nice day. Jca31220 (talk) 07:44, 26 May 2021 (UTC)
Hiding text from regular users to signed in users.
I have trying to hide text from plain readers compared to users. I have adjusted Common.css and added in a hiddentext class for div, but trying to adjust sysop.css. I have failed in being able to see the text for users. The test text is hidden from everyone. Can someone explain to me how to get this working?
What I have been doing.
/* Hide stuff meant for accounts with special permissions. Made visible again in
[[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-accountcreator.css]],
[[MediaWiki:Group-templateeditor.css]] and [[Mediawiki:Group-autoconfirmed.css]]. */
.sysop-show, .accountcreator-show, .templateeditor-show, .autoconfirmed-show {
display: none;
}
In MediaWiki:Common.css
div.hiddentext {display:none;} 98.168.10.27 (talk) 20:40, 25 May 2021 (UTC)
- for starters you have display:none on both. Beyond that its hard to say without knowing what wikitext you are using.
- Also this is an easy to defeat method of hiding text, dont use it for anything sensitive. Bawolff (talk) 05:19, 26 May 2021 (UTC)
- yeah this isn't for anything sensitive. More or less just keeping some items hidden. I'm trying to implement JS into mediawiki to change the display:none to display:show when the wiki user is sysop, but it's not working correctly. 98.168.10.27 (talk) 19:42, 26 May 2021 (UTC)
- well you should post all of your code. Bawolff (talk) 16:06, 27 May 2021 (UTC)
- Here's the snippet of code to use if you do not want any anonymous users from seeing some text.
- {{#ifgroup:user|[Your Text Here]|}}
- I hope this helped. MarioSuperstar77 (talk) 22:37, 1 June 2021 (UTC)
- As Bawolff mentioned, posting all of your code (or even better as mentioned in the help instructions on this page, a link to what you're working on so they can inspect the code themselves) is generally the best way to go. User's can help if they can't see what's going on in the background. TiltedCerebellum (talk) 04:04, 4 June 2021 (UTC)
MediaWiki API:Upload does not work, although all parameters are filled
Hello to all,
I am writing a tool for Toolforge in Flask, that involves the user being able to upload images to Wikimedia Commons of images of objects similar (like replicas) of objects in a museum collection. I am having difficulties with the use of the API (I've asked here, but with no response).
Basically, I'm receiving the following error when I execute the code below:
- Code:
client_key = app.config['CONSUMER_KEY']
client_secret = app.config['CONSUMER_SECRET']
session = OAuth1Session(client_key,
client_secret=client_secret,
resource_owner_key=session['owner_key'],
resource_owner_secret=session['owner_secret'])
url = "https://commons.wikimedia.org/w/api.php"# I have used "https://test.wikipedia.org/w/api.php" with the same result
crsf_token = get_token()
params = {
"action": "upload",
"filename": <filename>,
"format": "json",
"token": csrf_token,
"ignorewarnings": 1
}
file = {'file': (<filename>, open(<filepath>, 'rb'), 'multipart/form-data')}
response = session.post(url, files=file, data=params)
data = response.json()
return data
- Error:
{
"error":
{
"code":"permissiondenied",
"docref":"See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.",
"info":"The action you have requested is limited to users in one of the groups: *, [[Commons:Users|Users]]."
},
"servedby":"mw1278"
}
Is this some kind of bug? Should I use a Bot password instead?
I have this and this consumer, as well. Ederporto (talk) 21:50, 25 May 2021 (UTC)
- sounds like you dont have the right oauth grants, maybe. Bawolff (talk) 05:15, 26 May 2021 (UTC)
- you probably need both edit and upload. Iploading involves editing pages. Bawolff (talk) 05:17, 26 May 2021 (UTC)
install additional services and memcached
hi, install mediawiki at tuxfamily.org there are several extensions that require additional services (for example: as the extension score required by the lilypond service the timed media handler extension that ffmpeg requires
How can these additional services of this type of extensions be installed on a mediawiki site hosted on tuxfamily? Uvas magicas (talk) 01:39, 26 May 2021 (UTC)
- you would have to ask tuxfamily.
- If its a shared host, the answer may vary well be that it cant be. Bawolff (talk) 05:13, 26 May 2021 (UTC)
Fatal exception of type Wikimedia\Rdbms\DBQueryError
Hello Team,
I have this error. Can you provide some help, please?
Deprecated: Caller from MessageCache::loadFromDB(en)-big ignored an error originally raised from MessageCache::loadFromDB(en)-small: [1146] Table 'mediawiki.revision_actor_temp' doesn't exist (localhost:/run/mysqld/mysqld10.sock) in /volume1/web/mediawiki/includes/debug/MWDebug.php on line 430
[afa6ff44ce65373ca76b2c7f] 2021-05-26 12:22:35: Fatal exception of type Wikimedia\Rdbms\DBQueryError 137.204.93.178 (talk) 12:26, 26 May 2021 (UTC)
- See Manual:How to debug; please provide steps to reproduce, what happened before, which MediaWiki version, etc - please see the sidebar. Malyacko (talk) 13:18, 26 May 2021 (UTC)
- Isn't the actor thing something new in a recent MW version?
- Maybe you need to run update.php to get those rows/tables?
- Maybe you've an old MW version and are trying to run a new extension? Jonathan3 (talk) 15:58, 26 May 2021 (UTC)
- Thanks for the answers.
- I already included into LocalSettings.php some of the lines suggested in Manual:How to debug;
- $wgShowExceptionDetals = true;
- $wgDebugToolbar = true;
- $wgShowDebug = true;
- $wgDevelopmentWarnings = true;
- $wgDebugComments = true;
- $wgDebugDumpSql = true;
- The result is what you see in my first message.
- I also tried to run update.php but the result is "Error 403: there is an error while processing this request".
- I have the following setup:
- - mediawiki 1.35.1
- - php 7.4
- - MariaDB 10.3.24
- The "computer" is a NAS with Synology operating system (a sort of Linux distribution, I suppose).
- Thanks in advance for any help. 137.204.93.178 (talk) 07:01, 27 May 2021 (UTC)
- I forget to mention that the problem arises after an update of several installed packages on my NAS. 137.204.93.178 (talk) 07:25, 27 May 2021 (UTC)
- you probably need to run update.php Bawolff (talk) 16:04, 27 May 2021 (UTC)
- I also to run update.php from the browser but the result is "Error 403: there is an error while processing this request".
- The Synology NAS does not have any internal browser, so how can I run update.php? Mayme I am missing something. 137.204.93.178 (talk) 15:03, 28 May 2021 (UTC)
- UP! There is someone that can provide any help, please? 137.204.93.178 (talk) 08:51, 1 June 2021 (UTC)
- If you get a 403 error then there is a problem with the server, not MediaWiki. Check your server logs for the exact error. Malyacko (talk) 18:55, 18 June 2021 (UTC)
Pass parameters and save output from maintenance scripts
Hi
I have to run automatically maintenance scripts e.g removeUnusedAccounts.php to fight against automated subscriptions.
In addition,I'd like to be able to produce an output log.
This is working fine from shell :
php ./mediawiki/maintenance/removeUnusedAccounts.php --ignore-touched 3 --delete >>./log/removeUnusedAccounts.log
But I'd like to run it automatically and unfortunately, the cron system provided by my host can run only php scripts and they can't have parameters...
I'd prefer not modifying scripts in the mediawiki distribution (1.35 currently), and I would be surprised to be the only one having this needs !
Is there a trick or a newer version allowing what I need in an easier way ?
Thanks for your hints. Tintinux (talk) 15:00, 26 May 2021 (UTC)
- create a php wrapper script to run the other php script ? —TheDJ (Not WMF) (talk • contribs) 15:04, 26 May 2021 (UTC)
- This sounds interesting, but how do you do this to call a maintenance script ? Tintinux (talk) 15:10, 26 May 2021 (UTC)
- Maybe something like this in "maintenance.php":
shell_exec("/usr/bin/php full/path/to/mediawiki/maintenance/removeUnusedAccounts.php --ignore-touched 3 --delete >> full/path/to/log/removeUnusedAccounts.log");- and have something like
00 03 * * * /usr/bin/php /full/path/to/maintenance.php
- or however it is that your host lets you set up the cron jobs.
- I'm partly puttting this here as that's what I'd likely try but there are probably better ways to hear about. ~ Jonathan3 (talk) 19:11, 26 May 2021 (UTC)
- Thanks, but as I said I can't run a shell, I can execute only php code. Shell_exec or anything creating a process is not allowed.
- An object (RemoveUnusedAccounts) is defined and created in the same script (removeUnusedAccounts.php), so I can't reuse this script to override the object, or I do not know how. Tintinux (talk) 05:58, 27 May 2021 (UTC)
- You shouldn't be running MediaWiki on hosting platforms that are so limiting honestly.
- Anyway, another thing you can try is to subclass removeUnusedAccounts and then override one of the utility functions of Maintenance.php and hardcode the arguments provided that way. —TheDJ (Not WMF) (talk • contribs) 10:18, 27 May 2021 (UTC)
Link that won't show up in "What links here"
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is it possible to create a link from page A to page B which won't show up in page B's "What links here" page?
I guess one option is to create an external link and disguise it with span class="plainlinks". Is that the only way? Thanks. Jonathan3 (talk) 22:23, 26 May 2021 (UTC)
- URL is one approach.
- You might try
[[Special:Redirect/page/]]and add thecuridafter the slash. There are more Redirect formats e.g. by user ID.curidis listed in page information. PerfektesChaos (talk) 23:11, 26 May 2021 (UTC) - Thanks. That's a page I didn't know about. Unfortunately the URL ends up being messy (...curid=...) so I'll go for the external link option. Jonathan3 (talk) 20:39, 27 May 2021 (UTC)
- This was driving me round the bend. I was using #ifexists in a template to find out if a page existed before creating the link. I thought once I changed the internal link to an external link I'd be fine. But DPL3 still listed the pages. I guess because of T14019 and Community Wishlist Survey 2021/Miscellaneous/Check if a page exists without populating WhatLinksHere. Ended up using Template:Linkless exists from Wikipedia instead of #ifexists. Jonathan3 (talk) 21:35, 27 May 2021 (UTC)
upload directory problem
Hello, there will be a way to change the default directory for uploads, the problem is that mediawiki uses the images folder to process the uploaded files but this is not convenient because it consumes web space so how could it be configured so that mediawiki and timed media handler and put the files uploaded in the following directory
https://download.tuxfamily.org/lapluma
currently configuring $wgUploadDirectory pointing to the repository it seems that the files are not put there
What could be done? Uvas magicas (talk) 23:33, 26 May 2021 (UTC)
- No sure. The only thing I can think of.. You need to define the actual on disk directory in $wgUploadDirectory (not a url or something) and your php has to have access to that area.
- You also might have to adapt Manual:$wgUploadPath as described in the documentation of both of those variables. —TheDJ (Not WMF) (talk • contribs) 10:43, 27 May 2021 (UTC)
The requested URL was not found on this server. Short URL
Hello,
I have a 404 Not Found error while I am doing the short url guide. I am using Apache and have access to the server files.
I am using a Raspberry Pi to host MediaWiki. I have enables overides in the configuration. I put my configs in a .conf in the sites-enabled folder.
Here is what I added on LocalSettings.php: $wgScriptPath = "/w"; $wgArticlePath = "/wiki/$1";
Here is what I added on the conf file:
#Enable the rewrite engine
RewriteEngine On
#Short URL for wiki pages
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
#Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
I put it on the VirtualHost block
Thanks! I’m up here checking my emails and I get redirected to this platform verifying all, blocks and etc. that you have created on this website blinking to any and everything else contributing under my electronics and etc. with no consent whatsoever or authorization I am still under warranty on all of my electronics I just purchased this iPhone and etc. there should not be any blocks and etc. around under my electronics my electronic information should never even 2404:3C00:2540:D720:0:0:0:3 (talk) 07:41, 27 May 2021 (UTC)
- The 1. are the comments, please ingnore 2404:3C00:2540:D720:0:0:0:3 (talk) 07:42, 27 May 2021 (UTC)
- what directory is mediawiki installed in? What is the url before setting up short urls. Bawolff (talk) 16:00, 27 May 2021 (UTC)
- Hi! Sorry for the wait. I am on my mobile account.
- So, Its on var/www/html/ 136.158.7.154 (talk) 04:54, 28 May 2021 (UTC)
- I also added the file to default.conf, sadly didn’t work 136.158.7.154 (talk) 06:06, 29 May 2021 (UTC)
Is it safe to delete $wgUpgradeKey from LocalSettings.php?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
MediaWiki 1.35.2
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "KEY_HIDDEN";
---
I don't know what it meant to be doing --- I never used it to upgrade my MediaWiki. 2001:44C8:414A:8E75:990B:9C78:A3F9:95E4 (talk) 08:11, 27 May 2021 (UTC)
- It was automatically created when you used the web installer for the initial setup. It required by the web installer when upgrading your wiki via that web interface.
- If you upgrade via command line you don't need it. It doesn't do any harm to have it and if you remove it the installer will ask you to set a new key, when you attempt to use the web installer. —TheDJ (Not WMF) (talk • contribs) 10:37, 27 May 2021 (UTC)
- Thanks, 2001:44C8:414A:8E75:990B:9C78:A3F9:95E4 (talk) 11:52, 27 May 2021 (UTC)
Is it safe to delete $wgRightsPage, $wgRightsUrl, $wgRightsText and $wgRightsIcon from LocalSettings.php?
MediaWiki 1.35.2
I have made a comment the following php variables in LocalSettings.php:
- $wgRightsPage
- $wgRightsUrl
- $wgRightsText
- $wgRightsIcon
My only webpage about legal issues with the URL pattern example.com/wiki/My_Nice_Wiki:legal_issues still loads fine in my website
Thus I assume that it is totally safe for me to not only make comment but to also delete the above variables from LocalSettings.php.
Would you advice for or against deleting them in a case like mine, and why? 2001:44C8:414A:8E75:990B:9C78:A3F9:95E4 (talk) 08:18, 27 May 2021 (UTC)
- These variables are used by various elements of the UI, to be able to present your 'legal_issues' page etc. Especially when making edits. You probably should just fill them with appropriate content. The variables and their use are all described on this wiki.
- Manual:$wgRightsPage
- Manual:$wgRightsUrl
- Manual:$wgRightsText
- Manual:$wgRightsIcon —TheDJ (Not WMF) (talk • contribs) 10:22, 27 May 2021 (UTC)
- @TheDJ after reading your comment perhaps I should clarify this:
- In my website, I am the only writer, and prefer to center all legal data just in one page (the aforementioned page) both from legal reasons and aesthetic reasons, so I just don't want legal information to appear anywhere outside that page. 2001:44C8:414A:8E75:990B:9C78:A3F9:95E4 (talk) 11:51, 27 May 2021 (UTC)
- I am the only user ; I just use MediaWiki for my personal website because it's very convenient for me, much more than say WordPress and more suitable for me than Drupal ; it is unlikely that there would be any more registered users besides me (besides maybe, just one helper). 2001:44C8:414A:8E75:990B:9C78:A3F9:95E4 (talk) 14:06, 27 May 2021 (UTC)
- they all have default values that will be used if they are unspecified in LocalSettings.php. these defaults may or may not be what you want. Bawolff (talk) 15:57, 27 May 2021 (UTC)
- I don't have $wgRightsIcon set. I use $wgRightsPage (not the alternative, $wgRightsUrl) with
$wgRightsText = "Copyrights"and MediaWiki:Copyright changed from "MediaWiki.org's content is available under the $1." to just "$1". It just shows the word "Copyrights" and a link to the $wgRightsPage page. The variables all default to null. If you comment out both variables, on Vector just removes the relevant part of the footer. - Why not have something like this (with MediaWiki:Copyright changed to $1)?
- Jonathan3 (talk) 20:34, 27 May 2021 (UTC)
$wgRightsPage = "My_Nice_Wiki:legal_issues"; $wgRightsText = "Legal issues"; # $wgRightsUrl unused # $wgRightsIcon unused
Protect against web entry
MediaWiki 1.35.2
Going through my LocalSettings.php file I found this piece of text:
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
What is its purpose and is it safe to just delete it? 2001:44C8:414A:8E75:990B:9C78:A3F9:95E4 (talk) 13:17, 27 May 2021 (UTC)
- I think it's so you can't run it from a web browser by putting it in a URL. Probably best to leave it. Jonathan3 (talk) 14:19, 27 May 2021 (UTC)
- it gives a nice error message if you try to visit LocalSettings.php directly.
- Its was also a defense against register_globals vulnerabilities back in the day when that mattered. Bawolff (talk) 15:55, 27 May 2021 (UTC)
Steps to upgrade mediawiki from 1.25wmf13 to 1.35.2
Hi,
Has anyone upgraded mediawiki from 1.25wmf13 to 1.35.2 using docker file and helm release?
If you can help me it will be great.
Thanks very much in advance Suvsap (talk) 14:38, 27 May 2021 (UTC)
- The MW staff here generally seem to not recommend using docker since they cannot support a third-party installer and it often causes issues. They generally seem to recommend installing MediaWiki using the officially (supported) method provided by MediaWiki. You won't get support for third-party installations here, you should ask the folks who put together your docker install, or better yet, use the officially support installation method by MW. :) TiltedCerebellum (talk) 04:23, 4 June 2021 (UTC)
Error contacting the Parsoid/RESTBase server: http-bad-status
Fresh install of MediaWiki 1.35.2 on Ubuntu 20.04 server.
I proceeded through the setup wizard and got logged into the system.
When I enable the VisualEditor 0.1.2 plugin and click edit on the top of a page I get the following error.
Error contacting the Parsoid/RESTBase server: http-bad-status
I have tried many of the troubleshooting steps on the plugin page and some from other websites, but I have not been able to resolve this issue.
Please help.
Thanks,
Shawn 216.111.241.42 (talk) 21:33, 27 May 2021 (UTC)
- Is your wiki a private wiki? If you you might read the following (found via Google Search by inputting your error message, no idea if any of these might be helpful but posting just in case one might be):
- Extension talk:VisualEditor/2020#h-Maybe_they'll_fix_it-2020-10-02T19:05:00.000Z
- Topic:Vw8dyjb6l8dta7t6 TiltedCerebellum (talk) 04:20, 4 June 2021 (UTC)
Is same-namespace search possible?
Is it possible to have a same-namespace search?
Suppose I am at b:Cookbook:Hamburger and I want to search other recipes, it would be useful to have a namespace searchbox. Wikidata also uses important content on other namespaces.
The lack of a same-namespace search is the main hindrance for having new namespaces Vis M (talk) 22:17, 27 May 2021 (UTC)
- You can use the InputBox extension to create a search box with the namespaces parameter. Jonathan3 (talk) 07:00, 28 May 2021 (UTC)
- Thank you! Vis M (talk) 11:48, 29 May 2021 (UTC)
Show full filenames in galleries
At Help:Images#Optional gallery attributes I learn that <gallery showfilenames=yes> makes the filenames appear below the files, an example is m:user:Vinals/gallery. As you can see thou the entire file name isn't rendered, if it's too long the rest is substituted with .... Can you somehow force the full filenames to appear? Jonteemil (talk) 22:24, 27 May 2021 (UTC)
- It's hidden with CSS. You'll need to add custom CSS to override it. For example:
- Ciencia Al Poder (talk) 11:35, 29 May 2021 (UTC)
.galleryfilename-truncate { overflow: visible; white-space: normal; } - Thanks so much :) Jonteemil (talk) 14:40, 29 May 2021 (UTC)
Could not open input file: /maintenance/generateSitemap.php
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
MediaWiki 1.35.2 on a shared hosting.
I desire to create a sitemap.
I have navigated to my website's document root ($HOME/document_root) and run mkdir sitemap.
php /maintenance/generateSitemap.php \ --memory-limit=50M \ --fspath=/sitemap \ --identifier=example.com \ --urlpath=/sitemap \ --server=https://example.com \ --compress=yesAnd yet I get the error:
Could not open input file: /maintenance/generateSitemap.php
(Which exists and has -rw-r--r-- permissions).
What may cause the error and how would you suggest to handle this situation? 2001:44C8:424D:D77:2CFE:91E4:6B8:D5BD (talk) 12:26, 28 May 2021 (UTC)
- I have PHP 7.4 globally (covers all hosting environment) and I host on Namecheap. 2001:44C8:424D:D77:2CFE:91E4:6B8:D5BD (talk) 13:16, 28 May 2021 (UTC)
- command is php maintenance/generateSitemap.php not php /maintenance/generateSitemap.php
- That first / should not be there. Bawolff (talk) 16:01, 28 May 2021 (UTC)
- Okay, I got the page to load properly now but when I try to login with our domain with PlugableAuth, it shows this message:
- The supplied credentials are not associated with any user on this wiki. Laujc (talk) 16:16, 28 May 2021 (UTC)
- @Bawolff thanks, now it worked, but something is strange, it produced sub-sitemaps for all content types besides the article content types:
- 0 ()
- /home/USER/public_html/sitemap-USER_example?hexample-NS_0-0.xml.gz
- 2 (משתמש)
- /home/USER/public_html/sitemap-USER_example?hexample-NS_2-0.xml.gz
- 4 (WEBSITE_NAME)
- /home/USER/public_html/sitemap-USER_example?hexample-NS_4-0.xml.gz
- 8 (מדיה ויקי)
- /home/USER/public_html/sitemap-USER_example?hexample-NS_8-0.xml.gz
- 10 (תבנית)
- /home/USER/public_html/sitemap-USER_example?hexample-NS_10-0.xml.gz
- 14 (קטגוריה)
- /home/USER/public_html/sitemap-USER_example?hexample-NS_14-0.xml.gz
- Or the even number jumping 0, 2, 4, 8, 10, 14 misleads me... 2001:44C8:4017:418A:3C41:511E:DDB8:16C4 (talk) 01:31, 29 May 2021 (UTC)
- The operation was also very fast, perhaps less than half a second, while I vaguely recall that last time it took about 1-2 seconds, but maybe because since then I switched hosting companies. 2001:44C8:4017:418A:3C41:511E:DDB8:16C4 (talk) 01:36, 29 May 2021 (UTC)
- Okay I understood my problem --- I didn't do
cd sitemapbefore running the command RELATIVE_PATH/php maintenance/generateSitemap.php - Thanks, 2001:44C8:4017:418A:3C41:511E:DDB8:16C4 (talk) 01:47, 29 May 2021 (UTC)
How to upgrade from 1.31 to 1.35.2?
I'm following this instruction, https://techwelkin.com/how-to-upgrade-mediawiki-to-latest-version, but I'm still getting the following message on the site.
This page isn’t working
myWebdevwiki.myApps.myDomain.com didn’t send any data.
ERR_EMPTY_RESPONSE
My environment is:
Windows Server 2016 Standard
IIS 10
PHP 7.4.14
MySQL 5.7.34
I have removed all the references to extensions in the localsettings.php file before running the php update.php. This is the result of the php update.php on my command prompt.
Your composer.lock file is up to date with current dependencies!
Going to run database updates for app134_dev-hdwiki
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0
...have ipb_id field in ipblocks table.
...have ipb_expiry field in ipblocks table.
...already have interwiki table
...indexes seem up to 20031107 standards.
...have rc_type field in recentchanges table.
...index new_name_timestamp already set on recentchanges table.
...have user_real_name field in user table.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
...have pagelinks; skipping old links table updates
...il_from OK
...have rc_ip field in recentchanges table.
...index PRIMARY already set on image table.
...have rc_id field in recentchanges table.
...have rc_patrolled field in recentchanges table.
...logging table already exists.
...have user_token field in user table.
...have wl_notificationtimestamp field in watchlist table.
...watchlist talk page rows already present.
...user table does not contain user_emailauthenticationtimestamp field.
...page table already exists.
...have log_params field in logging table.
...logging table has correct log_title encoding.
...have ar_rev_id field in archive table.
...have page_len field in page table.
...revision table does not contain inverse_timestamp field.
...have rev_deleted field in revision table.
...have img_width field in image table.
...have img_metadata field in image table.
...have user_email_token field in user table.
...page_namespace is already a full int (int(11)).
...ar_namespace is already a full int (int(11)).
...rc_namespace is already a full int (int(11)).
...wl_namespace is already a full int (int(11)).
...qc_namespace is already a full int (int(11)).
...log_namespace is already a full int (int(11)).
...have img_media_type field in image table.
...already have pagelinks table.
...image table does not contain img_type field.
...already have unique user_name index.
...user_groups table exists and is in current format.
...have ss_total_pages field in site_stats table.
...user_newtalk table already exists.
...have iw_trans field in interwiki table.
...wl_notificationtimestamp is already nullable.
...index times already set on logging table.
...have ipb_range_start field in ipblocks table.
Wikimedia\Rdbms\DBReadOnlyError from line 994 of C:\inetpub\myWebdevwiki.myApps.myDomain.com\includes\libs\rdbms\database\Database.php: Database is read-only: Maintenance is underway. Website is on read-only mode
#0 C:\inetpub\myWebdevwiki.myApps.myDomain.com\includes\libs\rdbms\database\Database.php(1272): Wikimedia\Rdbms\Database->assertIsWritableMaster()
#1 C:\inetpub\myWebdevwiki.myApps.myDomain.com\includes\libs\rdbms\database\Database.php(1223): Wikimedia\Rdbms\Database->executeQuery()
#2 C:\inetpub\myWebdevwiki.myApps.myDomain.com\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->query()
#3 C:\inetpub\myWebdevwiki.myApps.myDomain.com\includes\libs\rdbms\database\DBConnRef.php(286): Wikimedia\Rdbms\DBConnRef->__call()
#4 C:\inetpub\myWebdevwiki.myApps.myDomain.com\includes\installer\MysqlUpdater.php(994): Wikimedia\Rdbms\DBConnRef->query()
#5 C:\inetpub\myWebdevwiki.myApps.myDomain.com\includes\installer\DatabaseUpdater.php(554): MysqlUpdater->doPageRandomUpdate()
#6 C:\inetpub\myWebdevwiki.myApps.myDomain.com\includes\installer\DatabaseUpdater.php(517): DatabaseUpdater->runUpdates()
#7 C:\inetpub\myWebdevwiki.myApps.myDomain.com\maintenance\update.php(181): DatabaseUpdater->doUpdates()
#8 C:\inetpub\myWebdevwiki.myApps.myDomain.com\maintenance\doMaintenance.php(107): UpdateMediaWiki->execute()
#9 C:\inetpub\myWebdevwiki.myApps.myDomain.com\maintenance\update.php(253): require_once('C:\\inetpub\\webd...')
#10 {main} Laujc (talk) 14:32, 28 May 2021 (UTC)
- See Manual:Upgrading for detailed instructions on upgrading. The instructions you're following contains outdated information. – Ammarpad (talk) 05:30, 29 May 2021 (UTC)
Missing Text after upgrade to 1.35.2, Headers and Tables work Fine
I am seeing inconsistent output from my site after upgrading from 1.33.1. Headers and Tables show perfectly, I think because they have a formatting symbol that is interpreted by MW.
Any text lines that don't have any formatting symbol at the beginning of the line do not appear.
I have run update.php with no effect.
How can I debug the problem?
Are there different settings that are needed or should be checked in php.ini or LocalSettings.php?
MediaWiki 1.35.2 PHP 7.4.19 Chameleon 3.1.0
Thank you,
Gregg GMShimokura (talk) 15:31, 28 May 2021 (UTC)
- Hello. Maybe this is happening for some file missing. You can reinstall the software or you should download this apk file from Chrome browser.
- You can see this-
- MediaWiki 1.35 ↠Tanbirzx (✉) 17:08, 28 May 2021 (UTC)
- apk files are not relavent to mediawiki. Bawolff (talk) 06:33, 29 May 2021 (UTC)
- Thanks for the reply.
- I am not clear on the apk file you are referring to which file and where should it go?
- Another clue perhaps.
- - If I put text inside a <div>...</div> the text is displayed.
- - If try the 'bold' formatting (ie '''...''' ) it is not displayed. GMShimokura (talk) 20:40, 28 May 2021 (UTC)
- Also I have enabled pcre.jit=1 in php.ini. GMShimokura (talk) 23:50, 28 May 2021 (UTC)
- can you check if this still happens if you disable all extensions?
- Can you also check other skins, just to make sure its not a skin issue (seems unlikely but good to rule out)? Bawolff (talk) 06:35, 29 May 2021 (UTC)
- I checked using the vector and foreground skin. Same result.
- Disabling all extensions was not possible, I needed the Bootstrap extension as a minimum with the chameleon skin. With only Bootstrap enabled, same result.
- Was running Safari, so tried Firefox but came up with same result.
- Here is my wiki text test case: Results shown below (Text1, Span, bold, nowiki, paragraph are not displayed)
==Test== Text1 <div> Div </div> Preformatted <span> Span </span> ===Checks=== :indent '''bold''' <nowiki>'''nowiki'''<\nowiki> **bullet <p>paragraph</p> ;definition
- ==Test==
- Div
Preformatted- ===Checks===
- indent
- bullet
- definition
- ----Looking at the generated page source code, the HTML seems fine, the missing text is present in the HTML source code but not getting displayed.. very strange.
- With the chameleon skin I do get this warning in the Page Source Code / console which I do not get with the foreground or vector skin:
mw.log.warn("This page is using the deprecated ResourceLoader module \"mediawiki.skinning.content\".\nYour default skin ResourceLoader class should use ResourceLoaderSkinModule::class");- Any suggestions? GMShimokura (talk) 10:11, 29 May 2021 (UTC)
- Well, if it's in the HTML but not being displayed, most probably there's a CSS issue. Some CSS rules may be deliberately hiding text inside span or bold tags.
- Hit F12 and inspect those elements to see what rules are applying, and hunt them in your Manual:Interface/CSS or extensions/skins. Ciencia Al Poder (talk) 11:25, 29 May 2021 (UTC)
- Thanks for the hint. I think that is the problem. I see in the generated HTML that all the missing text has been put inside <p>...</p> tags.
- I am on Safari/Mac so I'll try to reverse engineer where a .p style is hiding the text. F12 doesn't seem to do anything in my case. GMShimokura (talk) 12:33, 29 May 2021 (UTC)
- Use a modern browser like Firefox or Chrome, that allows inspecting CSS and HTML by pressing F12, or the development tools menu Ciencia Al Poder (talk) 13:07, 29 May 2021 (UTC)
[419f0f086254c9a35b80adb1] Caught exception of type Flow\Exception\WikitextException
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have flow installed but when saving a theme with the visual editor it appears [419f0f086254c9a35b80adb1] Caught exception of type Flow \ Exception \ WikitextException and when I pass it on to wikitext I get the following:
Unable to transfer content: Error trying to contact the server for conversion between wikitext and HTML. Please check your internet connection or try again later if the problem persists. If you keep getting this error, please submit a bug report.
what's going on? Uvas magicas (talk) 16:50, 28 May 2021 (UTC)
- See Manual:How to debug plus the sidebar of this website Malyacko (talk) 02:18, 30 May 2021 (UTC)
- I was activating this and apparently I could not see errors Uvas magicas (talk) 13:19, 5 June 2021 (UTC)
- Same issue on my wiki. 174.204.199.74 (talk) 01:45, 17 June 2022 (UTC)
- i see this problem, the solution is config the next variable: $wgVirtualRestConfig['modules']['parsoid']['url'] and point to the url access of the rest.php of the wiki. Uvas magicas (talk) 20:52, 20 June 2022 (UTC)
Does sharing the ipblocks table make all blocks global?
I want to start a wiki hosting service, and I want global accounts. Does sharing the ipblocks table make all blocks global, or only makes blocks on one specific wiki global? AtomicMario (talk) 22:25, 28 May 2021 (UTC)
- it would make the blocks global amongst all the wikis that share it.
- Im not sure how much people test shared tables anymore, your milage may vary. Bawolff (talk) 06:32, 29 May 2021 (UTC)
downloads fail
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi.
I'm trying to download FreeDOS, but all downloads fail. Yep. Every file. Usually it's around the 30-40% mark. but sometimes it's an instant failure.
Do you have another mirror, or could you restart your server? I also tried SourceForge, but the same result.
I'm not have trouble downloading from other sites. as odd as that seems
Thanks
M. 203.96.143.189 (talk) 09:20, 29 May 2021 (UTC)
- This is MediaWiki, not FreeDOS. Please see Project:About. Leaderboard (talk) 09:39, 29 May 2021 (UTC)
v1.35 LDAP AD integration not working
tried all suggestions I found online, but I cannot make it work. I think my problem is related to my certificate.
I have a self-signed certificate. I am using REHL7. Can anyone please give me some hints?
httpd24
rh-mariadb103
rh-php73
Mediawiki 1.35
Here are my configs:
/opt/rh/httpd24/root/var/www/html/ldap.json
{
"domain.com": {
"connection": {
"server": "domain.com",
"port": "636",
"user": "user@domain.com",
"pass": "pass",
"enctype": "ssl",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "DC=domain,DC=com",
"userbasedn": "DC=domain,DC=com",
"groupbasedn": "DC=domain,DC=com",
"searchattribute": "samaccountname",
"usernameattribute": "samaccountname",
"realnameattribute": "cn",
"emailattribute": "mail",
"grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",
"presearchusernamemodifiers": [ "spacestounderscores", "lowercase" ]
},
"userinfo": [],
"authorization": [],
"groupsync": {
"mapping": {
"engineering": "CN=EngineeringCoreTeam,OU=Groups,DC=acme,DC=com",
"bureaucrat": "CN=Mediawiki Admins,OU=Groups,DC=acme,DC=com",
"interface-admin": "CN=Mediawiki Admins,OU=Groups,DC=acme,DC=com",
"sysop": "CN=Mediawiki Admins,OU=Groups,DC=acme,DC=com"
}
}
}
}
/opt/rh/httpd24/root/var/www/html/LocalSettings.php
// Safe IP or not (for bypassing external login via AD)
$safeIPs = array('127.0.0.1','localhost');
$ipsVars = array('HTTP_X_FORWARDED_FOR','HTTP_X_REAL_IP','REMOTE_ADDR');
foreach ($ipsVars as $ipsVar) {
if (isset($_SERVER[$ipsVar]) && mb_strlen($_SERVER[$ipsVar]) > 3 ) { $wikiRequestIP = $_SERVER[$ipsVar]; break; }
}
$wikiRequestSafe = (isset($wikiRequestIP) && ( in_array($wikiRequestIP,$safeIPs) ));
#// Create Wiki-Group 'engineering' from default user group
#$wgGroupPermissions['engineering'] = $wgGroupPermissions['user'];
// Private Wiki. External LDAP login. Default NS requires login.
$wgEmailConfirmToEdit = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = false;
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgBlockDisablesLogin = true;
// Load LDAP Config from JSON
$ldapJsonFile = "/opt/rh/httpd24/root/var/www/html/ldap.json";
$ldapConfig = false;
if (is_file($ldapJsonFile) && is_dir("/opt/rh/httpd24/root/var/www/html/extensions/LDAPProvider")) {
$testJson = @json_decode(file_get_contents($ldapJsonFile),true);
if (is_array($testJson)) {
$ldapConfig = true;
} else {
error_log("Found invalid JSON in file: /opt/rh/httpd24/root/var/www/html/ldap.json");
}
}
// Activate Extension
if ( $ldapConfig ) {
wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'LDAPProvider' );
wfLoadExtension( 'LDAPAuthentication2' );
wfLoadExtension( 'LDAPAuthorization' );
wfLoadExtension( 'LDAPUserInfo' );
wfLoadExtension( 'LDAPGroups' );
$LDAPProviderDomainConfigs = $ldapJsonFile;
$wgPluggableAuth_ButtonLabel = "Log In";
if ($wikiRequestSafe) { $LDAPAuthentication2AllowLocalLogin = true; }
}
// Remove the Create account link
$wgGroupPermissions['*']['createaccount'] = false;
$wgShowExceptionDetails = true;
When I try to login with an AD account I have this error:
[YLEGxe0eGUPFO68yF50HFQAAAAQ] /index.php/Special:PluggableAuthLogin MWException from line 168 of /opt/rh/httpd24/root/var/www/html/extensions/LDAPProvider/src/Client.php: Could not bind to LDAP: (-1) Can't contact LDAP server
Backtrace:
#0 /opt/rh/httpd24/root/var/www/html/extensions/LDAPProvider/src/Client.php(91): MediaWiki\Extension\LDAPProvider\Client->establishBinding()
#1 /opt/rh/httpd24/root/var/www/html/extensions/LDAPProvider/src/Client.php(328): MediaWiki\Extension\LDAPProvider\Client->init()
#2 /opt/rh/httpd24/root/var/www/html/extensions/LDAPAuthentication2/src/PluggableAuth.php(170): MediaWiki\Extension\LDAPProvider\Client->canBindAs(string, string)
#3 /opt/rh/httpd24/root/var/www/html/extensions/LDAPAuthentication2/src/PluggableAuth.php(48): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->checkLDAPLogin(string, string, string, NULL, NULL, NULL)
#4 /opt/rh/httpd24/root/var/www/html/extensions/PluggableAuth/includes/PluggableAuthLogin.php(36): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->authenticate(NULL, string, NULL, NULL, NULL)
#5 /opt/rh/httpd24/root/var/www/html/includes/specialpage/SpecialPage.php(600): PluggableAuthLogin->execute(NULL)
#6 /opt/rh/httpd24/root/var/www/html/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
#7 /opt/rh/httpd24/root/var/www/html/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#8 /opt/rh/httpd24/root/var/www/html/includes/MediaWiki.php(940): MediaWiki->performRequest()
#9 /opt/rh/httpd24/root/var/www/html/includes/MediaWiki.php(543): MediaWiki->main()
#10 /opt/rh/httpd24/root/var/www/html/index.php(53): MediaWiki->run()
#11 /opt/rh/httpd24/root/var/www/html/index.php(46): wfIndexMain()
#12 {main} Viorel.spinu (talk) 11:06, 29 May 2021 (UTC)
How long it will approve
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How long it will be approved 110.54.149.157 (talk) 13:00, 29 May 2021 (UTC)
- Please elaborate Ciencia Al Poder (talk) 13:06, 29 May 2021 (UTC)
Upgrading to 1.36 leads to several "Deprecated: Premature access to service ..." issues.
Hello, I've encountered an issue that I'm not getting solved on my own after upgrading from 1.35.2 to 1.36. Following text can be seen on the background of any page on the whole wiki:
Deprecated: Premature access to service container [Called from ConfigFactory::getDefaultInstance in /www/w/includes/config/ConfigFactory.php at line 52] in /www/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /www/w/includes/MediaWikiServices.php at line 252] in /www/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /www/w/includes/ServiceWiring.php at line 535] in /www/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'ConfigFactory' [Called from ConfigFactory::getDefaultInstance in /www/w/includes/config/ConfigFactory.php at line 52] in /www/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /www/w/includes/ServiceWiring.php at line 277] in /www/w/includes/debug/MWDebug.php on line 376
Deprecated: Use of $wgParser was deprecated in MediaWiki 1.32. [Called from require_once in /www/w/includes/Setup.php at line 838] in /www/w/includes/debug/MWDebug.php on line 376
https://rammwiki.net/wiki/Special:Version
| MediaWiki | 1.36.0 |
| PHP | 7.4.13 (cgi-fcgi) |
| MariaDB | 10.3.23-MariaDB-0+deb10u1 |
Rasputin 93 (talk) 13:25, 29 May 2021 (UTC)
- Okay, so typing in
error_reporting( 0 );in my LocalSettings.php right underneath<?phpsolved it. Rasputin 93 (talk) 13:37, 29 May 2021 (UTC) - However, these errors are obviously not gone and affect the functionality of the wiki big time.
- So how to fix that? Rasputin 93 (talk) 14:31, 29 May 2021 (UTC)
- Having lots of deprecated errors like that in my logs as well after updating to 1.36.0. Did you end up getting a solution, Rasputin1493? Tenbergen (talk) 04:05, 10 June 2021 (UTC)
- I finally managed to track it down to Semantic Mediawiki - when I disable that, the errors go away. I have started a ticket with them. Tenbergen (talk) 23:53, 21 July 2021 (UTC)
- Per the sidebar on this wiki page, you might need to turn on detailed debugging and give more complete error messages with stack trace for folks to be able to help you determine what's going wrong. Usually the full stack trace gives them much more info.
- Manual:How to debug TiltedCerebellum (talk) 04:11, 4 June 2021 (UTC)
- Same here, we just started using MediaWiki 1.36.0 fresh install 78.60.90.53 (talk) 04:39, 10 June 2021 (UTC)
- I experienced it trying to use Monobook, Timeless and Splash skins, but it seems this bug happens in a lot of situations.
- Here it was related to EmbedVideo extension.
- Here the bug happened using ArticleRatings extension Tonynando (talk) 19:26, 11 June 2021 (UTC)
- That's interesting. I am using Monobook exclusively as well. And now that you say it... I tried to download a beta version a few weeks ago and had to disable Monobook to make it work at all. Didn't have time to fuss with it further then, so never installed it on my test system.
- OK, I have enabled Vector on my wikis and set it to default. Still getting these errors. So, likely not just a Monobook think after all. Tenbergen (talk) 01:55, 13 June 2021 (UTC)
- Same problem here with php 7.4.27 and mediawiki 1.36.3. Pokapoww (talk) 03:02, 19 January 2022 (UTC)
- Hello guys! I'm trying to install the "Bluelib" skin, but this error appears:
- Deprecated: Template directory should be relative to skin or omitted. [Called from ExtensionProcessor::extractInfo in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionProcessor.php at line 197] in C:\xampp\htdocs\mediawiki\includes\debug\MWDebug.php on line 375
- What should I do?
- Please, someone help me 178.254.128.122 (talk) 13:40, 7 April 2022 (UTC)
- Have the same problem with the same error messages and paths. Upgraded from 1.34 to 1.37.2 Balloonhead666 (talk) 16:02, 6 May 2022 (UTC)
- See phab:T307809 instead. This thread is resolved. Malyacko (talk) 20:09, 6 May 2022 (UTC)
Extension:Popups configuration
I just enabled this on my wiki. I have noticed that the default configuration of the popups will seem to only read text from pages and not categories. It may not have been good practice but 15 years ago, many content pages were created as a category page.
Example: https://dardpi.ca/wiki/index.php?title=Category:Locomotives
Secondly, the majority of pages and categories use the NOTITLE magic word to hide whether it was a page or category and the first line on the page was a heading followed by text. Popups is not reading anything from these types of pages and I can't possibly change 1000s of pages. I have been either unable to find or understand how I might configure my way around these obstacles.
Example: See main page link to Apple Industry in the first paragraph:
https://dardpi.ca/wiki/index.php?title=Main_Page
https://dardpi.ca/wiki/index.php?title=Apple_Trains STEM (talk) 13:32, 29 May 2021 (UTC)
- In relation to the category pages - the extension page says:
- ===Why don't I see Popups outside of content namespaces?===
- Popups appear on links to pages in content namespaces only. This is a limitation of Popups; TextExtracts are available from other namespaces. You may work around this by appending more namespaces into $wgContentNamespaces. Jonathan3 (talk) 23:23, 29 May 2021 (UTC)
- that's pretty silly. Bawolff (talk) 01:10, 30 May 2021 (UTC)
- Haha don't shoot the messenger :-) Jonathan3 (talk) 07:54, 30 May 2021 (UTC)
MinervaNeue problem
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've installed the MobileFrontend extension with MinervaNeue and using MediaWiki in Dutch.
However, in the green bar at the bottom that shows the last edit, the URL of the username links to "User:username" instead of "Gebruiker:username", which gives me a 403 error.
How can I fix this? GoSpaceX (talk) 22:18, 29 May 2021 (UTC)
- do you have apache mod_security or another WAF installed? If so, disable it.
- If not that check apache/webserver error logs Bawolff (talk) 01:09, 30 May 2021 (UTC)
- That's it, thank you! GoSpaceX (talk) 09:39, 30 May 2021 (UTC)
error upgrading to 1.36.0 with Postgres 9.2
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
when upgrading from 1.35.2, and after running update.php in the new 1.36.0 maintenance directory, I'm getting the following error:
Error: Missing one or more required components of PHP.
You are missing a required extension to PHP that MediaWiki needs.
Please install:
* intl <https://www.php.net/intl>
After installing php-intl and re-running update.php, I'm now getting the following output; any idea how I can continue with the update?
php update.php
MediaWiki 1.36.0 Updater
Your composer.lock file is up to date with current dependencies!
Wikimedia\Rdbms\DBQueryError from line 1719 of /var/www/html/mediawiki-1.36.0/includes/libs/rdbms/database/Database.php: Error 42P01: ERROR: relation "text" does not exist
LINE 1: ...::fetchBlobs */ old_id,old_text,old_flags FROM "text" ...
^
Function: MediaWiki\Storage\SqlBlobStore::fetchBlobs
Query: SELECT old_id,old_text,old_flags FROM "text" WHERE old_id IN (434,437,1038,2248,9781,10535)
#0 /var/www/html/mediawiki-1.36.0/includes/libs/rdbms/database/Database.php(1703): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/www/html/mediawiki-1.36.0/includes/libs/rdbms/database/Database.php(1678): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /var/www/html/mediawiki-1.36.0/includes/libs/rdbms/database/Database.php(1244): Wikimedia\Rdbms\Database->reportQueryError()
#3 /var/www/html/mediawiki-1.36.0/includes/libs/rdbms/database/Database.php(1929): Wikimedia\Rdbms\Database->query()
#4 /var/www/html/mediawiki-1.36.0/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select()
#5 /var/www/html/mediawiki-1.36.0/includes/libs/rdbms/database/DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call()
#6 /var/www/html/mediawiki-1.36.0/includes/Storage/SqlBlobStore.php(399): Wikimedia\Rdbms\DBConnRef->select()
#7 /var/www/html/mediawiki-1.36.0/includes/Storage/SqlBlobStore.php(318): MediaWiki\Storage\SqlBlobStore->fetchBlobs()
#8 /var/www/html/mediawiki-1.36.0/includes/Revision/RevisionStore.php(2133): MediaWiki\Storage\SqlBlobStore->getBlobBatch()
#9 /var/www/html/mediawiki-1.36.0/includes/Revision/RevisionStore.php(2000): MediaWiki\Revision\RevisionStore->getSlotRowsForBatch()
#10 /var/www/html/mediawiki-1.36.0/includes/cache/MessageCache.php(576): MediaWiki\Revision\RevisionStore->newRevisionsFromBatch()
#11 /var/www/html/mediawiki-1.36.0/includes/cache/MessageCache.php(448): MessageCache->loadFromDB()
#12 /var/www/html/mediawiki-1.36.0/includes/cache/MessageCache.php(371): MessageCache->loadFromDBWithLock()
#13 /var/www/html/mediawiki-1.36.0/includes/cache/MessageCache.php(1096): MessageCache->load()
#14 /var/www/html/mediawiki-1.36.0/includes/cache/MessageCache.php(1022): MessageCache->getMsgFromNamespace()
#15 /var/www/html/mediawiki-1.36.0/includes/cache/MessageCache.php(993): MessageCache->getMessageForLang()
#16 /var/www/html/mediawiki-1.36.0/includes/cache/MessageCache.php(935): MessageCache->getMessageFromFallbackChain()
#17 /var/www/html/mediawiki-1.36.0/includes/language/Message.php(1377): MessageCache->get()
#18 /var/www/html/mediawiki-1.36.0/includes/language/Message.php(895): Message->fetchMessage()
#19 /var/www/html/mediawiki-1.36.0/includes/language/Message.php(999): Message->format()
#20 /var/www/html/mediawiki-1.36.0/includes/Status.php(202): Message->plain()
#21 /var/www/html/mediawiki-1.36.0/maintenance/update.php(150): Status->getWikiText()
#22 /var/www/html/mediawiki-1.36.0/maintenance/doMaintenance.php(112): UpdateMediaWiki->execute()
#23 /var/www/html/mediawiki-1.36.0/maintenance/update.php(264): require_once('/var/www/html/m...')
#24 {main} Cscheder (talk) 22:41, 29 May 2021 (UTC)
- sounds like either your db settings are mosconfigured or you are missing tables. Bawolff (talk) 01:07, 30 May 2021 (UTC)
- odd, I'm able to perform a pg_connect from another php script without problems:
pg_connect("host=localhost dbname=wikidb user=wiki password=xxx");- also my database seems to have all of the tables (58 of them) and it ran just fine in v1.35.2; any other ideas? Cscheder (talk) 21:47, 30 May 2021 (UTC)
- are there any new minimum version requirements for 1.36.0? I'm running postgres v9.2.24-4 and php v7.4.19 Cscheder (talk) 22:03, 30 May 2021 (UTC)
- I just went back to v1.35.2 with the exact same LocalSettings.php configuration file and the exact same database and everything still works fine there. Are there configuration changes going from 1.35.2 to 1.36.0? Cscheder (talk) 13:54, 31 May 2021 (UTC)
- I just found the following statement in PostgresInstaller.php:
public static $minimumVersion = '9.4'- so the minimumVersion for 1.36.0 is now 9.4, which is different from what all of the documentation about 1.36.0 installation says - namely 9.2+ Cscheder (talk) 17:24, 1 June 2021 (UTC)
LTS version?
I am confused about which MediaWiki version is the currently latest TLS version. The recent email on mediawiki-announce says it is 1.35, and that is also reflected at <Version lifecycle>. However, on <Download> it says
> MediaWiki 1.36.0 (download .zip, download .tar.gz) - stable, current long-term support (LTS)
So... which version should I install now if I want the LTS version, 1.35 or 1.36? 2A01:C22:CC28:2D00:C018:3902:D60A:C8CC (talk) 16:43, 30 May 2021 (UTC)
- 1.35 is LTS. Izno (talk) 18:28, 30 May 2021 (UTC)
- That text is from this change. Now that 1.35 isn't both stable and current LTS the text needs changing. I've tried to do that here but it hasn't made its way to the Download page. I hope I deciphered the wikitext correctly! Jonathan3 (talk) 22:25, 30 May 2021 (UTC)
Lua error in module:Wikidata/select
After import fe pages from Wikipedia to my wiki site there are lua error and not show location on the map and no links to WikiCommons and WikiTravel i n Polish versions.
On the page i have got errors like that:
Błąd Lua w module „package.lua”, w linii 80: module 'Module:Wikidane/select' not found.
Multimedia w Wikimedia Commons
Page: https://wikiwedia.org/index.php?title=Bazaltowa_G%C3%B3ra
How to fix it please? 112.198.65.78 (talk) 02:52, 31 May 2021 (UTC)
- commons:Błąd Lua w module „Moduł:Wikidane”, w linii 111: attempt to call global 'getEntityData' (a nil value).|Multimedia w Wikimedia Commons 112.198.65.78 (talk) 02:55, 31 May 2021 (UTC)
- and also taht error: voy:Błąd Lua w module „Moduł:Wikidane”, w linii 111: attempt to call global 'getEntityData' (a nil value).|Informacje w Wikipodróżach 112.198.65.78 (talk) 02:55, 31 May 2021 (UTC)
- It comes from not having your wiki be a client extension:Wikibase Bawolff (talk) 00:26, 1 June 2021 (UTC)
- Yes. Thats right. Thanks 112.198.65.78 (talk) 03:53, 1 June 2021 (UTC)
Is it true to generalize that all special webpages has a noindex tag?
MediaWiki 1.35.2 onwards.
Is it true to generalize that all special webpages has a noindex (special) tag?
Or might there be some special webpages who don't and if so why?...
Thanks, 2001:44C8:4327:FD79:10AD:8E:C033:2567 (talk) 04:20, 31 May 2021 (UTC)
- A better question might be the following;
- Is it true to generalize that all special webpages has a (special) noindex tag so that a robots.txt command such as:Will always be redundant? 2001:44C8:4327:FD79:10AD:8E:C033:2567 (talk) 04:28, 31 May 2021 (UTC)
Disallow: /index.php?title=Special:
- The default is noindex, but special pages can override that. I don't think any core special pages override it though. Bawolff (talk) 08:14, 31 May 2021 (UTC)
Need help with table rowspan
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I want to make a table with 3 columns that's kind of like a rowspan "tree".
i.e.
Column A has 1 row: (row a)
Column B has 2 rows: (row b) and (row c)
Column C has 4 rows (2 rows (d and e) for row b) and (2 rows (f and g) for row c)
How would that look using wikitable source code? I'm able to figure out how to make Column A and Column B with 2 rows, but I'm having trouble making Column C with 4 rows (2 "sub" rows for each row in Column B).
This is what I have so far:
| Column A | Column B | Column C |
|---|---|---|
| row a | row b | |
| row c |
- See Help:Tables#HTML colspan and rowspan Malyacko (talk) 13:15, 31 May 2021 (UTC)
- I've previously visited this page and it does not have the specific example I'm requesting. None of the examples are as "complex" as this. All of the example tables are either a single row across columns, or a single row that doubles and stays doubled all the way across. Unfortunately, I have yet to see how to a single turns into a double, and then each of those rows double again.
- Looking at the section "Combined use of COLSPAN and ROWSPAN" kind of helps, but it's still a lot of "backwards engineering" for me to figure out, and still, it's just 2 rows turning into one or vice versa. I'm having difficulty extrapolating on the concept to fit my needs involving more rows. SpiritHawk7 (talk) 14:04, 31 May 2021 (UTC)
- I figured it out. I have to change the rowspan number in Column A to reflect the amount of total rows in Column C, not Column B. (I was having the issue of cells that were supposed to be in Column C instead showing up in Column A and B, but I fixed it now.) SpiritHawk7 (talk) 14:43, 31 May 2021 (UTC)
Elastic search for mediawiki project
Want to know which search engine mediawiki is using currently.
I want to use elastic search for my mediawiki application 1.35.1 on RHEL server 8 with php 7.4.
I got an article https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html .
should i have to apply all these into my current project structure
or follow general Elastic search and kibana Install Elasticsearch from archive on Linux or MacOS | Elasticsearch Guide [7.13] | Elastic
or Search - Wikitech (wikimedia.org)
kindly suggest better option for me to use elastic in better way for my mediawiki project ,
bcs i found different folder structure and process in all above . Pooja2425 (talk) 07:58, 31 May 2021 (UTC)
elastic search issue
./bin/elasticsearch
[2021-05-31T10:17:19,269][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [s071lenta01d] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.13.0.jar:7.13.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.13.0.jar:7.13.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.13.0.jar:7.13.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) ~[elasticsearch-cli-7.13.0.jar:7.13.0]
at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.13.0.jar:7.13.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.13.0.jar:7.13.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.13.0.jar:7.13.0]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:101) ~[elasticsearch-7.13.0.jar:7.13.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:168) ~[elasticsearch-7.13.0.jar:7.13.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:397) ~[elasticsearch-7.13.0.jar:7.13.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.13.0.jar:7.13.0]
Actually i need to install elastic into mediawiki project.
I haven't install any jdk , shold i have to install??
Or use php version of elastic search
https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html
pls suggest. Pooja2425 (talk) 10:27, 31 May 2021 (UTC)
Main Page appears as - Sitename in Mobile
This problem occurs on mobile, and not desktop, and also the name - Sitename must be fixed 180.191.141.18 (talk) 12:08, 31 May 2021 (UTC)
- Which exact problem? Malyacko (talk) 13:14, 31 May 2021 (UTC)
- And what website are you coming from? TiltedCerebellum (talk) 04:06, 4 June 2021 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 400)
Hello I am having problem setting up VisualEditor can someone help me? I am getting Error contacting the Parsoid/RESTBase server (HTTP 400) every single time I am trying to edit a page. But I do not use RESTBase and have $wgVisualEditorAllowLossySwitching= false; too
This error can be seen here => wiki.frorayz.tech/index.php?title=Main_Page&veaction=edit
Using 1.36, very buffled as it should work "out of box" Frorayz (talk) 13:32, 31 May 2021 (UTC)
- That error is caused BECAUSE you do not have RESTBase.
- On the description page for VE, it states that it is even required to perform some tasks, including switching from visual to code editing. MarioSuperstar77 (talk) 22:18, 31 May 2021 (UTC)
Müşterimin bilgilerinin güncellenmesi konusunda yardıma ihtiyacım var
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Merhaba,
Müşterimin konu olduğu bir sayfada yanlış ve eksik bilgi olduğunu görüyorum. [2] Bu bilgilerin düzeltilmesini talep ediyorum ancak size nasıl ulaşacağımı bilemiyorum.
info-tr wikipedi mail adresine de bu konu ile ilgili yazdım ancak dönüş sağlanmadı.. Yardımcı olabilir misiniz. 176.240.18.71 (talk) 13:56, 31 May 2021 (UTC)
- Hi, this page is for the MediaWiki software only.
- To discuss content on some website, please contact that website:
- https://tr.wikipedia.org/wiki/Tart%C4%B1%C5%9Fma:K%C3%BC%C3%A7%C3%BCk_%C3%87aml%C4%B1ca_Televizyon_Kulesi
- https://tr.wikipedia.org/wiki/Vikipedi:Dan%C4%B1%C5%9Fma_masas%C4%B1 Malyacko (talk) 14:02, 31 May 2021 (UTC)