Project:Support desk/Flow/2018/11

This page is an archive.
Please ask questions on the current support desk.
Category:Support desk archives#Flow%20Archive%20Support%20desk/Flow/2018/11

Parsoid - HTTP 500

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 tried installing Parsoid for VisualEditor using the Parsoid/Setup guide, but am getting thrown an HTTP 500 error. I don't know why it's doing this, after looking through my configuration everything seems correct. Port 8142 is allowed on my firewall. /var/logs/parsoid/parsoid.log doesn't show anything either.

-

I'm running Ubuntu Server 18.04 LTS, nginx 1.14.0, MediaWiki 1.30.0, and PHP v7.2.10. This is what I have configured in the files:

-

/etc/mediawiki/parsoid/config.yaml
uri: 'http://{ip}/wiki/api.php'

domain: '{ip}'
- LocalSettings.php
$wgVirtualRestConfig['modules']['parsoid'] = array(
     'url' => 'http://{ip}:8142',
     'domain' => '{ip}',
     'prefix' => '{ip}'
);
-

Thank you! 67.131.21.67 (talk) 16:15, 1 November 2018 (UTC)

Do not use the parameters 'domain' and 'prefix', neither in config.yaml neither in LocalSettings.php. Also, if Parsoid is on the same server than MediaWiki, you can set 'http://127.0.0.1:8142' in LocalSettings.php, it will even more simplify the firewall settings (if you whitelisted 127.0.0.1 as it is often done). ~ Seb35 [^_^] 00:34, 2 November 2018 (UTC)
I tried that and am still getting HTTP 500 errors. 67.131.21.67 (talk) 16:04, 8 November 2018 (UTC)
Why wouldn't I use domain and prefix in config.yaml? It says those are the only required parameters. 67.131.21.67 (talk) 16:08, 5 November 2018 (UTC)
I tried troubleshooting using Parsoid/Troubleshooting and discovered that I'm getting errors because I'm on a private wiki, however I'm already forwarding cookies and have $wgSessionsInObjectCache set to true.
The error says:
AccessDeniedError: Your wiki requires a logged-in account to access the API.
LocalSettings.php says:
$wgSessionsInObjectCache = true;
$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true; 67.131.21.67 (talk) 16:25, 5 November 2018 (UTC)
Still not sure what to do here. 67.131.21.67 (talk) 20:21, 6 November 2018 (UTC)
fixed with sudo apt-get install php7.2-curl 67.131.21.67 (talk) 16:29, 8 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Syntax Highlighter converting special chars (such as >, <, &) to html char codes (>, etc)

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'm running a private / not publicly accessible WM 1.31.1 instance with Visual Editor 0.1.0, MarkdownExtraParser and SyntaxHighlight 2.0.

Everything works aside from HTML characters in code are rendered as their corresponding character codes instead -- for example, "&" would render as "&amp;" in the code. This isn't great.

Any ideas? NeutralKaon (talk) 16:27, 1 November 2018 (UTC)

It transpired that this was entirely due to the extension MarkdownExtraParser -- when disabled the bug went away.
This is perhaps a bit of a shame but I guess not entirely unexpected. NeutralKaon (talk) 22:08, 4 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Watchlist token

I'm struggling to find the help page for making use of the watchlist token. To simply use this token in a URL to follow my watchlist instead via RSS. Rob Kam (talk) 18:22, 1 November 2018 (UTC)

See Wikipedia:Syndication#Watchlist_feed_with_token Rob Kam (talk) 08:54, 7 November 2018 (UTC)

How to create a Main Page like Wikipedia with colored boxes?

I can't find the codes or info anywhere on how to created boxes with text on them that have colored backgrounds, and can be placed in columns (like two side by side for example). Just like on Wikipedia's Main Page. Thanks for any pointers. 2001:14BA:802D:1B00:EC88:D181:DF4A:8DE2 (talk) 06:09, 2 November 2018 (UTC)

Most of the code should be in the source code of the main page. AhmadF.Cheema (talk) 09:19, 2 November 2018 (UTC)

[Resolved] Can I use Wikipedia's cite templates?

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'm trying to use MediaWiki to do some offline editing of Wikipedia pages I'm working on. I enabled the Cite extension, but have errors for things like:

"Template:Cite web" (does not exist)

So, is it possible for me to use the Wikipedia templates for web, journal and book?

Thanks and great software :-) Seahawk01 (talk) 06:20, 2 November 2018 (UTC)

See Citation tool#Importing citation templates. AhmadF.Cheema (talk) 08:22, 2 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Html2Wiki

Dear All,

I am trying to import an Html file using the Html2Wiki extension, but I've got this error messages:

[W9wN3E1Vb9HUR4S3jpw8ywAAAAY] /wikiIT/index.php?title=Special:Html2Wiki&action=submit ApiUsageException from line 1942 of /var/www/html/wikiIT/includes/api/ApiBase.php: The content you supplied exceeds the article size limit of 2048 kilobytes.

Backtrace:

#0 /var/www/html/wikiIT/includes/api/ApiEditPage.php(502): ApiBase->dieStatus(Status)

#1 /var/www/html/wikiIT/includes/api/ApiMain.php(1583): ApiEditPage->execute()

#2 /var/www/html/wikiIT/includes/api/ApiMain.php(515): ApiMain->executeAction()

#3 /var/www/html/wikiIT/extensions/Html2Wiki/specials/SpecialHtml2Wiki.php(1033): ApiMain->execute()

#4 /var/www/html/wikiIT/extensions/Html2Wiki/specials/SpecialHtml2Wiki.php(961): SpecialHtml2Wiki->saveArticle()

#5 /var/www/html/wikiIT/extensions/Html2Wiki/specials/SpecialHtml2Wiki.php(655): SpecialHtml2Wiki->processFile()

#6 /var/www/html/wikiIT/extensions/Html2Wiki/specials/SpecialHtml2Wiki.php(519): SpecialHtml2Wiki->doUpload()

#7 /var/www/html/wikiIT/extensions/Html2Wiki/specials/SpecialHtml2Wiki.php(220): SpecialHtml2Wiki->doImport()

#8 /var/www/html/wikiIT/includes/specialpage/SpecialPage.php(522): SpecialHtml2Wiki->execute(NULL)

#9 /var/www/html/wikiIT/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)

#10 /var/www/html/wikiIT/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)

#11 /var/www/html/wikiIT/includes/MediaWiki.php(851): MediaWiki->performRequest()

#12 /var/www/html/wikiIT/includes/MediaWiki.php(523): MediaWiki->main()

#13 /var/www/html/wikiIT/index.php(43): MediaWiki->run()

#14 {main}

Could you help me pls? Higorf (talk) 09:50, 2 November 2018 (UTC)

Which kind of help do you expect? Is something unclear with the error message? Malyacko (talk) 10:23, 2 November 2018 (UTC)
This limit about the size of the submitted article is fixed by $wgMaxArticleSize to 2 Mio, which is already quite big, but if you want to increase it, you can change this parameter. ~ Seb35 [^_^] 10:28, 2 November 2018 (UTC)
Thanks Seb, I need to add the $wgMaxArticleSize to the LocalSettings.php right? Higorf (talk) 12:26, 2 November 2018 (UTC)
Yup, most probably! :) X-Savitar (talk) 13:55, 2 November 2018 (UTC)

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.


Hallo.

Also wenn ich ein Bild auf Wikimedia einfüge, bekomme ich solche Fehlermeldung: "Der Befehl ""/convert.bat"" ist entweder falsch geschrieben oder konnte nicht gefunden werden. Error code: 1 93.195.152.130 (talk) 14:38, 2 November 2018 (UTC)

Hallo wo bleibt mein Antwort?? Ist diese Problem unlösbar oder was????? 93.195.152.130 (talk) 15:10, 2 November 2018 (UTC)
Vielen Dank für deine Anfrage, die ich gerne in meiner Freizeit beantworte!
Natürlich ist das Problem nicht unlösbar.
Doppelposts wie Project:Support desk/Flow/2018/11#h-Error_creating_thumbnail:_The_command_""_/convert.bat_""_is_either_misspelled_or-2018-11-02T16:01:00.000Z werden hier nicht gerne gesehen.
Bedenke bitte, dass dir hier Menschen antworten, die das großteils auch noch freiwillig in ihrer Freizeit tun. Niemand ist verpflichtet dir bei deinen Problemen zu helfen und das noch dazu in dem Ton, den du anschlägst. Jörgi123 (talk) 18:27, 2 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How can I upload a File via a Put/Post request?

Is there a way (especially with c#) to Put/Post a binary file to the Server?

I currently can succesfully receive .png and .xml files but would like to also write to the server.

I have added a real hard drive folder and gave the permissions access/upload to "anyone".

When I try to e.g. Post to "http://<sererIp>/Folder/Filename.png" I always get a 404 error. If a file "Filename.png" is already there, it says "Fully downloaded" but the file doesn't change at all.

What am I doing wrong? 212.204.121.235 (talk) 15:05, 2 November 2018 (UTC)

You have to use the API to upload files (see API:Upload specifically), you cannot simply POST to some path. You can check API:Client code for client-side libraries, it seems there are some code in C# and even one specifically for uploading files (I let you check if it correspond to your needs). ~ Seb35 [^_^] 18:44, 2 November 2018 (UTC)

Error creating thumbnail: The command "" /convert.bat "" is either misspelled or could not be found. Error code: 1

Please help 93.195.152.130 (talk) 16:01, 2 November 2018 (UTC)

Please provide a clear step by step description on how to reproduce the issue. Jörgi123 (talk) 18:29, 2 November 2018 (UTC)
Sounds like you installed something that needs imagemagick and imagemagick cannot be found in your Windows installation by the software. —TheDJ (Not WMF) (talkcontribs) 12:18, 5 November 2018 (UTC)

Putting a custom Map into the Wiki

Hi,

i have a Wiki for my Table Top Role-playing group. I got a map of the hole Gameworld and would like to integrate it into the wiki not just as an image but as an interactable map. There are already some solutions like Extension:Kartographer, but they only do that for the real world. Is there a extension that works like this but with my own image or a way to get my image into one of these Extensions that normally only work with real maps.

Thanks 5.146.73.41 (talk) 16:35, 2 November 2018 (UTC)

I'm not aware of such an extension. —TheDJ (Not WMF) (talkcontribs) 12:17, 5 November 2018 (UTC)

ReCAPTCHA v1 is shut down

I want to create an account in a wiki (http://wiki.fadu.uba.ar/) but cannot do it because reCAPTCHA doesn't work... How can I create an account?

By the way, I already have a general account.. Can I use the same? How can I join that wiki with same user? Npano (talk) 18:56, 2 November 2018 (UTC)

You should contact the administrator, they should update the wiki or at least the extension ConfirmEdit (containing the captcha). The extension says that other captcha types should be used instead. ~ Seb35 [^_^] 19:07, 2 November 2018 (UTC)

Parsoid: using wt2html on several MediaWiki pages

Hello,

I'm trying to convert several of my MediaWiki pages (all belong to the same project) from Wikitext to HTML. I found Parsoid and downloaded all the materials and found the parse.js code has a wt2html option. How do I properly implement it to automate Wikitext to HTML conversion?

I've also tried using a GET request, but it seems I applied the wrong parameters. I tried to follow the format displayed in the parserTests.js code, but it didn't work.

Please help! Emske (talk) 02:11, 3 November 2018 (UTC)

For GET requests, see Parsoid/API. I’m not sure if Wikimedia has a public Parsoid to test, but if you have your Parsoid, the URLs are something like http://127.0.0.1:8142/wiki.example.org/v3/page/html/Main_Page/1 (the Parsoid needs to be configured for a specific MediaWiki installation, here without explicit 'domain' neither 'prefix', only the 'uri').
Also note the result is not classic HTML but enriched HTML for consumption by the VisualEditor (there are more tags and attributes than in classic HTML), see Specs/HTML/2.0.0. ~ Seb35 [^_^] 08:22, 3 November 2018 (UTC)

No SVG when importing templates from mediawiki using Special:Import

Hi,

v: 1.31.1

so I set up MediaWiki and it works fine. Now I wanted to export Template:Note, Template:Warning and Tempalte:Warn from the MediaWiki page. I included templates and all revision and importet it in my wiki. The pages work but there seem to be no SVGs.

E.g. /index.php?title=Template:Warning looks like this: https://imgur.com/a/71nIs9k

I don't really know what I missed. 188.60.72.147 (talk) 13:01, 3 November 2018 (UTC)

you will need to download the SVGs separately and upload them with the same name on your personal wiki.
Please think of attribution and copyright licenses, where applicable —TheDJ (Not WMF) (talkcontribs) 12:15, 5 November 2018 (UTC)

صفحة خاصة جديدة

مرحبا، أريد إضافة صفحة خاصة جديدة لويكاموس و هي خاصية ترجمة المحتوى، نحن نحتاجها لزيادة كلمات ويكاموس كما في ويكيبيديا. ونو (talk) 21:56, 3 November 2018 (UTC)

أريد ردا@Shirayuki ونو (talk) 11:49, 4 November 2018 (UTC)
Why do you think I can answer your question??? Shirayuki (talk) 12:00, 4 November 2018 (UTC)

inserting Sitelock code in a wiki page

Trying for a while to insert that code

<a href="#" onclick="window.open('https://www.sitelock.com/verify.php?site=mechground.com','SiteLock','width=600,height=600,left=160,top=170');" ><img class="img-responsive" alt="SiteLock" title="SiteLock" src="//shield.sitelock.com/shield/mechground.com" /></a>

tht tell pwoples my website is safe and no malware with this logo. but for any reasons i cant find a way, I look online try the search on different way... I dunno I am trying but no resul to make this work, if you could help that will be great 70.24.92.162 (talk) 20:51, 4 November 2018 (UTC)

Guess not peoples can do this coding thing.. maybe it is impossible, well thanxs ill continue looking online if anyone did it .
Norm NormandBoisclair (talk) 14:37, 6 November 2018 (UTC)

Rotate images

Hi, I want to rotate some images in my wiki. I tried the transform-rotate instruction but it is not working. Any idea? Thank you 132.191.0.138 (talk) 22:02, 4 November 2018 (UTC)

Please link to "the transform-rotate instruction" and provide version information. Malyacko (talk) 10:58, 5 November 2018 (UTC)

Size of objectcache table

In old MediaWiki versions (like 1.19) the objectcache table used to grow without any limit.

Now I run MediaWiki 1.27.5 and the objectcache doesn't change much. One year ago it was 16 MB, today it's only 11 MB (with 500 articles and 50.000 users per month).
On another wiki the table has only 1,5 MB.

Is that normal or is there something wrong with caching on my server?

In my LocalSettings.php I use:

$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = [];
#$wgCacheDirectory = "$IP/cache"; // no cache directory

Stefahn (talk) 09:40, 5 November 2018 (UTC)

As the name of the constant suggests, CACHE_NONE will not cache content. With this value, the table is probably used only for storing the session data of your users, nothing more.
Read Manual:Caching for more information. You probably want to set $wgParserCacheType to CACHE_DB. Ciencia Al Poder (talk) 10:20, 5 November 2018 (UTC)

Hide search box on Main_Page

Hi! I'm running v1.31 and trying to hide the search box on the main page only. I have the following code in my MediaWiki:Common.css but it doesn't work:

body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading .p-search { display: none; } 62.96.213.62 (talk) 11:34, 5 November 2018 (UTC)

you are hiding the first heading, and you are hiding the search box within the first heading. Since the search box isn't within the first heading, it's not hiding it. You are also targeting the classname p-search, but p-search is an element ID.
This is likely more accurate:
body.page-Main_Page.action-view h1.firstHeading, #p-search { display: none; } —TheDJ (Not WMF) (talkcontribs) 12:13, 5 November 2018 (UTC)
This would hide the search box eveywhere. To hide it only on the main page, it would be something like:
body.page-Main_Page.action-view #p-search { display: none; } ~ Seb35 [^_^] 13:28, 5 November 2018 (UTC)
Consider that if you have language-specific wiki, then you must use localized name, e.i. no "Main_Page" but "Hauptseite" in German and so on.
body.page-Main_Page #p-search { display: none; }
works too. Many useful tips on similar topics can be found in https://www.hostknox.com/knowledgebase/706/How-to-remove-the-Search-block-the-Navigation-and-Tools-menus-and-menu-links-in-MediaWiki.html Ency (talk) 15:11, 17 March 2020 (UTC)
Thanks TheDJ! That worked but it hides the search form on all pages... hmmm...
p-search appears as both an id and a class: <div id="p-search" class="p-search navbar-form" role="search"> 62.96.213.62 (talk) 13:29, 5 November 2018 (UTC)
Thanks both - Seb35: I just worked that out and it hides it only on the Main_Page, perfect! 62.96.213.62 (talk) 13:30, 5 November 2018 (UTC)
To delete the search bar type:
#p-search { display:none; }
In MediaWiki:Common.css Infinitepeace (talk) 07:00, 27 January 2021 (UTC)
Hello how about removing the search bar for anonymous, non-logged in readers only? Onlyforwikiapps (talk) 03:58, 30 September 2021 (UTC)

Keeping a user logged in across multiple wikis

Hello,

I'm looking to keep a user logged into their account across two separate wikis. I already have the user table shared (it's stored in the database of one wiki, the other accesses it). What's the easiest way to go about this? I gave the $wgCookieDomain variable a shot, but it broke the login process. It's possible I was just using it wrong though.

Thanks! Garuda3 (talk) 15:30, 5 November 2018 (UTC)

That’s complicated, and as far as I know there is no simple way to do that. Wikimedia uses Extension:CentralAuth but it’s quite a work to set it up. You can have a look also to other similar extensions in Category:User identity extensions; there was also Extension:CASAuthentication but it was unmaintained (and also heavy machinery). ~ Seb35 [^_^] 14:40, 6 November 2018 (UTC)
Thanks! I may try CentralAuth, but I'm pretty busy at the moment so I will probably wait until end of semester, so if I break something I will have time to fix it. Garuda3 (talk) 10:55, 7 November 2018 (UTC)

Securing my Wiki via a Password

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 Guys,

I created a Wiki in the Intranet of my company. It's a Servicewiki for the IT-Guys where they can look up passwords and stuff like that. Stuff other Users and non admins shouldn't see. Is there a way to secure the wiki or wikipages?

Thanks 217.7.188.10 (talk) 16:05, 5 November 2018 (UTC)

See Manual:Preventing access Malyacko (talk) 17:01, 5 November 2018 (UTC)
Thanks alot!! 217.7.188.10 (talk) 08:06, 6 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Help Logging Into Factorio Wiki

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello, im sorry if this ended in the the wrong place, but i requested an account on the Factorio wiki, and as a result of it going into my spam folder, my account got put on a wait-list and i cant log into it, any way to help or remove this? Comcial Sans (talk) 18:27, 5 November 2018 (UTC)

Yeah, sorry. This is definitely the wrong place. MediaWiki has no official links with Factorio.
Probably ask at the Wiki Talk part of their forum. AhmadF.Cheema (talk) 19:57, 5 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Converting existing wikis into a wiki farm setup.

Hello! I am looking for advice to convert already existing wikis in to a wiki farm. (Media wiki version 1.28.3), though I would like it to have so when one user makes an account on on wiki, that account stays on that wiki and only that wiki. Any Advice? Thanks. Jakel181 (talk) 22:19, 5 November 2018 (UTC)

I would also like to add that if one use is a admin or bureaucrat on one wiki and they request an account on another wiki they don't have admin or bureaucrat permissions on that wiki. Jakel181 (talk) 12:36, 7 November 2018 (UTC)
The suggestions in 1 and 2 here Manual:Wiki family will achieve what you request. The databases are independent so user accounts and of course permissions are per-wiki. HSRobinson (talk) 17:48, 7 November 2018 (UTC)
Ok Thank you. :) I thought I wouldn't as Wikipedia and Miraheze (Wiki hosting service) don't. Jakel181 (talk) 21:38, 7 November 2018 (UTC)

if i delete my room history how to find out history

if i delete my room history how to find out history 2A00:23C6:4E86:A100:7DF6:677:57F5:6A60 (talk) 22:23, 5 November 2018 (UTC)

What do you mean by a "room history"? AhmadF.Cheema (talk) 08:06, 6 November 2018 (UTC)

hi

how do i create my own topic on MediaWiki? Skyheart1 (talk) 22:54, 5 November 2018 (UTC)

See Help:Starting a new page. AhmadF.Cheema (talk) 08:08, 6 November 2018 (UTC)

Copied wiki from 1 Raspberry 3.0 to another. "Error creating thumbnail"

I think the db came over correctly to the backup RPi: All the pages and tables look correct. But, every image in the backup wiki shows "Error creating thumbnail" along with "No such file or directory". I believe I used tar correctly to copy over all the images in both /usr/share/mediawiki and /var/lib/mediawiki.

There are lots of accounts of how to resolve "Error creating thumbnail" and I've run through several of them but I can't see why the backup wiki won't show images. Please, what am I doing wrong? 199.58.98.89 (talk) 00:32, 6 November 2018 (UTC)

In your "<mediawiki directory>/images" can you see your images present? AhmadF.Cheema (talk) 08:10, 6 November 2018 (UTC)
Yes. All the images files appear to be in the same folders as in the original (source) RPi. 199.58.98.89 (talk) 15:08, 6 November 2018 (UTC)

Error in Log in stage

How can I change my password?

I've checked my Username and password. Both are correct.

But the error still appears "Your entered password is not correct"

I tried to reset password via link "Reset the password", but didn't get any e-mail to do it. 109.73.10.250 (talk) 10:54, 6 November 2018 (UTC)

Assuming you have checked your spam folder, you'll probably have to contact the website that you refer to. Malyacko (talk) 12:42, 6 November 2018 (UTC)

Demande d'aide pour BdD connaissances sur MédiaWiki

Bonjour, et merci à @Framawiki

J'ai effectué le 1er WikiMOOC et j'ai suivi avec succès le MOOC du Web sémantique sur la plate-forme FUN...

Je me suis lancé dans un défi qui est devenu mon "rocher de Sisyphe"...!!! Mettre dans une base de type MédiaWiki l'ensemble des "connaissances" d'une communauté associative de ''philosophes praticiens amateurs'' Cette base est une somme de type documents "papier" (cours, biblio,...), documents numérisés, documents audio, documents vidéo. Pratiquement tout est référencé par nos soins.

1/ J'ai voulu tout d'abord monter un démonstrateur pour moi-même sur mon PC : téléchargement de la version 1.30 et de certaines extensions à partir d'une "ferme Wanpserver" et création des 1ers articles. Réussi sauf que tous les modèles de Wikipédia ne fonctionnent pas (compatibilités LUA ???)...!!!

2/ Hébergement et versement sur OVH avec l'aide d'un collègue dans le but de faire fonctionner tous les modèles et l'accessibilité via nos 2 smartphones : la 1er offre appelée Kimsuffi (hébergement mutualisé) a permis d'améliorer le résultat mais ne permet pas visiblement de faire fonctionner tous les modèles (notamment le binaire LUA !?! ). Je me suis renseigné pour passer à l'offre supérieure (VPS) pour améliorer le taux de récupération des outils WP et l'efficacité globale...

3/ Mon collègue et moi n'ayant pas toute la connaissance du moteur MédiaWiki ni des extensions possibles, je recherche une communauté française qui aurait cette expertise car nous avons des demandes de fonctionnalités (base possédant 4 espaces différents ayant des accès différents suivant le username et privilèges ad hoc, hiérarchie des articles de type "poupées russes", graphe des liens internes inter-articles, mis en pl:ace d'hyperliens avec des documents de type Office ou OpenOffice éditables hors wiki et qui seraient logés sur le site hébergeur,...)

4/ Je me suis posé très tôt la question d'une solution type "web wiki sémantique", mais, non spécialiste, je n'ai pas pu décider si le projet le nécessitait... notamment pour l'utilisation de chaque source qui, "saisie individuellement une seule fois", est réutilisable à tout moment...

5/ Le but du démonstrateur est de faire le point sur notre cahier des charges afin de démarrer un projet qui tienne la route.

Peux-tu (pouvez-vous ) m'aider à trouver cette communauté STP (SVP) ?

D'avance merci,

Guy, Guy6631 (talk) 11:20, 6 November 2018 (UTC)

Je sais que OVH est un provider francais, mais "BdD" ou "Wanpserver" ou tous les autres choses, qu'est-ce qu'ils sont? (Et quelle "communaute" exactement? T'as pas pose des questions, mais beaucoup des choses t'as fait ou essaye... :) ) Malyacko (talk) 12:41, 6 November 2018 (UTC)
@Malyacko Bonjour et merci
  • BdD  ? = Base de Données (exemple type : Access de Microsoft)
  • BdD connaissances = Base de connaissances (exemple type : Wikipédia)
  • Wampserver  ? = plate forme de développement Web. Voir le site : http://www.wampserver.com/
Je recherche une communauté de spécialistes MédiaWiki (français !!!) qui pourraient m'aider à déboguer les dysfonctionnements, à rechercher des options ou des modules ou extensions ou gadgets ou fonctionnalités beta écrits pour MédiaWiki (utilisés ou non sur Wikipédia !) qui nous seraient utiles et à compléter mon démonstrateur...
D'avance merci,
Guy, Guy6631 (talk) 16:19, 6 November 2018 (UTC)

ImageMap bug, sourcecode gets parsed incorrectly?

Hey,

there's a bug in the ImageMap extension, can someone help me to fix it or create a workaround?

An example of the bug can be found here. The first few lines of this paragraph are linked to the image used in the ImageMap at the right side, for whatever reason. At first, I suspected a missing bracket or other character in the used template, but the template code is fine. I also tried substituting the template into the article, the source code looks correct:

== Welten ==
{{#tag:imagemap|
Image:NSMBU Imagemap.png{{!}}right{{#ifeq: no|yes||{{!}}thumb}}{{!}}400px{{!}}Klicke auf ein Gebiet, um den entsprechenden Artikel zu öffnen.
rect 536 802 650 932 [[Geheime Insel]]
poly 0 1196 200 1184 490 1140 562 1100 536 924 452 956 450 986 406 938 406 830 478 820 496 774 548 594 286 710 254 696 184 618 132 684 0 698 [[Eichenhain]]
poly 2 754 348 676 548 588 512 680 708 640 742 562 786 570 788 602 916 596 992 518 986 424 836 418 818 370 716 338 720 280 364 262 0 284 [[Sandkuchenwüste]]
poly 1410 1224 1394 970 1372 902 1464 872 1400 702 1262 638 1296 570 1248 494 1092 456 960 544 916 596 778 602 686 664 514 682 488 814 392 838 568 956 558 1076 548 1220 [[Minzmeer]]
poly 846 4 662 280 852 428 990 428 986 508 1100 458 1228 374 1360 388 1368 418 1410 424 1444 358 1508 328 1752 286 1592 0 [[Eiswürfeleisfälle]]
poly 1112 428 1214 374 1364 380 1370 420 1414 424 1444 368 1670 316 1772 404 1710 426 1846 576 1798 622 1860 668 1862 758 1888 784 1890 806 1852 844 1906 888 1992 952 1988 1134 2004 1254 1412 1254 1378 922 1468 852 1404 690 1266 644 1272 502 [[Limonadendschungel]]
poly 1964 940 2008 1136 2260 1192 2654 1176 2654 796 2348 796 2356 696 2212 684 2156 784 2124 736 1948 900 [[Kandis-Minen]]
poly 1846 352 1716 440 1842 578 1808 634 1872 702 1914 792 1862 824 1876 874 1938 934 2082 898 2068 856 2128 742 2252 702 2318 762 2362 708 2348 840 2446 868 2452 806 2516 822 2498 888 2642 942 2642 442 2482 438 2388 386 2338 426 2346 474 2292 450 2126 490 2042 400 1948 370 [[Zuckerwattenwolkenzone]]
poly 1600 0 1752 286 1670 310 1962 382 2146 474 2330 446 2386 378 2654 438 2654 0 [[Pilz-Palast#New Super Mario Bros. U|Pilz-Palast]]
desc bottom-right
}}
Eine Besonderheit im Vergleich zu den Vorgängerspielen der Super Mario Bros.-Serie haben die Welten: sie sind nun alle auf einer Karte. Es gibt somit keinen Weltenauswahlbildschirm mehr, stattdessen geht man von einer Welt in die andere. Dieses System wurde zuerst in ''[[Super Mario World]]'' verwendet. Möchte man von einer Welt in eine andere gehen, so kann man entweder die direkte Verbindung oder die Röhre benutzen, die es in jeder Welt gibt. Man hat sie aber nicht von Anfang an frei.

However, the first few sentences still get linked to the image used in the ImageMap - something must get parsed incorrectly here.

How can I fix that, what causes that problem?

I'm using MediaWiki 1.25.1 here, the ImageMap extension has no version number, but was installed a long time ago and was never changed. Don't kill me for using such an old version, I took the wiki over in summer, and I'm going to update it (and finish the design) when I move it to my own server, but I need to wait until I get better internet, which will hopefully in a few weeks, since my current connection is too slow to transfer several gigabytes of data between servers, and the old server doesn't support SSH, which means I can't establish a connection between the two servers for a direct data transfer. 188.118.240.132 (talk) 14:32, 6 November 2018 (UTC)

Push 188.118.240.132 (talk) 09:05, 12 November 2018 (UTC)
mariowiki.net is using an old and unsupported MediaWiki version.
For what is worth, I had the same problem on wikidex.net on 1.29, but it fixed itself when I upgraded to 1.30, so I bet upgrading your wiki and extension to at least 1.30 should fix the issue. Ciencia Al Poder (talk) 10:11, 12 November 2018 (UTC)

Error when trying to edit

For a while now, when trying to edit our wiki, we get the following error message:

[5be035ff] 2018-11-06 17:40:20: Fatal exception of type MWException

Is there anything that could be done about that? 89.206.64.4 (talk) 17:45, 6 November 2018 (UTC)

We need the complete error message in order to help you.
See Manual:How_to_debug for how you can display it! 2001:16B8:106D:A500:6CE0:F1A:DC54:7A34 (talk) 18:08, 6 November 2018 (UTC)

How to perform a POST request to convert several pages from WikiText to HTML?

Hi,

I'm trying to perform a wikitext to html conversion for several pages. The GET request displayed everything in html, but is there a way to retrieve the html code? I thought perhaps the POST request would work, but I keep getting an error when performing the following:

http://localhost:8000/localhost/v3/transform/wikitext/to/html/Sandbox

Givers me the following error:

Cannot GET /localhost/v3/transform/wikitext/to/html/Sandbox

localhost is my domain, and Sandbox is the page I'm trying this out on.

Also, is there a way to automate this for when I perform this on several pages?

Thanks! Emske (talk) 17:58, 6 November 2018 (UTC)

What is your usecase?
Wikitext to html sounds to me like you should actually be using the API! :-) 2001:16B8:106D:A500:6CE0:F1A:DC54:7A34 (talk) 18:09, 6 November 2018 (UTC)
What do you mean by use case? I'm just on a local server testing out/getting familiar with Parsoid in preparation for a large MediaWiki conversion to HTML (which should lead to an easier conversion to something else going forward). My Sandbox page is just my testing ground. Emske (talk) 19:36, 6 November 2018 (UTC)
The thing is that the MediaWiki API can parse a page and give out the HTML. There is no need to manually convert the wikitext - MediaWiki already can do that. See API:Parsing_wikitext for how that works! 2001:16B8:106D:A500:6CE0:F1A:DC54:7A34 (talk) 20:15, 6 November 2018 (UTC)
This might come off as a trivial question, but what is the difference between parsing the page and parsing the text?
Also, is there a way to get rid of the \n at the end of each line and the Parsoid specific information (I'm guessing it's in there for HTML->Wikitext conversion)? And is it possible to execute the command via command line or some other tool? If I could automate this process, that'd be fantastic.
I used the following command:
http://localhost/mywiki/api.php?action=parse&page=Sandbox
and a page containing JSON formatting appeared. If there's JSON formatting, can I get a JSON file out of this (a physical file, not just a display)?
    • Sidenote: the parameter in the documentation that's noted as {{PAGENAME}} does not exist as a parameter to set (i.e. pagename=). Shouldn't pagename be {{page}}? Emske (talk) 22:35, 6 November 2018 (UTC)
As an alternative, you can also use the parse.php maintenance script to parse from command line Ciencia Al Poder (talk) 10:45, 7 November 2018 (UTC)
> This might come off as a trivial question, but what is the difference between parsing the page and parsing the text?
There is no difference.
> can I get a JSON file out of this (a physical file, not just a display)?
If you add &format=json to your api.php URL you will get JSON. You can then convert that to a file or process it using your code, like your PHP code or whatever you use to code. HSRobinson (talk) 17:54, 7 November 2018 (UTC)

site keeps disconnecting and reconnecting

the site keeps disconnecting me and reconnecting 24.127.124.211 (talk) 18:06, 6 November 2018 (UTC)

MediaWiki? 2001:16B8:106D:A500:6CE0:F1A:DC54:7A34 (talk) 18:09, 6 November 2018 (UTC)

Upgrade from 1.26 up to 1.31.1 images not found

Hello,

i have my mediawiki upgrade. All text, sites are visible, but non picture is showing.

On debug log is logging:

  • ile::transform: Doing stat for mwstore://local-backend/local-thumb/3/3a/Upd1.jpg/120px-Upd1.jpg
  • [FileOperation] FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/3/3a/Upd1.jpg/120px-Upd1.jpg does not exist.

On the server is "mwstore://local-backend/local-thumb" "/httpdocs/images/thumb" ?

If yes on server is not a subdir "/3/3a/Upd1.jpg/" the right subdir is "/Upd1.jpg/" without "/3/3b".

On other pictures are other subdis /4/47 /7/7f ...

How can i disable the "injektion subdir"?

regards Mario Mario3211 (talk) 22:17, 6 November 2018 (UTC)

See Manual:FAQ#…are some of my images not showing up after an upgrade? Malyacko (talk) 02:50, 7 November 2018 (UTC)

Third wiki (with addon domain) redirects to original wiki even with redirects disabled

MediaWiki Version: 1.30

PHP Version: 5.6.38 (litespeed)

Database: mw_33334

Hello. One of my wikis (en.penguingamestudio.com/mw19/) that has an addon domain has an issue being set up. The document root is set to public_html like the other wikis. When I click on it, it redirects to the original wiki, penguinicewikis.com/mw19/. This happens even when no redirect is set. How can I fix the document root and make the wiki separate from the original wiki? Newman2 (talk) 00:18, 7 November 2018 (UTC)

See here Manual:Wiki family how to setup a Wiki family. HSRobinson (talk) 17:56, 7 November 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.

When links are produced with the ref tag, they are small numbered "boxes". Is there a way to change this to be the same size as the text itself? Basically, to produce links like how latex creates them?

Thanks. VOIstri (talk) 00:37, 7 November 2018 (UTC)

Maybe Extension:CrossReference will suit your purpose?
To edit how references are rendered, you will need to edit particular MediaWiki messages, a list of those related to cite references is available from here.
MediaWiki:Cite reference link will be the one relevant for your purpose. Using <span> instead of <sup> will level the reference tags, after which one CSS rule addition to MediaWiki:Common.css will be required to change the font-size from the present 80% to 100%. AhmadF.Cheema (talk) 09:38, 7 November 2018 (UTC)
Hi. Sorry for the lack of reply. I will take a look, but I can't really tell from the description exactly what that extension will do. It looks like it allows for a different type of reference rather than amending the way mediawiki renders references. I might just try poking around the code, since I can see that it's the result of the sup tag being used. The problem is that if I hack the core code to remove it there's no knowing what it might mess up...
Thanks anyway. VOIstri (talk) 00:09, 16 November 2018 (UTC)
If by "core code", you mean MediaWiki's core code, then it is definitely recommended against. There isn't even any need for such here.
As mentioned above, in the source code of your Wiki's MediaWiki:Cite reference link page, change <sup> to <span> and then add the following in your Wiki's MediaWiki:Common.css:
span.reference {
	font-size: 100% !important;
}
AhmadF.Cheema (talk) 01:30, 16 November 2018 (UTC)
Ah, sorry I don't know how I missed that; I must have been too distracted to read your reply properly, I'm sorry. But, that that's what I needed to know, thanks! I can probably amend the CSS to tweak exactly how I want it to look.
Thanks a lot! You've been a real help. VOIstri (talk) 18:25, 16 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is there a way to insert automatically the What links here feature to all pages of a certain category? 83.175.70.69 (talk) 08:29, 7 November 2018 (UTC)

Maybe in the form "{{#ask:Author (works)::Project:Support desk|format=list}}" 83.175.70.69 (talk) 08:51, 7 November 2018 (UTC)
There's no simple way to do that unless you develop an extension
You can transclude {{Special:WhatLinksHere/{{FULLPAGENAME}}}} on a template, and manually add that template to pages. That way you can control the position of those links. Ciencia Al Poder (talk) 10:42, 7 November 2018 (UTC)

Isolating parser.php

Hello everyone,

I am trying to call the parser.php function, and I am following this answer https://stackoverflow.com/questions/12036765/how-to-manually-call-mediawiki-to-convert-wiki-text-to-html. The code looks like tthis:

$output = $wgParser->parse(

    "some ''wikitext''",

    Title::newFromText('Some page title'),

    new ParserOptions());

echo $output->getText();

upon execution it gives me the follow error:

MWException from line 1208 of /var/lib/mediawiki/includes/WebRequest.php: Unable to determine IP.</p><p>Backtrace:</p><p>#0 /var/lib/mediawiki/includes/Setup.php(740): WebRequest-&gt;getIP()<br />

#1 /var/lib/mediawiki/includes/WebStart.php(88): require_once(string)<br />

#2 /var/lib/mediawiki/CALLING_PARSER.php(3): require(string)<br />

#3 {main}

Does anyone knows how to fix this error?

Thanks you. Blagojce95 (talk) 13:46, 7 November 2018 (UTC)

Is there a way to create files (i.e. JSON) from the WikiText to HTML parser output?

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 was using the API to perform a WikiText to HTML conversion (well, not quite conversion, but at least get the HTML code dump):

http://localhost/mywiki/api.php?action=parse&page=Sandbox

where my domain is localhost and mywiki is the name of my MediaWiki. Sandbox is the specific page I was testing this API request on.

Going forward, I want to automate this conversion, and the above command gave the HTML dump in JSON format, but there is no JSON file containing the information. Is there a way to get a physical JSON (or any other text file) out of this?

Thanks! Emske (talk) 15:59, 7 November 2018 (UTC)

Err, that link should clearly show you how to get json. It might be a good idea to spend sometime reading the api help: API & Parse content of a page . 197.218.81.74 (talk) 16:44, 7 November 2018 (UTC)
You need to add &format=json to the URL Ciencia Al Poder (talk) 10:41, 8 November 2018 (UTC)
Thank you! Emske (talk) 14:26, 8 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wiki setup fails gracefully with message "It is not possible to determine the wiki ID."

MediaWiki Version: 1.30

PHP Version: 5.6.38 (litespeed)

Database: mw_33334

I have been working with a wiki family, yet I haven't been able to make wikis at independent domains work. One of my websites, en.en.penguingamestudio.com, is not working, and it blanks out with the message "It is not possible to determine the wiki ID." I do not want to add another installation to the second domain; I want it to run like Wikimedia Foundation. How do I fix this issue? 104.231.254.108 (talk) 21:45, 7 November 2018 (UTC)

What is the main domain of your wiki? Jakel181 (talk) 21:53, 7 November 2018 (UTC)
Actually I could not find this error message in the MediaWiki code. Jörgi123 (talk) 18:12, 14 November 2018 (UTC)

PHP error when importing xml

Product Version
MediaWiki 1.31.1
PHP 7.2.11 (apache2handler)
MariaDB 10.1.36-MariaDB
ICU 4.8.1.1

I posted a question a few days ago talking about having trouble importing a large xml file into a new wiki (and I forgot to properly thank AhmadF.Cheema for his suggestion of using importDump.php). We are currently trying to import an xml file of just over 5,000 article as well as everything else that is included in a database dump, and have tried importDump.php, though we have run into an issue while running it.

I did not run it personally, but the person with shell access ran the following command on the command line: php importDump.php --conf /opt/lampp/apps/wiki/htdocs/LocalSettings.php dumpfile.xml

He received: PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /opt/lampp/apps/wiki/htdocs/maintenance/importDump.php on line 349

The user who ran it claims that this output is because the feature does not use PHP 7, which is what our MediaWiki installation uses. Is this correct, and if so, is there a way to still import all the data as a whole xml? Sorry if I've missed something simple, I'm not the most literate when it comes to PHP and website maintenance. Thanks. 66.169.205.162 (talk) 04:58, 8 November 2018 (UTC)

Be sure the php-cli binary is PHP7 and not PHP5. You can check by executing php --version. You may need to install the php7 version on your server Ciencia Al Poder (talk) 10:39, 8 November 2018 (UTC)
Hi,
Thanks for your reply! We have updated the php-cli binary, and now it gives us this error:
php importDump.php --conf /opt/lampp/apps/wiki/htdocs/LocalSettings.php dumpfile.xml
PHP Notice: Undefined index: SERVER_NAME in /opt/lampp/apps/wiki/htdocs/includes/GlobalFunctions.php on line 1432 PHP Notice: Undefined index: SERVER_NAME in /opt/lampp/apps/wiki/htdocs/includes/GlobalFunctions.php on line 1432(edited)
Any idea? Thanks. 66.169.205.162 (talk) 20:11, 8 November 2018 (UTC)
This is not an error in itself. See T172060
You can remove this notice by setting $wgOverrideHostname in LocalSettings.php Ciencia Al Poder (talk) 10:16, 9 November 2018 (UTC)

how to change birth and death date on wikipedia?

Hi
How can i change birth and date on my wikipedia? i have noticed someone has put i died but actually im still alive!!
thanks Ktiger88 (talk) 06:42, 8 November 2018 (UTC)
https://en.wikipedia.org/wiki/Help:Editing Malyacko (talk) 11:08, 8 November 2018 (UTC)
You can probably just edit it, but the place to ask Wikipedia questions would be on Wikipedia, here. AhmadF.Cheema (talk) 10:10, 8 November 2018 (UTC)

smtp can not send mails

I tried to verify my account emails but it only shows me this:

(code: -1, response: )]

Here is what I set in LocalSettings :

$wgEnableEmail = true;

$wgEnableUserEmail = true; # UPO

$wgSMTP = array(

'host'     => "smtp.163.com", // could also be an IP address. Where the SMTP server is located

'IDHost'     => 'rustbaike.com', //this is the outgoing mail server name (SMTP server)

'port'     => 25,                 // Port to use when connecting to the SMTP server

'auth'     => true,               // Should we use SMTP authentication (true or false)

'username' => "rustbaike@163.com",     // Username to use for SMTP authentication (if being used)

'password' => "xxx"       // Password to use for SMTP authentication (if being used)

);

Is there anything else I should do? Thanks for any help. 106.114.64.101 (talk) 15:10, 8 November 2018 (UTC)

Try smtp.163.com for IDHost HSRobinson (talk) 18:28, 8 November 2018 (UTC)

Forgotten my login password but not getting an email

I've changed my browser and went to log in but have forgotten my password. I've requested a reset but haven't received an email to either of my two email accounts. Is there another way I can get back into my account? 81.132.225.82 (talk) 18:53, 8 November 2018 (UTC)

"two email accounts"?
Does MediaWiki allow setting two email accounts for a user?😕 AhmadF.Cheema (talk) 09:39, 9 November 2018 (UTC)
Did you check your SPAM folder? HSRobinson (talk) 11:18, 9 November 2018 (UTC)

A problem

Why cannot I log in my IMSLP account?

The page shows this information "Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information."

Can you help me to solve this problem? Thank you!

My user name is 小豬. 27.242.194.107 (talk) 10:33, 9 November 2018 (UTC)

If you are asking about the International Music Score Library Project then you should contact them via their page here:
https://imslp.org/wiki/IMSLP:About HSRobinson (talk) 11:20, 9 November 2018 (UTC)

Apache2 Redirect: wiki.example.com -> wiki.example.com/w/

For an internal-only wiki - Has anyone successfully setup a redirect so that a DNS hostname redirects to the wiki subfolder?

The internal redirect works, from wiki.example.com/w/ to wiki.example.com/w/index.php/Main_Page 62.96.213.62 (talk) 11:06, 9 November 2018 (UTC)

https://serverfault.com/questions/9992/how-to-get-apache2-to-redirect-to-a-subdirectory Ciencia Al Poder (talk) 10:18, 12 November 2018 (UTC)

problem

Hi I am anjelo from sri lanka. I have minitt1 and flex tt5. I have a problem. I am using 5d mark ii camera. And I am using two flashers 600 ex rt canon. My problem is I cant shoot over 250 shutter speed. When I shoot in high shutter I get a half frame photo. Only half exposed. So I want to get rid of this.. pls help me two get in sync with all shutter speeds… 2402:4000:2182:91AA:A9B8:F111:541B:C0B0 (talk) 14:10, 9 November 2018 (UTC)

Welcome to the support desk for the MediaWiki software. How is your question related to the MediaWiki software? Malyacko (talk) 14:14, 9 November 2018 (UTC)

Installing Octopus 8.2 on Ubuntu 18.04.1 LTS with MPI

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 trying to install Octopus 8.2 on Ubuntu 18.04.1 LTS with MPI

I installed

* Required: gfortran, gcc, make, automake, m4, libtool, libgsl0-dev, libblas-dev, liblapack-dev, libfftw3-dev

* Optional: mpi-default-dev,, libsparskit-dev, libnetcdf-dev

libgd2-xpm-dev and libtrilinos-dev wer not found

I installed Libxc to /home/kyle/OctoMPI/libxc-4.1.0

./configure --prefix=`pwd` CC=/usr/bin/mpicc FC=/usr/bin/mpif90 FCCPP="/lib/cpp -ansi -freestanding" FCFLAGS="-O3 -ffree-line-length-none" CFLAGS=-O3

make install

make check

I installed Octopus 8.2 to /home/kyle/OctoMPI using

./configure --prefix=`pwd` CC=/usr/bin/mpicc CXX=/usr/bin/mpicxx FC=/usr/bin/mpif90 FCCPP="/lib/cpp -ansi -freestanding" FCFLAGS="-O3 -ffree-line-length-none" CFLAGS=-O3 --with-libxc-prefix=/home/kyle/OctoMPI/libxc-4.1.0 --enable-mpi

make install

make check gives the following errors, please help

Execution                              : [  FAIL  ]

Status: 2 failures

    Passed:  106 / 164

    Skipped: 19 / 164

    Failed:  39 / 164

    testfile                                                    # failed testcases

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

    finite_systems_1d/02-neon_mpi.test                          4

    finite_systems_1d/01-hydrogen.test                          1

    finite_systems_3d/05-output.test                            2

    finite_systems_3d/06-restart.test                           5

    finite_systems_3d/12-forces.test                            1

    finite_systems_3d/08-spin_orbit_coupling_full.test          1

    finite_systems_3d/29-pcm_chlorine_anion.test                1

    finite_systems_3d/21-lobpcg.test                            1

    functionals/01-xc_1d.test                                   1

    finite_systems_3d/23-go-na2.test                            1

    linear_response/03-vdw_sternheimer.test                     1

    linear_response/02-h2o_pol_lr.test                          3

    optimal_control/02-sym_doublewell.test                      1

    linear_response/05-polarizability.test                      2

    optimal_control/01-asym_doublewell.test                     2

    optimal_control/05-adw.test                                 3

    optimal_control/04-box.test                                 7

    optimal_control/06-zbr98.test                               1

    optimal_control/09-density+current.test                     1

    functionals/10-vdw_d3_dna.test                              1

    optimal_control/10-current.test                             1

    periodic_systems/01-free_electrons.test                     1

    optimal_control/03-localtarget.test                         1

    periodic_systems/02-cosine_potential.test                   1

    periodic_systems/05-lithium.test                            10

    linear_response/01-casida.test                              28

    periodic_systems/04-silicon.test                            1

    periodic_systems/14-silicon_doubleshift.test                1

    functionals/03-xc.test                                      68

    pseudopotentials/02-cu2_hgh.test                            2

    pseudopotentials/10-helium_upf.test                         2

    pseudopotentials/11-isotopes.test                           1

    real_time/06-caetrs.test                                    2

    real_time/05-time_propagation.test                          4

    real_time/08-laser.test                                     3

    real_time/15-crank_nicolson.test                            1

    real_time/14-absorption-spinors.test                        25

    real_time/13-absorption-spin.test                           25

    real_time/19-td_move_ions.test                              2

Total run-time of the testsuite: 00:04:20

Makefile:818: recipe for target 'check-base' failed

make[3]: *** [check-base] Error 39

make[3]: Leaving directory '/home/kyle/OctoMPI/testsuite'

Makefile:811: recipe for target 'check-wrapper' failed

make[2]: *** [check-wrapper] Error 2

make[2]: Leaving directory '/home/kyle/OctoMPI/testsuite'

Makefile:799: recipe for target 'check' failed

make[1]: *** [check] Error 2

make[1]: Leaving directory '/home/kyle/OctoMPI/testsuite'

Makefile:498: recipe for target 'check-recursive' failed

make: *** [check-recursive] Error 1 Archanut (talk) 20:37, 9 November 2018 (UTC)

Welcome to the support desk for the MediaWiki software. Please explain how your question / problem is related to the MediaWiki software. (I have no idea what Octopus is.) Thanks! Malyacko (talk) 20:55, 9 November 2018 (UTC)
Sorry I was on http://octopus-code.org/wiki/Manual:Installation and pressed the help button and this is where it took me. Archanut (talk) 22:13, 9 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

LocalSettings.php not found.

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I installed mediawiki 1.31.1 on the server, but when opening "index.php" in the mediawiki file, "LocalSettings.php not found." is displayed and when you press "set up the wiki"

"Warning: include (C: \ ~~~~~~ \ mediawiki - 1.31.1 \ vendor \ composer /../ liuggio / statsd - php - client / src / Liuggio / StatsdClient / Factory / StatsdDataFactory.php): failed No such file or directory in C: \ Users \ user \ Desktop \ Backup \ Homepage \ mediawiki - 1.31.1 \ vendor \ composer \ ClassLoader.php on line 444 "

Etc. are displayed and installation is not possible. Please tell me how to deal with it. 電波天文観測衛星 (talk) 01:45, 10 November 2018 (UTC)

What is "Liuggio"? "C: \ ~~~~~~ \ mediawiki - 1.31.1 \ vendor \ composer /../ liuggio / statsd - php - client / src / Liuggio / StatsdClient / Factory / StatsdDataFactory.php" does not look like a valid path. Is that the literal output from somewhere? For example, "C: \" should be "C:\" instead... Malyacko (talk) 17:09, 10 November 2018 (UTC)
@MalyackoWhat is "literal output"? 電波天文観測衛星 (talk) 00:55, 11 November 2018 (UTC)
After you install, the install procedure will download for you from your browser the LocalSettings.php file and it seems you need to copy that file to
C: \ ~~~~~~ \ mediawiki - 1.31.1 \ HSRobinson (talk) 19:38, 10 November 2018 (UTC)
Other versions worked fine. However, if you place the downloaded LocalSettings.php in the folder of mediawiki, an error will occur when opening index.php. 電波天文観測衛星 (talk) 02:50, 11 November 2018 (UTC)
What error? AhmadF.Cheema (talk) 03:24, 11 November 2018 (UTC)
It is an error similar to the one described first. 電波天文観測衛星 (talk) 04:50, 11 November 2018 (UTC)
I A while ago decided to abandon the introduction of the media wiki , but decided to introduce a media wiki to my server. 電波天文観測衛星 (talk) 07:40, 11 November 2018 (UTC)
Are you posting the error after having it translated or is this the original error that you receive? AhmadF.Cheema (talk) 09:29, 11 November 2018 (UTC)
This time, CSS is not applied. 210.171.152.119 (talk) 11:19, 11 November 2018 (UTC)
I forgot to log in. 電波天文観測衛星 (talk) 11:20, 11 November 2018 (UTC)
See Manual:Errors and symptoms#The wiki appears without styles applied and images are missing. AhmadF.Cheema (talk) 01:38, 12 November 2018 (UTC)
After all, I would like to abandon the introduction of mediawiki. I am sorry I can not tell you what the error is! 電波天文観測衛星 (talk) 06:28, 12 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Getting Exception encountered, of type "Error"

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.


One of the pages on one of our wikis is giving this error. How do I figure out what's wrong with the page? I'm not very familiar with wikis. I'm a server administrator and I just maintain the server software for the wiki farm. The wiki in question was transferred from another server, so the page was created when the wiki was hosted on the other server. The wiki uses a lot of extensions and up until now, I've been able to figure out which extensions it needs, but it's entirely possible this page needs an extension that's not installed. I'd appreciate some advice on how to debug this issue. AndalayBay (talk) 07:07, 10 November 2018 (UTC)

In your LocalSettings.php, set:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);
For details, see Manual:How to debug. AhmadF.Cheema (talk) 09:23, 10 November 2018 (UTC)
Thanks, I'll check those out. AndalayBay (talk) 05:24, 13 November 2018 (UTC)
I got the error details, but I have no idea how to fix it. How do I fix a page if I can't edit it? I looked in the database, but I couldn't find the page contents. Where are the contents of the pages stored?
The error details are:
Exception encountered, of type "Error"
[4b778e85862b779ff85fc9a5] /tescosi/MMM%2BOOO_Installation_Guide Error from line 1051 of path-to-wiki/includes/skins/Skin.php: Call to a member function getLocalURL() on null
I believe the cause is a link to a non-existent contributors page. This wiki was moved from another site and the account for the main author had to be created manually, so the contributors page is missing. AndalayBay (talk) 06:48, 14 November 2018 (UTC)
Links to non-existing pages don't break the site.
The page with the problem is this one (but on view, not history).
Try to uninstall (by commenting-out the require_once or wfLoadExtension lines in your LocalSettings.php file) the extensions on your wiki, and see if the issue gets resolved. If this resolves the issue, the problem may be one of those extensions.
The problem is something is trying to parse a link to an invalid special page. Note that MediaWiki 1.27 is unsupported and you should upgrade. Ciencia Al Poder (talk) 10:43, 14 November 2018 (UTC)
Oh, you might be right about the extensions. The next line of the error message is:
.../tescosi/extensions/Contributors/Contributors.hooks.php(83): Skin::makeSpecialUrl(string)
I'll try disabling that. Thanks!
Yes, I'll be upgrading soon, but since I've already got errors about deprecated functions, I wanted to get this page fixed first. AndalayBay (talk) 18:34, 14 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error creating thumbnail: Unable to save thumbnail to destination

Hello everyone, I have a problem with the thumbnails, these doesn't appears on my wiki.

I've made a pre-wiki on xampp and thumbnails work very well, but when I moved the pre-wiki to a server hosting, this problem appears me. What can I do? 181.55.114.245 (talk) 07:58, 10 November 2018 (UTC)

Can you make sure that your user on the server has write permission for the "/images" directory in the MediaWiki folder? AhmadF.Cheema (talk) 09:24, 10 November 2018 (UTC)
Yes, the folder images have chmod 777. 186.116.10.62 (talk) 14:37, 10 November 2018 (UTC)
If your wiki is hosted, did you ask your host? HSRobinson (talk) 19:37, 10 November 2018 (UTC)
It's a free hosting :c 181.55.114.245 (talk) 20:03, 10 November 2018 (UTC)
Nobody can help me? 181.55.114.245 (talk) 18:32, 11 November 2018 (UTC)
Did you check permissions on the thumbnail folder? HSRobinson (talk) 19:56, 11 November 2018 (UTC)
Yes, it has chmod 777 Cyrax (talk) 02:52, 12 November 2018 (UTC)

Parameters to Special:ChangeContentModel

Is there any parameter to Special:ChangeContentModel that similar to wpExtraQueryRedirect in submit action of index.php?

In fact, I asked the same question in Help talk:ChangeContentModel, but I'm not sure that I could get answers in a year. So I ask about it here again. If you want to know more about my question, please go to my previous question as linked earlier. Gustmd7410 (talk) 12:35, 10 November 2018 (UTC)

https://www.mediawiki.org/wiki/Special:ChangeContentModel/Main_page?model=css&reason=testTheDJ (Not WMF) (talkcontribs) 12:44, 12 November 2018 (UTC)
Thank you for replying, but I didn't mean about GET parameters. I want to know about POST parameters which can use in form. I'm sorry that the question isn't clear. Gustmd7410 (talk) 14:24, 12 November 2018 (UTC)
["pagetitle", "model", "reason", "wpEditToken", "title"] should be the key names
This page is a 2 step form, but if pagetitle and title have the same value and are both submitted at the same time, then it should work as a single step as well. —TheDJ (Not WMF) (talkcontribs) 09:45, 13 November 2018 (UTC)
When I tested, it seems that the "title" key does nothing... When I changed value of it on second step, nothing changed. And even when I deleted the input with "title" name on the same step, nothing changed either. It works well. And I could find "redirectparams" key, what does it? I expected that GET parameters are setted into its value when I send the form like wpExtraQueryRedirect. So I changed its value, but nothing changed. Gustmd7410 (talk) 10:26, 13 November 2018 (UTC)
redirectparams is a feature of special pages that allows extensions to preserve some additional context. You can ignore it. —TheDJ (Not WMF) (talkcontribs) 12:18, 13 November 2018 (UTC)

sudo apt-get install php5-tidy on Windows (Extension:Html2Wiki)

Hello... I've made some wiki on github, now want to convert it (*.md - markdown files) into mediawiki. I installed mediawiki into my Windows (installed also Wampserver64). But I need to convert all MD files to MediaWiki files. And - upload in batch all of them. I have around 1300 files (that's Mahabharata game wiki)... So I decided to use pandoc to make html files. and import them, upload into my new mediawiki. But... I tried to install sudo apt-get install php5-tidy on my windows through chocolatey, but package is not available... is there any other way to convert md files into mediawiki? It is not just a few files. But 13000 files. So I need batch convert. Or should I instqall some virtualbox with Ubuntu there, so that I can enable html-to-mediawiki converter there? Will it help to upload whole 1300 files db and get a mediawiki automatically? or any other solution do you suggest? thank you

95.67.98.183 (talk) 00:03, 11 November 2018 (UTC)

In case you're using Windows 10, Bash on Ubuntu on Windows, also known as Windows Subsystem for Linux (WSL), would be the most convenient solution. AhmadF.Cheema (talk) 01:16, 11 November 2018 (UTC)
no, I have Windows 7. Seem to be no bash here :-(. Installing VirtualBox\Ubuntu 95.67.98.183 (talk) 14:00, 11 November 2018 (UTC)
I used to use https://www.cygwin.com/ once upon a time. HSRobinson (talk) 19:57, 11 November 2018 (UTC)

WikiEditor doesn't show toolbar

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.


Right after I installed MediaWiki, I tried the WikiEditor, which should be installed along with the software. The familiar interface shows up, except the toolbar:

<figure-inline class="mw-default-size"></figure-inline>

The console reports an exception:

<figure-inline class="mw-default-size"></figure-inline>

Is there any way to fix this?

You can see the problem yourselves here. Leduyquang753 (talk) 14:34, 11 November 2018 (UTC)

Maybe a permissions issue? Have you checked the server error logs?
Try setting the following in your LocalSettings.php, maybe it will display some error:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);
For details, see Manual:How to debug. AhmadF.Cheema (talk) 15:46, 11 November 2018 (UTC)
It reports that putenv() has been disabled in includes\Setup.php line 129:
// Set the configured locale on all requests for consistency.
putenv( "LC_ALL=$wgShellLocale" );
setlocale( LC_ALL, $wgShellLocale );
But I don't really think this is what caused the problem. Leduyquang753 (talk) 01:25, 12 November 2018 (UTC)
When debugging, the script jquery.wikiEditor.toolbar.js reports an exception that the property "modules" of "$" cannot be read. Leduyquang753 (talk) 02:01, 12 November 2018 (UTC)
RESOLVED. I checked the files in the server and found out the file jquery.wikiEditor.js was completely empty. I restored it and now it worked. Leduyquang753 (talk) 02:08, 12 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

One of my wikis failed gracefully with the following message:"It is not possible to determine the wiki ID."

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


MediaWiki Version: 1.30

PHP Version: 5.6.38 (litespeed)

Website: en.en.penguingamestudio.com/mw19/

Hello. I have been working on a wiki family similar to Wikimedia Foundation, and I experienced several problems. My third wiki, English Penguingame Studio, failed gracefully with the following messages: "It is not possible to determine the wiki ID." I set up the database and everything, yet I still get the same message. The main wiki is at penguinicewikis.com. How can I fix this on my wiki? Newman2 (talk) 01:33, 12 November 2018 (UTC)

Anyone have suggestions? Newman2 (talk) 01:54, 13 November 2018 (UTC)
See Project:Support desk/Flow/2018/11#h-Wiki_setup_fails_gracefully_with_message_"It_is_not_possible_to_determine_the_wi-2018-11-07T21:45:00.000Z. Jörgi123 (talk) 18:07, 14 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

SPEC 2006 on gem5

Wnated to know the system requirement to run SPEC 2006 benchmark program on gem5 103.220.210.70 (talk) 03:48, 12 November 2018 (UTC)

Off topic. Wrong support forum. AhmadF.Cheema (talk) 04:35, 12 November 2018 (UTC)

[Solved] Help with columns?

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 does one go about making the content of a page auto flow into two columns? I have used multicol in the past but I understand this is being deprecated?

What is the current, correct way to create columns? I tried colbegin, div col, colstart, and some others but they ether do nothing or display something like "Template:Columns Start" in red.

Thanks 216.106.102.12 (talk) 05:29, 12 November 2018 (UTC)

Those red Template links need to be created in your Wiki first for them to work.
See Category:Multi-column_templates. AhmadF.Cheema (talk) 05:35, 12 November 2018 (UTC)
I took a look at < title=Template:Div_col&action=edit > on my site vs the wikipedia one referenced from the link you added. They payload looks quite different. (this is a fresh install of the mediawili docker container with my data migrated).
FWIW, div col is the one that doesn't seem to do anything... the text is still in single column mode.
Is it just a matter of copying and pasting from the link to mine and saving? Is this how templates are supposed to be dealt with? I guess I'm worried about breaking something. 216.106.102.12 (talk) 20:39, 12 November 2018 (UTC)
See Help:Templates#Copying from one wiki to another. AhmadF.Cheema (talk) 02:07, 13 November 2018 (UTC)
Thanks for the link. I was able to get the template exported/imported successful once I figured out what to do with the interwiki prefix and installing extension Scribunto.
Using \{\{div col\}\} still doesn't work though. Just doesn't do anything to the flow of the text - like it's ignored.Loading the doc page locally it appears messed up - like the columns are not set properly, element placement off - like it's missing CSS styles.
I'll have to dig into it further. If you have any insights it would be appreciated.
Thanks. 216.106.102.12 (talk) 05:07, 13 November 2018 (UTC)
You need to include in your Wiki's MediaWiki:Common.css the following from MediaWiki:Common.css:
/* Reset top margin for lists embedded in columns */
div.columns {
	margin-top: 0.3em;
}
div.columns dl,
div.columns ol,
div.columns ul {
	margin-top: 0;
}
/* Avoid elements breaking between columns */
.nocolbreak,
div.columns li,
div.columns dd dd {
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	break-inside: avoid-column;
}
However, there probably are more CSS rules that need to be added too, not sure where to find them, though.
Also, when importing did you remember to "[c]heck the box 'Include templates'"? AhmadF.Cheema (talk) 06:09, 13 November 2018 (UTC)
Ah, yes - that makes sense. I did include the related templates on the export and it brought over a few dozen (more?) related templates and modules so I think I'm good that way. Your CSS comment makes a lot of sense.
I am off site today so won't be able to mess with it till tonight/tomorrow.
Thanks again. 161.184.220.186 (talk) 14:36, 13 November 2018 (UTC)
Still pulling my hair out with this. I went back and grabbed some more templates via exporting Templates:Col-Begin and then Templates:Columns. Ended up having to add extension TemplateStyles but still did not have any luck getting {{div col}} to work.
After doing a bunch of hand edits back and forth between this site and my site's Common.css I just gave up and inserted this site's Common.css in its entirety and it didn't make any difference. I realize this might be breaking other things but the site renders ok otherwise. I have the original to revert if needed.
So... not sure what to try next. Learning a lot about dealing with the official Mediawiki docker container though between adding extensions, tuning php.ini and having to add php composer to install extensions and whatnot (TemplateStyles). 216.106.102.12 (talk) 05:02, 14 November 2018 (UTC)
Just in case it points out something that is wrong with my setup... I just attempted to replace {{div col}} with {{col-begin/break/end}} and it didn't do any change to the colums (still single) however it spit out a bunch of css rubbish at the {{col-break}} point ( width: {{{width}}}; }}text-align: left; vertical-align: top; " | ) and col-break is nowhere to be seen.
This must mean broken CSS somewhere? 216.106.102.12 (talk) 05:48, 14 November 2018 (UTC)
Are you using a large screen size device like a PC or laptop, or a mobile phone? Small screen sizes might not show any changes.
Use the element selection tool in browser developer tools (in Chrome, press Ctrl+Shift+C) and select the portion which should render as columns. Does its styles contain something of the sort of -moz-column-width, -webkit-column-width, or column-width? AhmadF.Cheema (talk) 07:21, 14 November 2018 (UTC)
I'm working on Firefox on a full size Mac or Linux desktop depending on location....
This is the kind of stuff I am seeing in Inspector:
(link to screenshot)
If I toggle the first element in the centre column to off the page renders properly.
I'm not that great with CSS but that looks like a mess to me... and would explain why it is doesn't work I guess.
Where else should I look besides Common.css OR how can I determine if I am missing a template, extension, module, whatever?
Thanks again. 216.106.102.12 (talk) 01:56, 15 November 2018 (UTC)
I just test imported Template:Div col, and everything appears to work fine.
The Inspector results are quite odd. Exactly what are you entering on the Wiki page to get the column template to render? AhmadF.Cheema (talk) 03:09, 15 November 2018 (UTC)
I'm not sure why this is different. I should mention, this used to work beautifully and then I did an upgrade from 1.29.? to 1.31.current... and this hasn't worked since then.
I've been upgrading this wiki from version to version for quite a few years.
Anyway, I'm not doing anything weird with the tags - at least I don't think I am. I'm not even using a visual editor - hand inputting the tags. I'm just wrapping lines of text with {{div col}bunch of text over a few dozen lines{{div col end}}.
I'll see if I can spend some more time trying to figure out what all is installed templates, modules, etc. and go from there. I'll take a look at what the pages look like inside the DB as well. 216.106.102.12 (talk) 21:30, 16 November 2018 (UTC)
Solved it!
I did all kinds of things like removing all templates from the site, re-adding, etc. but in the end PEBKAC (Problem exists between keyboard and chair).
If anyone stumbles up this this thread in the future and sees rubbish in your displayed pages like:
{{#ifeq:div col |doc 
{{#ifeq:show |show
}}{{#if:||{{#ifexist:Template:Div col
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}}}
    |
Then the problem is the Parser Functions Extension is not working!
In my case when I spun up my container I had a problem with the version of the Parser Functions I downloaded (master vs v1.31 version - geez, I know better). It broke my site so I removed the require from my LocalSettings.php and then promptly forgot all about it while I got the docker container with mysql moved to a different host, imported some other data, etc., etc. That was probably two weeks ago.
At least I got a decent error in the error.log
[Sat Nov 17 03:02:58.912389 2018] [php7:error] [pid 16] [client 192.168.1.229:54592] PHP Fatal error:  Uncaught ExtensionDependencyError: ParserFunctions is not compatible with the current MediaWiki core (version 1.31.1), it requires: >= 1.32.0.\n in /var/www/html/includes/registration/ExtensionRegistry.php:278\nStack trace:\n#0 /var/www/html/includes/registration/ExtensionRegistry.php(158): ExtensionRegistry->readFromQueue(Array)\n#1 /var/www/html/includes/Setup.php(116): ExtensionRegistry->loadFromQueue()\n#2 /var/www/html/includes/WebStart.php(88): require_once('/var/www/html/i...')\n#3 /var/www/html/index.php(39): require('/var/www/html/i...')\n#4 {main}\n  thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 278, referer: <nowiki>https://web.blackleaf.ca/index.php?search=Extension&title=Special%3ASearch&profile=default&fulltext=1
<le_sigh />
Anyway, thanks for all the help. 216.106.102.12 (talk) 03:17, 17 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Sandbox editor

I just installed mediawiki on my webspace but it seems I do not have the same editor available for page editing as it is provided here for the Sandbox page. Do I have to install an extension for that? (and if yes, which one?) 2A02:8388:6B88:B600:B8BE:3957:41DA:EC (talk) 14:26, 12 November 2018 (UTC)

Are you talking about Extension:WikiEditor, Extension:VisualEditor or the 2017 wikitext editor? AhmadF.Cheema (talk) 19:40, 12 November 2018 (UTC)

Custom map with Kartographer or Maps

Hi,

so I made a custom map in with Leaflet and would like to integrate it into my Wiki. I have both Kartographer and Maps installed in my Wiki, but i can't find what I have to do to fed these extensions the url of my map.

Before you answer this question for both extensions i would prefer Kartographer. 5.146.73.41 (talk) 23:10, 12 November 2018 (UTC)

Problem changing Common.css

Hi,

I have this problem : I modify Common.css to change the look of my website. I edit as admin but when I disconnect, I refind look of the beginning. The look to admin interface is not important. Anyone can help me ?

Thanks:) Sylvain258 (talk) 10:43, 13 November 2018 (UTC)

Can you provide a link to your website? AhmadF.Cheema (talk) 12:00, 13 November 2018 (UTC)
Changes in Common.css aren't reflected inmediately. Give it a few minutes to update. Ciencia Al Poder (talk) 10:45, 14 November 2018 (UTC)
In fact, the CSS code, which is changed on MediaWiki:Common.css might be changed at a number of places: It might be cached by the browser, by a proxy or even inside the MediaWiki installation. I guess that might explain why it takes some time (I think might be more than just a few minutes) until changes actually become visible. 2001:16B8:1016:A600:912C:5CE3:695:DF32 (talk) 17:57, 14 November 2018 (UTC)
In case the changes are not visible when logged out and visible when logged in (regardless of whether the account is admin or not), this could be because of $wgUseFileCache. If set to true, disabling it could help. AhmadF.Cheema (talk) 04:54, 15 November 2018 (UTC)

An index of all the pages in your wiki?

Is there any way to see a list (index?) of all the pages in your wiki? 2001:630:53:B7A:E575:6B7C:ABEB:D63F (talk) 10:52, 13 November 2018 (UTC)

Special:AllPages AhmadF.Cheema (talk) 11:58, 13 November 2018 (UTC)

з Hello!! I in the year one already on this web-site. I can not remember the login password of mail that I can do

з Hello!! I in the year one already on this web-site. I can not remember the login password of mail that I can do 2A00:7C80:0:A1:406:200:0:1031 (talk) 15:01, 13 November 2018 (UTC)

The "Log in" page on this web site offers both a "Forgot your password?" link and a "Help with logging in" link.
I'm wondering why you still ask here? Did you not see those links, or some other reason? Malyacko (talk) 10:46, 14 November 2018 (UTC)

Member cam braodcast and Mac 10.14.1 update

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.


After recent 10.14.1 update, cam member broadcast not working. Tried Safari, Chrome, Firefox all with same result. Updated flash, cam image does appear inthe flash settings, but will not broadcast.

Any one find a fix? 73.140.118.231 (talk) 18:15, 13 November 2018 (UTC)

Off topic. Wrong support forum. AhmadF.Cheema (talk) 19:00, 13 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Browse MediaWiki files in Finder

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.


Long story short but we had someone give us a "dump" of our mediawiki and we can browse through all the files in Finder on a Mac. I have folders such as "cache, docs, extensions, images, includes, languages, etc". What I'm looking for is some sort of XML file in this dump that has page content? I can find all of the images we uploaded but no pages or page content. Does anyone know the structure well enough to help me navigate to the correct location?

Appreciate any help! 99.42.199.89 (talk) 20:50, 13 November 2018 (UTC)

The pages' content is supposed to be present in a database dump. It's not present in a MediaWiki folder, it has to be separately backed up.
A MediaWiki backup consists primarily of two parts: the directories backup (specifically the images directory) and a separate database backup. If your "dump" is only of the MediaWiki directly, then the content will not be available (though maybe some got saved in the cache). AhmadF.Cheema (talk) 21:06, 13 November 2018 (UTC)
That's what I needed to know, thank you very much! 99.42.199.89 (talk) 21:13, 13 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mistake in the Installation?

A couple weeks ago, I've installed MediaWiki, and I've gotten myself to design it before publishing it online. However, during the installation process, I might've made a mistake and classified it as a "private" wiki, when I intend for it to be published online for all to see. I didn't make a mistake during the installation process, did I? And if I did, is there a way to fix this so that it can be seen by all users? The-Psychid (talk) 03:57, 14 November 2018 (UTC)

In the main directory of your MediaWiki installation, there should be a LocalSettings.php file. In the file, there should be a line: "$wgGroupPermissions['*']['read'] = false;"
Remove that line. For details, see Manual:Preventing access#Simple private wiki. AhmadF.Cheema (talk) 07:25, 14 November 2018 (UTC)

How to combine wikimedia pages under one name and move to wikipedia?

How to combine wikimedia pages under ONE NAME and transfer to WIKIPEDIA for publishing. HANS ERNST, his inventions are all on separate pages. Need to group under his name and link to articles. HELP Tr9ABf3KamX (talk) 04:49, 14 November 2018 (UTC)

What are "Wikimedia pages"? Please be exact and provide clear examples and/or links. Malyacko (talk) 10:45, 14 November 2018 (UTC)

Hi There!

I would like like to how to change/update a picture on Wikipedia

Anyone who can help? 84.49.3.111 (talk) 12:49, 14 November 2018 (UTC)

See Wikipedia:Uploading images#Updating existing image. AhmadF.Cheema (talk) 14:19, 14 November 2018 (UTC)

Cited in

If i use {{Special:WhatLinksHere/{{FULLPAGENAME}}}}

I get for example: Cosmographia ‎ (← links | edit), Bibliography ‎ (← links | edit)

I sthere a possibility to delte "link" and "edit"? 83.175.70.69 (talk) 16:24, 14 November 2018 (UTC)

I don't know, if it is possible to use a hook to modify MediaWiki in a way that it no longer gives out these links.
However, these links have the CSS class "mw-whatlinkshere-tools" around them so that you can hide them with CSS.
Adding the next lines of CSS to MediaWiki:Common.css in your wiki should do just that:
.mw-whatlinkshere-tools {
  display: none;
}
2001:16B8:1016:A600:912C:5CE3:695:DF32 (talk) 17:55, 14 November 2018 (UTC)
You probably want to use Extension:DynamicPageList (third-party), where you can generate plain lists with more control about the format Ciencia Al Poder (talk) 10:21, 15 November 2018 (UTC)

"frame:callParserFunction" and "PAGENAME"

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.


Don't work together for me. "frame:callParserFunction" works well with "PAGESINCATEGORY", but with "PAGENAME" I tried various syntaxes and all I get is either a red Lua error or an empty string. Is there a way to get it working? ~ Taylor 49 (talk) 16:31, 14 November 2018 (UTC)

PAGENAME is not a parser function. Instead, you want to call mw.title.getCurrentTitle().text Ciencia Al Poder (talk) 10:23, 15 November 2018 (UTC)
Thank you, I'll test the hint. Taylor 49 (talk) 11:39, 15 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I really don't understand how to make a sub-category of a category. I have given it a good read, and I still don't get it.

So, if I have a main Category: Geography and want to add Category: Country beneath that as a sub-category, how do I do that? I have read the Category section of the Manual and still do not have any idea how to create a sub-category. Do I add to the Category: Country page the ((Category: Geography)) tag? Or is there another method I'm just not understanding? 71.176.216.120 (talk) 21:00, 14 November 2018 (UTC)

"Categorizing a category page will make it a subcategory."
On the [[Category:Country]] page, write the parent category [[Category:Geography]]. AhmadF.Cheema (talk) 03:25, 15 November 2018 (UTC)

Move ITWiki to new server

Hello- Is there any documentation on how to move an (old) installation from one server & platform to another?

Current:

MediaWiki - 1.21.1

PHP - 5.4.15.-1-~ucid+1(Apache2Handler)

SQLite - 3.7.9

to

IIS version 10

PHP - 7.4

MySQL - 8.0.12 207.104.47.251 (talk) 22:59, 14 November 2018 (UTC)

See Manual:Moving a wiki. AhmadF.Cheema (talk) 03:21, 15 November 2018 (UTC)

Creating an Acount

Whenever i try to create an account i brings up a thing that says missing captcha. What does that mean and how do i fix it? 71.182.232.160 (talk) 01:11, 15 November 2018 (UTC)

Captcha is a test to ensure you are not a bot attempting to create an account. It should automatically load when trying to create an account.
Where exactly are you trying to create the account? AhmadF.Cheema (talk) 02:12, 15 November 2018 (UTC)

Looking for markdown convert extension

https://www.mediawiki.org/wiki/Extension:MarkdownExtraParser

https://www.mediawiki.org/wiki/Extension:Markdown

My wiki version is 1.27.1, I've tried above extensions, all of them does not match my version, I am looking for an extension which can convert markdown syntax without making conflict to origin wiki syntax, thanks for the help. Chan15tw (talk) 08:13, 15 November 2018 (UTC)

If you want to actually convert Markdown into Wikitext (before adding it to the wiki), have a look at https://pandoc.org/ Osnard (talk) 09:50, 15 November 2018 (UTC)
I want to write markdown in wiki and convert by itself, pandoc looks like convert the content by yourself Chan15tw (talk) 01:48, 16 November 2018 (UTC)

XML + css

I have an XML-document which was generated by a database. I wrote a css-code which puts the XML-document in the shape I want it to be. There are XML- and css-extensions for MediaWiki, which are both installed on our wiki. Is there any possibilty to use them in combination, so that the css-code can be used directly on the XML-file? Or do I have to convert the XML-file to wiki-code first (with the extension) and then write a css-code that works on the wiki-code? Thanks in advance!! 80.146.228.73 (talk) 10:30, 15 November 2018 (UTC)

How is MediaWiki related to this problem? Do you want to keep XML as XML? Or not? In a MediaWiki page? Or not? Malyacko (talk) 10:33, 15 November 2018 (UTC)
We are using a MediaWiki. I want to show the content of the XML-file with css. In´a MediaWiki page, yes. 80.146.228.73 (talk) 10:41, 15 November 2018 (UTC)
I'm not sure I understand correctly what you want, but if you want to paste XML in a wiki page and be formatted/syntax highlighted, you probably want to use Extension:SyntaxHighlight Ciencia Al Poder (talk) 10:30, 16 November 2018 (UTC)

upload of XML-file

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.


Our MediaWiki doesn't allow me to upload an XML-file, even though the XML-extension is installed. How can I change that?

"Permitted file types: png, gif, jpg, jpeg, pdf, map." 80.146.228.73 (talk) 10:42, 15 November 2018 (UTC)

Manual:$wgFileExtensions wargo (talk) 11:10, 15 November 2018 (UTC)
Thanks! Steffiso (talk) 12:04, 15 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

[RESOLVED] Preserve data across calls from same 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.


My module is called several times (partly with same arguments) from one page. Is there a way to preserve (painfully evaluated) data across the invokations? I tried to create a global variable ... but found out that it is reliably nilized on every single entry, the opposite of what I am striving for. I am aware of "mw.loadData" intended to "preserve" constant data. In my tests the speedup with "mw.loadData" instead of "require" was minimal. Is there a way to preserve (generated) data across invokations from one page? Taylor 49 (talk) 11:50, 15 November 2018 (UTC)

Some ideas around? Taylor 49 (talk) 18:55, 24 November 2018 (UTC)
Invocations are purposely sandboxed from each other, so that you can parse them independently rather than having to parse the whole page (think section edits). If you did find a way to pass dynamic data between them (without using another extension), it would be patched. "mw.loadData" is the correct and only way to pass (static) data between invocations. That's not to say you can't dynamically generate the data initially in the data module, just it will be static afterwards.
That being said, if you really must pass dynamic data around (and are willing to deal with the consequences of that), you can use an extension such as Extension:Variables. 121.219.246.203 (talk) 07:15, 26 November 2018 (UTC)
Interesting ... but " Extension:Variables" is not present on public wikies: https://en.wikipedia.org/wiki/Special:Version. What do you mean with "That's not to say you can't dynamically generate the data initially in the data module, just it will be static afterwards." ? Taylor 49 (talk) 10:21, 26 November 2018 (UTC)
The module that is loaded by "mw.loadData" can contain any lua code to generate a table, as long as it returns a table with static values in the end. It doesn't have to just be "return { 'static', 'table' }". 110.148.124.162 (talk) 14:31, 30 November 2018 (UTC)
This is interesting ... I have to test. This could mean that I could outsource my complete code (processing agruments) into a submodule and load it via "mw.loadData". What would be that evil with a simple possibitity to pass dynamic data between invocations that it would have to be patched? Taylor 49 (talk) 19:03, 1 December 2018 (UTC)
> "mw.loadData" can contain any lua code to generate a table,
> as long as it returns a table with static values in the end
This is great and turned out to be exactly what I needed. :-) Taylor 49 (talk) 17:08, 9 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I've just install mediawiki with easy php on local computer but the search does'nt work

each time i search a word the result is :

Error in the database - A database query error has occurred. This may be due to an anomaly in the software.

Do u know how can i fix it ? Breizh69 (talk) 17:17, 15 November 2018 (UTC)

See Manual:How to debug.
Set those settings temporarily in your LocalSettings to get a more detailed error message:
$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgShowDBErrorBacktrace = true; Ciencia Al Poder (talk) 10:27, 16 November 2018 (UTC)

Unified Login Failure

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 cannot log in on any connected wikis. I've tried two. It says incorrect password. When I try and when I try to password reset it says that account does not exist and when I try to make a new account it says I already made an account today (which I did, verified e-mail and everything). Suggestions would be appreciated. Sulhir (talk) 19:19, 15 November 2018 (UTC)

MediaWiki 1.31.1
PHP 7.2.10
MariaDB 10.1.34
ICU 60.2
Elasticsearch 5.5.2
Release 20181115-164208
LuaSandbox 3.0.1
Lua 5.1.5
https://runescape.wiki/
https://oldschool.runescape.wiki/
Sulhir (talk) 19:54, 15 November 2018 (UTC)
I found some help on https://meta.wikimedia.org/wiki/Special:MergeAccount
But still no change. Sulhir (talk) 23:22, 15 November 2018 (UTC)
Hey. We don't use CentralAuth (which the WMF use for unified logins) on the RuneScape and Old School RuneScape wikis, so people here probably won't be able to help you well. As far as I checked, your account(s) don't seem to exist in our database, which is weird if you say you created and verified the email for them. Please forward the account creation email you received to support(at)weirdgloop.org and we can see what's going on. Jaydenkieran (talk) 10:52, 16 November 2018 (UTC)
That explains a lot. It looks like the confirmation e-mail comes from community(at)fandom.com and the ones for this wiki come from wiki(at)wikimedia.org
It's ridiculously inefficient that the wiki's I'm trying to join redirect to a support website that doesn't actually provide official support for them. I can't even ask for help directly because of the issues. I managed to post on one while not logged in but haven't gotten any help... 2605:A601:E05:201:B9C4:8C92:68A0:1D04 (talk) 17:14, 19 November 2018 (UTC)
If you're signing up on FANDOM (Wikia), then you're signing up on the wrong site. You need to sign up via https://runescape.wiki/w/Special:CreateAccount?returnto=RuneScape+Wiki
Also, there is a contact page for our site, you can find it on https://runescape.wiki/w/Special:Contact and it's linked at the bottom of every page. Jaydenkieran (talk) 17:28, 19 November 2018 (UTC)
The Runescape Wikia is through FANDOM but the normal runescape wiki would not allow me to make an account.
It would just tell me
Visitors to this wiki using your IP address have created 1 account in the last 1 day, which is the maximum allowed in this time period. As a result, visitors using this IP address cannot create any more accounts at the moment.
It's been more than a day so now I can make an account, but that still doesn't solve the original problem. Nobody else on my IP had made an account except for me on a Fandom wikia. Sulhir (talk) 17:04, 20 November 2018 (UTC)
This looks like a problem with the configuration of the site, which may be behind a caching proxy, and treats every user as coming from the same IP address, effectively limiting the account creation to 1 every day.
This limitation is usually not effective against spammers, because they use open proxies whith lots of different IPs, so I recommend to remove this limitation. Ciencia Al Poder (talk) 10:18, 21 November 2018 (UTC)
This isn't true - we get multiple registrations per day, so they're definitely not treated as coming from the same IP address otherwise you'd expect there to be issues.
However, I do agree with your point about the effectiveness of the 1/ip/day account creation limitation - this was enabled as a temporary restriction to help prevent a bad actor who was continuously creating spam accounts (while we had no other measures to deal with this due to lack of foresight) - since we have better ways of dealing with this now (e.g blacklists, filters), I'll change this limitation. Jaydenkieran (talk) 14:53, 21 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Unable to Install Math 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.


MediaWiki Version:1.31.1

Hi,

I tried to follow the manual install as explained here Extension:Math#Installation

But when I tried to upload the extension to the server some files gave an error "An unknown error occurred? Are you over quota?" I contacted the hosting company (A2 Hosting), they said I'm not over quota and that I should contact MediaWiki. Can you help?

I also I did not understand the installation explained here: https://lists.wikimedia.org/pipermail/mediawiki-l/2018-March/047266.html

I don't understand this: "

"For wikis connected to the internet: Simply download the latest versions for both of Mediawiki core [1] and the Math extension [2] and that's it."

MediaWiki is already downloaded and installed. I downloaded and extracted the Math extension, but that's in my computer. I don't get it.

Thanks for the help. Zeynel1 (talk) 19:32, 15 November 2018 (UTC)

You need to download and extract the extension into the extensions/ folder in your MediaWiki installation.
Afterwards you should be able to activate it by adding it to LocalSettings.php as explained in Extension:Math#Installation. Afterwards, the extension must appear on the Special:Version page of your wiki. 2001:16B8:1093:E500:FC68:97BC:1DEA:79CA (talk) 21:56, 15 November 2018 (UTC)
If A2 hosting is not allowing something to upload to their servers, the issue would be at their end. Are you trying to upload the extracted files of the extension instead of the compressed/archived file? If so, upload the extension archive and then extract it on the server, the A2 hosting file upload might have some issues with uploading multiple files.
Regarding your second question, I don't think I understand. MediaWiki core and extension are supposed to be in your account on the A2 hosting server, there is no need to have them on your computer? AhmadF.Cheema (talk) 22:01, 15 November 2018 (UTC)
Thanks. I was able to install the extension. I see it on the Special:Version page http://www.zeynel.a2hosted.com/index.php?title=%C3%96zel:S%C3%BCr%C3%BCm I ran the update script in the browser. I added wfLoadExtension( 'Math' ); to LocalSettings.php. But I get this error when I try to load a page with <math>...</math> markup:
MediaWiki internal error.
Original exception: [W@8G6fD124hne5zGvGezuwAAAEg] 2018-11-16 18:05:31: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php to show detailed debugging information.
It looks like a database error but I don't know what I need to do. Thanks for the help. Zeynel1 (talk) 18:13, 16 November 2018 (UTC)
As the error says, set "$wgShowExceptionDetails = true; and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php to show detailed debugging information." AhmadF.Cheema (talk) 22:21, 16 November 2018 (UTC)
I added
"$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
at the end of LocalSettings.php
But now I get no errors at all, just a blank page. When I comment out those two lines I get the same error again. Zeynel1 (talk) 23:05, 16 November 2018 (UTC)
See Manual:How to debug for details. Include the following too:
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); AhmadF.Cheema (talk) 02:36, 17 November 2018 (UTC)
Hi. Now I have these at the end of LocalSettings.php:
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
error_reporting( -1 );
ini_set( 'display_errors', 1 );
But I get no error reporting. Just a blank page.
So I have <math>...</math> tags in a page and when I try to save it I get a blank page.
Can I remove the extension and try to install it again? Zeynel1 (talk) 07:40, 17 November 2018 (UTC)
I added $wgDevelopmentWarnings = true; too. Nothing changed.
I have this:
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
$wgDevelopmentWarnings = true;
error_reporting( -1 );
ini_set( 'display_errors', 1 ); Zeynel1 (talk) 07:45, 17 November 2018 (UTC)
I ran the update script from the command line and it is working now. Thanks! Zeynel1 (talk) 09:34, 17 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to change tab display text?

How can I change the text displayed in the tab at the top of the browser (In the tab itself above the address bar)?

Currently the tab shows the hierarchy of the page I'm viewing ("MainPage/SubPage/SubPage/PAGE TITLE"), and I'd like it to just show "PAGE TITLE".

Thanks! Npaolini (talk) 01:25, 16 November 2018 (UTC)

See Help:Magic words#DISPLAYTITLE Ciencia Al Poder (talk) 10:26, 16 November 2018 (UTC)

MediaWiki 1.32.0-RC0 fails with MSSQL

Windows 2008 R2 IIS 7.5

MS-SQL 2012

MediaWiki 1.32.0-RC0 (11-09-2018)

I had tried 1.31.1 but from reading found it doesn't support MS-SQL at all because of issues with it and it was being fixed in 1.32.0 release. Looking in GIT I saw most of those issues resolved. When I first try to install there's an error on table creation, it looks like a comma was left out of the tables.sql file.

maintenance\mssql\tables.sql line 1044

rc_patrolled tinyint NOT NULL CONSTRAINT DF_rc_patrolled DEFAULT 0

I added the comma to the end in that file and started the entire process over after deleting and remaking a blank DB. After fixing that though it installs the DB and moves on but errors after that.

Install

Setting up database... done

Creating tables... done

Creating database user... done

Populating default interwiki table... done

Initializing statistics... done

Generating secret keys... done

Prevent running unneeded updates... done

Creating administrator user account... done

Creating main page with default content... failed

Information

Could not create a new page. It already exists. 132.170.216.182 (talk) 16:10, 16 November 2018 (UTC)

Please file a bug report about the missing comma: How to report a bug.
For the followup error, also see Manual:How to debug Malyacko (talk) 23:29, 17 November 2018 (UTC)
Thank you. I've created https://phabricator.wikimedia.org/T209870 and will begin working on debugging the other error. Brentil (talk) 18:11, 19 November 2018 (UTC)
I enabled full error capability in the php.ini as because this is a new install there is no LocalSettings.php yet. There are no errors being dropped just a notice.
PHP Notice:  Undefined index: UseWindowsAuth in \includes\libs\rdbms\database\DatabaseMssql.php on line 75
I went hunting from through the code and found that "Could not create a new page. It already exists." is for when error edit-already-exists is called. Which appears to be related to storage to the pages table. I went into the DB looking for what might already exist that is causing it problems. I found this in the pages table. The page_id 0 is created by the tables.sql file on line 183-184 so the page_id 1 must then be created by the code and then something is colliding.
page_id page_namespace page_title page_restrictions page_is_redirect page_is_new page_random page_touched page_links_updated page_latest page_len page_content_model page_lang
0 -1 0 0 0.7088203 NULL 0 0 NULL NULL
1 0 Main_Page 0 1 0.5898378 2.01811E+13 NULL 0 0 NULL NULL

Brentil (talk) 18:36, 20 November 2018 (UTC)

I started over with MediaWiki 1.32.0 stable release which has the MS-SQL fix in it. I still get the same error the the Install step of installation. I've enabled debugging and I don't believe this is an error in written code but a collision of the default page being created maybe during DB creation which then breaks during installation process as it thinks the page already exists and fails which also prevents me from moving on.
Creating administrator user account... done
Creating main page with default content... failed
Could not create a new page. It already exists. Brentil (talk) 20:27, 14 January 2019 (UTC)
Has there been any updated information regarding this issue? I have MediaWiki 1.32.0 stable release also and still getting the same error:
Install
  • Setting up database... done
  • Creating tables... done
  • Creating database user... done
  • Populating default interwiki table... done
  • Initializing statistics... done
  • Generating secret keys... done
  • Prevent running unneeded updates... done
  • Creating administrator user account... done
  • Creating main page with default content... failed
  • Could not create a new page. It already exists. ThirdStarr (talk) 21:24, 27 February 2019 (UTC)

"Refreshed" Errors

I'm trying to customize my wiki with the "Refreshed" skin template, but I have some issues with it. The main issue is that every time it loads, there's an error that says: "Warning: count(); Parameter must be an array or an object that implements Countable in (location of "RefreshedTemplate.php") on line 113." I'm actually looking at the file and the code is the following on line 113:

wfDebugLog( 'Refreshed', sprintf( 'Get %s, which contains %s lines', $messageKey, count( $lines ) ) );

My second issue is that when I try to modify my wiki CSS page so that the first header (h1) of each page is displayed in a customized font, and in uppercase. I think I've succeeded in making the font uppercase, but I'm unable to make it the font I want.

If you could help me fix these issues, I'd really appreciate it. Thanks! The-Psychid (talk) 16:27, 16 November 2018 (UTC)

The "Warning" is displayed probably because you have debugging turned On somewhere in your LocalSettings.php. Removing those lines will stop the "Warning" from showing up. The skin authors are the people who will probably be in the best position to completely resolve it. For common users, usually such warnings can just be ignored.
Regarding the CSS, open the select tool from browser developer tools (in Chrome, press Ctrl+Shift+C) and select an h1 heading. This will in turn show the CSS rules that are being applied on the h1 element. If done correctly, your uppercase and customized font CSS rules should be visible there.
Also, you should remove the above image as your email address is visible. AhmadF.Cheema (talk) 16:58, 16 November 2018 (UTC)

HeadScript kills the site

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I installed HeadScript and see it in extensions. (I downloaded and added the line require_once "$IP/extensions/HeadScript/HeadScript.php";)

When I try to add any script like it is advised in the manual

$wgHeadScriptCode = <<<'START_END_MARKER'

<script></script>
START_END_MARKER;

It immediately kills the whole site. "The page cannot be displayed" occurs everywhere. This doesn't depend on script, whatever I put between <script></script> have the same effect.

Please, advise how to fix that. 142.157.25.184 (talk) 17:03, 16 November 2018 (UTC)

Please tell us if there is any further information in your webserver's error log why the page cannot be displayed, and which MediaWiki version this is about. Malyacko (talk) 23:27, 17 November 2018 (UTC)
There must not be any space before the last START_END_MARKER; Can you check that?
PS: I added bold around this important instruction in Extension:HeadScript#Configuration. ~ Seb35 [^_^] 00:36, 19 November 2018 (UTC)
Hi
I use 1.31 version.
I checked and there are no spaces around START_END_MARKER; Neither I have any empty lines before. I just copypaste the example from the extension's page and entered my script between <script></script>.
I turned on PHP errors and here is what it gives me:
Undefined variable: type in /home/..../extensions/HeadScript/HeadScript.php on line 3
The error doen't depend on the script I use, it is there for any script. 142.157.25.184 (talk) 23:50, 19 November 2018 (UTC)
Ok, I found what was that. The fix is here Extension talk:HeadScript#h-Undefined_variable-2018-01-22T18:04:00.000Z 142.157.25.184 (talk) 00:13, 20 November 2018 (UTC)
(I re-opened the topic for this comment and re-closed it.)
Ok, I’m glad you found the issue.
I’ve put some comment about this extension on Extension talk:HeadScript#h-Maintenance_of_this_extension-2018-11-20T17:05:00.000Z, feel free to answer if you want. ~ Seb35 [^_^] 17:06, 20 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Font for Wiki Tabs

I'm still customizing my wiki by modifying its CSS page. While I was experimenting it, I saw that I've found a way to make the "More" displayed in the font I want to customize with, and in uppercase. I actually want to see if I want to apply that for the other tabs in the navigational section, but I'm having trouble with it, even as I'm using Ctrl+Shift+C in Chrome. What would be the proper CSS code to resolve this?

Here is the image that will hopefully back up my inquiry:

<figure-inline>File:CSS Navigation.png</figure-inline> The-Psychid (talk) 20:01, 16 November 2018 (UTC)

Using the select tool, select the tab that you want to change. Under the "Styles" tab, on the top there would be "element.style" brackets. In these, you can include whatever CSS you want to apply on the selected element. Include "font-family: FONT_NAME;" here. AhmadF.Cheema (talk) 22:34, 16 November 2018 (UTC)
Alright, but can I ask what the "select tool" is, and what it looks like when using MediaWiki? The-Psychid (talk) 03:01, 19 November 2018 (UTC)
In Chrome, press Ctrl+Shift+C; this will open up the select tool. I mentioned this previously in one of your previous topics. AhmadF.Cheema (talk) 05:00, 19 November 2018 (UTC)
Oh, I gotcha. I just have one more question, though: Is it possible to save the changes you've made on the wiki, through Google Chrome's selection tool? The-Psychid (talk) 02:29, 20 November 2018 (UTC)
Never mind, I think I'm able to solve my dilemma, after going through further trial and error. Thanks for your assistance, though! The-Psychid (talk) 02:37, 20 November 2018 (UTC)

MW serving wrong page with random content, how to debug?

It seems that there are bug/bugs in Mediawiki 1.31 cache system. Where sometimes page will show totally different page than it currently is, and with page refresh/purge. the random content may change to other random page or change back.

Moreover, some times that page content will change to totally different template contents after submit, which made many edit lost and cause editors mad.

How to debug? Is anyone have similar bug like us in MW 1.31 or earlier version? Deletedaccount4567435 (talk) 05:28, 17 November 2018 (UTC)

Password protection in .htaccess asks for password in every directory accessed

I'm working on a private wiki instance on a shared host for a student organization. I'd like the wiki to be able to be read by anyone in the team who knows the password without the need to create a user just for that. Contribution is limited to registered users only.

I am using URL shortening and HTTPS redirection too, and currently it asks for password again not only when the main page is loaded but also when the logo is loaded and the first load.php command is ran, so three times usually. Sometimes it asks seemingly randomly also while browsing the wiki.

It is very annoying, and I contemplated on somehow extending MediaWiki to contain a landing page for password and then register the session and keep it until cookies are cleared. I couldn't find an Extension for what I am trying to do. I'd rather stick to .htaccess in case there is no such Extension available at all.


The content of the .htaccess file is the following:

RewriteEngine On

# Always redirect HTTP to HTTPS

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

<If "%{HTTPS} == 'on'">

    AuthType Basic

    AuthUserFile /var/www/exampleurl.com/wiki/.htpasswd

    AuthName "Username and password required"

    Require user exampleuser

</If>

RewriteRule ^/?wiki(/.*)?$ /index.php [L]

RewriteRule ^/*$ /index.php [L]


I am using MediaWiki 1.31.0. Domenixq (talk) 13:27, 17 November 2018 (UTC)

What is the best way to have mobile friendly site?

I tried to install it according to this page Extension:MobileFrontend but it did not work. Is there another way? Zeynel1 (talk) 16:24, 17 November 2018 (UTC)

If "it did not work" you could explain why it did not work. Malyacko (talk) 23:25, 17 November 2018 (UTC)
Yes, sorry. I was trying to install Math extension before this and I had the same error. I could not get the error tracing work. But finally running the update script fixed the issue. I was wondering if there was another way of having a mobile site. This sentence confused me (from Extension:MobileFrontend):
The TemplateStyles extension can be used to style content so that it renders nicely on mobile and desktop. MobileFrontend will not magically fix this for you!
Can this be done with TemplateStyles? Zeynel1 (talk) 17:02, 18 November 2018 (UTC)
The Extension:MobileFrontend (or specifically the skins which are used for mobile) will take care of most of the general MediaWiki website elements (navbar, sidebar, logo etc.); however, specific customised templates that the Wiki users create are not automatically corrected by the extension. These templates might need their own CSS rules to make them render the desired way on mobile. Extension:TemplateStyles is the convenient way to define specific CSS rules separately for each template. AhmadF.Cheema (talk) 17:58, 18 November 2018 (UTC)

What is the best way to have mobile friendly site?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I tried to install it according to this page Extension:MobileFrontend but it did not work. Is there another way? Zeynel1 (talk) 16:24, 17 November 2018 (UTC)

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

modifiedby field not working since update

I previously created a dpl to help me with my maintenance jobs on a wiki. Some time ago we got an update to the last version and it caused all dpl's that used the modifiedby field to throw up this error.

The DPL extension (version 2.3.0) produced a SQL statement which lead to a Database error.

The reason may be an internal error of DPL or an error which you made,

especially when using DPL options like titleregexp.

Query text is:

SELECT DISTINCT `wdd_page`.page_namespace AS page_namespace,`wdd_page`.page_title AS page_title,`wdd_page`.page_id AS page_id, rev_user, rev_user_text, rev_comment, rev_timestamp, rev_id FROM `wdd_revision` AS rev, `wdd_revision` AS change_rev, `wdd_page` INNER JOIN `wdd_categorylinks` AS cl0 ON `wdd_page`.page_id=cl0.cl_from AND (cl0.cl_to='5e') INNER JOIN `wdd_categorylinks` AS cl1 ON `wdd_page`.page_id=cl1.cl_from AND (cl1.cl_to='User') LEFT OUTER JOIN `wdd_categorylinks` AS cl2 ON `wdd_page`.page_id=cl2.cl_from AND cl2.cl_to='Meta' WHERE 1=1 AND cl2.cl_to IS NULL AND `wdd_page`.page_namespace NOT IN ('1') AND `wdd_page`.page_is_redirect=0 AND `wdd_page`.page_id=rev.rev_page AND rev.rev_timestamp=( SELECT MAX(rev_aux.rev_timestamp) FROM `wdd_revision` AS rev_aux WHERE rev_aux.rev_page=rev.rev_page ) AND = change_rev.rev_user_text AND change_rev.rev_page = page_id AND `wdd_page`.page_id=rev.rev_page AND rev.rev_timestamp < 20181117160000 ORDER BY rev_timestamp DESC, rev_id DESC

Error message is:

Column 'rev_user' in field list is ambiguous (127.0.0.1)

When the following is inputted:

{{#dpl:|allrevisionsbefore=202505151400|ordermethod=lastedit|order=descending|distinct=true|category=User|notnamespace=Talk|notcategory=Meta|modifiedby=ConcealedLight|noresultsheader=|mode=userformat|format=,\n* %DATE% %PAGE%}}

Any suggestions? 31.205.234.176 (talk) 17:00, 17 November 2018 (UTC)

Seems like for MySQL it is not clear, which field "rev_user" it should select from the fields given in the list. The field can be prefixed by a table name or by a table alias to solve this issue.
For ny example see https://stackoverflow.com/questions/6638520/1052-column-id-in-field-list-is-ambiguous 88.130.53.40 (talk) 15:48, 18 November 2018 (UTC)

Make mobile website forward to the regular website in case of non-mobile access

For instance, make he.m.wikipedia.com/somthing automatically forward to he.wikipedia.com/somthing in case I access from my desktop. 2A02:ED0:3371:DC00:69B6:D321:A32C:5016 (talk) 15:00, 18 November 2018 (UTC)

Why? :) And how to identify "your desktop"? Also see https://phabricator.wikimedia.org/T100402 Malyacko (talk) 16:40, 18 November 2018 (UTC)
The regular wikipedia looks better on a desktop then the mobile site.
And you can see the browser and the system in the user-agent I send in each page request. 2A02:ED0:3371:DC00:69B6:D321:A32C:5016 (talk) 09:45, 19 November 2018 (UTC)

Highlight search hits

Hello there

Is there a way to highlight the search hits in the matching documents? The search terms are bold faced in the search results page, but I'd like to see the terms highlighted or bold faced when the documents are opened. DokuWiki does this by default. I tried enabling $wgAdvancedSearchHighlighting but don't see any difference at all with that setting.

Thank you Captgoodhope (talk) 19:47, 18 November 2018 (UTC)

You can use CSS to make the desired customisations. In your MediaWiki:Common.css page, use something like the following:
/* Search result headings */
div.mw-search-result-heading {
	background-color: #ffeb3b85;
}
/* Search result content */
div.searchresult {
	background-color: #8bc34a63;
}
AhmadF.Cheema (talk) 22:38, 18 November 2018 (UTC)
Thank you, but not exactly what I had in mind. When I do a search, the search results will look like this:
https://1drv.ms/u/s!AlsOmAfsNhgShcoOEpumxoFT0Yq6fg
If I click on '2018-11-17 Test' to open the document, it will look like this:
https://1drv.ms/u/s!AlsOmAfsNhgShcoNdmk8hYsWhy_Csw
The search results will be highlighted in the document.
This might be quite complicated to do I think. What is the setting $wgAdvancedSearchHighlighting supposed to do? Captgoodhope (talk) 23:25, 18 November 2018 (UTC)
Someone asked about such functionality three years ago too. Don't think this is natively possible, will probably require some JavaScript.
$wgAdvancedSearchHighlighting appears to be broken. Although it does appear to have some effect on the amount of wikitext shown in the results but nothing relevant to highlighting. AhmadF.Cheema (talk) 01:19, 19 November 2018 (UTC)
Okay, thank you. Captgoodhope (talk) 02:06, 20 November 2018 (UTC)

Math extension cause a fatal exception of type "Wikimedia\Rdbms\DBQueryError"

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 install the math extension but when i try to add a <math> balise in a page, i have this screen :

___________________________________________________________________________

MediaWiki internal error.

Original exception: [W-I969TjGCIAAAU3aBUAAAAe] 2018-11-19 04:37:00: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php to show detailed debugging information.

___________________________________________________________________________

When i try to add $wgShowExceptionDetails = true and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php, i have a blank page at the same place.

What ca i do ?

URL of my wiki : www.wikimeca.org/wikimeca_1_31/

Here is my installation specifications :

2 Logiciels installés

Produit Version
MediaWiki 1.31.1
PHP 7.2.11 (cgi-fcgi)
MySQL 5.5.60-0+deb7u1-log
ICU 52.1

3 URL des points d'entrée

Point d'entrée URL
Chemin d’article /wikimeca_1_31/index.php?title=$1
Chemin de script /wikimeca_1_31
index.php /wikimeca_1_31/index.php
api.php /wikimeca_1_31/api.php
load.php /wikimeca_1_31/load.php

Habillages installés

Habillage Version Licence Description Auteurs
Monobook GPL-2.0-or-later L’habillage classique de MediaWiki depuis 2004, nommé d’après la photo en noir et blanc d’un livre dans l’arrière-plan de la page Gabriel Wicke et autres
Timeless 0.8.1 GPL-2.0-or-later Un habillage intemporel conçu d’après le prototype Winter par Brandon Harris, et divers styles de la Fondation Wikimédia Isarra Yos
Vector GPL-2.0-or-later Version moderne de MonoBook avec un aspect rajeuni et beaucoup d’améliorations ergonomiques Trevor Parscal, Roan Kattouw et autres

Extensions installées

Greffons de l'analyseur syntaxique
Extension Version Licence Description Auteurs
Math 3.0.0 (a1263db)17 avril 2018 à 00:54 GPL-2.0-or-later Restitue les formules mathématiques entre les balises <math> ... </math> Tomasz Wegrzanowski, Brion Vibber, Moritz Schubotz et Derk-Jan Hartman
Gdwikimeca (talk) 04:47, 19 November 2018 (UTC)
Add
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
You missing ; at the line end. 星耀晨曦 (talk) 04:57, 19 November 2018 (UTC)
Thanks but i don't think so. Here is the end of my localsettings.php file :
# Add more configuration options below.
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
$wgShowSQLErrors = true;
And i style have a blank page... Gdwikimeca (talk) 07:45, 19 November 2018 (UTC)
May also add
error_reporting( -1 );
ini_set( 'display_errors', 1 );
星耀晨曦 (talk) 08:36, 19 November 2018 (UTC)
If you see a blank page, adding the above won't work. You introduced a syntax error somehow when you edited the LocalSettings.php file. Try commenting-out all modified lines to find what's the problem, or look at the webserver error logs. Ciencia Al Poder (talk) 10:26, 19 November 2018 (UTC)
Thanks for this posts.
My LocalSettings.php file is almost the original one generated during installation. I just add the lines below.
I try to creat a errorlog file by adding :
$wgDebugLogFile = "$wgScriptPath/errorlog.txt";
but the file is empty.
I add the lines :
error_reporting( -1 );
ini_set( 'display_errors', 1 );
too, but nothing new. Gdwikimeca (talk) 10:58, 19 November 2018 (UTC)
A blank page generally means PHP crashes before it can execute a line of code. It can't write a log file. Ciencia Al Poder (talk) 16:30, 19 November 2018 (UTC)
You can check the web server error log. 星耀晨曦 (talk) 11:06, 19 November 2018 (UTC)
Gdwikimeca: were you able to solve this? I am running into the exact same issue. Deregulates (talk) 08:09, 7 January 2019 (UTC)
Never mind. Found the answer here: https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2018/11#h-Unable_to_Install_Math_Extension-2018-11-15T19%3A32%3A00.000Z. Running the update script from the command line fixes things. Deregulates (talk) 09:33, 7 January 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can't retrieve value in JSON file after wt2html

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 am using Python to save HTML code retrieved from http://localhost/mywiki/api.php?action=parse&page=Sandbox&format=json by storing the actual HTML code (not the other parsoid specific stuff) in a variable.

I tried to access that code doing this: content["parse"]["text"]["*"]

where content is the variable I loaded the JSON stuff into. The asterisk (*) is out of unicode range, but it is the key to the HTML code dump. Is there a workaround?

More specifically, I get this error: UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 486: ordinal not in range(128)

{"parse": {"text": {"*":"html code dump"}}}

The above reflects (very minimally) how the JSON was formatted.

Thanks! Emske (talk) 21:05, 19 November 2018 (UTC)

Looks like the problem is not the asterisk (*), which is part of the ASCII standard, but the text contents of the page.
It depends on the code you're using. Most probably you're trying to assign that unicode string to a non-unicode string or something... Ciencia Al Poder (talk) 10:23, 20 November 2018 (UTC)
Oh, I think I'm starting to see what might be the real problem. The JSON's data dump, in this case the HTML code dump, is all in unicode, denoted by u' on every String.
That said, I found a workaround that I will post here in case anyone could possibly benefit in the future:
html = json.loads(data.read())
actualContent = (html["parse"]["text"]["*"]).encode("ascii", "ignore") Emske (talk) 15:59, 20 November 2018 (UTC)
ok 46.223.226.146 (talk) 16:23, 20 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I don't understand anything about Mediawiki's syntax

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 tried to look around Google search for 2 hours to find some help, so I could customize/make a template and several times I ended up on both Wikipedia and this website for that matter, but neither helped me at all. The problem comes from the basic function of the markings used by mediawiki.

I tried to insert text into a box and leave a fancy image right next to the text like all the big wikis do and make a stub template with this, but I couldn't do it since there's no help whatsoever regarding Mediawiki's formatting on the web, I had to copy and paste the formatting used in Wikipedia's stub template and it doesn't help that I still don't understand anything in this extremely simple syntax.

{| id="Stub" class="noprint stub plainlinks"

|-

!This article is a stub. You can help MediaWiki by expanding it.

|}

I guess the ID and class are either used in the CSS or the SQL database, but that aside, I don't understand anything in this code considering there's no documentation on Mediawiki's formatting, well besides '''something''' which will make the text look like this: something.

Really, I want to make a text inside of a colored box with an image next to the text as a template, nothing way too difficult, but I just don't know what to do to make this and again I looked around for 2 hours, either I didn't search the correct keywords or there's no documention on all of mediawiki's formatting which is annoying.

PS: I kinda wished the visual editor allowed me to do that, that would be far quicker and easier. Category:Templates#Support%20desk/Flow/2018/11 MarioSuperstar77 (talk) 22:02, 19 November 2018 (UTC)

The syntax quoted above represents a table with id "stub" and classes "noprint", "stub" and "plainlinks". IDs and classes are needed to activate corresponding CSS rules defined in MediaWiki:Common.css.
See Help:Editing, Help:Tables, Help:Templates and for making use of already created Wikipedia templates, see Help:Export. AhmadF.Cheema (talk) 02:45, 20 November 2018 (UTC)
Oh thanks for the Help:Tables page, I did not know what the symbols were used for. I once used the export function, but it downloads entire pages which ends up being difficult to re-read. Is there a way to exlusively download the templates using special:export? MarioSuperstar77 (talk) 17:06, 20 November 2018 (UTC)
After export of the Wiki pages into an XML format, you will need to import that same exported file into your own Wiki. Just go to your Wiki's Special:Import page and then import the file. For details, see Help:Import. AhmadF.Cheema (talk) 18:07, 20 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

pywikibot listpages -prefixindex with spaces in page names

How can I get search term

python pwb.py listpages "-prefixindex:SuperCon "

to match "SuperCon 1 and SuperCon 2", but not match the page "SuperCon"

I've tried various ways of enforcing the trailing space, but it is ignored Notmadewelcome (talk) 12:57, 20 November 2018 (UTC)

I haven't tested it, but try with -prefixindex:"SuperCon " or -prefixindex:"SuperCon_" Ciencia Al Poder (talk) 10:19, 21 November 2018 (UTC)
Neither of those work. replace.py has "-titleregex:SuperCon " which does work, I don't see why it was omitted from listpages.py Notmadewelcome (talk) 22:49, 22 November 2018 (UTC)
I guess you could use `grep` (if you're on linux, of course) to filter that list with regular expressions Ciencia Al Poder (talk) 10:09, 23 November 2018 (UTC)

Including the script in the Head depending on the page

I want to include a script in the <head> for certain pages, but not in the rest. I use HeadScript.

For now, I'm trying to add it only on one page.

The code is

if ($id == 106) {

  $wgHeadScriptCode = <<<'START_END_MARKER'

<script>....</script>

START_END_MARKER;

  }

The page id is 106.

However, obviously smth is wrong, as the script does not appear. Without if everything works. Please, suggest where I'm wrong. 142.157.25.184 (talk) 17:21, 20 November 2018 (UTC)

This code is in LocalSettings. I'm using version 1.31. 142.157.25.184 (talk) 17:22, 20 November 2018 (UTC)
Any suggestions how to make this working? 142.157.25.184 (talk) 16:05, 21 November 2018 (UTC)
Please, advise how to show the script in the head depending on the page. Thank you! 142.157.25.184 (talk) 21:48, 22 November 2018 (UTC)

Admin reset password

I can not reset my password "Admin"

sudo php maintenance/changePassword.php --dbUser=user --dbpass=pass --user=Admin --password=newpassword

1)

[70abeded] [no req]   PasswordError from line 2415 of /var/www/mediawiki-1.26.3/includes/User.php: Вы не можете изменить пароль в этой вики.

Backtrace:

#0 /var/www/mediawiki-1.26.3/maintenance/changePassword.php(55): User->setPassword(string)

#1 /var/www/mediawiki-1.26.3/maintenance/doMaintenance.php(103): ChangePassword->execute()

#2 /var/www/mediawiki-1.26.3/maintenance/changePassword.php(65): require_once(string)

#3 {main}

2)

MariaDB [itwiki]> UPDATE `localhostuser` SET user_password = CONCAT(':pbkdf2:sha512:10000:128:', 'Qwerty123', 'Qwerty123') WHERE user_name = 'Admin';

MariaDB [itwiki]> select user_name,user_password,user_email from localhostuser;

+--------------------+-------------------------------+

| user_name          | user_password         |

+--------------------+-------------------------------+

| Admin              | :pbkdf2:sha512:10000:128:Qwerty123Qwerty123|

Admin panel:

Login error

Incorrect password entered. Please try again.

Need help me please!

Thank 37.230.151.40 (talk) 07:55, 21 November 2018 (UTC)

What is an "Admin panel" and where to find that in MediaWiki?
(Also note that 1.26 is an ancient insecure version that you need to upgrade.) Malyacko (talk) 10:05, 21 November 2018 (UTC)
Looks like your MediaWiki is set up to authenticate against an external authentication system (like LDAP), thus you're not allowed to change the password. Ciencia Al Poder (talk) 10:14, 21 November 2018 (UTC)

Redirect to Main_Page with Filecache

When I use FileCache Home page is cached and stops being redirected to /wiki/Main_Page for non-logged users. How to return a redirect? (MediaWiki 1.31.1) Saew12 (talk) 09:25, 21 November 2018 (UTC)

Can you describe the problem with more details? I don't think file cache should prevent redirects from working. Ciencia Al Poder (talk) 10:24, 23 November 2018 (UTC)
It's so. you can see it on my russian wiki . In LocalSettings.php i use:
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = [];
$wgUseFileCache = true;
$wgFileCacheDirectory = "$IP/cache";
Saew12 (talk) 16:50, 23 November 2018 (UTC)
I don't see a problem. The current main page is not a redirect, and /wiki/Main_Page does not exist Ciencia Al Poder (talk) 18:07, 23 November 2018 (UTC)
in Russian it Заглавная страница . and the main page does not redirect to it. Saew12 (talk) 12:51, 26 November 2018 (UTC)

Connection to access database with mdb 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.


Hello,

is it possible to connect to an mdb access database via mediaWiki and how can I do it?

Thanks you.

G 91.181.27.54 (talk) 16:41, 21 November 2018 (UTC)

What exactly should happen / be possible after you connect to an Access database via MediaWiki? Malyacko (talk) 10:12, 22 November 2018 (UTC)
I think he wants to use it instead of Maria/MySQL.
I don't think that is supported. MediaWiki however does have (some/little) MSSQL support. See Manual:Microsoft SQL Server. 2001:16B8:1007:DA00:31D4:A3B6:7ED5:CED3 (talk) 20:34, 22 November 2018 (UTC)
hello,
sorry for late reply.
With an Access database (that I own and use in its own software) connection, I could be able to use its content via codeigniter to implement some fonctions that are missing in the original software (runtime).
Can you confirm there is no hope so I could continue my way to proper means?
Thank you to help.
G 81.246.162.118 (talk) 00:59, 27 December 2018 (UTC)
I'm sorry, I was meaning mediawiki as I was on this way at the time of my message.
I'm in the same time on different way to do my work an get success, actually the upper framework that could be the good way.
Please confirm although.
Thank you for your time and comprehension.
G

81.246.162.118 (talk) 01:03, 27 December 2018 (UTC)
There's no support for Access database on MediaWiki. Ciencia Al Poder (talk) 10:15, 27 December 2018 (UTC)
Thank you very much!
G

81.246.162.118 (talk) 02:56, 28 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Yandex turbo - how to do?

Wikipedia uses yandex turbo pages (example). - About technology. How can this be implemented? Maybe there is a ready extension? Saew12 (talk) 16:44, 21 November 2018 (UTC)

What makes you think that "Wikipedia uses yandex turbo pages"? Which of the many Wikipedias do you refer to? Malyacko (talk) 10:09, 22 November 2018 (UTC)
He links to a copy of the English Wikipedia on yandex.com... 2001:16B8:1007:DA00:31D4:A3B6:7ED5:CED3 (talk) 20:56, 22 November 2018 (UTC)
Which means that Yandex offers Wikipedia pages under Yandex Turbo, and not that Wikipedia uses Yandex turbo pages? Malyacko (talk) 15:27, 23 November 2018 (UTC)
NO.Wikipedia uses Yandex turbo pages! For using yandex turbo you must have special rss-file and you must upload it in yandex webmaster. it's like google AMP (Accelerated Mobile Pages) technology, but another. I want to know how to automatically create such an rss file with the necessary markup. There are special plugins for Drupal, WordPress, Joomla... But there is no one for the mediawiki Saew12 (talk) 16:41, 23 November 2018 (UTC)

"Refreshed" Modifications

I've decided to use the "Refreshed" skin for my future wiki. But for now, I have two questions regarding some modifications to it.

One, how do you customize the "navigation" panel? I plan on having more options for the user, once the wiki's published. And two, I've been modifying its CSS page, and everything's working as I've intended for it. But when I log back in, the wiki altogether switches back to the default settings (but only on the login page itself). The attached screenshot should give you an idea:

<figure-inline></figure-inline>

In the case of the latter, is it an issue (because I'm assuming that the CSS source page would apply to all the wiki pages, including login)? And if so, what would be the best way to resolve this issue?

As always, I truly appreciate your assistance. The-Psychid (talk) 05:43, 22 November 2018 (UTC)

See Manual:Interface/Sidebar and Manual:CSS#Styles not working on Special:UserLogin or Special:Preferences? AhmadF.Cheema (talk) 10:04, 22 November 2018 (UTC)

Display xml-file with css-formatting in wiki

Hello out there!

I want to display an xml-file in my MediaWiki which is formatted by a css-file. I have the xml- and css-extension.

On the Wiki-page I used the code:

"<xml2wiki>

file = File:file.xml

</xml2wiki>"

The xml-file is displayed now but the css-formatting is missing. In the xml-file there is a link to the css-file:

<?xml-stylesheet type="text/css" href="style.css"?>

Both files (xml and css) are uploaded on the Wiki.

Any ideas? 80.146.228.73 (talk) 09:34, 22 November 2018 (UTC)

the style.css should point to an absolute URL. Otherwise it will try to load a file named "style.css" on the same URL path of the current page, which I guess it doesn't exist. Ciencia Al Poder (talk) 10:22, 23 November 2018 (UTC)

Hello, is it possible to have a daily digest with watchlist?

Hello, is it possible to have a daily digest with watchlist of all users, and how to configure the time to send it?.

I have seen Echo extension, but it seems it doesn't include changes in pages of watchlists. Emcmalva (talk) 12:01, 22 November 2018 (UTC)

No, see https://phabricator.wikimedia.org/T10911. If you feel like looking at the code, see How to become a MediaWiki hacker. Malyacko (talk) 15:26, 23 November 2018 (UTC)

Exception encountered, of type "ParseError"

I use version 1.27.5, and when i trying go to recent changes, i get <code>Exception encountered, of type "ParseError" </code>. What is that? Veselcraft (talk) 23:26, 22 November 2018 (UTC)

In your LocalSettings.php set:
$wgShowExceptionDetails = true; $wgShowDBErrorBacktrace = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);
For further details, see Manual:How to debug. AhmadF.Cheema (talk) 00:35, 23 November 2018 (UTC)
i'll set it in localsettings and i get this:
Warning: file_exists(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/second32/data:.) in /var/www/second32/data/www/veselcraft.ru/wiki/includes/GlobalFunctions.php on line 2132 Warning: Unterminated comment starting line 1164 in /var/www/second32/data/www/veselcraft.ru/wiki/vendor/zordius/lightncandy/src/lightncandy.php on line 1164 Exception encountered, of type "ParseError" [W-fgXBqrXffq3cxp-eCY-wAAAGs] /wiki/index.php/Special:RecentChanges ParseError from line 1173 of /var/www/second32/data/www/veselcraft.ru/wiki/vendor/zordius/lightncandy/src/lightncandy.php: syntax error, unexpected end of file, expecting function (T_FUNCTION)
i mean problem in file /vendor/zordius/lightncandy/src/lightncandy.php Veselcraft (talk) 11:14, 23 November 2018 (UTC)
I see two problems:
  • Please make sure that file vendor/zordius/lightncandy/src/lightncandy.php really got uploaded correctly to your server. It seems like the file is not complete.
  • For the open_basedir() problem, please make sure that /tmp gets added to the allowed paths! (If that is not possible, I guess there might be a MediaWiki configuration option to use a custom location for temp files...) 2001:16B8:1015:C300:8D35:D29:F8C3:E8F7 (talk) 22:09, 24 November 2018 (UTC)
When accessing our mediawiki website, we got this error:
Exception encountered, of type "ParseError"
Recently on the Debian Stretch, we did 'apt-get update' and 'apt-get upgrade'. Apparently, there was a software bug in the User.php file in 1:1.27.7-1~deb9u4. It was fine in the version 1:1.27.7-1~deb9u3.
The solution? Here are the changes we made in the User.php file under /usr/share/mediawiki/includes/user
====Before the change====
1803                 if ( $id == 0 ) {
1804                         // limits for anons
1805                         if ( isset( $limits['anon'] ) ) {
1806                                 $keys[wfMemcKey( 'limiter', $action, 'anon' )] = $limits['anon'];
1807                         }
1808                 } else {
1809                         // limits for logged-in users
1810                         if ( isset( $limits['user'] ) ) {
1811                                 $userLimit = $limits['user'];
1812                         }
1813                 } else {
1814                         // "global per name" limit, across sites
1815                         if ( isset( $limits['user-global'] ) ) {
1816                                 $lookup = CentralIdLookup::factoryNonLocal();
====After the change====
1803                 if ( $id == 0 ) {
1804                         // limits for anons
1805                         if ( isset( $limits['anon'] ) ) {
1806                                 $keys[wfMemcKey( 'limiter', $action, 'anon' )] = $limits['anon'];
1807                         }
1808                         // limits for logged-in users
1809                 } elseif  ( isset( $limits['user'] ) ) {
1810                                 $userLimit = $limits['user'];
1811                         }
1812                 else {
1813                         // "global per name" limit, across sites
Yes, we got it fixed
- Patrick Ni, September 27, 2020 PatrickNi2 (talk) 04:12, 28 September 2020 (UTC)
We had the exactly the same problem:
After upgrading our Debian Stretch mediawiki from 1:1.27.7-1~deb9u3 to version 1:1.27.7-1~deb9u4 we got the Exception encountered, of type "ParseError"
Your patch fixed it for us, so thanks a lot for that!
But still there should be a fix from debian to not break the thing again with the next official update. Did you report the bug to Debian? 129.69.85.68 (talk) 09:01, 28 September 2020 (UTC)
Thank you Patrick, saved my day. 200.186.66.115 (talk) 14:19, 28 September 2020 (UTC)

Installation Error

Hello,
I'm having problems with installing my wiki (http://wiki.danslo.cz/mediawiki-1.6.12/config/index.php). What can I do?
Thank you very much, Daniel Slováček 80.251.250.15 (talk) 18:18, 24 November 2018 (UTC)
Unsupported version, plus if there are problems you need to explain what the problems are, otherwise noone can help. :) 89.177.52.39 (talk) 22:38, 24 November 2018 (UTC)
Hi Daniel,
you are using MediaWiki 1.6.12, a version, which is really ancient and absolutely insecure nowadays.
Please follow Installation and start by grabbing a current version of MediaWiki, e.g. 1.31.1. This is the current LTS release. 2001:16B8:1015:C300:8D35:D29:F8C3:E8F7 (talk) 22:04, 24 November 2018 (UTC)

Edit count seems to be out of sync

Hi, when using the Editcount Extensions if the transcluded count Special:EditCount/USERNAME is compared to actual page EditCount/USERNAME, then they don't line up. Do you know why this is happening? Any help on fixing it? Jakel181 (talk) 22:30, 24 November 2018 (UTC)

Maybe Extension:Editcount updates the transcluded count after jobs are completed? Which one is higher, the Special page one or the transcluded one? AhmadF.Cheema (talk) 04:13, 25 November 2018 (UTC)
Although I do not know the answer, I have an idea on that one:
The extension is not really counting the edits, it only is increasing a number by one. If this number is incorrect, then the edit count as displayed by the extension is wrong. This can e.g. happen, if the extension has been deactivated for some time.
The transclusion however might just get the counted number of rows from the database so that it gets the right number, even though the number, which the Editcount extension has saved, is wrong. 2001:16B8:1095:C900:4977:3F19:EBE9:C9AA (talk) 20:07, 25 November 2018 (UTC)
MediaWiki stores it's own edit count on the user table. This is different from how the extension calculates the numbers, which is simply counting the number of rows in the revision table. If a page is deleted, it doesn't update the MediaWiki editcount of the affected users, but those deleted revisions won't be counted for those users, meaning the edit count per namespace will be decreased, while the internal global edit count would still count them. There's also differencies when one renames a page, which creates 2 revisions (one is the redirect page), increasing the edit count by 2 on the extension, but MediaWiki only counts it as 1. Ciencia Al Poder (talk) 10:20, 26 November 2018 (UTC)
Here is a link to the wiki we are having the issue on + the discussion about it. https://en.scratch-wiki.info/wiki/Scratch_Wiki_talk:Community_Portal/Not_Done#My_edit_count_seems_to_be_out_of_sync Jakel181 (talk) 12:35, 26 November 2018 (UTC)
This is the issue reported on phabricator: phab:T12452
You can see the transcluded editcount here, which is what MediaWiki has stored internally: https://en.scratch-wiki.info/wiki/Special:ApiSandbox#action=query&format=json&list=users&usprop=editcount&ususers=Kenny2scratch Ciencia Al Poder (talk) 15:19, 26 November 2018 (UTC)

Cannot create an account

The site http://www.impdb.org/index.php?title=Special:UserLogin&returnto=Special%3APasswordReset says: "Oh yeah, new users and edits are now active (hopefully for good) while we're testing new and improved spam/bot protections :) Thank you, IMPDb Staff". Contrary to the help information, there is no option to create an account after selecting Log In. I was only able to find the Create option after attempting to reset a non-existent account name "Ejpren" at: http://www.impdb.org/index.php?title=Special:PasswordReset, which returns the message "There is no user by the name "Ejpren ". Usernames are case sensitive. Check your spelling, or create a new account."

When I select the "create a new account" link, I get the message " You do not have permission to do that, for the following reason:

You are not allowed to execute the action you have requested."

This does not help me to join the site. Thanks, 2600:100A:B00C:A3A4:3CDB:D410:80D5:8434 (talk) 23:55, 24 November 2018 (UTC)

Sorry, but wrong support forum. MediaWiki is not related to IMPDb. AhmadF.Cheema (talk) 01:54, 25 November 2018 (UTC)

Arabic Spellcheck Dictionary

Dears,
We are using MediaWiki framework 1.27.4, and we want an Arabic Dictionary to handle the spellcheck issues.
So, Is there any way to implement this feature with our media-wiki editor?
Regards,
Fayez Fayez.abuhilow (talk) 15:31, 25 November 2018 (UTC)
For the records, https://phabricator.wikimedia.org/T3677 was declined as browsers provide such functionality. AKlapper (WMF) (talk) 01:38, 26 November 2018 (UTC)
Applications usually don't have such functionality. This is more in the domain of web browsers. AhmadF.Cheema (talk) 16:38, 25 November 2018 (UTC)

help translating title page of a sutra...

Greetings,
I speak seven languages but Tibetan isn't one (yet...:) )
Can anyone help transliterate/translate the title page attached including the small text on the left?
I would be most grateful!
Thanking you in advance.
Best regards,
Richard
This just in:
Seems that the first part is ...
ཤེས་རབ་ཀྱི་ཕ་རོལ་ཏུ་ཕྱིན་པ།
shes rab kyi pha rol tu phyin pa
prajñāpāramitā
...which certainly helps.
The rest of the text (and perhaps especially the small text on the side) are still of interest.
Again, thanks.
Best,
Richard Walkingaroundshikoku (talk) 00:18, 26 November 2018 (UTC)
May ask on https://bo.wikipedia.org/wiki/Wikipedia:Guestbook_for_non-Tibetan_speaker ? AKlapper (WMF) (talk) 01:36, 26 November 2018 (UTC)
Apologies, but this is a wrong support forum for translation requests. AhmadF.Cheema (talk) 00:22, 26 November 2018 (UTC)

Download mediawiki to thumb drive

I have a mediawiki install that I'd like to take offline. It's currently running on 1.16.4 due to some older skins and extensions I didn't want to get rid of. What would be the easiest way to run this from a thumb drive? 24.220.59.1 (talk) 03:54, 26 November 2018 (UTC)

MediaWiki needs a database to store all the data (except images, which are stored in filesystem). If you're using MySQL, it may not be safe to run that on a thumb drive. Removing the drive without unmounting it correctly can corrupt data. If you're using sqlite it should be safer.
There's some documentation in Manual:Wiki on a stick Ciencia Al Poder (talk) 10:15, 26 November 2018 (UTC)

Database error when installing MW 1.31.1

When installing MW_1.31.1 I encounter a database error.

Look here for a sample wiki, where all the steps are documented by screenshots.

The empty database file is included too. So anybody can download it and test it on other systems in order to determine whether this is a bug.

Thanks. Alfredo1066 (talk) 14:25, 26 November 2018 (UTC)

Looking at your screenshots, most of what you noted is not really a problem: MediaWiki will work without an OPCode cache - although installing one might make it faster.
For the default table engine, please choose InnoDB.
When I look at your wiki page with the error description and at your other topic Project:Support desk/Flow/2018/10#h-I_get_logged_out_when_editing_after_upgrade_to_1.31.1_from_1.26.3-Internal_error-2018-10-25T13:19:00.000Z, then I see the same error messsage twice:
JobQueueError from line 828 of /mw_1.31.1-neu/includes/jobqueue/JobQueueDB.php: Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT job_sha1 FROM `innodbjob` WHERE job_sha1 = '94t2nzwov23jc8fpl2v3kr6rk6lmeu5' AND job_token =
Function: JobQueueDB::doBatchPush
Error: 1146 Table 'db12596436-innodb.innodbjob' doesn't exist (localhost)
and
Error: 1146 Table 'db12596436-isamdb.isamdbjob' doesn't exist (localhost)
Somehow, MediaWiki tries to access tables with table prefix "innodb" and "isamdb".
According to the LocalSettings.php file, which you posted, you have not set $wgDBprefix. So there should not be a table prefix.
Looks like a bug. 2001:16B8:101A:8F00:60CE:690F:2854:FA50 (talk) 21:15, 26 November 2018 (UTC)
Thanks, I will file a bug report. Alfredo1066 (talk) 17:12, 27 November 2018 (UTC)
https://phabricator.wikimedia.org/T210524 AKlapper (WMF) (talk) 09:16, 28 November 2018 (UTC)

Using pywikibot on hosted services, especially Dreamhost

I'm looking to port a 30k page wiki from wikidot to mediawiki, which will involve many rounds of pywikibot processing. Is there any reason why a hosted mediawiki service, and especially Dreamhost, won't allow me to use it, or do they all have an api.php which I can connect to? With that many pages, a hosting service throttling access could be a problem, do they do that? Notmadewelcome (talk) 14:45, 27 November 2018 (UTC)

Nowadays, access to the MediaWiki api is as necessary as having JavaScript executed on the browser. About rate limiting, this is something only the shared host can tell... You can try contacting them about that Ciencia Al Poder (talk) 10:10, 28 November 2018 (UTC)

How do I speed up Category Indexing?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Running MediaWiki 1.31.1 on dedicated server.

In the past I have run my wiki on a shared host and after imported about 5,000 pages via the API, it took around 3 days to fully index all the categories... e.g. when you click on a category, all the related pages show up.

I built a new wiki on a dedicated host and have imported the same pages via the API. Now, I am over a week waiting and it has only indexed about 1,500 pages. I can text search for all the pages fine in the wiki, When I watch (refresh a category), I can see about 1 page being added about every 3-5 minutes. This will take weeks at this rate.

I have been searching endlessly trying to find out how to speed this up without any luck. Anyone have this issue in the past? How can I get MediaWiki to simply complete the indexing of the 5,000 pages so my categories are complete??? This is a very small wiki and it ran a lot better on a shared host. Ideas???

Thank you in advance. ClaytonFFAWiki (talk) 15:34, 27 November 2018 (UTC)

Through SSH, run runJobs.php. AhmadF.Cheema (talk) 18:29, 27 November 2018 (UTC)
You are awesome, thank you very much! This fixed my issue. Thank you again! ClaytonFFAWiki (talk) 22:00, 27 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How can i add favicon to my wiki page using Mediawiki:common.css or using any page on the wiki without going to any folder?

Can i add theme/skin from Mediawiki:Common.css? If yes, how can i do it? These are the versions of my wiki for more information

Product Version
MediaWiki 1.24.1
PHP 5.6.38 (apache2handler)
MySQL 5.6.42

Venkateshganu (talk) 23:40, 27 November 2018 (UTC)

See https://www.mediawiki.org/wiki/Manual:Skins and https://www.mediawiki.org/wiki/Manual:CSS . Also note that your website is unsafe as run the ancient version 1.24 which has been unsupported for years and has now many security vulnerabilities. Malyacko (talk) 09:15, 28 November 2018 (UTC)
Also, you can't add a favicon with CSS Ciencia Al Poder (talk) 10:06, 28 November 2018 (UTC)
$wgFavicon is the configuration setting to use! 2001:16B8:1085:C800:E842:5176:7CFE:EC4D (talk) 18:03, 28 November 2018 (UTC)

Complete Nginx Config?

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.


Hey,

Can someone gives me a complete Nginx config for MediaWiki?

With all pretified urls like /edit, /history, /Special:Userlogin?

Thanks Ktownmods (talk) 16:09, 28 November 2018 (UTC)

I think that following Manual:Short URL/Nginx with $wgActionPaths set to true would achieve what you want. Jdforrester (WMF) (talk) 17:22, 28 November 2018 (UTC)
https://github.com/PlavorMind/Configurations/blob/Main/nginx.conf#L125
https://github.com/PlavorMind/Configurations/blob/Main/LocalSettings.php#L398 PlavorSeol (talk) 17:45, 28 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Override core messages with extension i18n

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 able to override MediaWiki core interface messages with extension? PlavorSeol (talk) 16:53, 28 November 2018 (UTC)

Yes, but it's a mess. The WikimediaMessages extension does that for Wikimedia. Jdforrester (WMF) (talk) 17:20, 28 November 2018 (UTC)
How can I do that? I put messages to override on en.json and ko.json but it doesn't override messages that already exists. PlavorSeol (talk) 17:53, 28 November 2018 (UTC)
You'll need to define the new key/values with a different key, and write some code hanging off the appropriate hook – e.g. https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikimediaMessages/+/master/WikimediaMessages.hooks.php#15 is how we intercept most keys, replacing foo with wikimedia-foo dynamically. Jdforrester (WMF) (talk) 18:44, 28 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Impressum?

Hi,

wie bekomme ich mein Impressum in den Footer? Ktownmods (talk) 17:50, 28 November 2018 (UTC)

Siehe Manual:Footer!
Du kannst auch gezielt einen Link oder eine der standardmäßig verlinkten Seiten bearbeiten ("Customizing the Built-in items"). 2001:16B8:1085:C800:E842:5176:7CFE:EC4D (talk) 18:01, 28 November 2018 (UTC)

Hey,

wenn ich einen Link einfüge (html code) dann ist dieser komplett sichtbar.

Beispiel Html Code: <a href="http://ec.europa.eu/odr" target="_blank" rel="nofollow">http://ec.europa.eu/odr</a>

wird aber auf der Seite auch so <a href="http://ec.europa.eu/odr" target="_blank" rel="nofollow">http://ec.europa.eu/odr</a> angezeigt und nicht nur der Link.

Jemand ne Ahnung wieso? Ktownmods (talk) 18:54, 28 November 2018 (UTC)

Probier mal Help:Links. 88.130.53.195 (talk) 21:22, 28 November 2018 (UTC)

error after migrating

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.


upgrading from 1.15.4

now mediawiki 1.31.1 mySQL (14.14 Distrib 5.7.24, for Linux 64)

not found in Manual:Errors and symptoms


$wgDBserver         = "localhost";

$wgDBname           = "wikidb";

$wgDBuser           = "wikidb_user";

$wgDBprefix         = "mwiki_";


mysql> GRANT SELECT, UPDATE, INSERT, DELETE, ALTER, CREATE, INDEX, DROP, LOCK TABLES, USAGE ON wikidb.* TO wikidb_user;


$ php maintenance/update.php



Turning off Content Handler DB fields for this part of upgrade.

Adding ipb_id field to table ipblocks ...[1ea12cec4356f5e12abc5c6c] [no req]   Wikimedia\Rdbms\DBQueryError from line 1457 of /var/lib/mediawiki_31/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: ALTER TABLE `mediawiki`.`mwiki_ipblocks`

ADD ipb_auto tinyint NOT NULL default '0',

ADD ipb_id int NOT NULL auto_increment,

ADD PRIMARY KEY (ipb_id)

Function: Wikimedia\Rdbms\Database::sourceFile( /var/lib/mediawiki_31/maintenance/archives/patch-ipblocks.sql )

Error: 1142 ALTER command denied to user 'wikidb_user'@'localhost' for table 'mwiki_ipblocks' (localhost)

Backtrace:

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

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

#2 /var/lib/mediawiki_31/includes/libs/rdbms/database/Database.php(4194): Wikimedia\Rdbms\Database->query(string, string)

#3 /var/lib/mediawiki_31/includes/libs/rdbms/database/Database.php(4129): Wikimedia\Rdbms\Database->sourceStream(unknown type, NULL, NULL, string, NULL)

#4 /var/lib/mediawiki_31/includes/installer/DatabaseUpdater.php(683): Wikimedia\Rdbms\Database->sourceFile(string)

#5 /var/lib/mediawiki_31/includes/installer/DatabaseUpdater.php(751): DatabaseUpdater->applyPatch(string, boolean, string)

#6 /var/lib/mediawiki_31/includes/installer/DatabaseUpdater.php(482): DatabaseUpdater->addField(string, string, string)

#7 /var/lib/mediawiki_31/includes/installer/DatabaseUpdater.php(446): DatabaseUpdater->runUpdates(array, boolean)

#8 /var/lib/mediawiki_31/maintenance/update.php(200): DatabaseUpdater->doUpdates(array)

#9 /var/lib/mediawiki_31/maintenance/doMaintenance.php(94): UpdateMediaWiki->execute()

#10 /var/lib/mediawiki_31/maintenance/update.php(245): require_once(string)

#11 {main}


in the browser:

Fatal error: Uncaught Error: Call to a member function getCode() on null in /var/lib/mediawiki_31/includes/user/User.php:1737 Stack trace: #0 /var/lib/mediawiki_31/includes/user/User.php(5412): User::getDefaultOptions() #1 /var/lib/mediawiki_31/includes/user/User.php(3096): User->loadOptions() #2 /var/lib/mediawiki_31/includes/context/RequestContext.php(336): User->getOption('language') #3 /var/lib/mediawiki_31/includes/Message.php(380): RequestContext->getLanguage() #4 /var/lib/mediawiki_31/includes/Message.php(1290): Message->getLanguage() #5 /var/lib/mediawiki_31/includes/Message.php(842): Message->fetchMessage() #6 /var/lib/mediawiki_31/includes/Message.php(934): Message->toString('text') #7 /var/lib/mediawiki_31/includes/exception/MWExceptionRenderer.php(199): Message->text() #8 /var/lib/mediawiki_31/includes/exception/MWExceptionRenderer.php(138): MWExceptionRenderer::msg('internalerror', 'Internal error') #9 /var/lib/mediawiki_31/includes/exception/MWExceptionRenderer.php(54): MWExceptionRenderer::reportHTML(Object in /var/lib/mediawiki_31/includes/user/User.php on line 1737 JohanDeGaule (talk) 03:40, 29 November 2018 (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.


Why dont work __NOTOC__ for https://wiguru.org/action/edit/%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F jelp pls 95.57.32.174 (talk) 09:20, 29 November 2018 (UTC)

I don't see a toc on that page... So I assume it works Ciencia Al Poder (talk) 10:17, 29 November 2018 (UTC)
check main page wiguru.org 1 line - __NOTOC__ 95.57.32.174 (talk) 12:54, 29 November 2018 (UTC)
I checked the source code of the page, and the main page (on view, not edit) there's no TOC, so <nowiki><nowiki> is working correctly.
https://snag.gy/fEmSHJ.jpg Ciencia Al Poder (talk) 13:24, 29 November 2018 (UTC)
how del this text https://yadi.sk/d/IAe53v2Sq3XVfg 95.57.32.174 (talk) 14:09, 29 November 2018 (UTC)
See Manual:FAQ#How do I hide the main page title?. AhmadF.Cheema (talk) 15:27, 29 November 2018 (UTC)
thank you! ♥ 95.57.32.174 (talk) 15:44, 29 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Counting templates in a page

Is there any way to count the number of times a template is used in a page and report it on that page (e.g. to write "this page contains citation needed templates")? I feel like it should be possible with some combination of magicwords or ParserFunctions or StringFunctions but I can't quite work out a solution! T.Shafee(EvoEvo)talk 11:26, 29 November 2018 (UTC)

It is theoretically possible by parsing the page using something like lua. Of course one would have to implement a lot of the mediawiki parser to account for all messy ways in which templates can be added to a page. 197.218.82.214 (talk) 11:49, 29 November 2018 (UTC)
I suppose Extension:DynamicPageList can probably also get that information. 197.218.82.214 (talk) 11:57, 29 November 2018 (UTC)

Custom URL for a page

Hi,

There is a trouble with a crawler that a main page of my mediawiki site isn't called just "index", but rather "index.php?something" How is it possible to have a page called just "index"? Temporary solution might be acceptable, as I only need an Adsense crawler to crawl my site to be accepted, and as I was explained the crawler cannot follow redirections. Del222 (talk) 16:45, 29 November 2018 (UTC)

You can see Manual:Short URL. 星耀晨曦 (talk) 16:49, 29 November 2018 (UTC)
Unfortunately, over there they say that the manuals are outdated.
I can simplify my question - how can I make my main page having address mywiki.com instead of mywiki.com/index.php?title=... ?
Thank you! Del222 (talk) 20:19, 29 November 2018 (UTC)
That is as simple as adding a redirect. How that is done is depending on the webserver you are using.
Btw: There should at least be one short URL manual with Apache and one with nginx. These two should be up to date. 2001:16B8:10F3:7000:4D69:8466:8142:606C (talk) 20:35, 29 November 2018 (UTC)
The thing is that the crawler doesn't follow the redirects. So, mywiki.com it should be a real URL of a starting page Del222 (talk) 23:22, 29 November 2018 (UTC)
Anyway, a URL without a real filename is not a real URL. In this case, you may need to improve the crawler or use a proxy to let the proxy server return the redirected content based on the URL. 星耀晨曦 (talk) 00:08, 30 November 2018 (UTC)
But the easiest to implement is to use a short URL, e.g. https://www.mediawiki.org/wiki/MediaWiki returns HTTP 200 code and its real URL is https://www.mediawiki.org/w/index.php?titile=MediaWiki. Also Manual:Short URL not outdated. 星耀晨曦 (talk) 00:17, 30 November 2018 (UTC)
For now, my only goal is to have main page with address https://www.mywiki.org/ It seems that ShortURL manual doesn't provide such an option. In all the cases the page title is https://www.mywiki.org/something
Could you suggest the easiest way to correct the URL only on the main page?
Thank you! Del222 (talk) 21:32, 3 December 2018 (UTC)
You need a rule on your web server that redirects the specific "main page" URL to MediaWiki's main page. Instructions for doing that vary for each web server, and this is not MediaWiki related. google:redirect+root+to+index.php Ciencia Al Poder (talk) 10:21, 4 December 2018 (UTC)
Thank you, Ciencia. Maybe, I wasn't clear about what I need to do. I already have redirect, so when the user tries to access https://www.mywiki.org/ mediawiki automatically redirects the user to https://www.mywiki.org/index.php?titile=Main_Page What I need is to have no redirect at all, the main page has to have the address https://www.mywiki.org/ Nothing else. This is possible to do, as for example wikipedia has the main page's address of this format.
I suppose that this is a mediawiki setting and not the server's, as I never configured the server to redirect to /index.php?titile=Main_Page Main page's address is generated by mediawiki. Del222 (talk) 14:10, 4 December 2018 (UTC)
Are you using Apache? 星耀晨曦 (talk) 14:12, 4 December 2018 (UTC)
Also, Wikipedia does not have the main page's address of https://www.mywiki.org/ format, it is as: https://en.wikipedia.org/wiki/Main_Page (the format which is meant to be achieved by following the Manual:Short URL tutorial). AhmadF.Cheema (talk) 14:48, 4 December 2018 (UTC)
Yes, hosting is on Apache.
Main page is https://www.wikipedia.org/ I'd like to have my main page in the same format. Del222 (talk) 17:25, 4 December 2018 (UTC)
The https://www.wikipedia.org/ page, as far as I know, is a separately created web page and not one generated automatically by MediaWiki. AhmadF.Cheema (talk) 03:08, 5 December 2018 (UTC)
Exactly, and https://en.wikipedia.org/ redirects to https://en.wikipedia.org/wiki/Main_Page Ciencia Al Poder (talk) 10:10, 5 December 2018 (UTC)
Yes, but I wasn't referring to English version of wikipedia, I was referring to the main page of wikipedia in general. It is just https://www.wikipedia.org/ and it doesn't redirect anywhere. I want the same for my site. Del222 (talk) 15:33, 5 December 2018 (UTC)
Add
RewriteRule ^/*$ %{DOCUMENT_ROOT}/<index.php path>?title=<main page name> [L]
to .htacees file under the web root directory. 星耀晨曦 (talk) 00:11, 5 December 2018 (UTC)
星耀晨曦, thank you. For now, it didn't work, I got "Internal server error"
I'd like to check what I've missed.
In the root folder I have .htacees file with the following text:
RewriteEngine On
RewriteRule ^/*$ %{DOCUMENT_ROOT}/<index.php path>?title=<main page name> [L]
Should I modify anything in the LocalSettings? Del222 (talk) 15:31, 5 December 2018 (UTC)
The parts
<index.php path>
and
<main page name>
need to be replaced by the actual path segment and by the actual page name. ;-) 2001:16B8:1008:A00:C132:797A:12CB:E3D6 (talk) 16:59, 5 December 2018 (UTC)
Sorry, I'm new to this )
I've replaced by my actual page addresses and the good part is that I do not get server error anymore. The bad part is that the files does nothing. My main page still has an address /index.php?title=Welcome! I use https protocol if it matters.
The code in .htaccess is:
RewriteEngine On
RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php?title=Welcome! [L]
Do I have to add anything? Like RewriteCond or something else? Do I need any changes to LocalSettings?

Del222 (talk) 17:32, 5 December 2018 (UTC)
May be the impact of the cache, try to clean up the browser cache, or try using the uncached download tool (like wget). 星耀晨曦 (talk) 18:08, 5 December 2018 (UTC)
Yes, that was the reason, so the correct name now is there. But a new issue appeared. Chrome now marks my site as "not secure", although it is https. I think, before this main page url changing everything was fine.
Any ideas how to fix this? Del222 (talk) 22:51, 5 December 2018 (UTC)
Sorry to reply so late. Chrome reminds you that your site is not secure, but if you use https, chances are that some resources loaded on your site are not using https, but use http. 星耀晨曦 (talk) 03:16, 25 July 2019 (UTC)

Access to session variables (read and write)

Hi,

I'm facing this need. I'm using successfully the OpenID Connect extension to auth using KeyCloak my MediaWiki setup, and that's nice. My actual need is to reach exactly the page where the user linked from another website.

Just to explain, on Website A there's a link to page B on MediaWiki.

The actual situation is that, even enabling autologin and disabling the local authentication, so that authentication happens transparently to the user, I land on mediawiki always on the home page instead of page B as I clicked from the other site...

I'm writing an extension that, in theory, if the user is not authenticated redirects the user to the auth page, when the user is coming from the right referer, and, when the user comes back from keycloak it sends him to the correct page instead of the home.

The logic looks ok, but the problem is that I cannot manage to write the page URL in session...

Help! Maxper75 (talk) 16:56, 29 November 2018 (UTC)

Timeless search box count question

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.


We have 4,560 pages in our wiki but the search dialog says "search 5 pages". I have updated statistics and that page says there is 5 content pages and 4,560 pages (All pages in the wiki, including talk pages, redirects, etc.).

How can I either, change the "search 5 pages" text OR have the "pages" in the statistics be marked as content pages? ClaytonFFAWiki (talk) 06:34, 30 November 2018 (UTC)

To mark pages in namespaces other than "Main" as content pages, see Manual:$wgContentNamespaces. AhmadF.Cheema (talk) 09:28, 30 November 2018 (UTC)
I verified that my 4,560 pages are in the main namespace and that no new namespaces exist. First, I used the magic word {{NAMESPACE}} on pages that were not part of the "5" pages and I didn't get a result...because they are in the main namespace. Then I verified with "api.php?action=query&meta=siteinfo&siprop=namespaces&formatversion=2" that no custom namespaces existed that I didn't know about. Next I added all namespaces to this array in LocalSettings.php:
$wgContentNamespaces = array( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, -1, -2 );
Lastly, I ran the updateArticleCount.php and now I have 6. No change. Any other ideas or something I missed? ClaytonFFAWiki (talk) 11:50, 30 November 2018 (UTC)
Thank you again AhmadF.Cheema. You set me on the right coarse. I found the issue by changing this to 'any':
Manual:$wgArticleCountMethod = 'any';
Thank you again Ahmed. Second time you have helped me a lot! ClaytonFFAWiki (talk) 12:06, 30 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Path outside of the MediaWiki (XML2Wiki-extension)

I'm using the XML2Wiki-extension. The XML-File I want to use is not on the Wiki-Server. Is it possible to use a path in MediaWiki that leads outside of the Wiki?


code:

<xml2wiki>

file = File:www.server.com/file.xml

</xml2wiki>


80.146.228.93 (talk) 08:50, 30 November 2018 (UTC)

No, it's not possible Ciencia Al Poder (talk) 10:14, 30 November 2018 (UTC)

from Git I am not able checkout source code. And from tortoiseSVN I am not able to checkout libraries. Giving time out error

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 SVN I am not able checkout source code. Giving time out error 148.64.7.108 (talk) 09:50, 30 November 2018 (UTC)
Please explain how you got the idea to use SVN. If you follow some documentation, please provide a link to that documentation. Malyacko (talk) 10:58, 30 November 2018 (UTC)
Hi Malyacko,
Below two things not working for me
1- Download source. Below steps I did
- I have windows git(Git bash)
- In git bash below command
git clone git://git.blender.org/blender.git
- Below error is coming for this
uidn8256@OZD0967G MINGW64 /c/blender-git
$ git clone git://git.blender.org/blender.git
Cloning into 'blender'...
fatal: unable to connect to git.blender.org:
git.blender.org[0: 82.94.226.105]: errno=No error
2 Download libraries
-Installed TortoiseSVN
-In tortoiseSVN checkout window given below URL
https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc14 lib/win64_vc14
- Checkout is not working. Its showing below error
Unable to connect to repository at URL
connection Timedout 148.64.7.107 (talk) 13:09, 5 December 2018 (UTC)
This is the support desk for MediaWiki software. You'll have to contact Blender to their own forum or support channels (if they have any) Ciencia Al Poder (talk) 15:32, 5 December 2018 (UTC)
We're not using SVN anymore. Use GIT instead. Ciencia Al Poder (talk) 10:07, 30 November 2018 (UTC)
Hi Ciencia,
I am using TortoiseSVN for libraries and Git Bash for source code.
Will it work.
Thanks & Regards
Satish 148.64.7.107 (talk) 13:11, 5 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I cannot log in says contact help user name tank 2511

I cannot log in says contact help

User name tank 2511 109.158.17.17 (talk) 15:15, 30 November 2018 (UTC)

On which website (full address!) can you not log in? What's the exact error message? Malyacko (talk) 16:58, 30 November 2018 (UTC)

Problem using Wiki publisher extension in LibreOffice

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 know that questions about the extension Wiki Publisher of LibreOffice actually belong in a LibreOffice forum. Unfortunately, I can't get an answer to my question here (ask.libreoffice). That's why I try here. Does anyone here have this extension of LibreOffice, where you can create articles in MediaWiki using LibreOffice Writer and send them to a MediaWiki server? If so, he might be able to solve my problem. I can create a text in LibreOffice and send it to my MediaWiki running on a Synology NAS. However, I always end up on the first page of MediaWki and the headline of the article asks if I want to create a text for it. My text is not inserted. Thanks for any help!

Translated with www.DeepL.com/Translator Barny1952 (talk) 15:25, 30 November 2018 (UTC)

What is "Wiki Publisher"? Where exactly to get that? Malyacko (talk) 16:59, 30 November 2018 (UTC)
Which does not provide any hint where to find or how to install Wiki Publisher, for those that are curious. :( Malyacko (talk) 00:12, 1 December 2018 (UTC)
Wiki Publisher is an extension of libreoffice, which is provided in the standard installation. Barny1952 (talk) 12:47, 1 December 2018 (UTC)
Is that the "Writer Layout XML" file format under "File > Export"? Or something else somewhere else? Malyacko (talk) 14:12, 1 December 2018 (UTC)
First You can get an export file by formatting Your document in the mediawiki style. You can paste and copy it into Your mediawiki. This works.
Second it is said that You can export Your document directtly into Yout mediawiki server. This does not work for me. You only can get into the starting page of Your mediawiki and fails to log in, although you enter your credentials for your mediawiki server. The problem seems to be that this extension does not succeed in transmitting the credentials. This applies to LibreOffice as well to OpenOffice. This extension is/was provided by Sun. Barny1952 (talk) 06:09, 2 December 2018 (UTC)
Exactly the same problem: extension installed, extension visible in LO Writer, mediawiki server up and running, server URL and credentials submitted in LO,..... but the response to the command "Send to Mediawiki" is "You can create this page", not resulting in the effective creation of a new page, even if logged previously as Admin user on the wiki. Manual creation of pages does work. But creation via LO doesn't work even trying to change an existing page in the wiki. In this case, a window reporting "Do you want to replace the page XXXXXXX" appears, but nothing happens neither, there's no replacement.
Help, please. Thank you.
cacojonantes at gmail.com 217.12.24.130 (talk) 10:40, 23 April 2019 (UTC)
In LibreOffice 6.3.2.2 this is an integrated Extension.
...but the Problem is still the same, no exported Text in a Wiki 1.31
Server Mediawiki 1.31.0 PHP 7.2.23 (fpm-fcgi).
This is maybe a java issue on the client side with the recent java 64bit runtime on Windows,...I really think so. I will check this on linux. Please somebody any idea?. Andur63 (talk) 06:13, 20 October 2019 (UTC)
same issue on MacOS and Ubuntu 62.183.96.202 (talk) 09:39, 12 March 2020 (UTC)
The extension is working for me in windows, LibreOffice 6.4. I don't think the extension will work offline with a local media wiki server. You must get the server in a network. 117.237.232.238 (talk) 02:29, 28 April 2020 (UTC)
Send to mediawiki doesn´t work for me either

2003:E0:772B:7E00:F96C:7DEB:82FB:F7A4 (talk) 16:30, 13 June 2020 (UTC)
Probably you should post these issues on the LIbre Office forums since this is not a feature of mediawiki, it is a feature (apparently) of Libre Office. There is no official MediaWiki support for what you are asking about, they’ve never heard of it. TiltedCerebellum (talk) 08:43, 29 June 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Getting data content from the table on any page

Hi, I have a problem with obtaining data at the database level. I have created wiki pages with chemical experiments that contain tables with used chemicals (one experiment = one table with chemicals). I need to create a view (in SQL DB), which will obtain for each experiment all the chemicals that are in the tables (which are used in the experiment). Any idea how to get this type of data? Thank you! Jakubjuracka (talk) 16:45, 30 November 2018 (UTC)

Database Issues with Heroku

Hello, and thank you for providing a support desk. I have a more or less functional* MediaWiki installation on Heroku and I'm trying to create a duplicate Heroku app, just to see if I can in case anything goes wrong in the future.

The duplicate app uses a copy of the other application's database (both Postgres) and a copy of the source code. It uses the same LocalSettings.php file. Some of the values in LocalSettings.php use environment variables that I set with Heroku. Most values are the same except for things like the database url and the website url. $wgDBmwschema is set to mediawiki. $wgShowDBErrorBacktrace is set to true.

The duplicate app displays pages just like the original application. It also allows me to login. However, if I try to edit a page the database throws an error.

Using the "Special:Version" page I see that both apps use 1.31.0-alpha, PostgreSQL 9.6.10, and PHP 7.2.12.


====== Edits on Duplicate App ======

The error received when trying open a source edit on the duplicate application ("action=edit"):

[1125f1a63b632645824f0ac9] /index.php?title=User:Devinplatt&action=edit Wikimedia\Rdbms\DBQueryError from line 1168 of /app/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 tl_namespace,tl_title,page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM "templatelinks" LEFT JOIN ("page" ) ON ((page_namespace=tl_namespace) AND (page_title=tl_title)) WHERE tl_from = '20'

Function: Title::getLinksFrom

Error: 42601 ERROR: syntax error at or near ")"

LINE 1: ...ent_model FROM "templatelinks" LEFT JOIN ("page" ) ON ((pag...


====== Update.php on Duplicate app ======

If I go to the Heroku server's bash console for the duplicate app and run maintenance/update.php I get the following error:

A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: ALTER TABLE site_stats DROP CONSTRAINT site_stats_ss_row_id_key

Function: Wikimedia\Rdbms\Database::sourceFile( /app/maintenance/postgres/archives/patch-site_stats-pk.sql )

Error: 42704 ERROR:  constraint "site_stats_ss_row_id_key" of relation "site_stats" does not exist


====== *Anonymous Submissions on Original App ======

Edits work on the original application, but only for logged in users. Anonymous users get an error when attempting to submit an edit on the original application ("action=submit"):

Wikimedia\Rdbms\DBQueryError from line 1169 of /app/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: INSERT INTO "ip_changes" (ipc_rev_id,ipc_rev_timestamp,ipc_hex) VALUES ('5261','2018-11-30 21:07:13 GMT','0A66925D')

Function: Revision::insertOn

Error: 42P01 ERROR: relation "ip_changes" does not exist


====== Links ======

Original application: wikiclaim.org

Duplicate: claimwiki2.herokuapp.com

Code: github.com/devinplatt/mediawiki


======

I'd like to know if there are any known remedies for, or causes of these database errors. My wiki currently works more or less, but if I can't make a functional duplicate application I'll be afraid to make any updates or changes in the future.


Thanks! Devinplatt (talk) 21:40, 30 November 2018 (UTC)

Category:Support desk archives Category:Support desk archives with broken file links Category:Templates