Jump to content

Project:Support desk/Flow/2018/12

Add topic
From mediawiki.org
This page is an archive.
Please ask questions on the current support desk.

Favicon won't update

My wiki is hosted with shoutwiki, and to change the favicon i need to update Favicon.ico. However, it never works. I tried deleting and reuploading it, it stays as the old Favicon even once i deleted it.

Please, help?

Favicon link: http://fanonpedia.shoutwiki.com/wiki/File:Favicon.ico 69.206.77.233 (talk) 03:24, 1 December 2018 (UTC)

Favicons are usually aggressively cached by browsers. You will need to hard refresh (Ctrl+Shift+R) the browser tab thereby removing the cached elements, for changes to become visible on your end.
On my end, your website is showing the same favicon as the one you have linked to. AhmadF.Cheema (talk) 06:40, 1 December 2018 (UTC)
Okay, it works now. Thanks! 69.206.77.233 (talk) 15:06, 1 December 2018 (UTC)
Now it won't work again once i updated my favicon! 69.206.77.233 (talk) 15:29, 1 December 2018 (UTC)

Wiki Icons and Browser Icon

I've noticed on Yugipedia that there are instances that, whenever there's a link to either an article on Wikipedia or WIKIA, there's an icon next to that link, and I honestly think it's a bit distracting. Here's a screenshot to back up my claim:











Fortunately, I haven't experienced any instances when designing my own wiki. But to be on the safe side, if there's a way to prevent these icons from showing, what would I have to do?

Speaking of which, what is the code to customize the wiki's browser icon, such as this?





I truly appreciate your assistance. The-Psychid (talk) 04:02, 1 December 2018 (UTC)

The unwanted icons have to be specifically coded into the website for them to show up, so you're already on the safe side for that one.
For the "browser icon" called the favicon, see Manual:FAQ#How do I change the icon in the browser's address line (favicon)? AhmadF.Cheema (talk) 06:31, 1 December 2018 (UTC)

MFC keeps disconnecting me.

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.


MFC keeps disconnecting me. It happens all the time. I have bought a lot of tokens in the past, but I won't buy more until this problem is fixed. 98.16.18.42 (talk) 05:05, 1 December 2018 (UTC)
Welcome to the support desk for the MediaWiki software. What is "MFC"? If you came to mediawiki.org from some other website, please explain which website (full web address) and how you ended up on mediawiki.org. Thanks. Malyacko (talk) 14:05, 1 December 2018 (UTC)
Wrong support forum. AhmadF.Cheema (talk) 06:27, 1 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I got banned for afk

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 today I went afk for a few minutes and when I came back the game told me I was banned for blacklisted mods.About 8 months ago I got perm banned for the same thing on cosmic prison.Can somebody please look into this I love this server and I feel I didn't do anything wrong.
Thank you so much if you do look into this.
-Dominic100205 98.194.183.233 (talk) 05:39, 1 December 2018 (UTC)
Welcome to the support desk for the MediaWiki software. Which game? What is "cosmic prison"? If you came to mediawiki.org from some other website, please explain which website (full web address) and how you ended up on mediawiki.org. Thanks. Malyacko (talk) 14:06, 1 December 2018 (UTC)
Wrong support forum. AhmadF.Cheema (talk) 06:26, 1 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

an error occured while updating ijl11.dll

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.


Help! for whatever reason I keep getting this error. uninstalled POD. reinstalled. hit update for my area. gets to this error: "an error occurred while updating ijl11.dll. please restart and try again." Anyone? never installed POD before and kinda tech illiterate. 73.109.67.146 (talk) 06:49, 1 December 2018 (UTC)

Is the question related to MediaWiki? AhmadF.Cheema (talk) 07:53, 1 December 2018 (UTC)
This is the wiki linked to path of diablo. when clicking on help and support desk. I assume this would not be the correct area to go to? 73.109.67.146 (talk) 08:01, 1 December 2018 (UTC)
Please explain on which wiki (full web address) you clicked a "Help" link to get here. Malyacko (talk) 13:50, 1 December 2018 (UTC)
No, this place is only for MediaWiki related queries. AhmadF.Cheema (talk) 08:26, 1 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

German name with "Umlaut" ? the world is not english!

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 Name is written with ö. In my passport is my Name with ö.

your webside dont know that? Ö is not allowed but oe is not correct!


Plesase Respekt for other langugae. German is not china


thanks 2A02:8109:B5BF:EE92:64A1:24E1:2969:A3B2 (talk) 09:50, 1 December 2018 (UTC)

Please explain what "website" you are talking about and provide clear steps how to reproduce your problem. I can enter an ö on our website. If an ö is "not allowed" for you, you need to explain why not.
No need for slurs either about random countries. Please stop that. Malyacko (talk) 13:49, 1 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Scan with phpMussel when uploading

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 is able to make phpMussel scan when a user uploads a file? PlavorSeol (talk) 16:26, 2 December 2018 (UTC)

https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Configuring_file_types says "think about enabling virus scans for uploads" but not how. :) If you find out feel free to improve the documentation, please! Malyacko (talk) 21:17, 2 December 2018 (UTC)
Manual:$wgAntivirusSetup.
Don't know whether it will work with PHP based phpMussel or not, though. AhmadF.Cheema (talk) 23:36, 2 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Users being discouraged on a technical level?

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.


So, on my wiki multiple users, including myself, have been experiencing extreme slowness and frequent errors over the past several days. Other users claim to be experiencing no issues, including the site owner. Another admin's offhand comment on Discord prompted me to open the site in incognito mode and the site is blazing fast when I do that. I log in again and the site slows to a crawl. The other users experiencing this report the same.

I know that the XenForo forum software has a feature called "discouragement" where specific users, IPs, or IP ranges can be subjected to site slowdowns and errors, simulating technical problems on the site's end, with the goal of getting the user to quit the site, as an alternative to banning them. My question here is, does MediaWiki have a similar feature that might be to blame here, either from the feature malfunctioning, or it being intentionally misused? We recently went through a lot of drama, and all the users affected by this (that I know of) were all on the same "side" of the argument, and the only user with backend access that was involved with the drama was on the other side of the argument, so I consider it a possibility that that admin is trying to drive us away from the site. 107.77.227.196 22:54, 2 December 2018 (UTC)

Try check enabled gadgets and other scripts or with test new account. You can try to ?safemode=1 (or & instead of ? if already in URL).
There is no such feature in default installation.
"frequent errors" - messages? wargo (talk) 23:30, 2 December 2018 (UTC)
MediaWiki has no such feature.
When you are in incognito mode, you always get completely cached versions of pages. If you are logged in, more things needs to be generated from scratch, especially if your caching is not properly configured, this can be really resource intensive with MediaWiki. The system administrator should carefully read Manual:Performance tuningTheDJ (Not WMF) (talkcontribs) 10:04, 3 December 2018 (UTC)
Note that some changes in user preferences can have impact in performance. There's (or was, not sure if it's still there) a preference to disable cache, and another to change the default size of thumbnails, which could add a significant amount of time to process each page. Try resetting preferences to default. Ciencia Al Poder (talk) 10:18, 3 December 2018 (UTC)
Hi, this is OP. My suspicions were correct; a rogue sysadmin added hidden code to sabotage these user accounts based on our recent drama. Just replying to say that we resolved the issue, I guess? 184.176.98.181 (talk) 17:36, 16 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Include pages from another wiki in a namespace

Hi! I have a conundrum that I want to enquire into.

I help run a group of wikis, in multiple languages. We additionally have a "test" wiki for new languages to be incubated. I would like to be able to directly display pages with title "X" from the English-language wiki on the "test" wiki pages titled "Eng:X".

If it helps, all the wikis run on the same database.

Is this possible at all? Is there built-in functionality to do this? Or could an extension be written to do this? I don't necessarily want to know how to do it, just whether it's possible at all. Is it? --Kenny2wiki (talk) 08:33, 3 December 2018 (UTC)

Wikimedia\Rdbms\DBQueryError when generating pages from PageSchemas

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,

get this error message when I hit generate pages after having set up a Page Schema


[78d538c261e34f8551f93175] /index.php?title=Category:Paradox&action=generatepages Wikimedia\Rdbms\DBQueryError from line 1457 of /membri/cemp/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: SELECT smw_id,smw_sortkey FROM `smw_object_ids` WHERE smw_title = 'Author' AND smw_namespace = '102' AND smw_iw = '' AND smw_subobject = '' LIMIT 1

Function: SMWSql3SmwIds::getDatabaseIdAndSort

Error: 1146 Table 'my_cemp.smw_object_ids' doesn't exist (localhost)

Backtrace:

#0 /membri/cemp/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)

#1 /membri/cemp/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /membri/cemp/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query(string, string)

#3 /membri/cemp/includes/libs/rdbms/database/Database.php(1730): Wikimedia\Rdbms\Database->select(string, array, array, string, array, array)

#4 /membri/cemp/extensions/SemanticMediaWiki/src/MediaWiki/Database.php(335): Wikimedia\Rdbms\Database->selectRow(string, array, array, string, array, array)

#5 /membri/cemp/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_Sql3SmwIds.php(418): SMW\MediaWiki\Database->selectRow(string, array, array, string)

#6 /membri/cemp/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_Sql3SmwIds.php(326): SMWSql3SmwIds->getDatabaseIdAndSort(string, integer, string, string, string, boolean, boolean)

#7 /membri/cemp/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_Sql3SmwIds.php(595): SMWSql3SmwIds->getSMWPageIDandSort(string, integer, string, string, string, boolean, boolean)

#8 /membri/cemp/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_Readers.php(215): SMWSql3SmwIds->getSMWPageID(string, integer, string, string, boolean)

#9 /membri/cemp/extensions/SemanticMediaWiki/src/SQLStore/EntityStore/DirectEntityLookup.php(64): SMWSQLStore3Readers->getPropertyValues(SMW\DIWikiPage, SMW\DIProperty, NULL)

#10 /membri/cemp/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(213): SMW\SQLStore\EntityStore\DirectEntityLookup->getPropertyValues(SMW\DIWikiPage, SMW\DIProperty, NULL)

#11 /membri/cemp/extensions/PageForms/includes/PF_ValuesUtils.php(31): SMWSQLStore3->getPropertyValues(SMW\DIWikiPage, SMW\DIProperty, NULL)

#12 /membri/cemp/extensions/PageForms/includes/PF_TemplateField.php(70): PFValuesUtils::getSMWPropertyValues(SMWSQLStore3, Title, string)

#13 /membri/cemp/extensions/PageForms/includes/PF_TemplateField.php(103): PFTemplateField->setTypeAndPossibleValues()

#14 /membri/cemp/extensions/PageForms/includes/PF_TemplateField.php(40): PFTemplateField->setSemanticProperty(string)

#15 /membri/cemp/extensions/PageForms/includes/PF_PageSchemas.php(651): PFTemplateField::create(string, string, string, boolean, SimpleXMLElement, NULL)

#16 /membri/cemp/extensions/PageForms/includes/PF_PageSchemas.php(755): PFPageSchemas::getFieldsFromTemplateSchema(PSTemplate)

#17 /membri/cemp/extensions/PageSchemas/includes/PageSchemas.classes.php(385): PFPageSchemas::generatePages(PSSchema, array)

#18 /membri/cemp/extensions/PageSchemas/specials/PS_GeneratePages.php(92): PSSchema->generateAllPages(array)

#19 /membri/cemp/extensions/PageSchemas/specials/PS_GeneratePages.php(31): PSGeneratePages->generatePages(string, array)

#20 /membri/cemp/extensions/PageSchemas/includes/PS_GeneratePagesAction.php(37): PSGeneratePages->execute(string)

#21 /membri/cemp/includes/MediaWiki.php(500): PSGeneratePagesAction->show()

#22 /membri/cemp/includes/MediaWiki.php(294): MediaWiki->performAction(CategoryTreeCategoryPage, Title)

#23 /membri/cemp/includes/MediaWiki.php(861): MediaWiki->performRequest()

#24 /membri/cemp/includes/MediaWiki.php(524): MediaWiki->main()

#25 /membri/cemp/index.php(42): MediaWiki->run()

#26 {main}


I am doing this on a fresh install of Mediawiki 1.31, no upgrading from previous versions.


I already ran both update.php and the web upgrade from mw-config, but I still get the error. Do I have to manually add the 'my_cemp.smw_object_ids' doesn't exist (localhost) table? If so, it might be a problem because I am not really sure how it's done (I have very limited experience with dbs)


Thanks Alexzanutto (talk) 08:56, 3 December 2018 (UTC)

Solved, I had to use Special:SemanticMediaWiki and initialize and upgrade tables. Update.php should've done the trick too, but it didn't Alexzanutto (talk) 10:17, 3 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Instructions for translation

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 an explanatory document to add the translation function for each language as shown at the top of Manual: Contents? タバコはマーダー (talk) 11:48, 3 December 2018 (UTC)

The "Other languages" box is provided by the Translate extension: Extension:Translate Malyacko (talk) 13:18, 3 December 2018 (UTC)
Thanks, Malyacko.
I found appropriate related page, by your answer : Help:Extension:Translate/ページ翻訳の例. タバコはマーダー (talk) 01:15, 4 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I can't print to scale

Whatever I set the general scale to it always fills the whole of an A4 sheet. 80.229.236.184 (talk) 21:39, 3 December 2018 (UTC)

Is this related to MediaWiki? AhmadF.Cheema (talk) 23:06, 3 December 2018 (UTC)

rotate a picture

How do I rotate a picture I inserted into a document. It posted sideways. 24.106.138.114 (talk) 23:07, 3 December 2018 (UTC)

You write a software patch to fix https://phabricator.wikimedia.org/T35186, you re-upload the image after editing it in an image manipulation software, or you use the transform property in some custom CSS.
(Note that MediaWiki has no "documents" but pages.) Malyacko (talk) 09:04, 4 December 2018 (UTC)

Inputbox Question

Hi, I have InputBox extension installed (it shows on Special:Versions) on my latest MW installation. I just read that this is included as part of the standard installation, so should I uninstall the extension? It is working fine as is, but I would prefer to have a cleaner install if it is not required.

Also, is it possible to style the buttons? They are currently the default black text on grey gradient.


Thanks! 62.96.213.62 (talk) 10:27, 4 December 2018 (UTC)

How exactly did you install Extension:InputBox?
There are two steps needed to install an extension. Copy its files into the "extensions" directory. If using a MediaWiki's tar archive, these extension file are already bundled with MediaWiki core. Second you have to add the code line ("wfLoadExtension( 'InputBox' );") to enable the extension in LocalSettings.php.
Either of the above two things that have been repeated or duplicated can have one copy removed to "have a cleaner install".
The buttons can be styled by including relevant CSS rules in your Wiki's MediaWiki:Common.css page. AhmadF.Cheema (talk) 11:10, 4 December 2018 (UTC)
Ok that's great, thanks Ahmad! I must have overwritten the core ..extensions/InputBox folder when I manually installed it. I think it is probably working just fine as it is. 62.96.213.62 (talk) 13:38, 4 December 2018 (UTC)

How to display a newer image Version

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 uploaded a newer image version under the same filename but i can´t display it. Only the old version is screened in the file where i need that picture.

But the file history shows both versions.

May i have to change something in the file link? 80.146.228.118 (talk) 13:54, 4 December 2018 (UTC)

Maybe the image is cached. Try hard refresh (Ctrl+Shift+R) of the browser page or make a null edit on the page. AhmadF.Cheema (talk) 14:50, 4 December 2018 (UTC)
Hi, thx for your support! Problem solved with hard refresh.^^ 80.146.228.66 (talk) 08:48, 5 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Need block

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.


Please block IP 38.132.116.188 for harassment of Yaron Koren. Matthew Wong (PMA) (talk) 14:42, 4 December 2018 (UTC)

Please move to Project:Current issues request. Thanks. 星耀晨曦 (talk) 15:06, 4 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to get all pages, not just the default (10)?

Hi, I tried the following query:

http://baseurl/api.php?action=query&format=json&list=allpages&apfilterredir=all

But I did not get all the pages. In fact, I only got 10, which is the default value for aplimit. However, I did not specify an aplimit, so I'm not sure why I am stuck with just 10 pages when there are easily hundreds more?

Is there a workaround so I can get all the pages? Thanks in advance! Emske (talk) 18:16, 4 December 2018 (UTC)

You could set the aplimit parameter. See API:Allpages Malyacko (talk) 09:55, 5 December 2018 (UTC)
Even setting the limit to "max", you may not get all pages if you have more than the maximum limit. You'll need to implement pagination in your script/program to get all pages. Ciencia Al Poder (talk) 10:15, 5 December 2018 (UTC)
What is the maximum limit? Emske (talk) 15:30, 5 December 2018 (UTC)
Please read the link that I already provided. Malyacko (talk) 17:41, 5 December 2018 (UTC)
Also, what is pagination? Emske (talk) 16:06, 5 December 2018 (UTC)
Hold on, I just found that the maximum limit is 500 pages for regular users and 5000 pages for bots. Would using a program count as a bot? Emske (talk) 16:10, 5 December 2018 (UTC)
That depends on if you make your program a bot. See Manual:Bots and Manual:Creating a bot. Malyacko (talk) 17:47, 5 December 2018 (UTC)
Isn't there any way we can fetch more than 500 pages as a regular user or the pagination logic that I can use to overcome this as aplimit has a max limit of 500 only. 165.156.28.77 (talk) 05:36, 21 March 2024 (UTC)
No, there isn't. You should use pagination to get more pages in batches and append them to previous results Ciencia Al Poder (talk) 09:32, 22 March 2024 (UTC)

I want to sign in

I want to sign in Itcanbe7 (talk) 04:58, 5 December 2018 (UTC)

Aren't you already signed in? AhmadF.Cheema (talk) 08:22, 5 December 2018 (UTC)

How to rebuild Patrolled log?

Hi, It seems that the Patrolled log in our wiki were messed up. So we want to rebuild that list/log.

How can we do that? Thank you in advance Deletedaccount4567435 (talk) 11:29, 5 December 2018 (UTC)

As far as I know, no way to rebuild. Most of the logs are stored in logging table. Maybe you can check it first? 星耀晨曦 (talk) 12:34, 5 December 2018 (UTC)

MediaWiki on IIS with MS SQL Server and Data Migration?

Hello!


I want to migrate a privately run cultural database project into MediaWiki and I have a few questions and hope to find someone here who can answer them. If this isn't the right place to ask, can you please advise where to go?


  1. I already have a Windows server with IIS and MS SQL running and I'd like to use it for this project. Is that possible and - if yes - where are downloads and the setup instructions (especially for MS SQL which I think is in experimental stage)?
  2. I'd need to convert / import several thousand articles into the new database. Usually I would try to do that on SQL level. I can connect to the old database from MS SQL using the linked server approach and I could try to import the data with plain SQL, if the target structure (tables etc.) are documented somewhere. Is this the way to do it or do you know a better approach?
  3. We have a small, closed user group. Therefore, it would be nice if new users could register but that would need to be confirmed by an admin. Possible?


Thanks a lot

Karlo


Tetramil (talk) 12:33, 5 December 2018 (UTC)

This is a good place to ask.
closed small group
This is possible. See Email Authorization for how we're doing it on mwstake.org.
import several thousand articles
I would use Pywikibot or create an XML import to do this. If you have your heart set on doing direct DB insertions, though, you can try looking at the database schema.
MSSQL support
People do run on MS SQL. The code is bundled into MediaWiki. If the latest version of MediaWiki doesn't work, try an older one. I wouldn't call it "experimental". I would say it is "not well maintained". MarkAHershberger(talk) 17:37, 6 December 2018 (UTC)
Thanks1 2A02:810D:640:4D44:C1CE:9748:21A7:60C4 (talk) 07:13, 7 December 2018 (UTC)
You can also import plain text pages from command line using edit.php Ciencia Al Poder (talk) 10:33, 7 December 2018 (UTC)

update page logo image

I replaced the image at /resources/assets/wiki.png

still the page is not refreshing the image.

I restarted the server still same issue.


I have deployed server locally. Paperlessnow (talk) 14:44, 5 December 2018 (UTC)

You might be getting a cached version of the logo image, try doing a hard refresh (Ctrl+Shift+C). Also read Manual:$wgLogo. AhmadF.Cheema (talk) 23:05, 5 December 2018 (UTC)
I tried it. didn't work.
I changed following in LocalSettings.php (changed the path to)
$wgLogo = "${wgScriptPath}/resources/assets/mediawiki.png";
and commented this.
#"$wgResourceBasePath/resources/assets/wiki.png";
It picks up the Mediawiki.png file correctly.
But when I give name to my file lotus.png. It won't work. This file is there in same directory of Mediawiki.png Paperlessnow (talk) 11:41, 6 December 2018 (UTC)

download 2.8 but on start 2.79 appears

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, great work. I downloaded the beta version of blender 2.8, but when i run the program it gives me 2.79. Any idea what i may be doing wrong


greetings from amsterdam 2001:1C04:2B00:CE00:9955:FD2E:57DF:430B (talk) 14:46, 5 December 2018 (UTC)

Wrong support forum. This is the support desk for MediaWiki. 2001:16B8:1008:A00:C132:797A:12CB:E3D6 (talk) 17:00, 5 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error 404 "Object Not Found" when going to "Special Pages > Change credentials"

With a fresh setup Mediawiki 1.31.1, PHP 7.2.10, MariaDB


I am getting the error:" Object not found! Error 404 " when I go to "Special Pages > Change credentials"


I believe all other Special Pages are working but this one. I have reinstalled media wiki also tried with the previous media wiki package 1.31.0 same issue.


Error is Below:

URL: http://localhost/mediawiki/index.php/Special:ChangeCredentials/MediaWiki%5CAuth%5CPasswordAuthenticationRequest


Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.

Error 404

localhost

Apache/2.4.34 (Win32) OpenSSL/1.1.0i PHP/7.2.10



DreadHeadJoee (talk) 15:53, 5 December 2018 (UTC)

Also I am using XAMPP 3.2.2 DreadHeadJoee (talk) 15:58, 5 December 2018 (UTC)

Help with new password

Hello,

I just changed password to a new one by entering it twice as required. The system took it, but now it refuses to recognize it.

I cannot log in if I log out.

Regards, Chris Oxford~ Chris Oxford (talk) 18:31, 5 December 2018 (UTC)

Assuming this is about mediawiki.org, how did you log in on this website? Did you use another device that was still logged in? Malyacko (talk) 19:06, 5 December 2018 (UTC)

failing to clone source code from URL through git clone git://git.blender.org/blender.git

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.


failing to clone source code from URL through  git clone git://git.blender.org/blender.git and not able to checkout libraries through below checkout

https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc14 lib/win64_vc14


I have tortoiseSVN installed. below error I am getting

Unable to connect to repository at URL

connection Timedout


SatishSDattawade (talk) 05:27, 6 December 2018 (UTC)

"Wrong support forum. This is the support desk for MediaWiki." AhmadF.Cheema (talk) 06:40, 6 December 2018 (UTC)
who can help me regarding this. SatishSDattawade (talk) 08:51, 6 December 2018 (UTC)
Where I can post this question. If you can help regarding this it will be great help. SatishSDattawade (talk) 08:28, 6 December 2018 (UTC)
You can post this in a place which is about Blender. mediawiki.org has nothing to do with Blender. Malyacko (talk) 09:09, 6 December 2018 (UTC)
It might be a good idea to relabel that button or link (Support desk for Mediawiki Software). Although considering that users don't read anyway, it probably won't help much. A more sensible approach would be to create a gadget to ask people what exactly they want to post about here, and direct them elsewhere if it is not a mediawiki matter. 197.218.84.1 (talk) 10:22, 6 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Disable the API without disabling autocomplete?

In MW 1.31 I tried $wgEnableAPI = false; but this resulted in disabling autocomplete. Is there any other way of disabling API access functions (so for example pages cannot be exported) without disabling autocomplete? Spiros71 (talk) 09:51, 6 December 2018 (UTC)

There are too many internal tools that will simply not work as expected if the API is disabled. Also, the ability to disable the API is deprecated and will be removed (https://phabricator.wikimedia.org/T115414) a newer version of mediawiki.
If you truly want to disable it, you'll probably need to write your own extension to do so. 197.218.84.1 (talk) 10:19, 6 December 2018 (UTC)

Disabling user registrations

In MW 1.31 I tried $wgGroupPermissions['*']['createaccount'] = false; but users could still register. What am I doing wrong? Spiros71 (talk) 09:53, 6 December 2018 (UTC)

Restoring old backup in the new Wiki

Hello,

We had an internal wiki server (1.19.1) installed on 2012 on Ubuntu 11.10. The server and wiki was nether updated after. Some time ago the server crashd and I have only the last backup of wiki (wediawiki directory + images + exports of mysql). There aren't any extensions or skins.

I need to restore the server, but I'm not sure about the procedure in this specific case. I have VM with Ubuntu 16.04 with Apache2+MySQL+PHP7 installed. Older versions of Ubuntu are not avaibles.

Can I install the latest mediawiki (1.31.1) and just restore the database dump from 1.19.1? If it work, do I need to do something after? Update script?


Thank you for any advices!


WBR,

Victor 88.174.73.194 (talk) 11:01, 6 December 2018 (UTC)

See Manual:Restoring a wiki from backup and Manual:Upgrading Malyacko (talk) 12:50, 6 December 2018 (UTC)
I readed the both manuls before ask my question here.
Restoring assumes that you make backup and restore on the same configuration - similar OS (php/mysql) / Mediawiki versions.
Upgrade assumes that you have working configuration and you do the update procedure.
In my case, I have only the backup maked in old OS/wiki and I can't recreate the same old configuration to restore wiki and then update it.
I would like to try to restore old backup in te new configuration directly, but I'm not sure that it will work. That's why I asked this question here.
WBR,
Victor 88.174.73.194 (talk) 15:51, 6 December 2018 (UTC)
Hi Victor,
what you want to do should be possible. :-)
Extract your old files in the doc root of the new server and import the database into MySQL.
Then update LocalSettings.php: There are database credentials, which you will have to adjust so that MediaWiki can access the new database. Also, $wgServer maybe needs an update.
After that, your import is complete - but the wiki will most likely not be working yet. The reason is that now you still need to upgrade to MediaWiki 1.31.1. At that point, you should be able to follow upgrading to get a working installation. Only make sure that you do not leave behind files of the old MediaWiki Core. All files of the MediaWiki 1.19.1 Core need to be removed during your upgrade.
You will then also have to run update.php in order to update the database, but that is all explained in upgrading already.
In case of questions and/or errors, do not hesitate to ask again here! 2001:16B8:10B9:2C00:29A6:D871:FD84:B009 (talk) 20:41, 6 December 2018 (UTC)

using Template:Box-round/doc

I included the following code in edit page: It is creating box here, but when I include it into my page without quote: (removed opening and closing braces from start and end else it is inserting the box correctly). But for me in Mediawiki editor it will appear as following:

{Box-round|title=Title|Text goes here}

it will display as s Template:Box-round

What is the correct way of using it? Paperlessnow (talk) 11:47, 6 December 2018 (UTC)

Do I have to enable something or import or what to do to use the default templates such as {{Box-round}} or any other line {{inbox}} ?

Paperlessnow (talk) 16:00, 6 December 2018 (UTC)
There happen to be no "default templates" in MediaWiki. See Manual:Importing Wikipedia infoboxes tutorial. AhmadF.Cheema (talk) 17:13, 6 December 2018 (UTC)
So now I copied template code of Box-round and it appears in my local wiki. Problem is it is occupying entire width of the page. Though it has a style attribute but that is not effective
{Box-round|title=All the books I have downloaded|Text goes here|background=orange|style="width:40px;"} or giving width=40 or 40px nothing seems to have impact. Box continues to occupy the entire width of the page.
How to limit the size of box. It has following relevant attributes:
style
Additions to box style
Paperlessnow (talk) 07
53, 7 December 2018 (UTC)
Maybe add style=width:200px; Ciencia Al Poder (talk) 10:30, 7 December 2018 (UTC)

Migration from 1.16.1 to 1.31.1 - pages deleted

Hello reader thank you for your time!

Im trying to migrate a MediaWiki from 1.16.1 to 1.31.1

I followed this guide:

Manual:Upgrading


Everything seems fine - users exist - website is callable etc.

BUT

The startpage (and a lot of others) is flagged as deleted though it is not in the old system.


My question:

Which flag in the old DB vs the new DB qualifies a page as deleted?

(With this information I could compare / synchronize)


With thanks in advance and best wishes,

Martin Exxenmann (talk) 13:46, 6 December 2018 (UTC)

OK tried to do smaller steps
From 1.16.1 to 1.22.15 it does that too :( Exxenmann (talk) 10:41, 7 December 2018 (UTC)
Same :(((((( Editing bot V2 (talk) 13:51, 7 December 2018 (UTC)
A page has a row in the page table. On deletion of the page, this row is deleted. Apart from that, the revisions of that page are moved from the revision to the archive table inside the database.
I cannot really believe that this is happening in a default installation. In that case, a number of users would already have noticed. Which extensions are you using?
Apart from update.php: Are you using any maintenance scripts during the upgrade?
I know of one script, which really deletes pages that is the one, which is intended to kill messages/localization texts from the MediaWiki namespace. It should not delete actual pages though. 2001:16B8:1061:1900:7D8C:ADF2:D4DE:943F (talk) 14:10, 7 December 2018 (UTC)

parsoid debian package repository broken.

Hi

Not sure if this is the correct place for this issue but:

Content of https://releases.wikimedia.org/debian/dists/jessie-mediawiki/main/binary-amd64/Packages differs from unpacked https://releases.wikimedia.org/debian/dists/jessie-mediawiki/main/binary-amd64/Packages.gz . The former is updated with the 0.10.0 release of parsoid, but the .gz file contains 0.9.0 version. apt-get fails to update the repository files rendering the installation impossible using the repo.


Regards

Martin Mbudsjo (talk) 14:22, 6 December 2018 (UTC)

Maybe it was a temporary problem with cache. I've downloaded it now and it contains the 0.10.0 release. Ciencia Al Poder (talk) 10:46, 7 December 2018 (UTC)

FlowChartWiki - Problem creating sample graph

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: How can i get more information about this problem?


Check FlowChartWiki extension Web Server: Apache/2.4.6 (CentOS) PHP/7.0.32 SVN/1.7.14

PHP version: 7.0.32

Platform: Linux VM_0_10_centos 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64

Mediawiki version: 1.31.1

Database: [{{int:version-db-mariadb-url}} MariaDB] 5.5.60-MariaDB

Database prefix: origin

FlowChartWiki version: 1.2.5

OK FlowChartWiki data folder
OK FlowChartWiki data folder permissions
OK GraphViz path
OK GraphViz executable
OK FlowChartWiki database table
ERROR Create sample graphProblem creating sample graph
ERROR Total status
Kael1117 (talk) 14:24, 6 December 2018 (UTC)
What is "FlowChartWiki"? Extension:FlowChartWiki does not exist... Malyacko (talk) 15:35, 6 December 2018 (UTC)
Flowchartwiki is an extension to MediaWiki for creating flowcharts
https://www.mediawiki.org/wiki/Extension:FlowchartWiki Kael1117 (talk) 01:21, 7 December 2018 (UTC)
Solved:
wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/a/ann-libs-1.1.2-3.el7.x86_64.rpm
rpm -ivh ann-libs-1.1.2-3.el7.x86_64.rpm
Kael1117 (talk) 02:23, 11 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

populateRevisionSha1.php

I consider myself to be an inexperienced admin, but was able to upgrade my private wiki from  1.15.1 to 1.31.1 using update.php. Everything was fine until I tried to move an article and got the following error

Fatal exception of type "MediaWiki\Storage\IncompleteRevisionException"

Repeating with a debug log, I found the following detail

[exception] [31ef6b10a3dde736d93ff5cf] /mediawiki/index.php?title=Special:MovePage&action=submit  MediaWiki\Storage\IncompleteRevisionException from line 308 of /var/lib/mediawiki/includes/Storage/RevisionStore.php: sha1 field must not be ''!

A search on this exception recommended running a maintenance script named populateRevisionSha1.php, which is intended to “fill the rev_sha1 and ar_sha1 columns of revision and archive tables for revisions created before MW 1.19”. Since my old wiki was before 1.19, this maintenance script appears to be a possible solution.

I have 2 questions:

Was populateRevisionSha1.php already incorporated in update.php?

How do I download populateRevisionSha1.php ?

Any other advise is welcome. MitchamShag (talk) 15:46, 6 December 2018 (UTC)

populateRevisionSha1.php should run automatically with update.php. However, in case it wasn't for whatever reason, you can run it manually, just like any other maintenance script (like update.php). Simply open a command terminal and run "php maintenance/populateRevisionSha1.php" from the directory where MediaWiki is installed. Ciencia Al Poder (talk) 10:44, 7 December 2018 (UTC)

I have complete a new introductory page

However, I cannot see its appeartance:( Clsit (talk) 16:16, 6 December 2018 (UTC)

I have ensure that it had been saved for many times Clsit (talk) 16:17, 6 December 2018 (UTC)
Is this related to MediaWiki? AhmadF.Cheema (talk) 17:13, 6 December 2018 (UTC)
Not sure.... I had read the introductory page for constructing wiki page, however, it seems not working to save my work via viisible version (NOT coding) Clsit (talk) 16:35, 7 December 2018 (UTC)
https://en.wikipedia.org/wiki/Wikipedia:Project_namespace#Wikipedia_how-to_and_information_pages As shown that there seems to be many types of pages, it would be great to know for general one... introducing someone with histroy and success... which one would be this kind of page? Clsit (talk) 16:38, 7 December 2018 (UTC)
https://en.wikipedia.org/w/index.php?title=User:218.250.192.22&action=edit
It noticed me that I was blocked since 2 Dec 2018, however I just regristered this account yesterday.... seems to be complicated... not sure if there is any technical problems (bugs) or IP is not approved. Clsit (talk) 16:43, 7 December 2018 (UTC)
Even if your IP is blocked, you should still be able to save edits while logged into your account. Can you not save pages while logged in? AhmadF.Cheema (talk) 20:24, 7 December 2018 (UTC)
Thank you. The problem had been tackled with editional rights. Clsit (talk) 16:30, 18 December 2018 (UTC)
Recently, the introductory page was noticed that there needed some changes for the content (to avoid being commerical or promotional)... I had updated the content with reliable supporting links.... (https://zh.wikipedia.org/wiki/Clsit).... Please let me know if there require any other changes, thank you Clsit (talk) 16:34, 18 December 2018 (UTC)
MediaWiki.org is concerned with the technical aspect of the MediaWiki software.
For discussion regarding content, see an appropriate page mentioned at Wikipedia:社群首页. AhmadF.Cheema (talk) 03:35, 19 December 2018 (UTC)

Issues connecting MySQL container and MediaWiki Container on Docker

Hi All

I am tryingto install MediaWiki using Docker. I am using Windows, but want to use Docker so I have more scope of what I can do. Long term I want to create my own image so I can have Parsoid and GraphViz running on it.

The issue I am getting is when I go onto the database page of the installation I get:

Cannot access the database: php_network_getaddresses: getaddrinfo failed: Name or service not known (mysqlhost).

Check the host, username and password and try again.


I have tried to create my own hostname for the MySQL running the line:

docker run --name=mysql1 -–network=mysqlhost -d mysql/mysql-server

But it comes up with the same error.

To get the container for MediaWiki working I have used:

docker run --name mediawiki -p 80:80 mediawiki

It looks like they are both working, just not talking to each other.

I have tried to link the MySQL up with MediaWiki as detailed on the MediaWiki Docker page using:

docker run --name mediawiki --link wiki:mysql -d mediawiki


But with that I get the error:


C:\Users\User>docker run --name mediawiki --link wiki:mysql -d mediawiki docker: Error response from daemon: Conflict. The container name "/mediawiki" is already in use by container "eb03498d223748379186507fe6d58e1cb7f59f4f2de3e6e1ba863d5b8210bf3c". You have to remove (or rename) that container to be able to reuse that name. See 'docker run --help'.

So I tried:

docker run --name wiki --link wiki:mysql -d mediawiki


But I get the error:

C:\Users\User>docker run --name wiki --link wiki:mysql -d mediawiki docker: Error response from daemon: could not get container for wiki: No such container: wiki. See 'docker run --help'.

Not sure what I am doing wrong, any help is appreciated,


Squeak24 (talk) 17:13, 6 December 2018 (UTC)

You use "docker run" to create a new container. Once you do that, you can't use the same name, unless you destroy that container. Try "docker rm mediawiki" to remove it and recreate it again.
Once you have the container created, and stop it, you can start it again with "docker start mediawiki" Ciencia Al Poder (talk) 10:41, 7 December 2018 (UTC)
I get that, I just can't seem to get the MediaWiki container to talk to the MySQL container. I found this which indicates the MySQL host is mysql in my case. Squeak24 (talk) 13:48, 7 December 2018 (UTC)
This is an issue for me as well. is there any resolution that has been found? 199.58.99.202 (talk) 22:48, 21 February 2019 (UTC)
Have you tried searching google:docker+communication+between+containers? Ciencia Al Poder (talk) 10:19, 22 February 2019 (UTC)
I have, but other work commitments came up. I am hoping to have a site down in the next few weeks now things are getting quieter again. But this is still an issue I am facing. Squeak24 (talk) 17:34, 26 February 2019 (UTC)
I had a similar issue. When I used the database container name as the localhost, then I was able to complete the installation. My container name was mariadb. 73.237.69.190 (talk) 19:18, 28 November 2021 (UTC)
This one helped me to. Use the container name of the database instead of localhost or 127.0.0.1. 2003:D5:272E:8289:6C3D:AEDE:C10C:A5A3 (talk) 17:33, 9 December 2021 (UTC)

Is it possible to get all pages on a wiki if the total number of pages exceeds the limit?

Hi,

I'm working on getting pywikibot running, but in the mean time, is there a way to retrieve all pages from a wiki if the total number of pages exceeds the maximum 500? It seems that the retrieval is in alphabetical order. Is there a way to get the rest of the pages? Emske (talk) 18:56, 6 December 2018 (UTC)

See Continuing queries. MarkAHershberger(talk) 22:13, 6 December 2018 (UTC)

Donating to Wikipedia

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.


Instead of donations, it would be great to receive something tangible, a hard drive with all of the information Wikipedia contains, for example. Like a personal digital encyclopedia, if this is possible I would pay for that and Wiki would be able to consume a portion for profit.
One step closer to having the entire Internet backed up on a server for personal use. Allen.finley1017 (talk) 21:34, 6 December 2018 (UTC)
For offline Wikipedia, see http://www.kiwix.org/ Malyacko (talk) 11:17, 7 December 2018 (UTC)
Please ask donate@wikimedia.org Gryllida 02:37, 8 December 2018 (UTC)
Hi. This is not a question relating of the use of MediaWiki software. For questions regarding donations please contact the Wikimedia Foundation directly. Tropicalkitty (talk) 21:48, 6 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Unable to make footnotes mediawiki version 1.31.1 with Extension CiteThisPage

The extension CiteThisPage is activated on version page.

My tags are at the end of the page under references

On my wiki https://www.bourgeoa.ga/solid-wiki/index.php?title=Main_Page my code does :

<references> <ref>[1]</ref> <ref>link title</ref> <references />

I put the same code in this topic and as you can see it works :

<references> [1] [2]

2A01:E34:EC2B:C720:D8C8:EC7C:ECF3:C48E (talk) 21:47, 6 December 2018 (UTC)

Install and enable the Cite extension, as well. MarkAHershberger(talk) 22:17, 6 December 2018 (UTC)

run importImages.php DBconnectionError

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 want to run importImage.php but I have this :


My wiki is running properly since october but I can't run scripts.

In LocalSettings.php DB parameters are correctly configured


[8aa0c2492adba1e1c2697b46] [no req]   Wikimedia\Rdbms\DBConnectionError from line 1004 of /usr/share/mediawiki/includes/libs/rdbms/database/Database.php: Cannot access the database: No database connection

Backtrace:

#0 /usr/share/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1134): Wikimedia\Rdbms\Database->reportConnectionError(string)

#1 /usr/share/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(749): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()

#2 /usr/share/mediawiki/includes/GlobalFunctions.php(2801): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)

#3 /usr/share/mediawiki/includes/cache/localisation/LCStoreDB.php(45): wfGetDB(integer)

#4 /usr/share/mediawiki/includes/cache/localisation/LocalisationCache.php(412): LCStoreDB->get(string, string)

#5 /usr/share/mediawiki/includes/cache/localisation/LocalisationCache.php(458): LocalisationCache->isExpired(string)

#6 /usr/share/mediawiki/includes/cache/localisation/LocalisationCache.php(334): LocalisationCache->initLanguage(string)

#7 /usr/share/mediawiki/includes/cache/localisation/LocalisationCache.php(271): LocalisationCache->loadItem(string, string)

#8 /usr/share/mediawiki/languages/Language.php(4541): LocalisationCache->getItem(string, string)

#9 /usr/share/mediawiki/languages/Language.php(231): Language::getFallbacksFor(string)

#10 /usr/share/mediawiki/languages/Language.php(193): Language::newFromCode(string)

#11 /usr/share/mediawiki/includes/Setup.php(802): Language::factory(string)

#12 /usr/share/mediawiki/maintenance/doMaintenance.php(81): require_once(string)

#13 /usr/share/mediawiki/maintenance/importImages.php(523): require_once(string)

#14 {main} 90.17.171.70 (talk) 08:57, 7 December 2018 (UTC)

Usually the php configuration is different when running from the web server and when running in command line. Maybe the command line one doesn't have the mysql driver enabled and it can't find the database connection. See Manual:Php.ini to find the location of the configuration file. Ciencia Al Poder (talk) 10:29, 7 December 2018 (UTC)
Thanks I can run the command now but I have this error : No suitable files could be found for import. My path is ok 93.15.88.214 (talk) 08:52, 10 December 2018 (UTC)
Note that the script only finds files on the same directory provided, it does not look at subfolders unless you provide the recursive parameter. Also, be sure the files have the allowed extensions. Ciencia Al Poder (talk) 10:05, 10 December 2018 (UTC)
It's running thanks :) 93.15.88.214 (talk) 10:17, 10 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Support upload of pdf or any office files

I have modified the

$wgFileExtensions = [ 'pdf', 'png', 'gif', 'jpg', 'jpeg', 'webp' ];

to include pdf also.

But whatever I do, the 'Upload File' page is not showing the pdf supported file. and on attempt to upload it says file is empty.

Following suggestions at Manual:$wgFileExtensions


Paperlessnow (talk) 09:21, 7 December 2018 (UTC)

Permitted file types: png, gif, jpg, jpeg, webp. It is not showing pdf or for the matter any other types that I add. Paperlessnow (talk) 09:21, 7 December 2018 (UTC)
This is strange. Are you sure you edited the correct LocalSettings.php file? (in case you have multiple wikis, or copies of that files). Be sure you don't set $wgFileExtensions anywhere else on the file. Try changing some other variable that can have some visual impact (for example $wgLogo) and see if it's just this variable which doesn't update or any other change Ciencia Al Poder (talk) 10:27, 7 December 2018 (UTC)
I verified that I had modified in:
$install/mediawiki//DefaultSetting.php
Now I modified in LocalSetting.php and then it works.
Thanks. Paperlessnow (talk) 10:53, 7 December 2018 (UTC)
But I continue to face the issue with wgLogo. If I give to mediawiki.png or other existing files it works.
But If I put my own file and try to use that, it will not appear. (In LocalSetting.php)
$wgLogo = "${wgScriptPath}/resources/assets/mediawiki.png"; will work.
but
$wgLogo = "${wgScriptPath}/resources/assets/lotus.jpg"; will not work.
Though this file is there. Paperlessnow (talk) 10:55, 7 December 2018 (UTC)
The image is probably cached. Try opening your site in incognito mode of your browser (Ctrl+Shift+N). AhmadF.Cheema (talk) 13:27, 7 December 2018 (UTC)
tried. same issue:
following error printed on console:
mediawiki_1  | [Fri Dec 07 14:30:31.001933 2018] [php7:warn] [pid 68] [client 172.21.0.1:52270] PHP Warning:  md5_file(/opt/bitnami/mediawiki/resources/assets/lotus.jpg): failed to open stream: No such file or directory in /opt/bitnami/mediawiki/includes/OutputPage.php on line 3740, referer: https://localhost/index.php/Main_Page
mediawiki_1  | [Fri Dec 07 14:30:31.003857 2018] [php7:warn] [pid 68] [client 172.21.0.1:52270] PHP Warning:  OutputPage::transformFilePath: Failed to hash /opt/bitnami/mediawiki/resources/assets/lotus.jpg [Called from OutputPage::transformFilePath in /opt/bitnami/mediawiki/includes/OutputPage.php at line 3742] in /opt/bitnami/mediawiki/includes/debug/MWDebug.php on line 309, referer: https://localhost/index.php/Main_Page Paperlessnow (talk) 14:31, 7 December 2018 (UTC)
The error message tells it's trying to access "/opt/bitnami/mediawiki/resources/assets/lotus.jpg". Is the file there? Ciencia Al Poder (talk) 18:28, 7 December 2018 (UTC)
Yes. file is there. Paperlessnow (talk) 15:43, 29 December 2018 (UTC)
Apart from Ciencia's hint, please undo your changes in DefaultSettings.php. Instead, edit LocalSettings.php only!
Also please place the image file e.g. inside the folder images/, like ${wgScriptPath}/images/lotus.jpg. The contents of folder resources/ will be replaced when you do an upgrade. Your image will then be lost. 2001:16B8:1061:1900:7D8C:ADF2:D4DE:943F (talk) 20:05, 7 December 2018 (UTC)
I tried. Still same problem. Now it is not appearing. Paperlessnow (talk) 15:44, 29 December 2018 (UTC)
But surprisingly if I try some remote link like following:
$wgLogo = "https://atlas-content-cdn.pixelsquid.com/stock-images/petunia-pot-6364kBF-600.jpg";
it work. the logo appears. Paperlessnow (talk) 15:44, 29 December 2018 (UTC)
Is the file accessible from the web (by URL)? Can you check that the file has correct permissions (at least is readable by all)? Permissions should probably be 644 Ciencia Al Poder (talk) 12:01, 30 December 2018 (UTC)
I put image in $IP/resources/assets/lotus.jpg
and tried to access using following url:
https://localhost/resources/assets/lotus.jpg

=Not Found=
The requested URL /resources/assets/lotus.jpg was not found on this server.
I tried to access using
https://localhost/index.php/resources/assets/lotus.jpg
and
https://localhost/index.php/Main_Page/resources/assets/lotus.jpg
but all failed.
Otherwise I checked the file is there and read and write permission is there. Paperlessnow (talk) 16:17, 30 December 2018 (UTC)
If it doesn't work from the webserver, there seems to be a mistake in the URL you're providing, or you're looking at the wrong folder or even server... You'll need to fix this first Ciencia Al Poder (talk) 19:42, 30 December 2018 (UTC)
I have only one server running on local host.
file is there in resources/assets/lotus.jpg. I try to access using following url. and says file not found.
https://localhost/resources/assets/lotus.jpg
if I try to access other images in the same directory (or sub directory ) like
https://localhost/resources/assets/file-type-icons/fileicon-c.png
or
https://localhost/resources/assets/poweredby_mediawiki_88x31.png
or
https://localhost/resources/assets/mediawiki.png
it displays the image.
I checked the permission. Read and write permission is there.

Paperlessnow (talk) 07:54, 31 December 2018 (UTC)
I had a similar problem with the logo and the trick for me was that the image i was using for the logo exceeded the 150x150px size. 193.77.254.38 (talk) 16:21, 4 June 2021 (UTC)

Setting up WikiSEO for MW 1.31

I'm trying to setup this extension with the goal of being able to change the <title> tag of a page without changing the name. For example, a page name "Dogs" I want to show the title tag as "The world's cutest dogs and cats":

Extension:WikiSEO

After installation, when I add:

wfLoadExtension( 'WikiSEO' );

I get this error:

This page isn’t working www.domain.com is currently unable to handle this request.

HTTP ERROR 500

I'm on PHP 7.2 and MW 1.31. How can I solve this?

Thanks. Pjkcar (talk) 10:57, 7 December 2018 (UTC)

Could be because you are using an incompatible version of the extension.
In LocalSettings.php, set:
$wgShowExceptionDetails = true; $wgShowDBErrorBacktrace = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);
Manual:How to debug AhmadF.Cheema (talk) 13:25, 7 December 2018 (UTC)
Paperlessnow (talk) 14:22, 7 December 2018 (UTC)
Thanks, here is the error. I'm using the latest version of the plugin:
Fatal error: Uncaught Exception: /home/test/public_html/domain/wiki/extensions/WikiSEO/extension.json does not exist! in /home/test/public_html/domain/wiki/includes/registration/ExtensionRegistry.php:107 Stack trace: #0 /home/test/public_html/domain/wiki/includes/GlobalFunctions.php(50): ExtensionRegistry->queue('/home/test/pub...') #1 /home/test/public_html/domain/wiki/LocalSettings.php(279): wfLoadExtension('WikiSEO') #2 /home/test/public_html/domain/wiki/includes/Setup.php(94): require_once('/home/patjk/pub...') #3 /home/test/public_html/domain/wiki/includes/WebStart.php(88): require_once('/home/patjk/pub...') #4 /home/test/public_html/domain/wiki/index.php(39): require('/home/test/pub...') #5 {main} thrown in /home/test/public_html/domain/wiki/includes/registration/ExtensionRegistry.php on line 107 Pjkcar (talk) 05:38, 8 December 2018 (UTC)
What is the URL from where you downloaded the extension files?
What is the path to the folder in which the extension files reside? If the extension files are in a folder named "wiki-seo", you need to change it to: WikiSEO AhmadF.Cheema (talk) 05:44, 8 December 2018 (UTC)
I downloaded the Master file on Git.
The path to the extensions was "wiki-seo" which I renamed to "WikiSEO" and still get the same error as above. There isn't an extension.json file in the Github master, is there supposed to be?

Pjkcar (talk) 07:18, 11 December 2018 (UTC)
From where did you download the master branch?
The project's GitHub page does include the extension.json file. AhmadF.Cheema (talk) 07:54, 11 December 2018 (UTC)

Downloading legacy version from releases.wikimedia.org fails with a "Connection close"

When i try to download an old version of wikimedia (in my case i need the version 1.11.2) i have a "Connection close" and i can't finish the download.

The link: https://releases.wikimedia.org/mediawiki/1.11/ Dceccon87 (talk) 14:52, 7 December 2018 (UTC)

Maybe a temporary problem. The download is working on my end. Try again and see if it resolves now? AhmadF.Cheema (talk) 20:13, 7 December 2018 (UTC)
Also, why would you want to download that version? It is recommended to use the latest stable version of MediaWiki. Reception123 (talk) 05:28, 8 December 2018 (UTC)
@Reception123: You are right. I required this old version for test the wikimedia installation on my company. Now i have upgrade to the last wekimedia version ;-)
@AhmadF.Cheema: Yes, now it's resolved.
Many thanks all! Dceccon87 (talk) 08:14, 11 March 2019 (UTC)

Error 500 (Install MediaWiki Language Extension Bundle)

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, when I include parameter (" $ IP /extensions/Translate/Translate.php" ;) in LocalSettings.php, my Wiki is not working. Downloaded the latest version from 2018.10 Fanatikvoice (talk) 15:07, 7 December 2018 (UTC)

Remove the extra spaces before and after "IP".
In your LocalSettings.php, set:
$wgShowExceptionDetails = true; $wgShowDBErrorBacktrace = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);
For details, see Manual:How to debug. AhmadF.Cheema (talk) 20:11, 7 December 2018 (UTC)
Error on line 496 from file TranslateUtils.php
How fixed this problem?
Wikimedia 1.30.1 // PHP 5.6 Fanatikvoice (talk) 13:40, 8 December 2018 (UTC)
Kindly quote the entire text of the error. AhmadF.Cheema (talk) 16:08, 8 December 2018 (UTC)
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/i1147188/public_html/extensions/Translate/TranslateUtils.php on line 496 Fanatikvoice (talk) 18:31, 8 December 2018 (UTC)
Please make sure you are using the correct version of the Translate extension!
File https://github.com/wikimedia/mediawiki-extensions-Translate/blob/REL1_30/TranslateUtils.php only has 425 lines... 2001:16B8:10B1:5600:A8FC:980F:556F:824 (talk) 22:40, 8 December 2018 (UTC)
I installing you version module - array errors in main-page.: https://pp.userapi.com/c850016/v850016773/d2f62/18qXcsS4obg.jpg Fanatikvoice (talk) 09:21, 9 December 2018 (UTC)
Using module in MediaWiki Language Extension Bundle release from 10.2018 (MediaWiki Language Extension Bundle)
Updating bundle pls. And i download Extension:Translate (Special:ExtensionDistributor/Translate) - and there is the same error in the installation. And in installing the module, offers me to put a bundle (Help:Extension:Translate/Installation) Fanatikvoice (talk) 09:02, 9 December 2018 (UTC)
You might need to run update.php. AhmadF.Cheema (talk) 10:12, 9 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Commons and Wikimedia Upload appear to have been BGP-hijacked

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.


Commons shows an error with the following message:


"Error: Our servers are currently under maintenance or experiencing a technical problem. Please try again in a few minutes.

See the error message at the bottom of this page for more information.

If you report this error to the Wikimedia System Administrators, please include the details below.

Request from 216.171.227.197 via cp4025 frontend, Varnish XID 88169232

Upstream caches: cp4025 int

Error: 404, Requested domainname does not exist on this server at Fri, 07 Dec 2018 19:07:07 GMT"


The 216 IP belongs to a proxy service, and is not my IP shown on other projects (64.114.223.5).


Upload.Wikimedia images are also broken:


"Page not found: /wikipedia/commons/3/32/Mezquita_de_Malek,_Kerman,_Ir%C3%A1n,_2016-09-22,_DD_20-22_HDR.jpg

We could not find the above page on our servers.

Did you mean: /wiki/wikipedia/commons/3/32/Mezquita_de_Malek,_Kerman,_Ir%C3%A1n,_2016-09-22,_DD_20-22_HDR.jpg

Alternatively, you can visit the Main Page or read more information about this type of error."


I am in Canada, and this is happening with 2 computers.


64.114.223.5 (talk) 19:10, 7 December 2018 (UTC)

Hi there. I'm sorry to hear that. It sounds like a system is re-writing the URLs for you in a broken way. From looking at the logs, we don't think the problem is at our end, or a wider Internet problem that a BGP issue would show as.
Colleagues of mine asked if you were on a school network (from digging, the proxy looks like it might be used by the Ministry of Education), and if the two computers on which you had this issue are clean devices of your own, or if they're owned/controlled by the school. For our end, it looks like there's a proxy that's mis-behaving; that might be because the devices are configured to use it, or the network is inserting a proxy anyway that's breaking things for you.
Sorry we can't give more help! Jdforrester (WMF) (talk) 20:16, 7 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Configuration for private personal wiki

I am planning on using MediaWiki as a personal knowledge base. I previously tried Dokuwiki but I didn't find it flexible enough. I currently have 1.31 installed and using an SQLite database.

I am looking for suggestions on what changes I should make to LocalSettings.php for my current use case, which is:

  • I am the only user that will ever exist
  • The wiki runs on my own personal machine and is never accessed externally

Currently the only changes I have made are setting

$wgJobRunRate = 5.0; $wgRunJobsAsync = false;

because I always want to see my changes immediately and don't need to worry much about performance. Jlumpe (talk) 20:06, 7 December 2018 (UTC)

Could you document your experience? I'm interested in, especially, the comparison with Dokuwiki.
If you are sure that the wiki cannot be accessed from outside your personal machine and you're sure that you are the only one with access to your personal machine, then there isn't much to do with regard to access control.
As far as your job settings, you might set up process to make sure the runJobs.php runs periodically anyway, just to clear the queue. Some extensions (like Semantic MediaWiki) can end up creating a ton of jobs. MarkAHershberger(talk) 21:53, 7 December 2018 (UTC)
Sure thing, I have LocalSettings.php and other config in a git repo so its fairly documented already. I could make it public but I'll have to check it doesn't have any of my personal info first. Jlumpe (talk) 22:57, 8 December 2018 (UTC)

edit api adding section without a heading

In edit api, how do i add section without a title to someones talk page, while using a non-empty edit summary? i'm welcoming using a script, and the {{Welcome }} template already has a heading. Gryllida 02:33, 8 December 2018 (UTC)

Please let me know if a phabricator ticket should be added about this. Gryllida 05:04, 9 December 2018 (UTC)
You should probably just grab the contents of the page and use them in your edit. If you'd like you can create a phabricator task to have the api add a section without a heading. MarkAHershberger(talk) 19:18, 9 December 2018 (UTC)
Ok, thanks, added. Gryllida 05:43, 10 December 2018 (UTC)
Err its pretty simple. Just use the API:Edit to append content to the page. You're not really adding any section at all, and in any case sections are just virtual concepts, more like a view of an existing page. 197.218.88.98 (talk) 06:29, 10 December 2018 (UTC)
Oops, they're right @Gryllida. I missed the appendtext parameter. MarkAHershberger(talk) 17:18, 10 December 2018 (UTC)

Template:VisualEditor Portal

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 want do add translatable image for Template:VisualEditor Portal. I want to add Czech VisualEditor logo, but it doesn't working. When I want to translate it, logo isnt here. Thanks for help, please ping me if you reply. Patrik L. (talk) 17:17, 8 December 2018 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

WikiEditor window size

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 there. How can I change the WikiEditor's window size in MW 1.31? Please help ...! AnonymusGdpr (talk) 09:35, 9 December 2018 (UTC)

The window size can be manually changed temporarily through the small box at the bottom-right of the editor window.
Don't know of any permanent, automatic way to do it, though. AhmadF.Cheema (talk) 11:24, 9 December 2018 (UTC)
I am somewhat disappointed. In previous versions one could adjust the width and, more important, the height of the WikiEditor window by adjusting user preferences to one's personal needs. This is an important feature as we have different screen sizes out there in the wild. With a fixed size editor box one will always have to scroll up and down the editor box plus (!) scroll up and down the browser viewport, which is extremely annoying.
I do absolutely not appreciate that such important, well-known, well-working user options that are necessary for a good usability are silently removed without a needs. AnonymusGdpr (talk) 11:46, 9 December 2018 (UTC)
The editor textbox dimensions aren't fixed, they are responsive. They automatically change with the screen size/resolution. AhmadF.Cheema (talk) 12:08, 9 December 2018 (UTC)
I am afraid they are not. If I were able to upload a screenshot one could see. Yes, the input box fits within the screen dimensions, but everything below is outside the browser's viewport: the checkboxes "small change", "watch"; the toolbox with wikitext templates; and, most important, the buttons "save", "preview" and so on. AnonymusGdpr (talk) 12:39, 9 December 2018 (UTC)
Editor height is fixed, and it's not a user preference option. You can manually resize it, however, from the bottom-right corner, but the size won't be saved on the next page load. I guess a gadget could easily save this preference between page loads. Ciencia Al Poder (talk) 10:20, 10 December 2018 (UTC)
It's a pity, the user configurable height was a useful thing.
But, another helpful hand served me a way to set the height via css:
#wpTextbox1 {
  width: ##;
  height: ##;
}
which works fine. AnonymusGdpr (talk) 13:26, 10 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Having trouble signing in can you help me

I would really like to have wiki account and all of the knowledge that comes with it. 2601:80:C001:D2E2:3D1A:A497:8ADD:FA92 (talk) 12:08, 9 December 2018 (UTC)

Yes , I'm having trouble signing in and I haven't ever done anything to have this type of treatment.

2601:80:C001:D2E2:3D1A:A497:8ADD:FA92 (talk) 12:10, 9 December 2018 (UTC)
Nobody can help if you do not explain the "trouble". What exact steps did you do on which exact website (address) and what happened (error message?) after which step? Malyacko (talk) 13:58, 9 December 2018 (UTC)

Can't get MediaWiki to work on RedHat via a virtual host: "PPFrame_DOM::expand: Invalid parameter type"

When I go to my url for the virtual host it says

LocalSettings.php not found.

Please complete the installation and download LocalSettings.php.

So I click "complete the installation" and it says this

"[XA0Qik1sQDXV2zZfZex@LAAAAAY] /mw-config/index.php MWException from line 1387 of /var/www/mediawiki/wiki/includes/parser/Preprocessor_DOM.php: PPFrame_DOM::expand: Invalid parameter type

Backtrace:

#0 /var/www/mediawiki/wiki/includes/parser/Parser.php(2942): PPFrame_DOM->expand(NULL, integer)

#1 /var/www/mediawiki/wiki/includes/parser/Parser.php(1293): Parser->replaceVariables(string)

#2 /var/www/mediawiki/wiki/includes/parser/Parser.php(443): Parser->internalParse(string)

#3 /var/www/mediawiki/wiki/includes/installer/Installer.php(695): Parser->parse(string, Title, ParserOptions, boolean)

#4 /var/www/mediawiki/wiki/includes/installer/WebInstaller.php(704): Installer->parse(string, boolean)

#5 /var/www/mediawiki/wiki/includes/installer/WebInstallerLanguage.php(81): WebInstaller->getHelpBox(string)

#6 /var/www/mediawiki/wiki/includes/installer/WebInstaller.php(281): WebInstallerLanguage->execute()

#7 /var/www/mediawiki/wiki/mw-config/index.php(79): WebInstaller->execute(array)

#8 /var/www/mediawiki/wiki/mw-config/index.php(38): wfInstallerMain()

#9 {main}"


Can anybody help please. I would greatly appreciate it. 134.228.229.248 (talk) 14:56, 9 December 2018 (UTC)

Weird. Could you run rpm -q -a | grep ^php and tell me what it says?
Could you download an older version (1.30.1, for example) and see if you have the same problem? MarkAHershberger(talk) 18:58, 9 December 2018 (UTC)

Where do I make a financial contribution?

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.


Where is the link to contribute to the support of Wiki? Davehere639 (talk) 16:25, 9 December 2018 (UTC)

Ways to Give (Donate.Wikimedia). AhmadF.Cheema (talk) 16:30, 9 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Title Home_Page

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 to make Title only Home_Page? pls i need this

Wikipedia also has a title on the main page. Justruslan (talk) 16:38, 9 December 2018 (UTC)

Which page exactly are you talking about? It would help if you can provide the link. AhmadF.Cheema (talk) 17:04, 9 December 2018 (UTC)
I believe @Justruslan is talking about the actual <title> element on the FP of en.wikipedia.org. MarkAHershberger(talk) 18:00, 9 December 2018 (UTC)
yes, only home page title how to make? Justruslan (talk) 18:01, 9 December 2018 (UTC)
I don't know and I couldn't find the answer when I looked. Maybe ask on the talk page there if no one else offers an idea here? MarkAHershberger(talk) 18:59, 9 December 2018 (UTC)
MediaWiki:Pagetitle-view-mainpage (from Project:Support desk/Flow/2017/10#h-Change_browser_tab_title_of_main_page-2017-10-19T22:24:00.000Z). AhmadF.Cheema (talk) 19:40, 9 December 2018 (UTC)
thank you! ♥ Justruslan (talk) 19:49, 9 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Statistics

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 show and see statistics in Other stats "Words in all content pages" Justruslan (talk) 20:35, 9 December 2018 (UTC)

Looking at mediawiki-extensions-CirrusSearch/blob/master/i18n/en.json, it would appear that the "Words in all content pages" in Other statistics from the Special:Statistics page, requires Extension:CirrusSearch. AhmadF.Cheema (talk) 20:57, 9 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Help logging in on microbewiki

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 am having trouble logging into my account on microbewiki. When I went to reset the password the first time, the password worked on logging me into media wiki but not microbewiki. I waited 24 hours to try again and this time I never received an email to reset my password and the microbewiki re-set password page is saying I have to wait another 24 hours to request a new password. Any help would be greatly appreciated! 67.1.35.192 (talk) 21:04, 9 December 2018 (UTC)

Wrong support forum. You will need to contact MicrobeWiki for this. AhmadF.Cheema (talk) 02:59, 10 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Patch from 1.31 to 1.31.1

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.


Following patch -p 1 < mediawiki-1.31.1.patch I get this sort of output. What should I do there?

The next patch would create the file cache/.htaccess,

which already exists!  Assume -R? [n] The next patch would create the file extensions/Nuke/i18n/hu.json,

which already exists!  Assume -R? [n]

Apply anyway? [n]

Skipping patch.

1 out of 1 hunk ignored

patching file extensions/Nuke/i18n/hy.json

The next patch would create the file extensions/Nuke/i18n/ia.json,

which already exists!  Assume -R? [n]

Apply anyway? [n]

Skipping patch.

1 out of 1 hunk ignored

The next patch would create the file extensions/Nuke/i18n/id.json,

which already exists!  Assume -R? [n]

Apply anyway? [n]

Skipping patch.

1 out of 1 hunk ignored

The next patch would create the file extensions/Nuke/i18n/ig.json,

which already exists!  Assume -R? [ Spiros71 (talk) 09:26, 10 December 2018 (UTC)

You should allow the creation of those files. The nuke extension was accidentally omitted from MediaWiki 1.31.0. See phab:T197229 Ciencia Al Poder (talk) 10:12, 10 December 2018 (UTC)
Thank you :) How do I make it apply all without having to enter "y" in every line? Spiros71 (talk) 10:18, 10 December 2018 (UTC)
There must be an option in patch to automatically accept all changes without prompt. I don't have a unix shell at hand to test now, but try to look at patch --help or man patch Ciencia Al Poder (talk) 10:21, 10 December 2018 (UTC)
Thanks. When checking, I can see that those files already exist (probably an older version of the Extension) and the system is asking to reverse the operation with the -R parameter? So accepting all would be undoing it? I am sort of confused. All I did was try a dry run beforehand.
Miscellaneous options:
  -t  --batch  Ask no questions; skip bad-Prereq patches; assume reversed.
  -f  --force  Like -t, but ignore bad-Prereq patches, and assume unreversed.
  -s  --quiet  --silent  Work silently unless an error occurs.
  --verbose  Output extra information about the work being done.
  --dry-run  Do not actually change any files; just print what would happen.
  --posix  Conform to the POSIX standard. Spiros71 (talk) 10:40, 10 December 2018 (UTC)
I deleted all the old Nuke extension files and reran the patch. This apparently sorted it out. Spiros71 (talk) 11:05, 10 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Getting scripts and styles fails (err 500) with $wgLanguageCode="de"

Hello !

I installed MediaWiki 1.3.1 on a Windows/IIS server with PHP 7.3.0 and MySql 8.0.

After installation (with language set to German i.e. "de"), the mail pages shows up but with no CSS styling. In the network tab of the browers development tool I see that getting scripts and styles fails with error 500.

Now when I change $wgLanguageCode="en" this problem is gone. The initial pages are in english now. Users with their profile set to "de" see the German page just fine.

I know I should probably provide some Infos from the log files, but I'm completely new to MediaWiki and therefore don't know where to look. Can you please advise?


Thanks! Tetramil (talk) 10:15, 10 December 2018 (UTC)

Temporarily set $wgShowExceptionDetails = true; in LocalSettings.php and open the load.php URL that returns a 500 error. You should be able to see details about the error that could give a hint of the problem Ciencia Al Poder (talk) 10:29, 10 December 2018 (UTC)
Ok, here's the output. Any idea?
<!DOCTYPE html>
<html><head><title>Internal error – mypedia</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>
<div class="errorbox mw-content-ltr"><p>[8b9da3388ae7579791af6f08] /load.php?debug=false&lang=de&modules=startup&only=scripts&skin=vector   Error from line 689 of C:\inetpub\wwwroot\mypedia\includes\exception\MWExceptionHandler.php: Class 'FormatJson' not found</p><p>Backtrace:</p><p>#0 C:\inetpub\wwwroot\mypedia\includes\exception\MWExceptionHandler.php(216): MWExceptionHandler::logError(ErrorException, string, string)<br />
#1 C:\inetpub\wwwroot\mypedia\includes\AutoLoader.php(109): MWExceptionHandler::handleError(integer, string, string, integer, array)<br />
#2 C:\inetpub\wwwroot\mypedia\includes\AutoLoader.php(109): require()<br />
#3 [internal function]: AutoLoader::autoload(string)<br />
#4 C:\inetpub\wwwroot\mypedia\includes\resourceloader\ResourceLoader.php(141): spl_autoload_call(string)<br />
#5 C:\inetpub\wwwroot\mypedia\includes\resourceloader\ResourceLoaderStartUpModule.php(440): ResourceLoader->preloadModuleInfo(array, DerivativeResourceLoaderContext)<br />
#6 C:\inetpub\wwwroot\mypedia\includes\resourceloader\ResourceLoaderStartUpModule.php(422): ResourceLoaderStartUpModule->getAllModuleHashes(DerivativeResourceLoaderContext)<br />
#7 C:\inetpub\wwwroot\mypedia\includes\resourceloader\ResourceLoaderModule.php(831): ResourceLoaderStartUpModule->getDefinitionSummary(DerivativeResourceLoaderContext)<br />
#8 C:\inetpub\wwwroot\mypedia\includes\resourceloader\ResourceLoader.php(665): ResourceLoaderModule->getVersionHash(DerivativeResourceLoaderContext)<br />
#9 [internal function]: ResourceLoader->{closure}(string)<br />
#10 C:\inetpub\wwwroot\mypedia\includes\resourceloader\ResourceLoader.php(678): array_map(Closure, array)<br />
#11 C:\inetpub\wwwroot\mypedia\includes\resourceloader\ResourceLoader.php(759): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)<br />
#12 C:\inetpub\wwwroot\mypedia\load.php(51): ResourceLoader->respond(ResourceLoaderContext)<br />
#13 {main}</p></div>
</body></html>

Tetramil (talk) 11:08, 10 December 2018 (UTC)
Looks like you're missing the php-json module: http://php.net/manual/en/json.installation.php Ciencia Al Poder (talk) 11:15, 10 December 2018 (UTC)
Hm, ok, are you sure?
On the page you linked they say "As of PHP 5.2.0, the JSON extension is bundled and compiled into PHP by default." and I have PHP 7.3, so shouldn't that extension not already be in there?
And the output of php -i contains these lines:
json support => enabled
json version => 1.7.0
I'd like to try the php-json module of course, but where can I find it compiled as a Windows x64 .dll? Tetramil (talk) 13:18, 10 December 2018 (UTC)
It seems I resolved this issue by adding this line to LocalSettings.php:
require_once("$IP/includes/json/FormatJson.php");
The error 500 is gone. So this works, but why??? Tetramil (talk) 22:23, 10 December 2018 (UTC)
Is this a new installation? or an upgrade? Ciencia Al Poder (talk) 10:03, 11 December 2018 (UTC)
A new installation Tetramil (talk) 10:57, 11 December 2018 (UTC)
I don't know, then. Looks like you're the first person with that problem that I know of. Maybe this is a problem with PHP 7.3? Ciencia Al Poder (talk) 20:10, 11 December 2018 (UTC)
What is certain is that the class autoloader does not work as expected. 星耀晨曦 (talk) 04:11, 13 December 2018 (UTC)

Please, change the title Israfil Aşurlu to Israfil Aşurlı

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.


https://az.wikipedia.org/wiki/İsrafil_Aşurlu?veaction=edit

Please, change the title Israfil Aşurlu to Israfil Aşurlı Ekaterina-dinch (talk) 11:48, 10 December 2018 (UTC)

Please, make your request at Vikipediya:Kənd meydanı. AhmadF.Cheema (talk) 13:37, 10 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What is the difference between query-continue and continue?

I am trying to iterate over lots of returned data in json. One of the elements is 'query-continue'. There's a helpful example script that uses the 'continue' element, but I do not get it in my returned json. My request is:

http://appropriatelink/api.php?action=query&format=json&list=allpages&apfilterredir=all

My output's query-continue looks like this:

{"query-continue":{"allpages":{"apcontinue":"thenexttopic"}},"query":{"allpages":[{"pageid":951,"ns":0,"title":"...}]}}

Is there a way to get a 'continue' element, or is there a way to iterate over query-continue? Emske (talk) 23:19, 10 December 2018 (UTC)

Your MediaWiki version seems to be old. API has changed in recent versions and now the continue parameter is handled different.
In your version, you'll need to append/merge apcontinue=thenexttopic to the URL parameters Ciencia Al Poder (talk) 10:10, 11 December 2018 (UTC)
Is there a way to update MediaWiki, say, from the command line? If not, then thank you for clearing that up regarding query-continue. Emske (talk) 16:35, 11 December 2018 (UTC)
There's no automatic way to upgrade MediaWiki from the command line. For the steps to upgrade, see Manual:Upgrading Ciencia Al Poder (talk) 18:04, 11 December 2018 (UTC)

== Why doesn't seem to work? == Hi, call me lame, but I know I used <nowiki> and then </nowiki> to turn off wiki formatting and show, e.g., code or a particular code, like a non-breaking space, on some other sites in the past. Now I want to use it on my tiny personal wiki, but it is not showing anything between the "nowikis" ... anything in between disappears. Here's the code I want to use, with a space between every character: & n b s p ; I am using MediaWiki 1.27.1, retrieved ca. Sept. 2016. Am I missing something? [[User:RedKnight7|RedKnight7]] ([[User talk:RedKnight7|talk]]) 08:36, 11 December 2018 (UTC) :That &nbsp; is not wiki code, thus it doesn't get escaped. :You should escape the "&" character as "&amp;" [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 10:08, 11 December 2018 (UTC) :Thanks Ciencia - I believe you've helped me before. Or at least, I've seen your name before. Can you tell me this also? :What's the simplest way to force a wider space between text in the middle of ordinary wiki text? For emphasis / formatting, or whatever. For example, after "said" in:<blockquote>She said [put wider space here] what?</blockquote>Thanks if you can help! Science to Power back at you. [[User:RedKnight7|RedKnight7]] ([[User talk:RedKnight7|talk]]) 11:39, 11 December 2018 (UTC) :Adding "non breaking spaces" (&nbsp;) should work. :She said        what? :Another way would be a span with a fixed width: <nowiki><span style="display:inline-block;width:30px;"> </span>

She said what? Ciencia Al Poder (talk) 18:09, 11 December 2018 (UTC)

CategoryIntersection Download File is missing

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.


From this page: Extension:CategoryIntersection to the download page: Special:ExtensionDistributor/CategoryIntersection; the file is missing so can it be added back because it is really useful because I would like to add it to a wiki as a admin: https://debatesjungle.wikia.com/wiki/User:Nedge1000?

It would be appreciated!


Nedge1000 (talk) 14:12, 11 December 2018 (UTC)

The files should be available through svn checkout URL.
However, in case you wanted to add it to a Wikia hosted Wiki, according to this, since the extension is unmaintained you will probably not be able to get the extension installed on Wikia anyway.
There might be newer maintained extensions that would fit your needs. AhmadF.Cheema (talk) 14:55, 11 December 2018 (UTC)
Thanks, AhmadF.Cheema! Nedge1000 (talk) 15:39, 11 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension's name not appearing on Special:SpecialPages

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 extension currently shows "⧼myextention⧽" when I am on Special:SpecialPages, instead of the extension's actual name.

I have read Manual:Developing_extensions a few times and have examined the extensions that come with MediaWiki, and I still can't figure out what piece makes the name appear on SpecialPages.

Can someone point me in the right direction?

(Edit: my extension is just a Special page; it's not a parser function or anything else.) • Supāsaru 21:25, 11 December 2018 (UTC)

Does the name show on Special:Version?
That display means that you haven't defined a message key with that key either doesn't exist, or you've made it but not registered it.
For example of a special page, see VisualEditor's Special:CollabPad experimental feature, in includes/SpecialCollabPad.php and the keys defined in i18n/ve-mw/en.json#23 and linked via extension.json#113 (which is more complex than you probably need). Jdforrester (WMF) (talk) 22:02, 11 December 2018 (UTC)
*embarrassed laugh* Oops - it turns out that the problem was a small typo. The folder I declared in extension.json > MessagesDirs > Extension didn't match the name of the folder in my extension's directory.
Thanks for your help, Jdforrester. • Supāsaru 00:27, 12 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Do not display snippet on any Special pages

I am using this code in MW 1.31 to display quotes. Currently, they are not displayed on home page. I want to also NOT display them on any Special pages and on Discussion Pages. In other words, only display it in standard pages. How can I do that?


if ( $this->data['title'] !== $this->getMsg( 'mainpage' )->inContentLanguage()->plain() ) {

echo wfGetQuote();

} Spiros71 (talk) 11:21, 12 December 2018 (UTC)

It looks like you're modifying the skin, which is probably not what you want to do (unless you're building your own skin).
In any case, if you ignore my good advice to look at a hook like BaseTemplateAfterPortlet, then, assuming you have access to $skin, you can use MWNamespace::isContent( $skin->getTitle()->getNamespace() ) or similar to determine if the namespace is a content namespace (e.g. NS_MAIN). MarkAHershberger(talk) 21:00, 12 December 2018 (UTC)
Thank you, Mark. I agree on your good advice, not skilled though to make it work via a hook. Not sure though how to implement the snippet you suggested, something like the one below?
if ( MWNamespace::isContent( $skin->getTitle()->getNamespace() ) ) {
echo wfGetQuote();
} Spiros71 (talk) 08:26, 14 December 2018 (UTC)
Did you try this? Did it work for you? MarkAHershberger(talk) 16:20, 21 December 2018 (UTC)
Yes, I did, Mark. Throws error 500. Spiros71 (talk) 17:05, 21 December 2018 (UTC)
What does your error log say at that point? MarkAHershberger(talk) 18:24, 21 December 2018 (UTC)

"mw.getCurrentFrame():getParent()" is a broken table

Extension:Scribunto/Lua reference manual#frame:getParent

[SCRIBUNTO] I can seize single parameters passed to the caller using "mw.getCurrentFrame():getParent().args[1]". Thus "mw.getCurrentFrame():getParent().args" should be the complete table with all parameters. Function "type" reports "table" as expected but function "next" reports "nil" making it impossible to traverse the table. How can I fix this? Thanks. Taylor 49 (talk) 12:35, 12 December 2018 (UTC)

Read Extension:Scribunto/Lua reference manual#frame.args. The frame args table is an empty table, with a metatable containing the actual arguments. You cannot use next() unless you convert it to a normal table (iterate over the whole table with pairs and copy the values to a new table). 121.214.112.149 (talk) 12:19, 16 December 2018 (UTC)
Thanks ... that's exactly what I have found out in the meantime. Extension:Scribunto/Lua reference manual#frame.args does contain the hint ... it is just a bit hidden. And I have mostly fixed the problem. I can seize a "private next function"
<code>
funnext = pairs (vartmp) ; -- keep 1 result and throw away 2
</code>
and call it instead of the unusable official "next". But there is a mystery left: what is the syntax of this function? I tried both with the table name
<code>nextindex = funnext (vartmp, nil) -- seize 0:th index
nextindex = funnext (vartmp) -- seize 0:th index
nextindex = funnext (vartmp, thisindex) -- seize next index
</code>
and without
<code>
nextindex = funnext (nil) -- seize 0:th index
nextindex = funnext () -- seize 0:th index
nextindex = funnext (thisindex) -- seize next index
</code>
and the chocker is that both do work, How is this possible? What syntax is preferable? Taylor 49 (talk) 12:27, 16 December 2018 (UTC)

Query skin name

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 query the name of the used skin in a template so I can use this to adapt generated output? Waanders (talk) 14:34, 12 December 2018 (UTC)

This is not something you would want to do in a template since it would cache the wrong information. In JS, you could look for the skin-??? class in the <body> tag. MarkAHershberger(talk) 21:05, 12 December 2018 (UTC)
Thanks. What exactly do you mean by "since it would cache the wrong information". I just want to include certain templates in a template in case a certain skin is used. Waanders (talk) 06:01, 13 December 2018 (UTC)
That's not possible. Pages are parsed skin-independent, for example in a job queue being run from the command line (where there's no skin at all) Ciencia Al Poder (talk) 10:40, 13 December 2018 (UTC)
Thank you both. Using JavaScript and skin-xxx class body tag is sufficient for our problem. Waanders (talk) 11:18, 14 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Datenbank-Update

Hallo,

ich habe vor einiger Zeit ein Wiki (V. 1.3nochwas) übernommen und wollte es nun auf die aktuelle Version upgraden. Das Update hat nach wenigen Tagen möglichweise geklappt, nachdem ich noch ein paar Fehler aus der usr.php 'rauskommentiert habe. Jetzt kommt die Fehlermeldung "[XBEZQNTjGBkAAD8msOUAAAAl] 2018-12-12 14:20:48: Fatal exception of type Wikimedia\Rdbms\DBQueryError", was anscheinend bedeutet, dass ich die Datenbank aktualisieren soll. Das funktioniert aber nicht, und ich habe gerade erfahren, dass 1&1 die Ausführung des Update-Skripts nicht zulässt. Gibt es da einen Trick und/oder würde der Umzug auf einen anderen Server den Vorgang des Upgrades möglich machen? Ich wollte sowieso von 1&1 weg und habe nun noch einen Grund mehr...

Gruß

Roland RolandHorn (talk) 14:52, 12 December 2018 (UTC)

From Google translate:
I took over some time ago a wiki (V. 1.3something) and wanted to upgrade it to the current version. The update was able to work after a few days, after I commented out a few bugs from the usr.php '. Now comes the error message "[XBEZQNTjGBkAAD8msOUAAAAl] 2018-12-12 14:20:48: Fatal exception of type Wikimedia \ Rdbms \ DBQueryError", which apparently means that I should update the database. This does not work, and I've just learned that 1 & 1 will not allow the update script to run. Is there a trick and / or would moving to another server make the process of upgrading possible? I wanted to get away from 1 & 1 anyway and I have one reason more ...
MarkAHershberger(talk) 20:33, 12 December 2018 (UTC)
Hi Roland,
lass mich kurz auf Englisch antworten:
Yes, you have to update the database as well. There are two ways to do that: One is running update.php from the shell. I guess, you mean that this is not possible with your 1&1 account.
The other option is using the web updater in mw-config/index.php. This can be done using the webbrowser. Details are explained here: Manual:Upgrading/de#Das_Update-Skript_ausführen. 2001:16B8:10FB:7C00:ADB5:7DFF:3358:6492 (talk) 20:37, 12 December 2018 (UTC)

No working Template:DISPALAYTITLE

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 installed in LocalSettings.php:

$wgRestrictDisplayTitle=false;

$wgAllowDisplayTitle=true;

Error: Note: the Display name "{{{title}}}} "overrides the previously set display name Fanatikvoice (talk) 16:32, 12 December 2018 (UTC)

That can happen when you use {{DISPLAYTITLE:...}} more than once on a page. Cindy.cicalese (talk) 21:10, 12 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Automatic wiki page update

Hello,

I'm using the XML2Wiki-extension to display a table in my Wiki that is generated from an XML-file. The XML-file will be updated daily. The problem is that the Wiki-page doesn't update itself at the moment: When the XML-file changes it still shows the former data (from the former XML-file). The only way to make the changes visible is to edit the Wiki-page manually and then save it again.

Using this code:

<xml2wiki>

file = File:file.xml

style =table

</xml2wiki>

Any ideas how I can achieve an automatic update of my Wiki-page?

Thanks! Steffiso (talk) 11:15, 13 December 2018 (UTC)

See Extension:XML2Wiki#Options, editable option may meet your requirement. 星耀晨曦 (talk) 14:33, 13 December 2018 (UTC)
thanks for your reply! yeah, I tried this, but it didn't do anything. I added a manual "purge" now, so the user has to push a button in order to get the newest data. wonder if there is a better way to do it though. Steffiso (talk) 08:15, 14 December 2018 (UTC)
You can run a bot that regularly purges the page, something like pywikibot can be set to touch or purge a page through a cronjob. — billinghurst sDrewth 11:13, 14 December 2018 (UTC)

Wiki2HTML not working

I download and added Wiki2HTML in extension directory and added following line in LocalSettings.php

$wgNamespacesWithSubpages[NS_MAIN] = true;

#require_once "$IP/extensions/Html2Wiki/Html2Wiki.php";

Html2Wiki: REL1_31 2018-04-17T22:17:29

816b6eb


I get following error: mediawiki_1 | [Thu Dec 13 14:34:57.887909 2018] [php7:warn] [pid 61] [client 172.21.0.1:57712] PHP Warning: require_once(/opt/bitnami/mediawiki/extensions/Html2Wiki/Html2Wiki.php): failed to open stream: No such file or directory in /bitnami/mediawiki/LocalSettings.php on line 143, referer: https://localhost/index.php/Main_Page mediawiki_1 | [Thu Dec 13 14:34:57.888040 2018] [php7:error] [pid 61] [client 172.21.0.1:57712] PHP Fatal error: require_once(): Failed opening required '/opt/bitnami/mediawiki/extensions/Html2Wiki/Html2Wiki.php' (include_path='/opt/bitnami/mediawiki/vendor/pear/console_getopt:/opt/bitnami/mediawiki/vendor/pear/mail:/opt/bitnami/mediawiki/vendor/pear/mail_mime:/opt/bitnami/mediawiki/vendor/pear/mail_mime-decode:/opt/bitnami/mediawiki/vendor/pear/net_smtp:/opt/bitnami/mediawiki/vendor/pear/net_socket:/opt/bitnami/mediawiki/vendor/pear/pear-core-minimal/src:/opt/bitnami/mediawiki/vendor/pear/pear_exception:.:/opt/bitnami/php/lib/php') in /bitnami/mediawiki/LocalSettings.php on line 143, referer: https://localhost/index.php/Main_Page Paperlessnow (talk) 14:42, 13 December 2018 (UTC)

Please use wfLoadExtension( 'Html2Wiki' ); instead of require_once to load the extension. 星耀晨曦 (talk) 14:50, 13 December 2018 (UTC)
used that also same issue.
mediawiki_1  | [Thu Dec 13 17:10:30.386402 2018] [php7:error] [pid 75] [client 172.21.0.1:57880] PHP Fatal error:  Uncaught Exception: /opt/bitnami/mediawiki/extensions/Html2Wiki/extension.json does not exist! in /opt/bitnami/mediawiki/includes/registration/ExtensionRegistry.php:107\nStack trace:\n#0 /opt/bitnami/mediawiki/includes/GlobalFunctions.php(50): ExtensionRegistry->queue('/opt/bitnami/me...')\n#1 /bitnami/mediawiki/LocalSettings.php(144): wfLoadExtension('Html2Wiki')\n#2 /opt/bitnami/mediawiki/includes/Setup.php(94): require_once('/bitnami/mediaw...')\n#3 /opt/bitnami/mediawiki/includes/WebStart.php(88): require_once('/opt/bitnami/me...')\n#4 /opt/bitnami/mediawiki/index.php(39): require('/opt/bitnami/me...')\n#5 {main}\n  thrown in /opt/bitnami/mediawiki/includes/registration/ExtensionRegistry.php on line 107, referer: https://localhost/index.php/Main_Page
mediawiki_1  | 172.21.0.1 - - [13/Dec/2018:17:10:30 +0000] "GET /index.php/Main_Page HTTP/1.1" 500 - Paperlessnow (talk) 17:09, 13 December 2018 (UTC)
This may have two possibilities:
  1. Incomplete extension, should be re-download
  2. Web server without permission to read, give read right to the web server. 星耀晨曦 (talk) 17:15, 13 December 2018 (UTC)
I downloaded the latest version again and tried.
Same issue:
mediawiki_1  | [Thu Dec 13 17:28:17.830573 2018] [php7:error] [pid 66] [client 172.21.0.1:58176] PHP Fatal error:  Uncaught Exception: /opt/bitnami/mediawiki/extensions/Html2Wiki/extension.json does not exist! in /opt/bitnami/mediawiki/includes/registration/ExtensionRegistry.php:107\nStack trace:\n#0 /opt/bitnami/mediawiki/includes/GlobalFunctions.php(50): ExtensionRegistry->queue('/opt/bitnami/me...')\n#1 /bitnami/mediawiki/LocalSettings.php(144): wfLoadExtension('Html2Wiki')\n#2 /opt/bitnami/mediawiki/includes/Setup.php(94): require_once('/bitnami/mediaw...')\n#3 /opt/bitnami/mediawiki/includes/WebStart.php(88): require_once('/opt/bitnami/me...')\n#4 /opt/bitnami/mediawiki/index.php(39): require('/opt/bitnami/me...')\n#5 {main}\n  thrown in /opt/bitnami/mediawiki/includes/registration/ExtensionRegistry.php on line 107, referer: https://localhost/index.php/Special:RecentChanges
Other extensions are working. and I checked the permission as well. It has. Paperlessnow (talk) 17:29, 13 December 2018 (UTC)
Can you see the "extension.json" file in your Html2Wiki directory? What is the path to it? AhmadF.Cheema (talk) 18:29, 13 December 2018 (UTC)
../extensions/Html2Wiki/extension.json Paperlessnow (talk) 04:50, 14 December 2018 (UTC)
It seems that your web server does not have read access to this extension directory. 星耀晨曦 (talk) 05:16, 14 December 2018 (UTC)
I checked the file has read-write access for the current user i.e. me

Paperlessnow (talk) 05:22, 14 December 2018 (UTC)
Typically, the web server runs as a non-privileged user (e.g. apache or nginx). You should check if the user has permission to read. 星耀晨曦 (talk) 05:26, 14 December 2018 (UTC)
Web server is started by me on my local machine. and current user has read-write access.
I am missing something? Paperlessnow (talk) 05:28, 14 December 2018 (UTC)
This is started using container, by downloading and using docker-compose up command. Paperlessnow (talk) 05:29, 14 December 2018 (UTC)
and also am able to install other extensions like PdfHandler and WikiEditor. And it works properly and shows in Special:SpeacialPages under Version Paperlessnow (talk) 05:37, 14 December 2018 (UTC)

colored Wikitext

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 think we should have colored wikitext so that it is easier to understand.
12944qwerty (Talk | Contribs | Directory)

15:31, 13 December 2018 (UTC)
Try Extension:WikEd Ciencia Al Poder (talk) 16:17, 13 December 2018 (UTC)
Or also Extension:CodeMirror, although it can get really slow for large pages. AhmadF.Cheema (talk) 17:06, 13 December 2018 (UTC)
Yes, but whenever I try to integrate wikitext into my source userpages, it doesn't color itself.

12944qwerty (Talk | Contribs | Directory)

19:28, 13 December 2018 (UTC)
Do you want to see coloured wikitext in the editor or on the rendered pages?
For rendered pages, see Extension:SyntaxHighlight, although a wikitext specific lexer is not available but html and xml can be used instead. AhmadF.Cheema (talk) 00:37, 14 December 2018 (UTC)
I want to see it in the editor.

12944qwerty (Talk | Contribs | Directory)

22:38, 16 December 2018 (UTC)
So, Extension:CodeMirror doesn't work? You might need to click on the button with icon <figure-inline></figure-inline> to toggle syntax highlighting on/off. AhmadF.Cheema (talk) 11:53, 17 December 2018 (UTC)
No, I mean that the colored wikitext should be in the source editor in documentations of this wiki.

12944qwerty (Talk | Contribs | Directory)

15:12, 17 December 2018 (UTC)
Doesn't Extension:CodeMirror&action=edit show as "colored wikitext"? AhmadF.Cheema (talk) 15:31, 17 December 2018 (UTC)
No...

12944qwerty (Talk | Contribs | Directory)

17:15, 17 December 2018 (UTC)
Did you "click on the button with icon <figure-inline></figure-inline> to toggle syntax highlighting on/off"?
For the record by "colored wikitext", I mean highlighting as shown in File:Pride and codemirror.png. AhmadF.Cheema (talk) 20:09, 17 December 2018 (UTC)
There isn't a button...
And yes, I do want that 'colored wikitext'.

12944qwerty (Talk | Contribs | Directory)

03:33, 18 December 2018 (UTC)
There appears to be a problem at your end then.
Can you share a screenshot of the wikieditor toolbar that shows up on your device? AhmadF.Cheema (talk) 06:17, 18 December 2018 (UTC)
Oh, found it. It was in three bars. Didn't look there. Thanks!

12944qwerty (Talk | Contribs | Directory)

14:00, 18 December 2018 (UTC)
Hey, qwerty! :) Didn't expect to see you here lol, This is for questions about the media wiki software, not suggestions. Though I see what you are asking for, you want to see formatting in the editor itself. Though I don't think it is possible at the moment (don't quote me on that) VisualEditor is the closest to suggestion. Jakel181 (talk) 18:45, 17 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Groups emailconfirmed and Autoconfirmed users in createAndPromote?

Hi, I just installed MediaWiki for the first time, and I've locked it down so only emailconfirmed users can edit. Unfortunately my MediaWiki instance isn't successfully sending out emails yet.

I'm trying to run createAndPromote to get my first users into those groups, but here are the results:

$ php public_html/pera/maintenance/createAndPromote.php --emailconfirmed mike science

done.

$ php public_html/pera/maintenance/createAndPromote.php --custom-groups=emailconfirmed --force mike

emailconfirmed is not a valid group, ignoring!

Account exists and nothing to do.

Neither command added mike to the group. So MediaWiki lists these groups from the get-go--I didn't create them, but they are neither valid groups or custom groups? How do I get users into those groups?

THanks! Kenmayer (talk) 16:15, 13 December 2018 (UTC)

In latest version, emailconfirmed is no longer build-in group. You should define it manually. 星耀晨曦 (talk) 16:45, 13 December 2018 (UTC)
But it is already showing up as a group--so I still need to define it manually? And autoconfirmed users too?
Thank you Kenmayer (talk) 17:51, 13 December 2018 (UTC)
You can have a try. What is your MediaWiki version? 星耀晨曦 (talk) 00:18, 14 December 2018 (UTC)
My version is 1.31.1
At the very beginning I copied some code from the page Manual:User rights into my LocalSettings.php to make the site more secure:
#  User Permissions
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['user']['edit']           = false;
$wgGroupPermissions['emailconfirmed']['user'] = true;
# Make it so users with confirmed email addresses are in the group.
$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
# Hide group from user list.
$wgImplicitGroups[] = 'emailconfirmed';
# Finally, set it to true for the desired group.
$wgGroupPermissions['emailconfirmed']['edit'] = true;
$wgGroupPermissions['emailconfirmed']['createpage'] = true;
If I understand the documentation, this code should have created the group 'emailconfirmed' as a custom group, right? But it does not show up, even after I added the pages MediaWiki:Group-emailconfirmed, MediaWiki:Group-emailconfirmed-member, and
user isn't a right as you've used in your configuration script above ($wgGroupPermissions['emailconfirmed']['user']). See the manual page for setting group permissions. I doubt that it has much affect on what your permissions are being set to but the line likely didn't accomplish what you were wanting it to.

.digamma (talk) 22:30, 15 December 2019 (UTC)

Lost admin password

About 7-8 years ago, our company hired someone to install a MediaWiki-based intranet solution, which the team uses so communicate guidelines, checklists ... etc.

Now we need so change something / repair the system, for what we need the admin-password. But this mentioned "someone" lost it / can't find it and there is noone else, whos able to get to the server (btw: i'm marketing and no expert in these things, so please excuse, if i description skills are low-level).

Is there any way to reset the admin password?


Of course (!), first of all, we can and would proof, that we are the "owner"


Thank you very much for any of your ideas! Kind regard, Lars 87.191.222.188 (talk) 16:24, 13 December 2018 (UTC)

Someone with shell access to the server can:

Scribunto and Module: error

Hi, say me how to install the module? I installed Extension:Scribunto and created new page (Module:Nav) and paste code in page - error. How fix error?

[XBKlNF5XnLoOYTCBnKuW8QAAAVs] /index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:ProcessArgs&action=submit MWException from line 187 of /home/i1147188/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php: The lua binary (/home/i1147188/public_html/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.

Backtrace:

#0 /home/i1147188/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(92): Scribunto_LuaStandaloneInterpreter->__construct(Scribunto_LuaStandaloneEngine, array)

#1 /home/i1147188/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(121): Scribunto_LuaStandaloneEngine->newInterpreter()

#2 /home/i1147188/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(9): Scribunto_LuaEngine->load()

#3 /home/i1147188/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(224): Scribunto_LuaStandaloneEngine->load()

#4 /home/i1147188/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(906): Scribunto_LuaEngine->getInterpreter()

#5 /home/i1147188/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(894): Scribunto_LuaModule->getInitChunk()

#6 /home/i1147188/public_html/extensions/Scribunto/common/Base.php(195): Scribunto_LuaModule->validate()

#7 /home/i1147188/public_html/extensions/Scribunto/common/ScribuntoContent.php(30): ScribuntoEngineBase->validate(string, string)

#8 /home/i1147188/public_html/extensions/Scribunto/common/Hooks.php(371): ScribuntoContent->validate(Title)

#9 [internal function]: ScribuntoHooks::validateScript(RequestContext, ScribuntoContent, Status, string, User, boolean)

#10 /home/i1147188/public_html/includes/Hooks.php(177): call_user_func_array(string, array)

#11 /home/i1147188/public_html/includes/Hooks.php(205): Hooks::callHook(string, string, array, NULL)

#12 /home/i1147188/public_html/includes/EditPage.php(1688): Hooks::run(string, array)

#13 /home/i1147188/public_html/includes/EditPage.php(1987): EditPage->runPostMergeFilters(ScribuntoContent, Status, User)

#14 /home/i1147188/public_html/includes/EditPage.php(1514): EditPage->internalAttemptSave(NULL, boolean)

#15 /home/i1147188/public_html/includes/EditPage.php(667): EditPage->attemptSave(NULL)

#16 /home/i1147188/public_html/includes/actions/EditAction.php(60): EditPage->edit()

#17 /home/i1147188/public_html/includes/actions/SubmitAction.php(38): EditAction->show()

#18 /home/i1147188/public_html/includes/MediaWiki.php(499): SubmitAction->show()

#19 /home/i1147188/public_html/includes/MediaWiki.php(293): MediaWiki->performAction(Article, Title)

#20 /home/i1147188/public_html/includes/MediaWiki.php(851): MediaWiki->performRequest()

#21 /home/i1147188/public_html/includes/MediaWiki.php(523): MediaWiki->main()

#22 /home/i1147188/public_html/index.php(43): MediaWiki->run()

#23 {main} Fanatikvoice (talk) 18:38, 13 December 2018 (UTC)

It says that the lua binary is not executable. Have you tried allowing to execute that file by changing its permissions? Malyacko (talk) 19:33, 13 December 2018 (UTC)
I add in LocalSettings.php line:
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/path/to/binaries/lua5.1';
$wgScribuntoEngineConf['luastandalone']['errorFile'] = '/path/to/file.log';
and got another error when trying to create a page (Module: name) with the code:
Warning:  proc_open() has been disabled for security reasons in /home/i1147188/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php on line 244 Fanatikvoice (talk) 19:43, 13 December 2018 (UTC)
proc_open must be enabled to use lua Ciencia Al Poder (talk) 10:33, 14 December 2018 (UTC)
I include proc_open, and change way
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '$IP/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/';
$wgScribuntoEngineConf['luastandalone']['errorFile'] = '/home/i1147188/logs/file.log';
Print: Lua error: Internal error: Interpreter terminated with status 127. Fanatikvoice (talk) 14:04, 14 December 2018 (UTC)
Look at Extension talk:Scribunto/2014#h-Lua_scribunto_error_on_many_pages_(status_127)-2014-10-05T16:53:00.000Z. If you're on a shared host, this may not be a solution for you Ciencia Al Poder (talk) 18:36, 14 December 2018 (UTC)
I using shared host. I contacted support my hoster, thet told me is not possible. I so bad. Fanatikvoice (talk) 19:50, 14 December 2018 (UTC)
Maybe you can try to change the file mode of the file by Web.
<?php
$result = chmod('/home/i1147188/public_html/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua', 0755);
if ($result) {
    echo 'Success';
} else {
    echo 'Failure';
}
Upload this code and access it via the web. If successful, the page will display "Success". The premise of this way is that your web server is the owner of the file. 星耀晨曦 (talk) 11:38, 15 December 2018 (UTC)
File mode by Web is Success.
Tell me which file to put this code in so that it works correctly when I put the program code on the wiki pages. Fanatikvoice (talk) 12:51, 16 December 2018 (UTC)
This code is one-off and can be implemented with only one run. 星耀晨曦 (talk) 12:55, 16 December 2018 (UTC)
I need to make a Navigation template (as in Wikipedia). For example, I created a page, specified a category (category:title 1 // Category:title 2). And in the navigation template displayed in this page. Tell me how to do it? Fanatikvoice (talk) 13:43, 16 December 2018 (UTC)
Very badly....I thought it could be placed somewhere, and used to output two programs (code on lua). Fanatikvoice (talk) 13:29, 16 December 2018 (UTC)

Extension to embed the webpage to Mediawiki pages

Hi all,

which extension you are using to embed an web page/ display the pages from other website/portal into our installed mediawiki server?

Html2Wiki is not working for me. Same with iDisplay. Any one is using this feature of mediawiki using which extension? Paperlessnow (talk) 06:44, 14 December 2018 (UTC)

Why exactly is it not working for you? What are steps, problems, error messages? Which exact version of MediaWiki and which exact versions of the extensions you tried? Malyacko (talk) 10:30, 14 December 2018 (UTC)
Version
----MediaWiki 1.31.1
Html2Wiki: master 2018-12-12T22:06:02
Steps:
----I modified the LocalSettings.php and added following line:
$wgNamespacesWithSubpages[NS_MAIN] = true;
wfLoadExtension ( 'Html2Wiki' );
and restarted the mediawiki.
I get following error:
----mediawiki_1  | [Fri Dec 14 11:24:11.502716 2018] [php7:error] [pid 61] [client 172.21.0.1:39292] PHP Fatal error:  Uncaught Exception: /opt/bitnami/mediawiki/extensions/Html2Wiki/extension.json does not exist! in /opt/bitnami/mediawiki/includes/registration/ExtensionRegistry.php:107\nStack trace:\n#0 /opt/bitnami/mediawiki/includes/GlobalFunctions.php(50): ExtensionRegistry->queue('/opt/bitnami/me...')\n#1 /bitnami/mediawiki/LocalSettings.php(143): wfLoadExtension('Html2Wiki')\n#2 /opt/bitnami/mediawiki/includes/Setup.php(94): require_once('/bitnami/mediaw...')\n#3 /opt/bitnami/mediawiki/includes/WebStart.php(88): require_once('/opt/bitnami/me...')\n#4 /opt/bitnami/mediawiki/index.php(39): require('/opt/bitnami/me...')\n#5 {main}\n  thrown in /opt/bitnami/mediawiki/includes/registration/ExtensionRegistry.php on line 107, referer: https://localhost/index.php/Documents:IT
----I checked the permission
Setup is in local Mac machine
Am using docker-compose file and running it using
docker-compose up {command}
AM able to install 2 other extensions: PdfHandler and Wiki Editor successfully and it shows in SpecialPages: Version
I also checked the file permission. Docker, and so web server and file all have read and write access permission for current user i.e. me. Paperlessnow (talk) 11:27, 14 December 2018 (UTC)
I just took the latest version. ok I will try with stable version. Paperlessnow (talk) 11:46, 14 December 2018 (UTC)
Same issue:
mediawiki_1  | [Fri Dec 14 14:30:39.351347 2018] [php7:error] [pid 63] [client 172.30.0.1:46106] PHP Fatal error:  Uncaught Exception: /opt/bitnami/mediawiki/extensions/Html2Wiki/extension.json does not exist! in /opt/bitnami/mediawiki/includes/registration/ExtensionRegistry.php:107\nStack trace:\n#0 /opt/bitnami/mediawiki/includes/GlobalFunctions.php(50): ExtensionRegistry->queue('/opt/bitnami/me...')\n#1 /bitnami/mediawiki/LocalSettings.php(131): wfLoadExtension('Html2Wiki')\n#2 /opt/bitnami/mediawiki/includes/Setup.php(94): require_once('/bitnami/mediaw...')\n#3 /opt/bitnami/mediawiki/includes/WebStart.php(88): require_once('/opt/bitnami/me...')\n#4 /opt/bitnami/mediawiki/index.php(39): require('/opt/bitnami/me...')\n#5 {main}\n  thrown in /opt/bitnami/mediawiki/includes/registration/ExtensionRegistry.php on line 107, referer: https://localhost/index.php/Main_Page Paperlessnow (talk) 14:36, 14 December 2018 (UTC)
After cleaning everything and reinstalling mediawiki now I get following error:
Html2Wiki requires pandoc.
On Ubuntu systems this is as simple as
sudo apt-get install pandoc
Please see the installation instructions at https://www.mediawiki.org/wiki/Extension:Html2Wiki for more info.
I installed Pandoc, tidy still same error. Paperlessnow (talk) 18:28, 14 December 2018 (UTC)
$pandoc --version
pandoc 2.5
Compiled with pandoc-types 1.17.5.4, texmath 0.11.1.2, skylighting 0.7.4
Default user data directory: /Users/shashankduttajha/.pandoc
Copyright (C) 2006-2018 John MacFarlane
Web:  http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose. Paperlessnow (talk) 07:31, 15 December 2018 (UTC)
How do I install QueryPath ? Paperlessnow (talk) 18:43, 14 December 2018 (UTC)
What is QueryPath? How is QueryPath related to this problem? Why do you think you have to "install QueryPath"? Please provide context when asking questions. Malyacko (talk) 18:04, 16 December 2018 (UTC)
Extension:Html2Wiki in Dependencies section : Needs Tidy, QueryPath, Pandoc should be installed. I am able to install Tidy and Pandoc. But not getting QueryPath. Paperlessnow (talk) 07:12, 17 December 2018 (UTC)
If you are unable to install QueryPath you may have to explain why you are unable to install QueryPath. Nobody can help without knowing the problem and what you have tried and what did not work. Malyacko (talk) 23:46, 17 December 2018 (UTC)
I am not able to find the 'download' link to query path. Paperlessnow (talk) 20:30, 27 December 2018 (UTC)
Thanks! I've edited the page to link to Composer. Malyacko (talk) 21:08, 1 January 2019 (UTC)
You can use Extension:Widgets and create a widget that uses plain HTML iframe to embed the other webpage. Ciencia Al Poder (talk) 10:32, 14 December 2018 (UTC)
I have got iDisplay to work. But wanted to use Html2Wiki. Paperlessnow (talk) 07:12, 17 December 2018 (UTC)

Automatic "purge" (page refresh)

How do I add an automatic "purge" to my Wiki-page? So that it updates itself automatically (server-sided)? Thanks in advance! Steffiso (talk) 08:19, 14 December 2018 (UTC)

See purgebillinghurst sDrewth 11:10, 14 December 2018 (UTC)

Detected excessive memory usage (runjobs.php)

I know one is not supposed to run it without limiting parameters, but what if there is a high number of pending jobs? Is there any other way, i.e. increasing allocated memory to MW, and how would that be done?

Would a cron like this do the trick?

cd $MWROOT/maintenance && $PHP runJobs.php --maxjobs 2000 Spiros71 (talk) 08:29, 14 December 2018 (UTC)

There may be a memory leak with many jobs. You can limit the number of jobs as you've done here. Try and adjust the limit if you experience problems. Maybe you can lower it a bit, to 500 or 200 Ciencia Al Poder (talk) 10:31, 14 December 2018 (UTC)

WS page texterea#Textbox1 height covers most of the editing screen

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.


Current wmf version: 1.33.0-wmf.8 (2859494) 2018-12-12T19:34:02

I had the following setting in my https://en.wikisource.org/wiki/User:Ineuw/common.css which set the height of the Textbox1 area at 280 pixels. Lately, this window measures 475-500 pixels high, which covers the display space of the OCR text display, which in turn prevents me from editing the last paragraphs of the text. The setting no longer affects Textbox1, and the handle in the lower right corner of the frame used for resizing is also frozen/locked.

This happens only in Firefox 63+. I checked Chrome & Vivaldi and the Textbox1 height is correct.

textarea#wpTextbox1 {

font-size:1.1rem !important;
line-height:1.0 !important;
color:black !important;
background-color:#DCDCDC !important;
height: 280px !important;  //<------------------------

} — Ineuw talk 18:58, 14 December 2018 (UTC)

Resolved by replacing the height with
min-height: 250px !important;
max-height: 250px !important; — Ineuw talk 04:21, 16 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

parsoid - curl -L http://localhost:8142 curl: (7) Failed to connect to localhost port 8142: Connection refused

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.


So I believe that the reason i cannot get `parsoid` connecting correctly from the front end is it simply isn't running properly? Although it does return running.

$ service parsoid status > Active: active (exited) since Fri 2018-12-14 22:34:27 GMT; 8min ago


However, visualEditor actually works on new articles, but not old ones. However when I click save I get the following error

code: "apierror-visualeditor-docserver-http-error"

info: "(curl error: 7) Couldn't connect to server"


Here are my set up files


mwApis:

        - # This is the only required parameter,

          # the URL of you MediaWiki API endpoint.

          uri: 'http://www.gwart.co.uk/api.php'


$wgVirtualRestConfig['modules']['parsoid'] = array(

    // URL to the Parsoid instance

    // Use port 8142 if you use the Debian package

    'url' => 'http://localhost:8142',

    // Parsoid "domain", see below (optional)

    //'domain' => 'localhost',

    // Parsoid "prefix", see below (optional)

    //'prefix' => 'localhost'

);

Here you can see that neither `8000` nor `8152` are in use, but the service is still running.


Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name

tcp        0      0 127.0.0.1:27017         0.0.0.0:*               LISTEN      1015/mongod     

tcp        0      0 0.0.0.0:19370           0.0.0.0:*               LISTEN      27359/cron.php  

tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      5623/redis-server 1

tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      1019/memcached  

tcp        0      0 127.0.0.1:9100          0.0.0.0:*               LISTEN      1113/node_exporter

tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      2179/config.ru  

tcp        0      0 127.0.0.1:9168          0.0.0.0:*               LISTEN      1138/ruby       

tcp        0      0 127.0.0.1:8181          0.0.0.0:*               LISTEN      1114/gitlab-workhor

tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1029/sshd       

tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      1318/postgres   

tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      1651/master     

tcp        0      0 127.0.0.1:9121          0.0.0.0:*               LISTEN      1136/redis_exporter

tcp        0      0 127.0.0.1:9090          0.0.0.0:*               LISTEN      1137/prometheus

tcp        0      0 127.0.0.1:9187          0.0.0.0:*               LISTEN      1139/postgres_expor

tcp6       0      0 :::3306                 :::*                    LISTEN      1034/mysqld     

tcp6       0      0 :::80                   :::*                    LISTEN      1054/apache2   

tcp6       0      0 ::1:9168                :::*                    LISTEN      1138/ruby       

tcp6       0      0 :::21                   :::*                    LISTEN      1037/vsftpd     

tcp6       0      0 :::22                   :::*                    LISTEN      1029/sshd       

tcp6       0      0 ::1:5432                :::*                    LISTEN      1318/postgres   

tcp6       0      0 :::8153                 :::*                    LISTEN      1211/java       

tcp6       0      0 :::25                   :::*                    LISTEN      1651/master     

tcp6       0      0 :::8154                 :::*                    LISTEN      1211/java       

tcp6       0      0 :::443                  :::*                    LISTEN      1054/apache2 89.32.120.40 (talk) 23:00, 14 December 2018 (UTC)

If the status says "exited", this means it's not running anymore. That's probably a fault in the service configuration, that should mark the service as failed when it exits.
Look at the service error log Ciencia Al Poder (talk) 14:58, 16 December 2018 (UTC)
Finally got this working, thank :) Jamiehutber (talk) 21:49, 19 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Displaying files or images from external hard disk

I have a external hard disk with photos and videos.

what is the best way to display them in mediawiki.

I cannot upload thousands of them and arrange them using [File:image]. Paperlessnow (talk) 18:20, 15 December 2018 (UTC)

Images should be served from a web server. If you're hosting MediaWiki from the same server/computer where MediaWiki is installed, you can publish the folder where you have those images in the webserver itself. Then, you can simply put the URLs of those images on the pages directly (see Manual:$wgAllowExternalImages). Note that you won't be able to resize those images from MediaWiki, they will be displayed in its full size Ciencia Al Poder (talk) 14:56, 16 December 2018 (UTC)
How do I publish the folder in web server? folder may be local or external hard disk. Paperlessnow (talk) 07:21, 17 December 2018 (UTC)
It depends on what server software you're using. On Apache for example you would implement a virtual directory or alias: https://httpd.apache.org/docs/2.4/urlmapping.html#outside Ciencia Al Poder (talk) 10:24, 17 December 2018 (UTC)
I tried to figure out the place where to define the Alias in the file
$IP/apache/conf/httpd.conf within <IfModule alias_module>
I defined Alias "/foo" "https://www.google.com" and then I restarted the server. But when I try to access https://localhost.foo its not found.
I also tried to define alias liks
Alias "/foo" "/Absolute_LocalSystemPath_Dir"
And on trying to access a file https://localhost/foo/docker-compose.yaml where file is within $(Absolute_LocalSystemPath_Dir)/compose.yaml
It says no permission.
I defined
<Directory "/Absolute_LocalSystemPath_Dir"
Require All granted
</Directory>
still same issues.

Paperlessnow (talk) 08:39, 31 December 2018 (UTC)
https://localhost/foo Paperlessnow (talk) 09:02, 31 December 2018 (UTC)
Well, this is an apache problem. You either mispelled the directory, or there's some other configuration problem that you need to ask on an apache forum Ciencia Al Poder (talk) 10:26, 31 December 2018 (UTC)
I understand that. But I see some Mediawiki configurations in the same and some other files in same and other files in apache dir. So was wondering if this configuration is not getting overridden by that? Paperlessnow (talk) 10:31, 31 December 2018 (UTC)
will have to learn that part. Paperlessnow (talk) 17:00, 17 December 2018 (UTC)

Prevent Unconfirmed Users from Creating User Pages

I would like to deny all from creating their user pages until they have confirmed/validated their email address. Is this possible? I've searched and searched and have seen no mention of such a feature. We are getting tons of bots creating accounts and then creating their user pages with spam without ever having to confirm their email addresses. I've already disabled edit and page creation for all, but that doesn't prevent them from creating their user pages.

Here are the settings I've got so far:

$wgGroupPermissions['*']['edit'] = false;

$wgGroupPermissions['*']['createpage'] = false;

$wgGroupPermissions['*']['createtalk'] = false;

$wgGroupPermissions['*']['writeapi'] = false;


We're running the latest version of MediaWiki 1.31.1. AndalayBay (talk) 18:25, 15 December 2018 (UTC)

missing a required extension

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,

My formerly working MediaWiki is, this morning not working and instead, when I try to access it, gives me the following error. I'm running it on debian (4.18.0-3-amd64 #1 SMP Debian 4.18.20-2 (2018-11-23) x86_64 GNU/Linux)

MediaWiki 1.31 internal error

Installing some PHP extensions is required.

Required components

You are missing a required extension to PHP that MediaWiki requires to run. Please install:


php -m

[PHP Modules]

apc

apcu

bz2

calendar

Core

ctype

curl

date

dom

exif

fileinfo

filter

ftp

gd

gettext

hash

iconv

intl

json

libxml

mbstring

mysqli

mysqlnd

openssl

pcntl

pcre

PDO

pdo_mysql

Phar

posix

readline

Reflection

session

shmop

SimpleXML

sockets

sodium

SPL

standard

sysvmsg

sysvsem

sysvshm

tokenizer

wddx

wikidiff2

xml

xmlreader

xmlwriter

xsl

Zend OPcache

zip

zlib

[Zend Modules]

Zend OPcache 207.6.175.56 (talk) 18:33, 15 December 2018 (UTC)

PHP has an extension called "xml". This extension is not installed currently, but it is needed.
Make sure to install it! 88.130.53.252 (talk) 21:50, 15 December 2018 (UTC)
I fixed it... needed to do:
sudo a2dismod php7.2
sudo systemctl restart apache2.service 207.6.175.56 (talk) 23:21, 15 December 2018 (UTC)
Sorry, before that I also did:
sudo a2enmod php7.3
Probably would have been better had I done them the other way around... disabled 7.2 then enabled 7.3

207.6.175.56 (talk) 23:23, 15 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Setting Up And Need A Bit Of Help

New install. Normally, you’re given code to paste after completing the fields. I need the code to add to a Wordpress theme.

I see Main Page and Edit, but no code to paste. I’m planning on installing a theme. Each post will be information on the word they put in “Search”. So, if they type Boston, they’ll get the post listing Boston tv stations. That’s for a fictional search engine for tv stations.

My post will be Boston and will list tv stations plus information on location, anchors, etc.

My MediaWiki would search for the word and show all results. Theoretically, I need no code but for the “search” link. The sidebar I’d build and may list locations. That’s tremendous work so I’ll think on that. (Edit: it isn’t much work. I don’t need to link to the content. Put in categories and they appear on sidebar). General links are all I’d need for the rest.

Yes, I’m thinking as I type. All I need is the code to replace the Wordpress search. However, I’m looking at this and wondering why I need MediaWiki. Technically, Wordpress would find the content via search. But Wiki must offer something I wanted, a feature not in Wordpress. My mind is blank but I know I researched Wikis and this was best.

If I go without Wordpress, I’d need a theme, code, security and more. My way simplifies building my site.

Now that I’ve thought it through, I need just the MediaWiki code to replace the Wordpress search engine code. Or, I could hide that and do a sticky post with the code to search the MediaWiki database. A large post of “enter the location you wish to search for” with a link and search button, yeah, that’s it.

I’d need to know how to update my db for the searches. Will a simple “post” update the Wiki dB or must I do something else? If everything saves to the Wordpress db, do I need the MediaWiki dashboard?

Sorry for my mixed questions. I think as I type and figure out what needs to be done and how. Three questions but an explanation for each. But rather than “I need code” and y’all asking twenty questions.... PinkiPad (talk) 03:37, 16 December 2018 (UTC)

From what I understand, you want to use MediaWiki as a substitute of the search engine of a wordpress site.
MediaWiki is a content management system for easily editing pages. MediaWiki is not a search engine. Ciencia Al Poder (talk) 14:34, 16 December 2018 (UTC)
I’m thinking of a site like Wikipedia. It’s a CMS but a search engine, too. 75.133.181.60 (talk) 01:23, 19 December 2018 (UTC)
No, Wikipedia is not a search engine. It has an embedded search engine for its own content, but not for external content Ciencia Al Poder (talk) 10:32, 19 December 2018 (UTC)

My wiki appears without styles applied

I Installed MediWiki 1.27.5 on my Raspberry Pi and it seems to have been successful. However, the wiki appears without styles applied.

The "Manual:Errors and Symptoms" says that "If styles aren't applied even when browsing the wiki from the server where it's hosted, the problem may be a PHP error on the ResourceLoader load.php script. Try to browse the load.php file of your MediaWiki installation with your web browser and see if it displays any errors...".

I did that and get the following response:

Exception encountered, of type "Error"

[c84d1586d1c7753b221ecc6e] /mediawiki/load.php Error from line 41 of /var/lib/mediawiki/load.php: Call to undefined method MediaWiki\MediaWikiServices::getDBLoadBalancerFactory()

Backtrace:

#1 {main}

I have tried to find information about this error but have not been successful. Any ideas? Nasu67 (talk) 10:56, 16 December 2018 (UTC)

From the error message you provided, your installation may be orderless. Because MediaWiki\MediaWikiServices::getDBLoadBalancerFactory() introduced at MW 1.28 and load.php in MW 1.27 will not call this method. You should check the integrity of the installation. 星耀晨曦 (talk) 11:59, 16 December 2018 (UTC)
I am not an expert in Linux or MediaWiki but
apt list
gives me
mediawiki/now 1:1.27.5-1~deb9u1 all [installed,local]
So, how can it be that MediaWiki\MediaWikiServices::getDBLoadBalancerFactory( is called if it was introduced in 1.28? Nasu67 (talk) 12:24, 16 December 2018 (UTC)
I can't guarantee that MW installed via apt is complete. Instead, should be download from Download. 星耀晨曦 (talk) 12:30, 16 December 2018 (UTC)

I added following line in LocalSettings.php

$wgUrlProtocols[] = "file://";


adding following code in page

[file://Users/username/Documents/coorg.txt linktext]

The text appears as text but clicking on link is not opening the file.

I tried with 2,3 and 5 forward slashes. (as per suggestion in different places) still same effect.



Paperlessnow (talk) 11:43, 16 December 2018 (UTC)

Why open failed? Could you provide the error message? 星耀晨曦 (talk) 11:49, 16 December 2018 (UTC)
There are no error message. It will simply not work. without any message. Paperlessnow (talk) 06:26, 17 December 2018 (UTC)
See UNC links#Browser_compatibility. Some browsers limit the ability to open local/local network files from external web sites. Ciencia Al Poder (talk) 14:31, 16 December 2018 (UTC)
I am running the server in localhost. and trying to access the files in my local file system Paperlessnow (talk) 06:41, 17 December 2018 (UTC)
Seems that this won't work either. Only if you open a HTML file from a folder, but not when served by a web server. Ciencia Al Poder (talk) 10:02, 17 December 2018 (UTC)

Continuing combined API requests with multiple titles doesn't work

If I want to request information from a list, I have to pass back the continue parameters to get the full result if it is above the limit (an output-limited request). If I am requesting information about a set of titles, I have to pass the titles in chunks of 50 as that is the limit of titles (an input-limited request), and as such can ignore the continue parameter as all results can be returned in a single request (unless I for some reason set the limit to less than 50).

Both of these work great! The problem comes when I try to combine these types of requests (output-limited and input-limited).

Here's a simplified example request: (Realistically, I would be setting the rclimit to max, and passing 50 titles at a time.)

api.get({
    list: "recentchanges",
    rclimit: 1,
    prop: "info",
    titles: "MediaWiki",
});

Here I'm getting 1 rc entry at a time, and passing in a single title at a time. This first request returns fine, with the page info, the rc list, and a continue parameter to allow me to continue getting results from the rc list.

{
    "batchcomplete":"",
    "continue":{
        "rccontinue":"20181216114550|3877377",
        "continue":"-||info"
    },
    "query":{
        "pages":{
            "1":{
                "pageid":1,
                "ns":0,
                "title":"MediaWiki",
                "contentmodel":"wikitext",
                "pagelanguage":"en",
                "pagelanguagehtmlcode":"en",
                "pagelanguagedir":"ltr",
                "touched":"2018-12-13T14:51:19Z",
                "lastrevid":2934831,
                "length":180
            }
        },
        "recentchanges":[
            {
                "type":"log",
                "ns":2,
                "title":"User:2607:FB90:8367:88F9:0:47:5E99:B001",
                "pageid":0,
                "revid":0,
                "old_revid":0,
                "rcid":3877378,
                "timestamp":"2018-12-16T11:46:09Z"
            }
        ]
    }
}

I continue the request as well as pass in my next title, however now things aren't working... I only got the new rc list, my next page info is missing.

api.get({
    list: "recentchanges",
    rclimit: 1,
    prop: "info",
    titles: "Project:Support_desk",
    rccontinue: "20181216114550|3877377",
    continue: "-||info",
});
{
    "batchcomplete":"",
    "continue":{
        "rccontinue":"20181216114544|3877376",
        "continue":"-||info"
    },
    "query":{
        "recentchanges":[
            {
                "type":"edit",
                "ns":100,
                "title":"Manual:Installation guide/fr",
                "pageid":20078,
                "revid":3012214,
                "old_revid":3012212,
                "rcid":3877377,
                "timestamp":"2018-12-16T11:45:50Z"
            }
        ]
    }
}

This seems to be caused by the API assuming that if you've got all the results from the info request that means it should totally ignore it from now on, whereas this is not how input-limited requests work. You're limited to 50 titles at a time, so even if you've got all the output you still need to continue the request by inputting the next chunk of titles.

I can work around this by removing the "info" text from the continue parameter, however the docs say I shouldn't be modifying the continue query. Is there any other way to fix this other than separating the requests (which the docs also say to avoid doing)? 121.214.112.149 (talk) 12:04, 16 December 2018 (UTC)

Your second request should be exactly the same as the first request, plus the continue parameters. But you're adding also a titles: "Project:Support_desk" parameter, which is a whole different query and you can't rely on the same continue parameters. Ciencia Al Poder (talk) 14:29, 16 December 2018 (UTC)
So MW just doesn't support continuing input-limited queries at the same time as output-limited queries? 121.214.112.149 (talk) 07:58, 19 December 2018 (UTC)
The returned continue parameters should be used on the same input to continue the query (replacing the existing continue parameters). You can't change the input in a middle of a continuation query and expect it to return coherent results. Ciencia Al Poder (talk) 10:13, 19 December 2018 (UTC)

Sandbox Wiki

Is there a feasible alternative for testing templates and modules besides public wikies? The problem with public wikies is that everybody can see my testing and everything submitted there is stored for all eternity, takes up space and can be accessed by everybody (or "only" by all >= sysops if pseudo-deleted). I have brewed 100's of garbage revisions, "Module:Test" has been pseudo-deleted many times. Is there a better way to do? Is there maybe some public "Sandbox Wiki" that occasionally gets really cleared, or a feasible possibility to install a private "Sandbox Wiki" at home allowing to test without internet access? Taylor 49 (talk) 12:42, 16 December 2018 (UTC)

You better install a wiki on your own computer. Apparently you can even download a docker image that sets everything up and be ready to use. Ciencia Al Poder (talk) 14:22, 16 December 2018 (UTC)
Thanks. Where can I find such an image? Obviously the image should behave sufficiently similarly to public wikies (there are 1000's of settings and 1000's of extensions) and allow me to import a few pages from some public wiki. Taylor 49 (talk) 14:43, 16 December 2018 (UTC)
I've done a quick search in docker but I haven't found one with the most popular extensions. I don't know if the official mediawiki one includes at least the bundled ones. An alternative may be the one that has bluespice, which I think includes several extensions: https://hub.docker.com/r/knsit/bluespice Ciencia Al Poder (talk) 15:17, 16 December 2018 (UTC)
See also: https://stackoverflow.com/questions/49267591/how-to-best-add-extensions-when-using-official-docker-image-for-mediawiki Ciencia Al Poder (talk) 15:18, 16 December 2018 (UTC)

Css not allowing comments

Module:Citation/CS1/styles.css

I believe that this css file should not be a module, I have tried to move it but I'm unable to move it over to a mediwiki item.

Why would this css file be listed as a module and thus erroring?


http://www.gwart.co.uk/Module:Citation/CS1/styles.css Jamiehutber (talk) 20:05, 16 December 2018 (UTC)

It's fine for Module:Citation/CS1/styles.css to exist. The same code is erroring out on your Wiki, but not on Wikimedia probably because your version of Extension:Scribunto is older than Wikipedia's. Either you can start using the newer extension version, or you can copy an older iteration of the styles.css page. AhmadF.Cheema (talk) 20:37, 16 December 2018 (UTC)
Thanks very much for the reply. I actually installed Scribunto directly from the git repo. So I think its unlikely that it is an older version. But interesting idea that it is older.
Could I ask why the css file is being rendered with Lua? Jamiehutber (talk) 22:50, 19 December 2018 (UTC)
Compare the extension version at Wikipedia, with yours. Either your Special page isn't showing the correct version number or you are indeed using an older version.
In any case, for personal non-development use, it is recommended to use stable branches of MediaWiki instead of alpha branches as used on Wikimedia Foundation wikis.
Don't know enough about Lua to answer the CSS question. AhmadF.Cheema (talk) 04:38, 20 December 2018 (UTC)
Thanks again for your comments :)
In the end I had to use:
http://www.gwart.co.uk/Special:MovePage/MediaWiki:Common.css
I believe I had to install the `Cite` extension and then this would work.
I had actually tried this previously, but without the extension it didn't work. Jamiehutber (talk) 12:45, 21 December 2018 (UTC)

how do i sign in to other wikis

I don't how to sign in to other wikis SimpleNintendoFan (talk) 23:27, 16 December 2018 (UTC)

You would typically need to create an account first on that wiki. Depending on how it's configured, you may need to request the account creation externally (sending an email to someone, etc) Ciencia Al Poder (talk) 10:11, 17 December 2018 (UTC)

Calling REST API from mediawiki

I have a server with search capabilities.

I accept an input in mediawiki page and send REST request to my server and display the result in same media wiki page.

Can I do it?

How to do it? Paperlessnow (talk) 07:27, 17 December 2018 (UTC)

You can't do it, unless you develop a custom extension, or write a custom JavaScript code. Ciencia Al Poder (talk) 10:28, 17 December 2018 (UTC)

Device Eui for LoRa/GPS shield v95

I use the LoRa/GPS shield v95 for device register on TTN so i want know how to find device eui for that?? 103.11.119.220 (talk) 08:54, 17 December 2018 (UTC)

This is the support forum for the MediaWiki software project. Your question seems related to another project and we cannot help you. —TheDJ (Not WMF) (talkcontribs) 09:44, 17 December 2018 (UTC)

connecting to MariaDB db

I want to take backup so that can migrate the mediawiki to newer version. I understand following is db config and if I take backup of $wgDBname and fill the $wgDBname of newer mediawiki I will get back all my pages. Is this correct?

From LocalSettings.php

$wgDBtype = "mysql";

$wgDBserver = "mariadb";

$wgDBname = "bitnami_mediawiki";

$wgDBuser = "bn_mediawiki";

$wgDBpassword = "";


I am using sequel pro sql client to connect to MariaDB on port 3306. But it fails. reason?


Paperlessnow (talk) 12:21, 17 December 2018 (UTC)

The reason will be somewhere in the log file, which sequel pro sql client hopefully creates.
Reading your configuration, I guess that $wgDBserver might be set incorrectly.
If it was me, I would use mysqldump -u bn_mediawiki -p nitnami_mediawiki > backup.sql from the commandline to create a backup file. 2001:16B8:100D:A000:EC2B:15D7:58F1:FC38 (talk) 22:33, 17 December 2018 (UTC)
mysqldump is not installed on my Mac. and also not able to find way to install only mysqldump on Mac.
$wgDBserver says port no as 3308, I tried but didn't work, but the log of MariaDB on console says 3306. Paperlessnow (talk) 18:05, 18 December 2018 (UTC)
> $wgDBserver = "mariadb";
Your server is called mariadb, but that likely is not resolvable by sequel pro as you are running bitnami, so that hostname probably only exists within the vagrant instance.TheDJ (Not WMF) (talkcontribs) 07:39, 19 December 2018 (UTC)
So I cannot use any sql client to connect to media wiki db?
Best way to install mysqldump on Mac without installing complete db ? Paperlessnow (talk) 11:51, 20 December 2018 (UTC)
Sure you can. But that is a linux/vagrant sysadmin question and i'm not familiar enough with the bitnami config to accurately answer that question. —TheDJ (Not WMF) (talkcontribs) 14:01, 24 December 2018 (UTC)
Any help on how to connect?
Another thing I noticed is that in the base directory (and sub) I can find only mediawiki_mysql2postgres.pl i.e. related to posters sql. And no file related to MariaDB.
while in special page and version DB installed shows MariaDB.
How to know which DB is running? Paperlessnow (talk) 13:57, 29 December 2018 (UTC)
For documentation if
mysqldump -h hostname -u userid -p --default-character-set=whatever dbname > backup.sql
can connect to db. means it should be possible to connect it from outside as well.
Any help. Paperlessnow (talk) 14:07, 29 December 2018 (UTC)

Wikipages try to access old server IP

I moved my Wiki in my internal network from one server to another server with different IP. Restored the wiki backup to that new server and launched update.php in the maintenance directory.

The top page of the wiki shows-up correctly, but all subsequent pages have the wrong IP from the old server:

http://192.168.3.123/mediawiki/index.php/Elektronik

Checking the $wgServer in LocalSettings.php is pointing correctly to the new server:

$wgServer = "http://192.168.3.122";


Is there another cache that I need to clear?


Any help appreciated. 79.218.164.196 (talk) 14:33, 17 December 2018 (UTC)

If present, try setting false any cache settings in your LocalSettings.php, such as $wgUseFileCache. AhmadF.Cheema (talk) 15:34, 17 December 2018 (UTC)
Setting
 $wgUseFileCache = false;
did not change the behaviour. - What else could trigger the system accessing the old server IP address?
Any ideas, recommendations? 79.218.164.196 (talk) 18:43, 17 December 2018 (UTC)
Yeah! - Found the solution:
Links were entered with absolute and not relative addresses:
*[//192.168.1.1/mediawiki/index.php/Info Info]
I'll try to amend the links and it should work.

79.218.164.196 (talk) 18:46, 17 December 2018 (UTC)
MediaWiki has a special page that will help you in tracking those external links Look at Special:LinkSearch Ciencia Al Poder (talk) 10:26, 18 December 2018 (UTC)

mobile access is not working properly

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 added a new page in Main Page.

And added a external link in that page.

If I access this page from desktop browser it works. (server is on local Mac and use safari on same system)

When I access the same from mobile it says 'could not connect to server'.


Same page added for category works. Able to access from mobile.

I think I figured it out.

I added the page in the Main Page with url localhost. If I use IP address it works.

Can this IP address be externalised/ configurable. ?I mean any syntax to use which can avoid using localhost/ IP address for each page added in Main Page. Paperlessnow (talk) 16:59, 17 December 2018 (UTC)

External links are "absolute" and shouldn't change whether you're browsing them from mobile or desktop. If those are supposed to be links to pages of the wiki, use internal link syntax. If they're pages to the same server of the wiki (but outside of the wiki), you can use {{SERVER}} (see Help:Magic_words#Technical_metadata) in the URLs. Ciencia Al Poder (talk) 10:34, 18 December 2018 (UTC)
It did the trick. Paperlessnow (talk) 18:03, 18 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Group membership not persistent when logout

Hi group,


I recently configured a MediaWiki on IIS with PHP 7, and MySQL database. I activated AccessControl.php and Lockdown with the following lines in LocalSettings.php. I also created namespaces and groups to access those namespaces. Below is an example of a namespace I created, and the group attached to it so groups members can view and edit pages from this namepsace.


[code]

require_once ("extensions/LdapAuthentication/LdapAuthentication.php");

require_once ("extensions/AccessControl/AccessControl.php");

require_once ('includes/AuthPlugin.php');

wfLoadExtension( 'Lockdown' );

...

$wgExtraNamespaces[BTS_IT] = "IT";

$wgExtraNamespaces[BTS_IT_TALK] = "IT Talk";

$wgNamespaceProtection[BTS_IT] = array( 'editit' );

$wgGroupPermissions['ITmembers']['editit'] = true;

$wgGroupPermissions['sysop']['editit'] = true;

...

$wgNamespacePermissionLockdown[BTS_IT]['*'] = array('ITmembers','sysop');

[/code]


My issue is when a user logout, all his groups memberships are flushed. Only system groups like bureaucrat or sysop remains, but all membership of groups created via LocalSettings.php simply disappear upon logout. Is there a way I can make group membership persistent? Or maybe there is another way of creating groups and assigning users to them, so everything is persistent in time no matter the logouts?


Thank you, and have a wonderful day.


Ms. Eliane Champagne

echampagne@bellsolutionstech.ca

Montreal, Quebec, Canada 207.236.58.4 (talk) 18:36, 17 December 2018 (UTC)

Look at Extension:LDAP_Authentication/Configuration_Options#Synchronizing LDAP groups with MediaWiki security groups, maybe you should add those groups to $wgLDAPLocallyManagedGroups Ciencia Al Poder (talk) 10:30, 18 December 2018 (UTC)

Missing information

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.


This is in reference to the movie "A Country Christmas" :


A disgruntled politician starts a global campaign to ban Santa Claus, and St. Nick loses his magical powers. Two children learn of Santa's plight and help him regain his powers when he becomes stranded in their barn. Initial release: October 27, 2013

There is no reference to the movie on the website. I HOPE this gives you a head start 2600:387:9:3:0:0:0:67 (talk) 05:00, 18 December 2018 (UTC)

Not relevant to this forum. AhmadF.Cheema (talk) 06:15, 18 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Unified login problem after password change

Unified login doesn't work for me anymore after changing the password. I need to manually log in to some wikis (despite they being listed on the page Special:MergeAccount). Is there a way for me to fix this? Thank you so much! Aefensteorra (talk) 10:15, 18 December 2018 (UTC)

Please see and follow https://www.mediawiki.org/wiki/Manual:How_to_debug/Login_problems and report back here. Thanks! Malyacko (talk) 11:06, 18 December 2018 (UTC)

Error after update MW: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)

Specify for PHP processing which method to use in your control panel - Apache or CGI. If it is Apache, select CGI.
Hi, i update MW and moved the site from hosting to VDS. Now i get this is error: I moved the site from Warning: is_dir(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/www-root/data:.) in =/var/www/www-root/data/www/ih1344788.vds.myihor.ru/includes/libs/filebackend/fsfile/TempFSFile.php on line 90
How the fixed error? I've read about this PHP parameter and can't figure out what to do. Fanatikvoice (talk) 16:07, 18 December 2018 (UTC)
I still see the problem in MediaWiki 1.41.1
Bug report and some workaround at: https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2011/03#h-upload_tmp_dir_-_MediaWiki_ignores_php_specified_path-2011-03-02T17%3A17%3A00.000Z Narcis Garcia (talk) 08:52, 21 May 2024 (UTC)
Problem Fixed.
Results: Specify for PHP processing which method to use in your control panel - Apache or CGI. If it is Apache, select CGI. Fanatikvoice (talk) 19:50, 18 December 2018 (UTC)

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 don’t know what happened, but a lot of imsge links are broken and aren’t loading. I’m trying to view images of one of my favorite characters and the images aren’t working. Any time until they’re fixed? It’s very frustrating. 2601:246:5600:8197:DCEC:CC10:9C1B:2BE6 (talk) 19:41, 18 December 2018 (UTC)

If you need to know what page I’m trying to view, I’m trying to look at the images of Hinata Hyuga. All the images links are dead for some reason, the last time I came here to view these images several months ago they were fine. What happened? 2601:246:5600:8197:DCEC:CC10:9C1B:2BE6 (talk) 19:45, 18 December 2018 (UTC)
Anyone? 2601:246:5600:8197:DCEC:CC10:9C1B:2BE6 (talk) 20:02, 18 December 2018 (UTC)
This is the URL link where the images don’t load.
http://animebathscenewiki.com/index.php?title=Hinata_Hyuga Mkikoen 20:11, 18 December 2018 (UTC)
Apologies, but you are at the wrong support forum.😕
MediaWiki.org is not related with Hinata Hyuga - Anime Bath Scene Wiki. AhmadF.Cheema (talk) 03:26, 19 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Draft Namespace Functionality

I'm new to Mediawiki. I have been told Draft namespace is not working properly. How do I enable it if it is not by default. How to tell if it is? I'm not able to find any information to find out if working properly. Any help greatly appreciated. Wsu mrink (talk) 19:45, 18 December 2018 (UTC)

See Manual:Namespace#Built-in namespaces and Manual:Using custom namespaces. AhmadF.Cheema (talk) 03:29, 19 December 2018 (UTC)

PHPUnit tests failing from fresh installation of MediaWiki

I've tried in various different ways to make some form of CI work for MediaWiki but I cannot get all tests to run properly. All the CommandTests are pretty much failing all the time. Trying to match completely different values from input and output. Can someone please point me to a working example of what exactly to unit test before deploying and how to do that incorporated into some form of CI.


Currently I'm using GitLab with a repository which contains MediaWiki 1.31.1.

Using PHP 7.1 also tried PHP7.1-FPM, and PHP 7.2 variants

MySQL 5.6 and tried MariaDB

Running a Linux Alpine image.


Some output from the failed tests, and errors generated.


20) IPTCTest::testIPTCParseUTF8

Failed asserting that two arrays are equal.

--- Expected

+++ Actual

@@ @@

Array (

-    0 => '¼'

+    0 => ''

/builds/test-wiki/wiki/tests/phpunit/includes/media/IPTCTest.php:83

/builds/test-wiki/wiki/tests/phpunit/MediaWikiTestCase.php:421

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

21) JpegMetadataExtractorTest::testIso88591Comment

Failed asserting that two arrays are equal.

--- Expected

+++ Actual

@@ @@

Array (

-    0 => 'ISO-8859-1 JPEG Comment - ¼'

/builds/test-wiki/wiki/tests/phpunit/includes/media/JpegMetadataExtractorTest.php:46

/builds/test-wiki/wiki/tests/phpunit/MediaWikiTestCase.php:421

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

22) CommandTest::testExecute with data set "success status" ('true', 0, '')

Failed asserting that 127 is identical to 0.

/builds/test-wiki/wiki/tests/phpunit/includes/shell/CommandTest.php:31

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

23) CommandTest::testExecute with data set "failure status" ('false', 1, '')

Failed asserting that 127 is identical to 1.

/builds/test-wiki/wiki/tests/phpunit/includes/shell/CommandTest.php:31

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

24) CommandTest::testExecute with data set "output" (array('echo', '-n', 'x', '>', 'y'), 0, 'x > y')

Failed asserting that 127 is identical to 0.

/builds/test-wiki/wiki/tests/phpunit/includes/shell/CommandTest.php:31

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

25) CommandTest::testEnvironment

Failed asserting that two strings are identical.

--- Expected

+++ Actual

@@ @@

-'bar

-'

+''

/builds/test-wiki/wiki/tests/phpunit/includes/shell/CommandTest.php:51

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

26) CommandTest::testStdout

Failed asserting that two strings are equal.

--- Expected

+++ Actual

@@ @@

-'ThisIsStderr\n

+'timeout: can't execute '180': No such file or directory\n

/builds/test-wiki/wiki/tests/phpunit/includes/shell/CommandTest.php:64

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

27) CommandTest::testStdoutRedirection

Failed asserting that two strings are equal.

--- Expected

+++ Actual

@@ @@

-'ThisIsStderr\n

+'timeout: can't execute '180': No such file or directory\n

/builds/test-wiki/wiki/tests/phpunit/includes/shell/CommandTest.php:77

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

28) CommandTest::testOutput

Failed asserting that '' matches PCRE pattern "/^index.php$/m".

/builds/test-wiki/wiki/tests/phpunit/includes/shell/CommandTest.php:91

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

29) CommandTest::testT69870

Failed asserting that 0 matches expected 333333.

/builds/test-wiki/wiki/tests/phpunit/includes/shell/CommandTest.php:133

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

30) CommandTest::testLogStderr

Failed asserting that two strings are identical.

--- Expected

+++ Actual

@@ @@

-'timeout: can't execute '180': No such file or directory'

+'ThisIsStderr'

/builds/test-wiki/wiki/tests/phpunit/includes/shell/CommandTest.php:155

/builds/test-wiki/wiki/maintenance/doMaintenance.php:94

31) CommandTest::testInput

Failed asserting that two strings are identical.

--- Expected

+++ Actual

@@ @@

-'abc'

+''


Can I somehow safely exclude these tests? It feels weird that a repo that got published does not properly work out of the box. Rimbles (talk) 20:08, 18 December 2018 (UTC)

omitting a heading from the TOC

Is it possible to mark a heading to be either:

  • Omitted entirely fro the TOC
  • Not numbered in the TOC (example)

Currently even headings that are hidden with a <h2 class="onlymobile"></h2> tag are included in the TOC on desktop view.

Something in the form of: <h2 class="notoc">heading</h2> along with omitting the counter-increment from that class of h2?

I assume that something would need to be added to mediawiki:common.css since there's some counter working behind the scenes?

Any advice appreciated! T.Shafee(Evo﹠Evo)talk 01:00, 19 December 2018 (UTC)

Finding missing files

Is there a function or special page to find File:Pages where no file has been uploaded? Carchaias (talk) 08:17, 19 December 2018 (UTC)

Maybe Special:WantedFiles? AhmadF.Cheema (talk) 10:26, 19 December 2018 (UTC)
Special:WantedFiles will work if the file is in use on some page. However, File: pages created but without an uploaded file won't necessarily show there.
If you have access to the database, you can run this query:
select page_title from page where page_namespace = 6 and page_is_redirect = 0 and and not exists (select * from image where img_name = page_title);
This query explicitly excludes redirect pages (which normally won't have a file uploaded). Ciencia Al Poder (talk) 10:35, 19 December 2018 (UTC)
Thanks for the DB-query I'll try it. Nevertheless I was looking for some sollution inside the wiki. I've SMW on it and with some #ask query
{{#ask: [[Kategorie:Dokument]][[Datei:+]]|?=#|format=plainlist|template=Dateipfad_2|limit=2000|link=none}}
and Template:Dateipfad_2
*FILE : {{{1|}}}  URL : [{{filepath:{{PAGENAME:{{{1|}}} }} }}] {{#if:{{filepath:{{PAGENAME:{{{1|}}}}}}}|<div style="background-color:lightgreen;">File exists.</div>|<div style="background-color:tomato;">File missing.</div>}}
I found a solution. Not 100% clear as it gets very long lists and false-negatives for all files containing Ampersands (&) in their names, but helpfull. Carchaias (talk) 12:35, 19 December 2018 (UTC)

Error occurred: Error, Setup.php must be included from the file scope, after DefaultSettings.php

I've upgraded my old Wiki "Atlantisforschung.de" from V. 1.3 to 1.5, then I've made changes like described in the manual, and have upgraded to the newest version 1.31, and since them, there is an error on the browser site "http://www.atlantisforschung.de" like written above. What can I do to remove this error? I've using php 7.1. RolandHorn (talk) 08:53, 19 December 2018 (UTC)

When you upgarded, did you unpack the new files into a new directory, or the old one? Basically, the note mentioned at: Manual:Upgrading#Using a tarball package. AhmadF.Cheema (talk) 10:30, 19 December 2018 (UTC)
I've unpacked them in a *new* directory, only then I've put my images in this directory RolandHorn (talk) 12:45, 19 December 2018 (UTC)
The error is defined in Setup.php. The only potential solution, I could find is at: #Error, Setup.php must be included from the file scope, after DefaultSettings.php. AhmadF.Cheema (talk) 14:16, 19 December 2018 (UTC)
If I don't comment out line 22 in setup.php, thre will occur the error reporting: Fatal error: Uncaught Error: Call to undefined function wfProfileIn() in /www/htdocs/w018e8db/atlantisforschung.de/includes/Setup.php:22 Stack trace: #0 /www/htdocs/w018e8db/atlantisforschung.de/includes/WebStart.php(88): require_once() #1 /www/htdocs/w018e8db/atlantisforschung.de/index.php(40): require_once('/www/htdocs/w01...') #2 {main} thrown in /www/htdocs/w018e8db/atlantisforschung.de/includes/Setup.php on line 22. But why? RolandHorn (talk) 00:16, 20 December 2018 (UTC)
Now I've upload the Setup.exe ones more out of the new tarball-files, but now I get the error message "Fatal error: Uncaught Error: Call to a member function getCode() on null in /www/htdocs/w018e8db/atlantisforschung.de/includes/user/User.php:1737 Stack trace: #0 /www/htdocs/w018e8db/atlantisforschung.de/includes/user/User.php(5412): User::getDefaultOptions() #1 /www/htdocs/w018e8db/atlantisforschung.de/includes/user/User.php(3096): User->loadOptions() #2 /www/htdocs/w018e8db/atlantisforschung.de/includes/context/RequestContext.php(336): User->getOption('language') #3 /www/htdocs/w018e8db/atlantisforschung.de/includes/Message.php(380): RequestContext->getLanguage() #4 /www/htdocs/w018e8db/atlantisforschung.de/includes/Message.php(1290): Message->getLanguage() #5 /www/htdocs/w018e8db/atlantisforschung.de/includes/Message.php(842): Message->fetchMessage() #6 /www/htdocs/w018e8db/atlantisforschung.de/includes/Message.php(934): Message->toString('text') #7 /www/htdocs/w018e8db/atlantisforschung.de/includes/exception/MWExceptionRenderer.php(199): Message->text() #8 /www/htdocs/w018e8db/atlantisforschung.de/includes/exception/M in /www/htdocs/w018e8db/atlantisforschung.de/includes/user/User.php on line 1737" on my page http://www.atlantisforschung.de What can I do? RolandHorn (talk) 11:59, 27 December 2018 (UTC)

Brightning colors

Is it possibile to get a color brighter with percentage for ex: to write background:#00C000 and add to it that it should only be 50% of that color.

I what to get a page with several table when the border of the table are darker than the background, every table has it own color and I want that all the background should be the same percentage of the border


212.76.125.241 (talk) 09:45, 19 December 2018 (UTC)

Instead of Hex, use HSL colours.
Go to Colors Picker (w3schools), enter the hex value for your desired colour in the provided textbox, then choose the desired lightness from the column on the right. AhmadF.Cheema (talk) 10:20, 19 December 2018 (UTC)

VE doesn't load on custom skin

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 followed the instructions as posted on VisualEditor/Skin requirement both the current version and the ones in the history tab. After adding the three div's with their IDs to my skin, the problem persists; nothing happens when I either call the page with the ?veaction=edit parameter, or when I create a button doing essentially the same. The only clue I have is the class 've-not-available' being added to the page after it's loaded.


The VisualEditor works fine on the stock skins I have: Vector and Chameleon.


I'm using the following versions:

VisualEditor 0.1.0 (9da5996) 16 aug 2016 15:40

MediaWiki 1.27.1 (a52d35d)


My HTML structure looks as followed (note the added mw-content-text and content divs)


<div class="grid-x  grid-margin-x">

               <div id="content">

                   <div class="cell">

                       <div  class="contentbody" >

                           <div id="mw-content-text">

                           <?php

                           if( !$this->atHome) {

                               // do not display the HTML tag if the header is empty

                                   if ( $this->skinData->data['title'] != '' ) {

                                       echo '<h1 id="emmskin-pageheader" class="page-title">';

                                       $this->skinData->html( 'title' );

                                       echo '</h1>';

                                   }

                               }

                               //output the post-processed bodytext

                               echo $this->bodyTextHTML;

                           ?>

                           </div>

                       </div>

                   </div>

               </div>

           </div>


I've tried the following:

- Followed the instructions from the history pages of the Skin Requirements page, in which different names are used for the required divs

- Looking in the support section for someone with a similar problem

- Using the Vector/Chameleon skin HTML structure as inspiration, and trying to make everything in my skin look as close as possible.


I'm guessing this issue has something to do with either faulty configuration, or something lacking in my skin. I've found no clear way of debugging this so everything else I tried is largely trial-and-error to no avail. Marlonke (talk) 11:32, 19 December 2018 (UTC)

It was indeed faulty configuration. Through debugging (breaklining some of the VE scripts) I managed to find out that the custom skin wasn't seen by VE as a 'supported skin'. I remedied this by adding '$wgVisualEditorSupportedSkins ['mySkin'];' to LocalSettings.php Marlonke (talk) 10:13, 9 January 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

PHP warning

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.


Since upgrading to MW 1.31, the error log is full of warnings like:

[Wed Dec 19 15:36:45.257185 2018] [php7:warn] [pid 29460] [client 95.208.211.11:49862] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/mediawiki/includes/api/ApiQueryBase.php on line 267, referer: https://www.perrypedia.proc.org/wiki/...

Should be corrected somehow. It is, of course, a minor issue. AnonymusGdpr (talk) 14:56, 19 December 2018 (UTC)

Mistake. Sorry. AnonymusGdpr (talk) 14:58, 19 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Displaying Thumbnails for MP3s

How can we display thumbnails for mp3 files in MediaWiki?


When I set up my site out-of-the-box, the mp3 files in a category view just had blank white reectangles. I added the extension MP3MediaHandler and the images are now white rectangles with a poorly formated overlay of a mp3 player (see screenshot here)), but Wikimedia Commons has a pleasant look (screenshot here) and direct link here https://commons.wikimedia.org/wiki/Category:MP3_files_of_music


It would be wonderful if MediaWiki could generate a thumbnail from the embedded ID3 tag cover image, as Windows and Mac OS do. Kenmayer (talk) 15:59, 19 December 2018 (UTC)

The Wikimedia method probably uses Extension:TimedMediaHandler instead of MP3MediaHandler. AhmadF.Cheema (talk) 16:06, 19 December 2018 (UTC)

Extension:Translate

Hi, i installed Extension:Translate im my Wiki. I Mark page for translated - auto add tag <trаnslate> and understand how to start translating. I have no such interface as here.

There is no marked page for translation to another language on the Special:Translate page.

Def lang - ru

translate - en

Help me pls. Fanatikvoice (talk) 16:01, 19 December 2018 (UTC)

I stoped ending Step3 (Help:Extension:Translate/Page_translation_example) - i mark page, save edit, back on page - is not link Translate this Page Fanatikvoice (talk) 14:32, 20 December 2018 (UTC)

Filter for Account Creation

Hello. Does there exist a way to filter account creation like what Extension:AbuseFilter does for edits?

In particular the ability to block account creation (and IP address) if the username or email fields match a regex pattern would be desirable.

Thanks. VOIstri (talk) 18:17, 19 December 2018 (UTC)

No CSS for logged users.

Hello,

I'm creating my own skin using the ExampleTemplate and at one point, I guess after adding some CSS (copy paste) from the internet, all skins for me stopped working.

When I logout, my page looks normal again. I tested it on Chrome and MS Edge and it's the same on both.

When not logged in = All works fine. [2]

When logged in = My page has no CSS at all. [3] I also changed skins in Appearance and results are the same.

I see the whole text and basic CSS from the browser, but no CSS from ".less" files.

Did I just manage to break the less compiler only for logged in users ?

MediaWiki 1.31.1
PHP 7.0.32 (fpm-fcgi)
MySQL 5.6.39-log
ICU 52.1

G1K777 (talk) 01:47, 20 December 2018 (UTC)

You can find some debugging instructions at Manual:Errors and symptoms#The wiki appears without styles applied and images are missing Ciencia Al Poder (talk) 10:14, 20 December 2018 (UTC)

Installation MediaWiki Fehler/Warning

Wir haben die neuste Version von Media Wiki (1.3 oder sowas) alle erforderlichen Programme/ PHP etc. auf Windows Server 2016 installiert. Jetzt sind wir bei der Installation am ersten Schritt hängen geblieben er meint das die Datei php.ini verloren gegangen sein. Dieses scheint ein bekanntes Problem zu sein, gibt aber kaum Lösungsansätze bzw kann ich keine finden. Habt ihr Ideen? Danke im voraus! Phil2706 (talk) 11:39, 20 December 2018 (UTC)

What makes you think this is a known problem? What is the exact and complete error message? Where is that error message shown?
Warum scheint dies "ein bekanntes Problem" zu sein? Was ist die genaue und komplette Fehlermeldung? Wo wird diese angezeigt? Malyacko (talk) 12:56, 20 December 2018 (UTC)
Von dem „Fehler“/Problem haben wir schonmal etwas gelesen, kamen mit den Lösungsansätzen aber nicht weiter.
Angezeigt wird die Fehlermeldung nach dem ersten Schritt der Installation (MediaWiki 1.31.1) im WebBrowser (InternetExplorer), sprich nach Eingabe der Sprachen und bestätigen dieser mit „Weiter->“
Die Fehlermeldung:
<Die Sitzungsdaten sind verloren gegangen! Die Datei php.ini muss geprüft und es muss dabei sichergestellt werden, dass der Parameter session.safe_path auf das richtige Verzeichnis verweist.>
Darüber hinaus entsteht dort drüber eine Liste von ausgeführten Aktionen welche ganz unten zwei mal anstatt Notice-> Warning anzeigt.
Folgende Meldung ist zwei mal untereinander aufgeführt:
<Warning: Cannot modify header information - headers already sent by (output started at C:\inetpup\wwwroot\mediawiki\includes\cache\localisation\LocalisationCache.php:531) in C:\inetpup\wwwroot\mediawiki\includes\WebResponse.php on line 46> Phil2706 (talk) 20:56, 20 December 2018 (UTC)
Meistens ist nicht die letzte, sondern die erste Fehlermeldung diejenige, die man beheben muss. Der Rest sind dann oft Folgefehler - so bei den Header-Informationen, die nicht mehr geändert werden können.
Die Datei php.ini ist vorhanden, aber eine Variable muss anders eingestellt werden: Der Wert für session.safe_path muss auf das passende Verzeichnis zeigen. 2001:16B8:10D4:B000:844B:EC90:E656:F2B5 (talk) 21:31, 20 December 2018 (UTC)
Achso ok, danke.
Auf welches Verzeichnis muss die session.safe_path denn zeigen? Ist die in der session.safe_path in der php.ini?
Habe gerade entdeckt dass am Anfang der Aufzählung noch zwei mal Warning auftaucht.
Hier die beiden Fehlermeldungen:
Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue2“ in C:\inetpub\wwwroot\mediawiki\includes\json\FormatJson.php
Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue2“ in C:\inetpub\wwwroot\mediawiki\languages\LanguageConverter.php
Was kann das sein?
Ich danke Ihnen/ dir jetzt schon einmal im Vorraus. Phil2706 (talk) 13:05, 21 December 2018 (UTC)
Siehe Talk:Compatibility/Flow export#h-PHP_7.3_warnings-2018-11-03T15:20:00.000Z und T206988. In master ist das Problem bereits behoben, siehe https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/454852/. 2001:16B8:1075:6400:204C:59FF:C5B7:7E42 (talk) 23:54, 21 December 2018 (UTC)

Inserts not happening immediately in the database

We have a module, where we perform 1600/1700 write operations in mediawiki. This for loops shows few pages immediately, but for other pages, it appears almost after 2-3 hours. The for loop shows it has send the write request for pages by using doeditcontent function but the write operations always happen after 3-4 hours. 1.186.37.106 (talk) 12:52, 20 December 2018 (UTC)

Bearbeitung schlägt jeweils fehl

Hallo,

ich habe 2 Mediawikis auf einem Server am laufen. ("wiki1.xyz.com" / "wiki2.xyz.com")

Bei "wiki1" kann ich die Bearbeitung ohne Probleme ausführen. Bei "wiki2" erscheint jeweils folgenden Fehlermeldung:

"apierror-visualeditor-docserver-http: HTTP 401" soll der Vorgang erneut durchgeführt werden"


Kennt jemand dieses Problem?


Die Quelltext Bearbeitung funktioniert jedoch einwandfrei. 193.135.130.42 (talk) 15:18, 20 December 2018 (UTC)

i changed localSettings_wiki2.php file.
now i have the same "parsoid config" ('domain' setup) in the localSettings_wiki1.php file and localSettings_wiki2.
No more error.
But when i will edit a page, it takes a random page of "wiki1" LP371906 (talk) 07:19, 21 December 2018 (UTC)

Quick way to get the Licensing structure into a new 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.


My file upload dialog had no choices for License Type, so I consulted the help here and copied the page MediaWiki:Licenses onto my wiki. Then I saw that I needed to add a template for each license, such as Template:Unknown copyright. So I copied that template into my wiki. That failed because I didn't have Template:Mbox or Template:Documentation. So I copied those over, but they have still MORE dependencies.


Instead of copying the entire MediaWiki site page by page, I figure there must be an easy way to set this up. Is there?

Thanks! Kenmayer (talk) 15:31, 20 December 2018 (UTC)

Use Special:Export, enter the template names you want to use, check Include templates, click Export. Then import the exported XML file into your Wiki, using its Special:Import page.
For details, see Manual:Importing Wikipedia infoboxes tutorial. AhmadF.Cheema (talk) 15:52, 20 December 2018 (UTC)
Thank you--very helpful! Kenmayer (talk) 16:12, 20 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Narendra damodardas modi

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.


sir,

Current prime minister could not have valid education ,eventhough fake messages,fake degrees with respect to education,finance and social stands so i ca not favor incorrect or fake information

I fail to understand as where my father during there service with western railway they were often very fond in attaining there ordely duties at vadnagar railway hospital and this modi have tea stall at vadnagar railway station. 117.228.52.125 (talk) 04:39, 21 December 2018 (UTC)

Wrong support forum?😕 AhmadF.Cheema (talk) 05:21, 21 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Importing of a template 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.


Hi, I've imported a couple of templates from wikipedia. But they give messy output. When I visit the page it is also different from the wikipedia one:

For example:

https://en.wikipedia.org/wiki/Template:Number_table_sorting

https://www.boutiquebluray.com/wiki/Template:Number_table_sorting

https://www.boutiquebluray.com/wiki/Special:Version


The source is the same. What am I missing? Should I import more templates? Or change a certain setting? Holsheimer (talk) 08:14, 21 December 2018 (UTC)

I found out the Parser Functions was installed but not used in localSettings. Holsheimer (talk) 18:32, 23 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

PHP 7.3 Warning in ..LanguageConverter.php on line 773

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 use MEdiawiki 1.31.1


Windows 7 64-Bit:

-----------------------

64-Bit

----------------------

httpd-2.4.37-win64-VC15

mediawiki-1.31.1

php-7.3.0-Win32-VC15-x64

----------[Apache error.log]----------

[Fri Dec 21 10:01:41.925640 2018] [php7:warn] [pid 3284:tid 780] [client xx.xx.xx.xx:50340] PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\\Program Files\\Apache24\\htdocs\\AERUS\\wiki\\languages\\LanguageConverter.php on line 773, referer: http://xx.xx.xx.xx/wiki/index.php/Hauptseite

----------[Apache error.log]----------

Just Setup a empty Wiki. Found this Warnung in Apache24 error.log. 213.61.101.146 (talk) 09:47, 21 December 2018 (UTC)

Issue will be resolved in a future MediaWiki 1.31.2 (if it ever gets released). Already merged on the 1.31 branch of git. See phab:T200595 Ciencia Al Poder (talk) 10:22, 21 December 2018 (UTC)
And now I have thes also.
I have no formatting anymore. Everything on the left. Mansaylon (talk) 13:18, 22 April 2020 (UTC)
Upgrade to the latest 1.31 release or newer, where it's already fixed. Ciencia Al Poder (talk) 18:51, 22 April 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

XML import not populating categories

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 exporting a .xml file from an existing wiki of all pages under a category, let's say 100 pages in Category:TestCat. All the pages do contain the [[Category:TestCat]] tag. The export is fine and the file looks good. When I import into my new install, the import is successful, the pages are all listed in the list of ALL pages, and all are fully accessible and correct, they also show the Categorty:TestCat category tag properly, and in blue (not red), BUT they are not listed on the category page itself for "TestCat". After import, if I click the category tag on an imported page, which is blue, it shows me there are 0 things in that category.

I have tried creating the category prior to import, and using all options in the import -> 'upload file' panel, and using the runJobs.php script, none of which have any impact.

However, after import, if I go to the list of ALL pages, select an imported page, and then Edit -> make no changes -> Save, THEN it begins to appear on the "TestCat" category page as it should. I have too many pages to import to open/save each one individually however. (Can I do this in the db or script this?)

I haven't found anything in documentation about this issue, can anyone address either why this is happening or how to correctly do this import of pages under a category such that they actually populate that category without manual edit/save? 216.92.130.85 (talk) 09:50, 21 December 2018 (UTC)

Categories are tracked in a background job called the Manual:Job queue. Depending on your setup, it may take a while to update, if it runs on page load, or you may need to execute runJobs.php to speed it up. Ciencia Al Poder (talk) 10:19, 21 December 2018 (UTC)
I've resolved this. Watching the db tables, the problem is clearly that when you import my XML, the category tags are going into the old_text column of the text table -- as pure text. They are not being parsed in any sense, which makes sense.
Running /maintenance/refreshLinks.php fixes this. This doesn't appear to be documented in the Import documentation. 216.92.130.85 (talk) 10:48, 21 December 2018 (UTC)
runJobs.php does not fix this. 216.92.130.85 (talk) 10:49, 21 December 2018 (UTC)
This is not true. Importing pages causes them to be reparsed, and when parsed they generate the categories. This is done in the job queue. Maybe your setup causes those jobs to fail, or not being inserted at all. This is often caused by buggy extensions. However, refreshLinks.php would force reparsing the page, which should "fix" this. If you ever know what's the root cause of the problem, feel free to reopen this. Ciencia Al Poder (talk) 16:34, 21 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Create subpage under teampage

I have tried to create this page (https://lte-wiki.rnd.ki.sw.ericsson.se/wiki/Teampage_XFT-LI-ACME/How_to_add_new_nr_mcs_counters_to_earlang) for XFT-Li-ACME team. Unfortunately, I get this error " You do not have permission to create this page, for the following reason: ⧼Titleblacklist-teampage⧽ " and it same for my team members as well. They cannot create subpage for ACME team page. What can it be the problem ? 192.176.1.92 (talk) 12:24, 21 December 2018 (UTC)

The title of the proposed page is probably prohibited from creation by Extension:TitleBlacklist.
Temporarily disable the extension and see if it helps. AhmadF.Cheema (talk) 14:14, 21 December 2018 (UTC)
Hi, I cannot do that. Because, I am not owner of LTE-wiki. 192.176.1.92 (talk) 15:38, 21 December 2018 (UTC)
Then, can you contact them?
Otherwise, the only options that you have is to change the title, or a much less reliable way is to increase your edit count on the Wiki and hope that the Wiki admin included group autoconfirmed and further hope that the group was made exempt form TitleBlacklist restrictions. AhmadF.Cheema (talk) 18:05, 21 December 2018 (UTC)

PHP 7.3 Class 'FormatJson' not found

Some error using

Using PHP 7.3 and Mediawiki 1.13.1

http://xx.xx.xx.xx/wiki/load.php?debug=false&lang=de&modules=startup&only=scripts&skin=vector



Error from line 689 of C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\exception\MWExceptionHandler.php: Class 'FormatJson' not found

Backtrace:

#0 C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\exception\MWExceptionHandler.php(216): MWExceptionHandler::logError(ErrorException, string, string)

#1 C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\AutoLoader.php(109): MWExceptionHandler::handleError(integer, string, string, integer, array)

#2 C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\AutoLoader.php(109): require()

#3 [internal function]: AutoLoader::autoload(string)

#4 C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\resourceloader\ResourceLoader.php(141): spl_autoload_call(string)

#5 C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\resourceloader\ResourceLoaderStartUpModule.php(440): ResourceLoader->preloadModuleInfo(array, DerivativeResourceLoaderContext)

#6 C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\resourceloader\ResourceLoaderStartUpModule.php(422): ResourceLoaderStartUpModule->getAllModuleHashes(DerivativeResourceLoaderContext)

#7 C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\resourceloader\ResourceLoaderModule.php(831): ResourceLoaderStartUpModule->getDefinitionSummary(DerivativeResourceLoaderContext)

#8 C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\resourceloader\ResourceLoader.php(665): ResourceLoaderModule->getVersionHash(DerivativeResourceLoaderContext)

#9 [internal function]: ResourceLoader->{closure}(string)

#10 C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\resourceloader\ResourceLoader.php(678): array_map(Closure, array)

#11 C:\Program Files\Apache24\htdocs\AERUS\wiki\includes\resourceloader\ResourceLoader.php(759): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)

#12 C:\Program Files\Apache24\htdocs\AERUS\wiki\load.php(51): ResourceLoader->respond(ResourceLoaderContext)

#13 {main} 213.61.101.146 (talk) 13:12, 21 December 2018 (UTC)

Is this a fresh installation? Or an upgrade? What happened before? Malyacko (talk) 19:58, 21 December 2018 (UTC)
This is a fresh and new installation. Only one little "Hello World" home page exists 93.239.120.76 (talk) 08:22, 28 December 2018 (UTC)
I guess you meant "1.31" instead of "1.13", when you mentioned the version number. ;-)
In that case, have a look at T206988! Basically, the next release of version 1.31 should be compatible with PHP 7.3. Should the FormatJson error not be fixed yet, please open a new task in Phabricator so that someone can have a look! 2001:16B8:1050:6300:948C:DD6A:1403:6C29 (talk) 10:38, 28 December 2018 (UTC)
Sorry for the necro-post, but I'm supporting older versions of MediaWiki and had this error on upgrading a MW 1.28 install from PHP 5.6 to 7.4. With a bit of tracing, I discovered that the problem was in FormatJson.php->stripComments(). PHP 7.4 didn't like the "if ($inString) { continue; }" construct.
Commenting out the continue line enabled it to recognize FormatJson as a legitimate class once again. Ironically, the line is completely unnecessary, as the code follows the same code path either way. Robin Hood  (talk) 02:52, 24 July 2022 (UTC)
Thank you so much, the FormatJSON.php worked! 47.19.150.252 (talk) 15:08, 14 February 2023 (UTC)
I had the same problem. I replaced that specific "continue;" with a "continue 2;" in the file ./includes/json/FormatJson.php ValerioBoz-WMCH (talk) 16:35, 8 February 2024 (UTC)

ERR_CONNECTION_RESET trying updating mediawiki webpage

Hi people,


When i try to update a wikipedia page, i receive a reset error.


1- First of all, I enter at my wikipedia, for example my host localhost:

http://nagios/wiki/index.php/localhost


2- Next, edit webpage introducing for example "abc":

http://nagios/wiki/index.php?title=localhost&action=edit


3- Finally, pressing "save" button i wait 20 seconds or more and i get "ERR_CONNECTION_RESET"

http://nagios/wiki/index.php?title=localhost&action=submit


Any idea ?


Thanks



46.172.235.175 (talk) 14:27, 21 December 2018 (UTC)

That looks like a MediaWiki page, not a Wikipedia page. :) What do your webserver logs say? Malyacko (talk) 19:56, 21 December 2018 (UTC)
Hi Malyacko,
Yes sorry, I wanted to say MediaWiki :P
Webserver logs say anything:
- /var/log/httpd/ssl_error_log
- /var/log/httpd/access_log
- /var/log/httpd/error_log
- /var/log/httpd/ssl_access_log
- /var/log/httpd/ssl_request_log
I think debug level is not active, I tried to enable it but i'm not able. Can you help me on this debug ?
Thanks 46.172.235.175 (talk) 08:11, 2 January 2019 (UTC)
Set up a debug log as explained in Manual:How to debug. Apparently, there's something during save that causes a long delay, and somewhere in your server (web server or PHP) has a timeout that closes the connection after 20 seconds.
In the debug log you may be able to see in what step the process is taking the most time.
Also, try to save a simple page, or a new page, with only "abc", and see if that works Ciencia Al Poder (talk) 10:31, 2 January 2019 (UTC)
Hi once again,
I tried this debug manual some days ago and nothing appear in weblog.
Also I tried to update page with simple text and extended text and both test failed.
Finally I tried to upgrade mediawiki and fails too.
Something interesting is that when i write "abc" for example, i click on "show changes" rather than "save" and with this option fails too. So maybe there are a problem charging the page (privileges ?).
These are my file logs:
-rw-------. 1 root   root           0 Dec 19 03:32 boot.log
-rw-------  1 root   utmp           0 Jan  1 03:37 btmp
-rw-------  1 root   root    11154997 Jan  3 09:14 cron
-rw-r--r--  1 root   root       88447 Dec 18 12:53 dmesg
drwxr-x---  2 exim   exim          22 Nov 20 14:56 exim
-rw-r--r--. 1 root   root           0 Nov  6 15:44 firewalld
-rw-------. 1 root   root        2609 Dec 18 12:33 grubby
-rw-r--r--. 1 root   root         489 Dec 18 12:32 grubby_prune_debug
drwx------. 2 root   root        4096 Dec 30 03:06 httpd <-- error_log
-rw-r--r--. 1 root   root      292584 Jan  3 09:12 lastlog
-rw-------  1 root   root     2941047 Jan  3 09:14 maillog
drwxr-x---. 2 mysql  mysql         52 Nov 19 14:13 mariadb
-rw-------  1 root   root    44142978 Jan  3 09:14 messages
drwxr-xr-x. 2 ntp    ntp            6 Apr 13  2018 ntpstats
drwxr-xr-x. 2 root   root           6 Nov  6 15:35 rhsm
drwxr-xr-x. 2 root   root        4096 Jan  3 00:00 sa
-rw-------  1 root   root    31891619 Jan  3 09:14 secure
-rw-------  1 root   root           0 Dec 30 03:06 spooler
-rw-------. 1 root   root           0 Nov  6 15:30 tallylog
drwxr-xr-x. 2 root   root          23 Nov  5 02:23 tuned
-rw-rw-r--. 1 root   utmp       96384 Jan  3 09:12 wtmp
Thanks 46.172.241.125 (talk) 08:32, 3 January 2019 (UTC)
Open the developer console of your browser (hit the F12 key) and look the URL where it's pointing, and see if it's correct (maybe your $wgServer is pointing to localhost, or some IP, port, etc that's not accessible from your browser...).
If the URL is correct, problem may be with PHP itself. A connection reset error usually means the PHP engine crashes, maybe because it's buggy (something is not well configured, or has some incompatibility on your system), or because it has some faulty extension installed (usually a caching extension like apc or similar are the most common problems).
On the webserver logs, or PHP logs, there should be traces of the error, usually a segmentation fault error. Ciencia Al Poder (talk) 10:36, 3 January 2019 (UTC)
Checking F12 key it looks fine.
I will try to debug php behavior to find some clue.
Thanks everybody :) 46.172.241.125 (talk) 10:34, 4 January 2019 (UTC)
did you find a solution? 187.188.188.14 (talk) 05:56, 15 January 2020 (UTC)
The solution for segmentation faults is usually to remove buggy php extensions from php.ini, usually those related with caching. Sometimes, an update of PHP is also required Ciencia Al Poder (talk) 10:28, 16 January 2020 (UTC)

Someone (probably you) requested a reset of your password for MediaWiki

I got this e-mail from wiki AT wikimedia.org and the IP listed is in... Russia. Is this legit or a phishing attempt?
I never requested a password reset...
Someone (probably you, from IP address 37.75.199.31) requested a reset of your
password for MediaWiki (<https://www.mediawiki.org/wiki/MediaWiki
The following user account is associated with this email address:
Username: [myusername here]
Temporary password: [temporary pass here]
This temporary password will expire in 7 days.
You should log in and choose a new password now. If someone else made this
request, or if you have remembered your original password, and you no longer
wish to change it, you may ignore this message and continue using your old
password. Spiros71 (talk) 20:05, 21 December 2018 (UTC)
If the link does not go to a Wikimedia website, then it is phishing. Malyacko (talk) 14:49, 22 December 2018 (UTC)
I think it's a attempt of phishing.

Ishuchoudhary2024 (talk) 02:38, 25 December 2018 (UTC)
Sometimes, any of us might misspell his email while submitting such forms of forgotten passwords. If that email exists, the owner will definitely receive the password reset email.
In this case, there is no need to worry, as there might be someone who did that by mistake and supplied your email in error.
Otherwise, and if the URL is not legit, then it's a phishing one. Opensourceit (talk) 14:55, 25 December 2018 (UTC)

Does an extension exist for this? Change content on label-click.

I'm looking for an extension which enables me to change content when the user clicks a label. For example I have text about programming in node.js. A user can be using linux, windows, or Mac OS. I want to show different instructions when the user clicks the label for the corresponding OS.

Does something like this exist? I have HTML enabled on my wiki (I'm the only one able to edit).

I have uploaded screenshots to make it more clear:

https://i.imgur.com/6zI90aF.png

https://i.imgur.com/EAhMMcF.png


Basically content per OS should go in separate divs. I only want to display the div which label is clicked and hide the other divs. So functionality that I'm looking for relates to Manual:Collapsible elements (with custom toggle buttons), but it's not the same.
Jbwikinl (talk) 10:04, 22 December 2018 (UTC)

See Extension:Tabber, Extension:Tabs and Extension:Header Tabs.
Wikipedia does this by using tabs in headers which direct to separate pages. See Wikipedia:Tutorial/TabsHeader, Template:Village pump page header. AhmadF.Cheema (talk) 11:21, 22 December 2018 (UTC)

Confirmation email

I am unable to register in the Ted Translator WIki.

It keeps on asking for confirmation of my email, but I always get the message:

A confirmation code has already been emailed to you; if you recently created your account, you may wish to wait a few minutes for it to arrive before trying to request a new code.

The Ted translator team does not seem to know what to do.

Please, is there anybody that can help resolve this problem?

Thank you. Hélène Vernet (talk) 14:34, 22 December 2018 (UTC)

Welcome to mediawiki.org. For problems with emails sent from servers of some third-party website that is not mediawiki.org, please contact that third-party website. Malyacko (talk) 14:47, 22 December 2018 (UTC)
Thank you for your quick answer. This third party, as I already said, is unable to resolve the issue.
Is there a general forum or a technical assistance for all wiki issues somewhere?
Thanks. Hélène Vernet (talk) 12:36, 23 December 2018 (UTC)
For technical wiki issues or editing MediaWiki that place is here. However, nobody here can fix emails that some unrelated independent third party might send or not. :) Malyacko (talk) 17:26, 23 December 2018 (UTC)

Creating an account on Board18

HI I'm trying to create an account. I got an email back saying

"Your e-mail address has been confirmed and will be listed as such in your account request."

but then nothing else after i clicked on the link.

If I try to request a password reset it says my user name doesn't exist but if I try to set up again with a new user name it says my email is already linked to an account.

User name is100pcBlade (I originally tried with 100%Blade but I guess it may not have liked the %) 100pcBlade (talk) 14:51, 22 December 2018 (UTC)

Welcome to the support desk for the MediaWiki software. mediawiki.org is not Board18. For emails sent by Board18, please refer to Board18. (Feel also free to tell us how/why you asked this on mediawiki.org and not on Board18. Thanks!) Malyacko (talk) 15:02, 22 December 2018 (UTC)
Thanks. I couldn't find any contact details on the Board18 site where I could ask for help. However there as a link on the login that said 'Need help logging in' that brought me here 100pcBlade (talk) 15:56, 22 December 2018 (UTC)
...and https://www.mediawiki.org/wiki/Help:Logging_in says: "This is a generic help page for the MediaWiki software. Many MediaWiki-powered wikis have a help link that points to this page. If you came here from another wiki looking for help with logging in or creating an account, we are not able to help you. Return back to your wiki and try to find a forum, talk page or contact address where you can ask for help to the admin of the site." Malyacko (talk) 19:08, 22 December 2018 (UTC)

Bouton radio

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.


j'aimerai mettre un système de vote avec des boutons radio, mais je n'y arrive pas, et surtout je ne vois pas pourquoi cela ne fonctionne pas.

Voici le code :

<p>Sélectionnez votre vote:</p>

<div>

  <input type="radio" id="oui" name="vote" value="oui">

  <label for="oui">Oui</label>

</div>

<div>

  <input type="radio" id="ouimais" name="vote" value="ouimais">

  <label for="ouimais">Oui, mais</label>

</div>

<div>

  <input type="radio" id="non" name="vote" value="non">

  <label for="non">Non</label>

</div>

<div>

  <input type="radio" id="nonmais" name="vote" value="nonmais">

  <label for="nonmais">Non, mais</label>

</div>

<div>

  <input type="radio" id="sansavis" name="vote" value="sansavis">

  <label for="sansavis">Sans avis</label>

</div>


Allolaterre (talk) 14:55, 22 December 2018 (UTC)

@Allolaterre: Hi! This looks like HTML. Please explain how your question is specifically related to the MediaWiki software.
Please also explain what exactly does not work and what you would expect to happen. Malyacko (talk) 15:00, 22 December 2018 (UTC)
Merci de cette réponse ultra rapide ;-)
Voilà ce que j'aimerai reproduire sur mediawiki : https://www.dropbox.com/s/ov0c86q7no6oswu/vote.png?dl=0
j'ai installé mediawiki en localhost.
j'ai mis comme extension InputBox, PageForms, SemanticMediaWiki, ...
Mais je n'arrive pas à mettre des boutons radio. Allolaterre (talk) 16:48, 22 December 2018 (UTC)
OK c'est bon, j'ai trouvé la réponse, il fallait que je modifie le LocalSettings.php.

Allolaterre (talk) 19:03, 22 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

About the impact of on MW's built-in search engine

Recently, zhwiki community is discussing the topic of including User namespace in the scope of NOINDEX. But some people think that NOINDEX also has an impact on the MW's built-in search engine. Is this true? 星耀晨曦 (talk) 15:22, 22 December 2018 (UTC)

If "zhwiki" is zh.wikipedia.org then MW's built-in search engine is not used, but instead the CirrusSearch extension is used. Malyacko (talk) 15:59, 22 December 2018 (UTC)
Is zh.wikipedia.org, so effect CirrusSearch(Elasticsearch)? 星耀晨曦 (talk) 16:18, 22 December 2018 (UTC)

'--conf' option for install.php?

The Manual:install.php document says --conf is used for Location of LocalSettings.php. But when I tested it on REL1_31, It does nothing.

I see --conf is defined in Maintenance.php and used in its public function addDefaultParams() . but install.php and CliInstaller.php seem to don't use either $this->getOption( 'conf' ) or $this->addDefaultParams().

Does --conf option do anything?

Thanks. Lens0021 (talk) 15:44, 22 December 2018 (UTC)

If you want to specify the write path to the config file, you should use --confpath, not --conf. 星耀晨曦 (talk) 15:16, 23 December 2018 (UTC)

Wiki3

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 suggest moving wikipedia to Amazon's AWS.

Basically, the content of about 60GB will cost about 0.03$/GB/mo. * 60GB = 1.8 $/mo. using S3.

Moreover, let's connect it CloudFront so it'll be served super fast at a cost of 0.03$/GB/mo.

which at compressed data serving should be Much cheaper than serving all of this from servers.

Even the editor can use AJAX's to Lambda functions, the DB can be handled in many ways,

mostly depending on how it's implemented now at your place.


Basically what I'm trying to say is:

Instead of asking for an outrageous amounts of money every now and then,

let's simply make it super cheap.


This is a kind of projects I do over a week,

now I believe your developers are pretty good as well :) Thenetfreaker (talk) 09:01, 23 December 2018 (UTC)

Suggestions about Wikipedia hosting infrastructure below the MediaWiki software level are off-topic for the MediaWiki Support Desk. Feel free to discuss in some general Wikimedia forum instead. You may want to check https://foundation.wikimedia.org/wiki/Privacy_policy first though. Malyacko (talk) 17:38, 23 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Displaying additional wiki text according to paragraph class, logged-in status and user group

I want MediaWiki to display extra text according to paragraph class, logged-in status and user group. Users that are not logged in or not in a group should not see any extra text (i.e. should not see text with class "facilitator" or "leader" but should see all other page text). Those in the "Facilitator" group should see text in paragraphs with class "faciltator" (<p class="facilitator">), no text with class "Leader", and must see all other text on the page. Those in the "leader" group should see the extra text for facilitators and also text with class "leader" (<p class="leader">).

A couple of discussions such as the following suggest editing vector.php (the site is using Vector by default), but this does not work (i.e. displaying extra text for logged in users as opposed to non-logged in users) - Project:Support desk/Flow/2012/12#h-[RESOLVED]_How_to_hide_"View_History"_button_for_unlogged_users?-2012-12-17T08:38:00.000Z. Perhaps this advice only worked on a previous version of MediaWiki.

The site is using MediaWiki 1.31.1.

Any guidance would be appreciated. Richarden10 (talk) 16:37, 23 December 2018 (UTC)

That topic is related to changing the interface. Is that what you want to do?
It sounds like you are talking about displaying adding "<p class="facilitator">" to your wikitext and then getting the wiki to display or not display it. If that is what you mean, then you can do that via JS. MarkAHershberger(talk) 14:44, 24 December 2018 (UTC)
Yes - thanks for your response, that's indeed what I want to do - sorry didn't spot your response till now as have been away.
I understood MediaWiki could do server-side using the PHP templates - which would be more reliable in case the client-side JS is not supported somehow - or were you referring to server-side JS?
If you mean client-side JavaScript, how would it restrict access by user group, and would it mean downloading all text in the HTML page source? The savvy students could then be able to see the answers/ comments I only want the facilitators or leaders to see - e.g. by right clicking and selecting "View page source." Richarden10 (talk) 09:28, 31 December 2018 (UTC)
Ah, if you want to restrict who can see tagged paragraphs, then that is something you would probably want to achieve with client-side JS (to fetch the hidden content from the server when the user is authorized) but you would then need to develop a parser extension that could server up the contents of certain tags only when it was requested via the api by an authorized user. MarkAHershberger(talk) 13:04, 2 January 2019 (UTC)
Good to be aware of that option. For now, I'd rather display/hide the text based on a CSS style (applied to <p class="facilitator"> etc) and the logged on user's group, because I would then only need to author one MediaWiki page for all users. How would I set the CSS style based on user group? Would that have to be a client-side JS call as described above, and is there any similar sample code you could point me to?
Many thanks Mark. Richarden10 (talk) 21:55, 2 January 2019 (UTC)
If you use a CSS solution, then you will end up with the problem you said you wanted to avoid. That is, "savvy students could then be able to see the answers/ comments [you] only want the facilitators or leaders to see." MarkAHershberger(talk) 22:22, 2 January 2019 (UTC)

Configuration of Parsoid and VE, when Parsoid is on second server (VisualEditor)

Mediawiki 1.31. I run Mediawiki on a shared hosting basis at https://www.example.com/w

I also have a VPS (55.111.222). I have followed a guide to install Parsoid using CentOS 7 on my VPS.

- I have placed the extension on the wiki. - I have installed Parsoid on the VPS. - I have configured config.yaml and localsettings.php but VisualEditor doesnt work yet.

If you are able to explain how to configure localsettings.php and config.yaml in this case, I would be so grateful. For all config options I don't know if I should enter the https://www.example.com/w or 55.111.222 (the VPS).

Thanks!! 2A02:A443:74A8:1:DCF6:93F6:2D8:17DC (talk) 23:24, 23 December 2018 (UTC)

- see the reaction below Jbwikinl (talk) 08:57, 24 December 2018 (UTC)
1. I have now got Parsoid running on Debian 9 + node.js on the VPS, When I visit '51.00.00.200:8000' of the VPS, it shows the following page:
===Welcome to the Parsoid web service.===
See the API documentation on mediawiki.org.
----
2. I have also made sure that the "uri" of my wiki is correct: when I visit the "uri", I get to see the page that displays:
=MediaWiki API help=
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
etc.
----
3. When I create or edit pages on my wiki, the VisualEditor loader will show up. But directly after that, a message box will popup showing the following info:
Error loading data from server: apierror-visualeditor-docserver-http-error: (curl error: 7) Couldn't connect to server. Would you like to retry?
OK | Cancel
4. My Parsoid configuration in config.yaml is as follows:
mwApis:
        - # This is the only required parameter,
          uri: 'https://example.com/q/api.php'
          domain: 'mywiki'  # optional
5. My VisualEditor configuration in LocalSettings.php is as follows:
wfLoadExtension( 'VisualEditor' );
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgHiddenPrefs[] = 'visualeditor-enable';
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => '51.00.00.200:8000',
'domain' => 'mywiki',
# 'prefix' => 'mywiki'
);
I don't understand why it doesn't work.
Update: When I run this line of code (curl) from the parsoid server, it shows:
curl https://example.com/q/api.php
curl: (7) Failed to connect to example.com port 443: Connection timed out
But when I curl other websites, such as google, amazon, it works fine. It feels like the solution is close but yet, thanks to my low skills, so far..
Jbwikinl (talk) 11:21, 24 December 2018 (UTC)
re: curl. Do you have a proxy set? Does the command env | grep -i proxy show anything? MarkAHershberger(talk) 14:35, 24 December 2018 (UTC)
Thanks for responding! The command env | grep -i proxy returns nothing. The CLI just goes to the next row and waits for input. So I think I do not have a proxy set.
- I assumed I must run the command from the Parsoid server, so I ran it there (just like the earlier curl commands). Jbwikinl (talk) 15:04, 24 December 2018 (UTC)
Which IP shows when you do ping example.com? Does it match the one you have set for $wgVirtualRestconfig? MarkAHershberger(talk) 17:01, 24 December 2018 (UTC)
When I ping example.com I get the following IP: 31.000.000.22. This does not match the 51.00.00.200 I had set for $wgVirtualRestConfig. I had set the value to 51.00.00.200 because that is the IP adress of my VPS (the 'second server' where the Parsoid server is running on). When the parsoid server is running and I visit 51.00.00.200:8000, I see the webpage which confirms that Parsoid is running. I have now changed $wgVirtualRestConfigfrom 'url' => 51.00.00.200:8000' to 'url' => '31.000.000.22:8000'. Now I still get the (curl error: 7) when I try to edit pages, after some extension load bar action. Also it doesn't change the result of this curl command - I will still time-out:
curl https://example.com/q/api.php
curl: (7) Failed to connect to example.com port 443: Connection timed out
Maybe this is just a bit too complex for someone with so little experience as me. However, I am sure people are running similar setups. When/if it is going to work, I can share my steps and add a page for instructions to use Parsoid/VisualEditor with a separate VPS while the wiki runs on another server.

Jbwikinl (talk) 17:50, 24 December 2018 (UTC)
Let me make sure I understand what you're trying to do.
  1. You have a wiki hosted on a shared host that is public. (https://example.com/q/api.php is the public api url.)
  2. You can access this wiki the internet. curl https://example.com/q/api.php works without a problem.
  3. You have a VPS that you've configured with Parsoid. (https://51.00.00.200:8000)
  4. You can access the URL for the parsoid server from the internet. curl 51.00.00.200:8000 works without a problem.
  5. You cannot access the URL for the wiki from the parsoid server.
If the above is correct, I wonder if you have confirmed, by checking the logs, for example, that the wiki can reach the parsoid server.
Other questions:

The word "classification" results in 403 error if in URL

Running Mediawiki 1.31. Recently, I found that every page in my system which contains the word "classification" produces a 403 Forbidden error. This includes moving, deleting, searching for the word, creating new pages which include "classification" in the title, etc. I am at a loss. Would anyone please assist? 73.229.145.151 (talk) 19:25, 24 December 2018 (UTC)

In my Pollen-Wiki I had the same problem with the word ephedra. I had to contact my server-hoster to change the automatic filter for "ephedra". In the meantime I replaced some letters with their HTML-Code; this passed the filter without 403 error.
Greetings from Basel
Thomas 77.58.215.12 (talk) 14:15, 25 December 2018 (UTC)
What 77.58.215.12 says. See Manual:Errors and symptoms#Attempting to save an edit gives you a 403 Forbidden error, or you get redirected to the main page Ciencia Al Poder (talk) 20:30, 25 December 2018 (UTC)

Is it possible to grant a user group limited blocking duration?

Hi girls and guys,

We are trying to add a user group “Anti-Spam” with blocking ability up to 7 days.

Is it possible to limits a user group to only have blocking ability no more than 7 days?


Thank you in advance! Deletedaccount4567435 (talk) 12:27, 25 December 2018 (UTC)

See Help:User rights and groups#User group expiry. AhmadF.Cheema (talk) 15:29, 25 December 2018 (UTC)
Ahmad, I think something else was requested here: Zoglun does not want a special user to automatically lose membership of a user group. However, what he wants is that a user, who is in such a group that he can block users, can only chose from some blocking options and not from others. He should e.g. be allowed to block for "1 hour" or "7 days", but not for "infinite". 2001:16B8:10B5:AB00:4884:D6DB:43E3:539F (talk) 22:16, 25 December 2018 (UTC)
Oh, okay. I mistakenly thought that the request was to give a user the right to block other users, and such a right to be automatically disabled after 7 days.
One crude way to do this could be to "display: none;" the undesired expiration time options. AhmadF.Cheema (talk) 11:55, 26 December 2018 (UTC)

Wiki moved to new host, but still connecting to old host's MySQL server

After we moved to new host three months ago, the site suddenly yesterday stopped showing up in browser, giving (Server Not Found) pages for any web page, including cPanel's page, for few hours before getting back to life.

While the SSH and FTP connections were working fine.

The new host support told me that the reason it's hanging is it's connecting to a MySQL server located at 81.88.56.149 (which mostly is the data center of the old host, because our shared host ip there was 81.88.48.95).

- They also advised to configure the wiki site to connect to localhost instead of any other host.

Now I don't know how to that:

- Are they the configuration files that call the old MySQL server? or the database itself is calling?

- If the database.. should I try searching the database for that ip, then replace it manually, and how to do that correctly?

Thanks a lot friends!


MediaWiki version: 1.23.3

PHP version: 5.6.39 (litespeed)

Database version: MySQL 5.1.63-enterprise-commercial-advanced-log

Lua: 5.1.5

URL of the wiki: http://wikiageing.org Opensourceit (talk) 13:22, 25 December 2018 (UTC)

Database configuration is stored in LocalSettings.php. This file most likely is located in the root directory, in which you installed MediaWiki. You can see the relevant variables in Manual:Database_access#Using_the_mysql_command_line_client.
Note however that if you up to now used the database on the old host, then you most likely want to make a backup of that database. After wards import that database on the new host. Otherwise, you will obviously lose data. 2001:16B8:10B5:AB00:94BB:B455:21CA:58F3 (talk) 13:59, 25 December 2018 (UTC)
The LocalSettings.php has no mention of any outside server.
We have already moved away from that server, but there must be some code that is calling to it, I don't know where in the files or the database. this call exist Opensourceit (talk) 15:04, 25 December 2018 (UTC)
If there's no mention in LocalSettings.php, connection may default to the one configured in php.ini. Be sure to define $wgDBserver in LocalSettings.php pointing to the new host. Ciencia Al Poder (talk) 20:28, 25 December 2018 (UTC)
Thank you @Ciencia Al Poder for your help.
In fact, I downloaded the php.ini, and no trace of any host or ip matching.
The $wgDBserver is set to "localhost" in the LocalSettings.php
I also searched a local backup copy of the site files, no mention of that IP in any file.
What else you think could be calling the remote (mostly was down) MySQL host and causing the site to become down too? Opensourceit (talk) 23:46, 25 December 2018 (UTC)
> The $wgDBserver is set to "localhost" in the LocalSettings.php
Unless for some bizarre reason, that variable is reset elsewhere, than that's where your wiki is looking for its database. Your server could of course map "localhost" to any IP it chooses, but that would be in the server-wide hosts file.
Ask your host a different question: How do they know your site is connecting to a third party server? And why can they not help you to fix it?
I would recommend that you consider using a host that supports MediaWiki as this thread seems a bit odd. HSRobinson (talk) 13:05, 26 December 2018 (UTC)
They helped me in moving from that old host to their server, using the shared account credentials. The site is working great.. never faced any issue.
I will use your advice and ask them to elaborate more on the issue with more details. I contacted the old host's admin and still in discussion.. hope we come to a conclusion soon from either party. Opensourceit (talk) 13:49, 26 December 2018 (UTC)

Mirror domain

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.


Versions are as follows: MediaWiki: 1.31.1 PHP: 7.2.11 (cgi-fcgi) MySQL: 5.6.34-log ICU: 52.1

I’ve manually installed Mediawiki at kimeracorp.net/ragnarok/wiki with two separate databases (one in english and one in portuguese) and created two subdomains at pt.kimeracorp.net and en.kimeracorp.net mirroring the main domain. Then I’ve edited LocalSettings to point to each database depending on which subdomain you’re accessing. Except for those settings I didn’t touch anything else, not one other setting and not even the wiki itself yet, and apparently everything works fine.

The only problem is when I try accessing the “Random Page” link, it completely removes any subdomain and just directs to the main site (without “en.” or “pt.” at the beginning). Normally I would just remove that feature, but some people like using that and I’m also afraid that it may occur on other pages as well, so I rather just fixing it.

Anyone wanting to help can check the links by themselves to see the bug in action, and I’m also available to give any information needed.

Thanks in advance! Prccp (talk) 02:06, 26 December 2018 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Trouble with Categories not Populating

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.


Versions:

MediaWiki 1.31.1
PHP 7.0.25 (cgi-fcgi)
MySQL 5.6.41-84.1

Wiki located at: https://GreyhawkOnline.com/greyhawkwiki

So, the thing is that I imported a lot of pages (via Special:Import) and none of the pages are populating in Categories. It's only generally showing 0 - 2 pages in each category. So, after some reading, I found "rebuildall.php", which from what I understand will refresh the tables that denote the pages in all the categories.

So, the problem is that when I use Putty to navigate to a command line in my wiki directory, and I enter:

php maintenance/rebuildall.php

… it won't run the file. Instead, I get:

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /path/to/wiki/greyhawkonline.com/greyhawkwiki/maintenance/rebuildall.php on line 47


Clearly, I am missing something here, and I need a little help figuring out what it is that I am missing here.

Or, if there's an easier way, using phpMyAdmin, or something, that'd be great!

Thanks, in advance for your help. IcarusATB (talk) 05:47, 26 December 2018 (UTC)

Try
cd maintenance
php rebuildall.php
That may help. HSRobinson (talk) 12:59, 26 December 2018 (UTC)
Also, of note … down the thread, I mentioned that your later help solved my problem.
But, it's interesting that I did have to use "change directories" as you mention here, after all.
I don't know why it wouldn't accept the command from one folder up, but, it made a difference! IcarusATB (talk) 15:30, 30 December 2018 (UTC)
@HSRobinson … thank you for the tip.
Unfortunately, I did already try that, but, also just tried it again, to make sure that running it from that particular directory made a difference. I got the same result, asking for a variable in line47, for whatever it's worth.
Thank you, though. IcarusATB (talk) 14:26, 26 December 2018 (UTC)
Did you recently upgrade MediaWiki? AhmadF.Cheema (talk) 15:37, 26 December 2018 (UTC)
@AhmadF.Cheema … nope, this is an installation that is scarcely two weeks old. First time installation. IcarusATB (talk) 21:18, 26 December 2018 (UTC)
For sake of saying … in the MediaWiki installation, the line that is being questioned when I try to run it (Line47) is in this section:
42       public function execute() {
43          // Rebuild the text index
44          if ( $this->getDB( DB_REPLICA )->getType() != 'postgres' ) {
45               $this->output( "** Rebuilding fulltext search index (if you abort "
46                   . "this will break searching; run this script again to fix):\n" );
47          $rebuildText = $this->runChild( RebuildTextIndex::class, 'rebuildtextindex.php' );
48          $rebuildText->execute();
49        }
IcarusATB (talk) 21:25, 26 December 2018 (UTC)
The CLI version of PHP does not necessarily have to be the same version as the one the webserver uses.
Please run php --version on the command line and tell us the PHP version you have there. My guess is that the CLI version of PHP, which you are using, is too old. 2001:16B8:1040:AA00:343F:8B13:F674:9870 (talk) 01:08, 27 December 2018 (UTC)
SO, from the command line, the php --version responds with:
PHP 5.4.45 (cli) (built: Apr 17 2017 15:59:08)
That seems strange that above, I listed it as 7.0.25, because that's what the wiki responded with.  So, I'm not sure how or why this differs from the Command Line response.  So, that, at least, makes sense … if there's outdated software and the new version of  rebuildall.php then, obviously, it's not going to respond properly if it's calling for something that's not even there in the old php, I guess?
So, since my my MediaWiki software is written for a newer version of PHP, and requires 7.0 …  how … I … what th-?
Where is the 5.4.45 version I have running from, then, and how do I fix that so that the rebuildall.php can run? IcarusATB (talk) 11:02, 27 December 2018 (UTC)
I had considered this issue also, but failed to mention it. Some hosts support separate versions of PHP for CLI, independently of the web version. To run a different version, ask your host.
If you are stuck with HostGator, then see this page https://stackoverflow.com/questions/39643805 as it may help. If you use Unified Layer, ask them.
If you use CiviHosting (which I recommend) see here: https://civihosting.com/blog/php-cli-version/ HSRobinson (talk) 12:37, 27 December 2018 (UTC)
OMG, OMG , OMG!!!
THIS IS SO IT!!!
@HSRobinson this was difficult, no doubt! I had to really try hard to figure out what the article (and the answer to the question) was really telling me to do. It wasn't immediately clear that I was altering the code within a file, and that I had to type in the altered code, and save it.
That seems simple, I know, but, once I "got it", the CLI immediately responded that I was now running PHP7.1!!!
And then, once followed the directions of the Help:rebuildall page, the CLI immediately began running the Rebuild!!
It's doing it all RIGHT NOW AS WE SPEAK!!
Thank you, thankyou, thankyou!
I can't thank you enough. I appreciate the help, SO MUCH!! IcarusATB (talk) 15:28, 30 December 2018 (UTC)
You need to do one of two things now: Either find out the command, with which you can run a newer version of PHP on the CLI. That might e.g. be php70 (does php70 --version work?) or something like that.
If however, a newer CLI version of PHP is not currently installed on the server, then it first needs to be installed and then you can use it. 2001:16B8:10C8:4800:F9B9:FDD5:FA16:F61D (talk) 12:02, 27 December 2018 (UTC)
Note, categories not updating may be indicative of a problem with the Job queue (which may be a separate issue from your issue running rebuildAll.php) Bawolff (talk) 22:28, 27 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Changing titles for disambiguation pages

I'm porting a wikidot wiki into mediawiki 1.31.1. Wikidot allows page titles in the urls to differ from displayed page titles, which I've used for disambiguation, so entries stored as icon-iowa, icon-maine, are both displayed as 'Icon'. Links are made to disambiguation page icon or as [[[Icon-iowa|Icon]]] or [[[Icon (Iowa)|Icon]]] which wikdot resolves to icon-iowa


When I import these pages to mediawiki, I'm happy for the names to be 'Icon Maine' or 'Icon (Maine)', but I want it displayed as 'Icon'. I'm happy to keep links as [[Icon (Maine)|Icon]] in other articles.


I found DISPLAYTITLE but it only seems to allow the initial letter to be lowercase, it won't allow me more radical changes like dropping the second word.


Extension:Display Title may do what I want, but needs Lua/Scribunto, is this the route I should be going so each of the tricky pages could have a

{{title Icon}} Notmadewelcome (talk) 11:46, 26 December 2018 (UTC)

Check Manual:$wgRestrictDisplayTitle, it should allow DISPLAYTITLE to use arbitrary names. 121.214.112.149 (talk) 06:53, 27 December 2018 (UTC)
Works a treat. Thanks very much Notmadewelcome (talk) 15:27, 27 December 2018 (UTC)

Odd space at end of page

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.


Software 	Version
MediaWiki 	1.31.1
PHP 	7.2.10-0ubuntu0.18.04.1 (apache2handler)
MySQL 	5.7.24-0ubuntu0.18.04.1-log

We are used to place a template at the bottom of a page, to change the sort order. We place all categories at the end of the page and put the template after the last category. If there is a blank line between category and template, then the result is an unaesthetic space before the category. See here: https://test.perrypedia.proc.org/wiki/Example1

No problem. So we remove the blank line and everything's fine: https://test.perrypedia.proc.org/wiki/Example2

If we do the same with a redirect, it doesn't work: https://test.perrypedia.proc.org/mediawiki/index.php?title=Example3&redirect=no

So we need to remove the newline between category and template: https://test.perrypedia.proc.org/mediawiki/index.php?title=Example4&redirect=no

This is of course a minor issue. At least it is odd that the "space before category"-behaviour depends on whether it is a redirect or not? AnonymusGdpr (talk) 14:00, 26 December 2018 (UTC)

Categories and interlanguage links produce no output. However, having a line with only category links renders as an empty line, which usually means it's a new paragraph. MediaWiki automatically trims empty text at the end of the page, and this works perfectly when categories are at the end of the page, but not if there's a template below the categories, because it produces output that's not trimmed. The defaultsort parser function works wherever you put it on the page, so ideally you should always leave your categories at the end. Ciencia Al Poder (talk) 10:36, 27 December 2018 (UTC)
We do so now and it works fine, thanks. AnonymusGdpr (talk) 10:34, 19 January 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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.


It has been brought to our attention on English Wikisource that the wikilivres link on pages such as https://en.wikisource.org/wiki/The_Coming_of_Wireless is not taking readers to WikiMedia's Wikilivres.org, but to an external commercial site. Apparently this needs to be fixed here, as our https://en.wikisource.org/wiki/Special:Interwiki page is not locally editable. Cheers! -BD2412 BD2412 (talk) 15:39, 26 December 2018 (UTC)

Hi. The interwiki map is located at Meta (m:Interwiki map). The update was requested at https://meta.wikimedia.org/wiki/Talk:Interwiki_map#Bibliowiki and I fixed the code already. I need a deployer, however, to copy the current map to the server and have it propagated to all the wikis. I am having difficulties in doing due to the hollydays break. Best regards. —MarcoAurelio (talk) 19:52, 26 December 2018 (UTC)
Thanks for the update. Cheers! BD2412 (talk) 19:57, 26 December 2018 (UTC)
Should be fixed now. Possibly some pages might have to purged in order for the new link to start being used. Bawolff (talk) 15:23, 27 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to enter information in Wikipedia once you have edit rights?

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 to speak with someone over the phone or via blog. Katrinamdobbs (talk) 15:59, 26 December 2018 (UTC)

You can make your queries at Wikipedia:Help desk. AhmadF.Cheema (talk) 03:09, 27 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Issues with files after moving to new server and upgrading to 1.31

Issues were triggered by causes unrelated to MediaWiki.

I am now using PHP 7.2 for MediaWiki 1.31.1. The following issues occur:

1) When uploading images no previews are being shown. ImageMagick is installed and $wgImageMagickConvertCommand = '/usr/bin/convert'; is set. After uploading and on pages images and thumbs show as expected.

2) Uploaded images do no longer display exif data at the end of the file pages. php-exif is installed via the php-common package

I do not know what to do in both cases. Help will be appreciated.

PS My shell related settings are as follows:

$wgShellLocale = 'C.UTF-8';

$wgMaxShellMemory = 512000; 2003:F6:2739:8401:1CE1:CE3E:EAAF:4141 (talk) 18:02, 26 December 2018 (UTC)

Great, I really like this. As for issue 2 it seems that a series of images without any meta data was uploaded. In this case MW cannot detect any either. Still wondering about issue 1 though. 2003:F6:2739:8401:1CE1:CE3E:EAAF:4141 (talk) 22:33, 26 December 2018 (UTC)
Thumbnails: Try to manually generate the thumb accessing the thumb.php script from your browser, providing the image name and thumbnail size, and see if it works, or it gives any error.
Metadata: You may try to run the refreshImageMetadata.php maintenance script to reload image metadata in case it's not being detected properly (you can try first with one image, using the --start and --end parameters). Ciencia Al Poder (talk) 10:19, 27 December 2018 (UTC)
Thanks for the tipps! In the meantime I found out that the thumbs were not rendered on upload only because of a CSP I added to the VirtualHost which was apparently too restrictive. After killing it it works again. Now the issue is to implement a sane CSP but this is out of the scope of this thread. 2003:F6:2739:8401:55E6:4A28:BC3C:BF35 (talk) 16:48, 28 December 2018 (UTC)

Adding an inline audio player in a page

Hello everyone,

I'm having troubles on adding a little audio files on my mediawiki (v1.31.1 - PHP 7.2~), playable directly from the page itself.

So far, I'm trying to use the extension Extension:TimedMediaHandler which should allow me to do this (and also embed videos).

Unfortunately, my mediawiki is hosted on a shared host, so I don't have direct access to the PHP console.


I've followed the instructions, but I might have made a mistake somewhere since I get the following error when I try to load the test file mp3 page:

=====================================================================================================================

[XCPK2EB1sTvXRPjar3Bg5gAAAAM] /wiki/File:TestAudio.mp3 Wikimedia\Rdbms\DBQueryError from line 1457 of /web/htdocs/www.sanfrupedia.it/home/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?

Query: SELECT * FROM `transcode` WHERE transcode_image_name = 'TestAudio.mp3' LIMIT 100

Function: WebVideoTranscode::getTranscodeState

Error: 1146 Table 'Sql1269454_1.transcode' doesn't exist (89.46.111.76)

Backtrace:

#0 /web/htdocs/www.sanfrupedia.it/home/w/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)

#1 /web/htdocs/www.sanfrupedia.it/home/w/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /web/htdocs/www.sanfrupedia.it/home/w/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query(string, string)

#3 /web/htdocs/www.sanfrupedia.it/home/w/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php(686): Wikimedia\Rdbms\Database->select(string, string, array, string, array)

#4 /web/htdocs/www.sanfrupedia.it/home/w/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php(643): WebVideoTranscode::getTranscodeState(LocalFile)

#5 /web/htdocs/www.sanfrupedia.it/home/w/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php(824): WebVideoTranscode::isTranscodeReady(LocalFile, string)

#6 /web/htdocs/www.sanfrupedia.it/home/w/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php(627): WebVideoTranscode::addSourceIfReady(LocalFile, array, string, array)

#7 /web/htdocs/www.sanfrupedia.it/home/w/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php(517): WebVideoTranscode::getLocalSources(LocalFile, array)

#8 /web/htdocs/www.sanfrupedia.it/home/w/extensions/TimedMediaHandler/TimedMediaTransformOutput.php(520): WebVideoTranscode::getSources(LocalFile)

#9 /web/htdocs/www.sanfrupedia.it/home/w/extensions/TimedMediaHandler/TimedMediaTransformOutput.php(304): TimedMediaTransformOutput->getMediaSources()

#10 /web/htdocs/www.sanfrupedia.it/home/w/extensions/TimedMediaHandler/TimedMediaTransformOutput.php(144): TimedMediaTransformOutput->getHtmlMediaTagOutput()

#11 /web/htdocs/www.sanfrupedia.it/home/w/includes/page/ImagePage.php(430): TimedMediaTransformOutput->toHtml(array)

#12 /web/htdocs/www.sanfrupedia.it/home/w/includes/page/ImagePage.php(138): ImagePage->openShowImage()

#13 /web/htdocs/www.sanfrupedia.it/home/w/includes/actions/ViewAction.php(68): ImagePage->view()

#14 /web/htdocs/www.sanfrupedia.it/home/w/includes/MediaWiki.php(500): ViewAction->show()

#15 /web/htdocs/www.sanfrupedia.it/home/w/includes/MediaWiki.php(294): MediaWiki->performAction(ImagePage, Title)

#16 /web/htdocs/www.sanfrupedia.it/home/w/includes/MediaWiki.php(861): MediaWiki->performRequest()

#17 /web/htdocs/www.sanfrupedia.it/home/w/includes/MediaWiki.php(524): MediaWiki->main()

#18 /web/htdocs/www.sanfrupedia.it/home/w/index.php(42): MediaWiki->run()

#19 {main}

=====================================================================================================================

A few notes that might help:

- I've run the update.php from the web browser (since I can't do it from the console..), even tho I had to do it from an incognito windows afterwards since it would tell me that it is already updated after the first run.

- According to the error, I believe it says that "transcode" table is missing (and it is true looking at phpMyAdmin) even if i ran the update page.

- I have added the configurations lines proposed in the extension page (removing the part about version previous 1.31)

- I can't run the transcode jobs since I don't have access to the PHP command line (is it necessary? is there a way for shared host wikis?)


PS.

I don't specifically need this extension, I would like to be able to include sounds in my pages... so if there is a better extension or way to achieve it, please show me it! ^^

(For example, I've tried to use https://en.wikipedia.org/wiki/Template:Listen/doc - but according to what I've found over google it requires Lua/Scribrunto which I can't install on a shared host)

Thanks in advance! Sanfrupedia (talk) 19:00, 26 December 2018 (UTC)

You are right. The relevant erro,
> Table 'Sql1269454_1.transcode' doesn't exist
means that the database table "transcode" is missing. Usually, running update.php should add this table.
Basically, these are the SQL statements, which MediaWiki uses to create the table:
https://github.com/wikimedia/mediawiki-extensions-TimedMediaHandler/blob/REL1_31/TimedMediaHandler.sql
In your case, /*_*/ can just be left out. I guess this is also true for /*i*/. /*$wgDBTableOptions*/ should be replaced with the table options, which are set in $wgDBTableOptions. 2001:16B8:1040:AA00:343F:8B13:F674:9870 (talk) 19:13, 26 December 2018 (UTC)
Thank you, I guess that I've to update manually the database structure.... I'm kinda afraid to do so since it should be automatic and I would avoid to miss stuff... eheh
On top of that, would it possible that this problem could be caused by this: Extension talk:TimedMediaHandler/Flow export#h-Extension:MwEmbedSupport-2018-08-01T08:46:00.000Z ??
Thanks Sanfrupedia (talk) 19:26, 26 December 2018 (UTC)
I think I don't get you. Are you thinking that you maybe have not downloaded the right version of the TimedMediaHandler extension? If so, here is the download link: https://github.com/wikimedia/mediawiki-extensions-TimedMediaHandler/archive/REL1_31.zip 2001:16B8:1040:AA00:343F:8B13:F674:9870 (talk) 20:18, 26 December 2018 (UTC)
What I meant above is that on this topic i read that: "MwEmbedSupport extension is still required for latest stable version MediaWiki 1.31.0" --- is this true?
Because I have not installed this secondary extension before installing TimedMediaHandler since on it's installation page it says: "Note that, although MwEmbedSupport was included in TimedMediaHandler for MediaWiki 1.31 and later, for MediaWiki versions prior to that you will need to download it from the archive page."
Now I'm wondering if i have to install this "MwEmbedSupport" prior to install TimedMediaHandler, or if it is not necessary anymore...
Hope I explained what i meant!
Thanks Sanfrupedia (talk) 20:53, 26 December 2018 (UTC)
As the page says, If you run versions of MediaWiki prior to 1.32, please use the archive link below.. MediaWiki 1.31 is older than 1.32, thus you need this extension (downloaded and installed in LocalSettings.php) Ciencia Al Poder (talk) 10:22, 27 December 2018 (UTC)
However, Extension:TimedMediaHandler page mentions: "TimedMediaHandler depended on MwEmbedSupport until 1.30".
Cursory look at T197918 and T164037 appears to show 1.32.0-wmf is when the Extension:MwEmbedSupport dependency was removed. So, probably Extension:TimedMediaHandler page will need to be corrected. If someone can test to make sure? AhmadF.Cheema (talk) 11:15, 27 December 2018 (UTC)

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 have recently upgraded my MediaWiki to 1.31.1 and images don't appear. I think that it is because of broken URLs.

The standard page URL is https://mks.mff.cuni.cz/org/wiki_new/index.php/Test for page "Test" (so https://mks.mff.cuni.cz/org/wiki_new/ is the wiki installation path).

The images are located in "images" folder.

But when I open the page for the image (for example https://mks.mff.cuni.cz/org/wiki_new/index.php/File:Logo_tangram1o.png) the thumbnail doesn't appear. Also when I click on the link to open the images in fullscreen, it redirects me to https://mks.mff.cuni.cz/org/wiki_new/index.php/Images/5/59/Logo_tangram1o.png and says "This page doesn't exist".

And I think that is the problem. The part "index.php/" shouldn't be in this address. The real URL of the uploaded image is https://mks.mff.cuni.cz/org/wiki_new/images/5/59/Logo_tangram1o.png without that. It seems like the URL is not generated well and then the wiki is trying to display a page instead of image.

PS: don't click the links, you won't be able to open them as they are password protected. Topfermi (talk) 20:30, 26 December 2018 (UTC)

Usually, the upgrade to MediaWiki 1.31 should not affect the way how short URLs are working. During your upgrade, have you changed something with short URLs?
Which webserer are you using? Has the webserver been changed during the upgrade? 2001:16B8:1040:AA00:343F:8B13:F674:9870 (talk) 01:12, 27 December 2018 (UTC)
Setting $wgUsePathInfo to false fixed it. Topfermi (talk) 08:24, 27 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Sleepyhead locks up

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 been using SH for approx. 1 yr. with no problem. Last week I tried to copy and paste my notes from the day before, the notes highlighted, using copy, but would not copy. I use this same process everyday then modify notes for the current day. I can view notes, move to different days, etc.

The file, view, data, help, etc lock up preventing the drop down menus from working which means I can not exit SH. I use Ctrl+Alt+Del, sign out then sign back in, go to SH with the same results. My data card downloads, I can view it but can not use notes or exit SH.


I uninstalled SH and reinstalled, same problem. It does pick up all of my old data files. I was using the latest version SH.

What do I do now?

Thanks,

Tim 68.106.89.65 (talk) 22:17, 26 December 2018 (UTC)

Wrong support forum.😕 AhmadF.Cheema (talk) 03:06, 27 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error on arcanist commandline

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.



[530]$echo '{ "objectIdentifier":"T1111", "transactions": [ { "type"    "parents.add", "value": ["T2222"] } ] }'  | arc call-conduit --conduit-uri  https://phab.somecompany.com/   --conduit-token cli-xyzlmnop  maniphest.edit

The error I'm seeing

{"error":"ERR-CONDUIT-CORE","errorMessage":"ERR-CONDUIT-CORE: Edge transactions must have destination PHIDs as in edge lists (found key \"T2222\" on transaction of type \"4\").","response":null}

ERR-CONDUIT-CORE: Edge transactions must have destination PHIDs as in edge lists

(trying to follow instructions from here) 73.193.250.46 (talk) 08:00, 27 December 2018 (UTC)

Your question has nothing to do with MediaWiki. Looks like you're on the wrong support forum! Ciencia Al Poder (talk) 10:13, 27 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Archive

Hi,


Can you elaborate on how can articles be archived in mediawiki? Need to archive articles and not talk pages, 148.64.29.91 (talk) 15:34, 27 December 2018 (UTC)

Different wikis do different things.
Some wikis just put a notice at the top (e.g. https://meta.wikimedia.org/wiki/Proposal_for_an_Encyclopedian_Recycling_Endeavor )
Other times, people move things to a subpage named archive (often assisted by a bot like Manual:Pywikibot/archivebot.py) e.g. https://commons.wikimedia.org/wiki/Commons:Village_pump/Archive/2018/03 Bawolff (talk) 22:27, 27 December 2018 (UTC)

Heads up: Deprecate Project:Support_desk in favor of Wikimedia Developer Support

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.


Dear Support Desk maintainers and contributors in general,

See this new task proposed as part of the consolidation of https://discourse-mediawiki.wmflabs.org as the technical support channel for Wikimedia / MediaWiki users and developers:

Deprecate Project:Support_desk in favor of Wikimedia Developer Support

No worries, this deprecation must be discussed and agreed with you, and the move of Wikimedia Developer Support to production will take a while. This is a heads up to have a good discussion with enough time. Qgil-WMF (talk) 16:12, 27 December 2018 (UTC)

I am a bit confused here. Will the scope of WDS be changed once the changeover was initiated? Currently the scope of this forum is to cater for developers and not form admins. That's a big difference and the reason why I currently do not use WDS. [[kgh]] (talk) 16:46, 28 December 2018 (UTC)
I left a comment on the phabricator task, but I'll add here that I have a client who has, using iFrames, managed to add Flow discussions to the bottom of their "Tips" namespace.
They are moving their discussions from Yammer into the wiki and using the wiki page as a basis for the discussion seems to be a better solution for their needs than the discussion-centric platform. MarkAHershberger(talk) 19:29, 28 December 2018 (UTC)
I have closed that task as Invalid. See the reasoning here: https://phabricator.wikimedia.org/T212654#4862419
Sorry for the noise. Qgil-WMF (talk) 13:26, 8 January 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Sauvegarde perdu(the powder toy)

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.


Bonjour j'ai accidentellement appuyer sur le bouton sauvegarder sur une map où j'ai passé 2 bonnes heures au lieu d'appuyer sur le bouton rénitialiser. Comment récupérer ma sauvegarde s'ils vous plaît ? Merci de votre compréhension. Trom al one (talk) 17:30, 27 December 2018 (UTC)

via google translate: "Hello I accidentally hit the save button on a map where I spent 2 good hours instead of pressing the reset button. How to recover my backup please? Thank you for your understanding."
I think you have the wrong site. MarkAHershberger(talk) 18:44, 28 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

VisualEditor Error loading data from server: oldidnotfound or apierror-visualeditor-docserver-http: HTTP 500

Hello, I can't make VisualEditor to work. I installed and ran Parsoid like it says in the guide(https://www.mediawiki.org/wiki/Parsoid/Developer_Setup#Windows_setup):


git clone https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid

cd parsoid

npm install


And then ran it like this: https://i.imgur.com/eaFYCbz.png


and it looks like it works:

https://i.imgur.com/IZvF1CJ.png


I also added these lines to LocalSettings.php like it is suggested in the guide(https://www.mediawiki.org/wiki/Extension:VisualEditor):


wfLoadExtension( 'VisualEditor' );

// Enable by default for everybody

$wgDefaultUserOptions['visualeditor-enable'] = 1;

// Optional: Set VisualEditor as the default for anonymous users

// otherwise they will have to switch to VE

// $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";

// Don't allow users to disable it

$wgHiddenPrefs[] = 'visualeditor-enable';

// OPTIONAL: Enable VisualEditor's experimental code features

#$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;

#require_once( "$IP/extensions/VisualEditor/VisualEditor.php" );

$wgVirtualRestConfig['modules']['parsoid'] = array(

    // URL to the Parsoid instance

    // Use port 8142 if you use the Debian package

    'url' => 'http://localhost:8000',

    // Parsoid "domain", see below (optional)

    'domain' => 'localhost',

    // Parsoid "prefix", see below (optional)

    'prefix' => 'localhost'

);


And I get these errors randomly when I try to enter visual mode:

https://i.imgur.com/Vlgx2j4.png

https://i.imgur.com/ijup87G.png KulaGGin (talk) 20:57, 27 December 2018 (UTC)

Multiple wikis sharing the same parsoid service

Hi

i can't share multiple wikis on the same parsoid service.

"config.yaml" looks like that:

mwApis:        
- # First wiki
  uri: 'http://wiki1.mysite.com/api.php'
  domain: 'wiki1.mysite.com'  # optional
- # If you have another wiki on a different domain
  uri: '<nowiki>http://wiki2.mysite.com/api.php'</nowiki>
  domain: 'wiki2.mysite.com'  # optional

"Wiki1" is fully functionally but in "wiki2" i can't edit a page. there is an error:

apierror-visualeditor-docserver-http: HTTP 401

i can do a change in "LocalSettings_wiki2.php" of Parsoid "Domain" to "wiki1.mysite.com". And now i can edit a page, but there is showing an other page of wiki1.

i have a LocalSettings.php who switch pages:

       switch ( $_SERVER['SERVER_NAME'] ) {
               case 'wiki1.mysite.com':
                       require_once 'LocalSettings_wiki1.php';
                       break;
               case 'wiki2.mysite.com':
                       require_once 'LocalSettings_wiki2.php';
                       break;

can someone help?


thanks a lot! LP371906 (talk) 09:51, 28 December 2018 (UTC)

mobile view doesn't work

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,


our MediaWiki works fine on Windows Firefox, Internet Explorer and other, but the mobile view doesn´t work.


Here is a Screenshot

[4]


can someone help me to fix this error?


MediaWiki 1.30.0

PHP 7.0.32 (cgi-fcgi)

MySQL 5.6.42-log 178.25.131.49 (talk) 11:58, 28 December 2018 (UTC)

We need the exact error message, which you are getting.
See How to debug for more information on how to retrieve this error message! 2001:16B8:1050:6300:948C:DD6A:1403:6C29 (talk) 12:25, 28 December 2018 (UTC)
Okay, here is the PHP Error from the Mainpage
Warning: md5_file(/mnt/web403/b0/31/56960431/htdocs/mediawiki-1.24.1/../mediawiki-1.24.1http:/www.opel66-72.net/mediawiki-1.24.1/images/9/99/LogoForum-Front01.png): failed to open stream: No such file or directory in /mnt/web403/b0/31/56960431/htdocs/mediawiki-1.24.1/includes/OutputPage.php on line 3820
Warning: OutputPage::transformFilePath: Failed to hash /mnt/web403/b0/31/56960431/htdocs/mediawiki-1.24.1/../mediawiki-1.24.1http:/www.opel66-72.net/mediawiki-1.24.1/images/9/99/LogoForum-Front01.png [Called from OutputPage::transformFilePath in /mnt/web403/b0/31/56960431/htdocs/mediawiki-1.24.1/includes/OutputPage.php at line 3822] in /mnt/web403/b0/31/56960431/htdocs/mediawiki-1.24.1/includes/debug/MWDebug.php on line 309
I was able to fix this mistake myself. Now no error is displayed but the mobile view doesnt work.... 178.25.131.49 (talk) 12:50, 28 December 2018 (UTC)
There should be information about some fatal error too.
Also did you set up a skin to run with Extension:MobileFrontend? This is a comparatively newer requirement.

AhmadF.Cheema (talk) 13:54, 28 December 2018 (UTC)
No error is displayed on the main page. I have not installed a skin or something.
I have a log file written, but the file is huge. I don't know what to look for 178.25.131.49 (talk) 14:32, 28 December 2018 (UTC)
Now! I have found something in the Logfile...
[exception] [XCY3fyO73ArdzweBBo0kyAAAAgk] /mediawiki-1.24.1/index.php?title=Hauptseite&mobileaction=toggle_view_mobile   Error from line 1278 of /mnt/web403/b0/31/56960431/htdocs/mediawiki-1.24.1/extensions/MobileFrontend/includes/MobileFrontend.hooks.php: Call to undefined method OutputPage::enableTOC() 178.25.131.49 (talk) 15:02, 28 December 2018 (UTC)
1277 if ( $context->shouldDisplayMobileView() ) {
1278 $outputPage->enableTOC( false );
1279 $outputPage->setProperty( 'MFTOC', $po->getTOCHTML() !== ); 178.25.131.49 (talk) 15:06, 28 December 2018 (UTC)
You are probably using incompatible versions of MediaWiki and the extension.
If so, download and install the extension version which corresponds to your MediaWiki core version 1.30.
After installation remember to set up a skin. AhmadF.Cheema (talk) 16:23, 28 December 2018 (UTC)
Okay, i have installed the extension for 1.30. I have setup the skin "Vector". No Error is displayd. But between the normal view and the mobile view is no difference. Both sites looks as the same... 178.25.131.49 (talk) 16:50, 28 December 2018 (UTC)
No, now it works! Thanks a lot!!! 178.25.131.49 (talk) 17:03, 28 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error creating thumbnail: File missing for ForeignDBRepo files

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,

Let me get straight to the point. This page: https://en.scratch-wiki.info/wiki/Scratch_and_Commodore_64#Simons.27_BASIC includes files from sibling wikis using $wgForeignFileRepos, resized. As you can clearly see, the files just say "Error creating thumbnail: File missing".

There are two conditions that, when combined, reliably cause this to happen:

  • The file is included from a ForeignDBRepo
  • The file is resized

Note that both of these must be true. If it is merely included from a ForeignDBRepo, it will not break. Nor if it is only resized. Also note that the original files have not been lost - this file: https://en.scratch-wiki.info/wiki/File:%E9%80%A3%E7%B5%A1%E5%85%88.png is included from another wiki and the thumbnail breaks, but the original file: https://ja.scratch-wiki.info/wiki/File:%E9%80%A3%E7%B5%A1%E5%85%88.png is still there and functional.

Note that these wikis were recently (yesterday) moved between machines on the same provider. That seems to be a contributing factor.

Any idea what's breaking?

Kenny2scratch; AbyxDev (talk) 04:42, 29 December 2018 (UTC)

If you just moved servers, my first guess would be that the new server has different permissions set up. Check to make sure that the user mediawiki is running as (usually www-data) has the ability to write in the upload directory, including subdirectories. Bawolff (talk) 15:55, 29 December 2018 (UTC)
After mucking around with permissions, nothing has worked. I also feel like I shouldn't have bothered - if it was permissions causing the issue, then thumbnails for images from the own wiki would also break...
In any case, permissions didn't work. Now what? AbyxDev (talk) 06:32, 2 January 2019 (UTC)
WELP, looks like I'm an idiot. I configured the "directory" part for the foreign repo wrong. Sorry for taking your time! AbyxDev (talk) 06:40, 2 January 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Uploading a new filetype is failing

I modified in LocalSettings.php and added the $wgFileExtensions[] = 'yaml';

So in the upload file the supported type shows yaml.

But when I try to upload the file it says:

Warning:

File extension ".yaml" does not match the detected MIME type of the file (text/plain).


When I still go ahead to upload it

The file you uploaded seems to be empty. This might be due to a typo in the filename. Please check whether you really want to upload this file.


File is not getting uploaded. Paperlessnow (talk) 08:50, 29 December 2018 (UTC)

I added following in mime.types in apache and in includes/libs/mime the following line
text/plain txt text conf def list log in yaml
i.e. included yaml in text/plain still no success. Paperlessnow (talk) 10:06, 29 December 2018 (UTC)

limit to no of files that can be uploaded

Is there any limit to no of files that can be uploaded into MediaWiki server. I can find limit to size of file not the no.

If there is can we change that? Paperlessnow (talk) 11:03, 29 December 2018 (UTC)

I don't think there is a limit for the total number of uploaded files.
What would the usecase for this be? Are you running out of disc space? Or do you want to stop spammers, who are uploading junk to your server? 87.123.197.167 (talk) 13:53, 29 December 2018 (UTC)
I am evaluating it for my content management. So just wanted to be sure there is no limitation as such imposed by MediaWiki to avoid any surprise. Paperlessnow (talk) 14:36, 29 December 2018 (UTC)
You will be limited by the free space available on the server.
A rate limit can also be configured, see manual:$wgRateLimits. This is primarily for public wikis to prevent someone from uploading 2 million files in 5 minutes. By default new accounts can only upload 8 files a minute but older accounts have no limit. These limits are configurable to anything you want, of course.
As an example, consider how many files are uploaded to Wikimedia commons: https://commons.wikimedia.org/wiki/Special:MediaStatistics Bawolff (talk) 15:53, 29 December 2018 (UTC)

Delete With One Click

I installed MediaWiki but it isn’t doing what I’d like. I’m told it’s the wrong software.

Ideally, it would be a search engine. I’d write a thousand posts for the db. I’d have a search box on the front page.

Say you want information on New York hospitals. I’d write posts looking like a blog. They’d search for “New York” and any post with that phrase of both words would be listed. Click on your choice and the posts come up.

Research told me MediaWiki was the best Wiki and it would be better than a search engine.

I posted here and was basically told I was wrong. I can’t find a free search engine other than Google CSE. I tried to configure but every help site shows different screenshots of what’s on my iPad screen.

I’m torn between deleting MediaWiki and using Google CSE or keeping MediaWiki and getting approval and help to use it as a search engine.

My obvious resort is to use MediaWiki but if not, how do I delete it from iPad? I’m used to my laptop and one click.

IF MY IDEA FOR A SEARCH ENGINE IS DOABLE, PLEASE LET ME KNOW. If Wordpress had a better search engine, I’d be all set. Replacing it with Google will cost programmer fees. MediaWiki is easy for me, I have amnesia, but all I’d do is post to the dB, scan and go. Configuration seems simple and help is here. SquirrellyWiki (talk) 03:18, 30 December 2018 (UTC)

Have you tried Extension:CirrusSearch? For uninstalling, see Manual:Uninstallation. Malyacko (talk) 20:59, 1 January 2019 (UTC)
Maybe if you write blogs, you should look for a blog system, not a wiki system. Many blog systems have a search. Ciencia Al Poder (talk) 10:34, 2 January 2019 (UTC)

instaling VisualEditor fails

MediaWiki 1.31.1
PHP 7.1.25 (apache2handler)
MariaDB 10.1.37-MariaDB
ICU 57.1

VisualEditor version: 0.1.0 (6854ea0)22:33, 5 November 2018

I added following line in LocalSettings.php

wfLoadExtension( 'VisualEditor' );

$wgDefaultUserOptions['visualeditor-enable'] = 1;

$wgHiddenPrefs[] = 'visualeditor-enable';


On 'Edit' I get following error:

Error loading data from server: no_vrs: The VirtualRESTService for the document server is not defined; see https://www.mediawiki.org/wiki/Extension:VisualEditor. Would you like to retry?


Then I added following code in LocalSettings.php

$wgVirtualRestConfig['modules']['parsoid'] = array(

      // URL to the Parsoid instance
      // Use port 8142 if you use the Debian package
      'url' => 'http://localhost:8142',
      // Parsoid "domain", see below (optional)
      'domain' => 'localhost',
      // Parsoid "prefix", see below (optional)
      'prefix' => 'localhost'

);


Then I get following error:

Error loading data from server: apierror-visualeditor-docserver-http-error: (curl error: 7) Couldn't connect to server. Would you like to retry?


I am running parsoid using Docker image.

docker run -it -p 8080:8000 -e PARSOID_DOMAIN_localhost=http://localhost/w/api.php thenets/parsoid:0.10.0


In above code I tried with both 'url' => 'http://localhost:8080' as well as 8080', but same error. Paperlessnow (talk) 12:22, 30 December 2018 (UTC)

TimedMediaHandler bug

TimedMediaHandler responding with Fatal exception of type "Wikimedia\Rdbms\DBQueryError" after I've added a OGG file


I've updated the Wiki using the config and more, nothing has helped, any clues?

My wiki page - http://ikoniawiki.epizy.com/index.php?title=Ikonia

Version page with TimedMediaHandler - http://ikoniawiki.epizy.com/index.php?title=Special:Version Niko3818 (talk) 12:36, 30 December 2018 (UTC)

In LocalSettings.php, set:
$wgShowDBErrorBacktrace = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);
For details, see Manual:How to debug. AhmadF.Cheema (talk) 14:28, 30 December 2018 (UTC)
That's giving me a 503 Gateway Error and still the same error
[XCk@vsjszMWDmogv0M0YMwAAAAU] 2018-12-30 21:55:11: Fatal exception of type "Wikimedia\Rdbms\DBQueryError" Niko3818 (talk) 21:57, 30 December 2018 (UTC)
Sorry, missed the most important one:
$wgShowExceptionDetails = true; AhmadF.Cheema (talk) 04:52, 31 December 2018 (UTC)

How to deactivate numbering the chapters of articles in table of content?

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, im using MediaWiki 1.23.9 on bplaced.net MySQL.

When I create an article in my Wiki and have a table of content, the chapters are always being numbered.

1 First Chapter

2 Second Chapter

How can I deactivate this? Tanks. Polyphon522 (talk) 15:31, 30 December 2018 (UTC)

See Manual:Table of contents#Auto-numbering.
Also, you are running an old, unsupported version of MediaWiki with known security issues. Consider upgrading it. AhmadF.Cheema (talk) 16:12, 30 December 2018 (UTC)
I tried all, what is written there but it doesnt work. I have no knowledge in informatics. Please help. Polyphon522 (talk) 12:48, 31 December 2018 (UTC)
Edit the wiki page MediaWiki:Common.css in your wiki and add to it these lines:
.tocnumber {
   display: none;
}
This should do the trick.
As for upgrading, you can have a look at Upgrade! 2001:16B8:10FD:1600:45D6:2405:FADC:D8A1 (talk) 13:01, 31 December 2018 (UTC)
Thanks very much! Polyphon522 (talk) 16:15, 31 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

need phone number so online banking will accept my wikimedia donation

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.


need phone number so online banking will accept wikimedia donation 2600:1702:3580:BAE0:9074:3522:E97:5609 (talk) 15:53, 30 December 2018 (UTC)

For donations related questions, please contact: donate@wikimedia.org. AhmadF.Cheema (talk) 16:16, 30 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Optimizing a table then database error occurs

I started to optimize my table mz_job

It came back with an error message. Now the table shows as "in use".

At the bottom of every page of the wiki this message shows :Database error

Database error

A database query error has occurred. This may indicate a bug in the software.

[XCkVHcYUTiIAAEnYwEkAAAAF] 2018-12-30 18:57:33: Fatal exception of type "DBQueryError" Kuhitkuhit (talk) 19:02, 30 December 2018 (UTC)

Wait for the optimize task to complete, or ask your database admin to unlock that table Ciencia Al Poder (talk) 10:29, 31 December 2018 (UTC)

Template or alternative?

Hi All

I've recently deployed a new MediaWiki and I'm getting on well with it so far. I have a question about templates.

Let say my wiki is for recording information about cars and on each page I have 3 Headings on each page, "Make", "Model" and "Price". We then create 20 pages for various cars in the category "Cars". Then the boss says he wants another heading "Engine".

At this point I would want to the apply a new heading to each of the existing pages in the "Cars" category with a Missing Information tag below it, then let the Wiki End users fill in that information.

Ideally I would have a 'template' page that has the 3 Headings and edit it to add the "Engine" heading which would cause a new heading with missing information to appear on all car pages, but when users edit under that new heading the changes are only applied to the specific car page that they are editing.

Is this something that can be achieved? I haven't been able to find any way of doing this by looking through the help pages and documentation, however I am hoping that I may not be looking in the right place, or perhaps there is an extension that would do this? Any help or ideas would be appreciated. KentBen100 (talk) 12:19, 31 December 2018 (UTC)

You can have a template, say Template:CarCategories. In that template you use named parameters, which get filled with what you want.
==Make==
{{{make}}}
==Model==
{{{model}}}
==Price==
{{{price}}}
==Engine==
{{{engine}}}
Then on the different pages, you would use the template like so:
{{CarCategories
|make=Porsche
|model=911
|price=97.000 €
|engine=4 liters
}}
2001:16B8:10FD:1600:45D6:2405:FADC:D8A1 (talk) 13:11, 31 December 2018 (UTC)

Cannot access database

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 upgraded a project from 1.25 to 1.31.1 The database was intact. Now as I start the wiki I get error message logging in

Ett fel inträffade vid en databasfråga. Detta kan tyda på en bugg i mjukvaran

(An error occurred with a database question. It may indicate a bug in the software) and then this message

"[35c3e18000bf7239879766bc] 2018-12-31 16:07:10: Allvarligt undantag av typen "Wikimedia\Rdbms\DBQueryError" (Serious exception of type ....)

The user name and password of the database in Localsettings.php are correct and the user and password in the wiki are also correct.

I can access the database directly through the web hotel directly using these data and checked the access data in the db table

My PHP is 7.2

Wiki is 1.31.1

Wiki is situated on http://psalmerna.se/Wiki (2)/index.php Dr Fredrik Haeffner (talk) 16:10, 31 December 2018 (UTC)

While I could not see the error in your wiki, have you run php update.php in order to update the database?
For more details see Upgrading! 2001:16B8:10FD:1600:45D6:2405:FADC:D8A1 (talk) 16:15, 31 December 2018 (UTC)
No I have not run that
I don´t know how to access a "command line"
Running Win 10 and Firefox or Chrome
Dr Fredrik Haeffner (talk) 16:33, 31 December 2018 (UTC)
Usually, you access the command line of the server with a program like PuTTY. If you do not have command line access (some shared hosts do not provide that), then you can still use the web updater in http://psalmerna.se/Wiki%20(2)/mw-config/. 2001:16B8:10FD:1600:45D6:2405:FADC:D8A1 (talk) 16:49, 31 December 2018 (UTC)
Thanks a million. It worked ! Dr Fredrik Haeffner (talk) 20:24, 3 January 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.