Jump to content

Project:Support desk/Flow/2018/09

Add topic
From mediawiki.org
Latest comment: 5 years ago by 93.144.181.64 in topic Cross-wiki upload filter
This page is an archive.
Please ask questions on the current support desk.


Central Notice extension on a local install of mediawiki

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


I am trying to run Extension:CentralNotice on a wiki I am building and hosting locally through MAMP.

I have saved the extension to my extensions folder.

I have included the following in my LocalSettings.php

wfLoadExtension( 'CentralNotice' );

$wgCentralNoticeGeoIPBackgroundLookupModule = 'ext.centralNotice.freegeoipLookup';

$wgNoticeInfrastructure = true;

I have run the php maintenance/update.php which results with:

Your composer.lock file is up to date with current dependencies!

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

However, when I go to Special Pages > Central notice admin and click on it I get the "Campaigns" tab with a title that says "Database error" and then under that it reads:

A database query error has occurred. This may indicate a bug in the software.

[2293914d25933ed8de7a0d38] 2018-09-01 02:18:54: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

The only tab that doesn't throw up an error is the "Allocation" tab.

I was wondering if I have to edit the extension itself to redirect the page to my own database? EnfantDeGuerre (talk) 02:23, 1 September 2018 (UTC)

Try adding $wgShowExceptionDetails = true; at the end of your LocalSettings.php to get a more detailed error. For further details, see Manual:How to debug. AhmadF.Cheema (talk) 07:16, 1 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

open images slow

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


When i restoring wiki from backup ,everything is ok ,but when i open image,it`ll open at least 5 seconds ,what can i do to open images fast ,i work it on ubuntu 吾乃天谴 (talk) 08:21, 1 September 2018 (UTC)

There are many things that can limit the speed. If you aren't using img_auth.php, there isn't much that MediaWiki could do to affect it. MarkAHershberger(talk) 16:27, 1 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What is this 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.


Fatal error: Uncaught Exception: /var/www/html/extensions/Popups/extension.json does not exist! in /var/www/html/includes/registration/ExtensionRegistry.php:107 Stack trace: #0 /var/www/html/includes/GlobalFunctions.php(50): ExtensionRegistry->queue('/var/www/html/e...') #1 /var/www/html/LocalSettings.php(179): wfLoadExtension('Popups') #2 /var/www/html/includes/Setup.php(94): require_once('/var/www/html/L...') #3 /var/www/html/includes/WebStart.php(88): require_once('/var/www/html/i...') #4 /var/www/html/index.php(39): require('/var/www/html/i...') #5 {main} thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 107

Help me..... 텐파워 (talk) 09:25, 1 September 2018 (UTC)

Has to do with missing files for Extension:Popups.
Do you have the extension files present in your extensions directory? Which version of the extension and MediaWiki core are you using? AhmadF.Cheema (talk) 11:43, 1 September 2018 (UTC)
You should not install MediaWiki in web server's root directory. This makes your wiki unstable. PlavorSeol (talk) 12:10, 1 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can't access home page!

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


Hi all,

My mediawiki site works perfectly for years until very recently home page is not reachable with a message "Maintenance in progress" while every other page are doing just fine. Any idea where to look at? All my tries with .htaccess are blocking the whole site. Thanks 2A01:CB08:21A:3A00:E5FC:CCAB:9724:C090 (talk) 17:36, 2 September 2018 (UTC)

Delete index.html wargo (talk) 23:44, 2 September 2018 (UTC)
If you run ancient version 1.20 (unsupported code since 2013) your website has dozens of security holes and you have way bigger problems than some home page. Malyacko (talk) 06:56, 3 September 2018 (UTC)
Thanks Wargo. Works perfectly
Malyacko. I never succeed in updating the site. Everytimes I tried I end up with errors that I could not fix. 2A01:CB08:21A:3A00:1DF5:9E3D:9980:F208 (talk) 08:07, 3 September 2018 (UTC)
Just ask on this awesome website ;) wargo (talk) 08:58, 3 September 2018 (UTC)
Wargo can you help me? Hoyquepaso (talk) 10:15, 3 September 2018 (UTC)
Create new thread with problem description. wargo (talk) 10:22, 3 September 2018 (UTC)
Thank Wargo. I will follow your suggestion. Hoyquepaso (talk) 16:12, 3 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mediawiki container resolving mysql hostname to wrong IP address

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


I'm working with this dockerfile. "docker-compose up -d " is working. Error I get is https://i.imgur.com/iUNszg0.png.

It says IP ending in .0.3 access denied. The strange thing is, logging into the mediawiki container, apt-get update and apt-get install dnsutils so I can run nslookup on stonetomeDB shows that hostname resolving to .02 and the mediawiki container is .03. Why is it resolving the incorrect IP address? Beatingmyheadonthisissue (talk) 01:18, 3 September 2018 (UTC)

Mysql the .3 IP is the IP address for where you connect from.
Mysql provides user permissions based not only on user name, but also on where the user is connecting from. wikiuser@localhost would be the user wikiuser connecting from the same machine where the database server is, and wikiuser@172.26.0.3 is when it connects from 172.26.0.3.
You need to add permissions to user wikiuser@172.26.0.3 on the database server. Ciencia Al Poder (talk) 09:39, 3 September 2018 (UTC)
thank you. 174.16.125.39 (talk) 19:17, 3 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

someone hacked the Dominican republic 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.


i need a registered editor that has been on wikipedia for a long time and is experienced to edit the page and block the user who locked it. in the section of origin its 72.9% Multi Racial. Not mulatto that is disrespectful to my people. someone please help Kate2020 (talk) 06:21, 3 September 2018 (UTC)

Welcome to mediawiki.org. You need to report Wikipedia (different website, not mediawiki.org) content issues on Wikipedia instead. Malyacko (talk) 06:53, 3 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Uploading Video does not work?

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


I trued to upload this video to Wikimedia via "Commons Video Convert" - but it did not upload because it was harmful?

The video is on Youtube: https://www.youtube.com/watch?v=5EeLjvqFp88

I do not know why it does not upload? If it does not it is difficult to upload video to Wikimedia - even via the converter. Kvtvfinn (talk) 09:55, 3 September 2018 (UTC)

What makes you think that it did not upload because it was harmful? Malyacko (talk) 14:32, 3 September 2018 (UTC)
It said it failed - and it said: "UPLOAD AGAIN?" And I did not find the video on wikixxx - only the two pictures I uploaded. On commons.wikimedia.org this picture did upload "moss bytarn" but I did not find the video of the same tower. Kvtvfinn (talk) 08:09, 4 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Missing logout URL

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


Hi

In my wiki it seems logout URL missing. How i can fix that? Bekircem (talk) 11:03, 3 September 2018 (UTC)

In case your Wiki is public, it would help if you could provide a link to it? AhmadF.Cheema (talk) 11:40, 3 September 2018 (UTC)
https://viki.gameofthronestr.com
We are using SSO with Discourse. I do some research. It seems Auth remoteuser extension causes it. Bekircem (talk) 20:28, 3 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how to turn picture by example: 90 degrees...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.


How can I rotate a single picture ? 217.226.220.67 (talk) 13:43, 3 September 2018 (UTC)

By using the transform property of CSS. Out of scope for MediaWiki. Malyacko (talk) 14:31, 3 September 2018 (UTC)
Or you can do that by uploading a rotated version.
I think Commons is using a bot for such things. However, I guess that this bot is basically doing exactly that: It downloads the file, rotates it and uploads the rotated version. 2001:16B8:1072:9F00:2CBC:F801:6A9B:9C9 (talk) 19:13, 3 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

ReCaptchaNoCaptcha support for VisualEditor?

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


Need help with MediaWiki installation. I successfully installed MediaWiki. Added VisualEditor and Mobilefrontend. confirmEdit is configured for ReCaptchaNoCaptcha. Currently VisualEditor doesn't support ReCaptchaNoCaptcha. ANY HACK to solve this issue?. And VisualEditor is not loading in Mobile.

NEED HELP FOR.

1) Add support for ReCaptchaNoCaptcha in VisualEditor

2) Add support or solve issue with VisualEditor on Mobile (Mobilefrontend)

Installed here http://ayurveda.wiki Vishnunuk (talk) 15:58, 3 September 2018 (UTC)

Does any other ConfirmEdit CAPTCHA plugin work with VE for you?
What issues do you have with VE on mobile? Is it one of the issues listed in the backlog? MarkAHershberger(talk) 16:44, 3 September 2018 (UTC)
Need help with MediaWiki installation. I successfully installed MediaWiki. Added VisualEditor and Mobilefrontend
if you look at https://ayurveda.wiki/ you can edit it using visual editor but you cannot save it because of ConfirmEdit ReCaptchaNoCaptcha Also in mobile VisualEditor is not loading at all.
ConfirmEdit Simple CAPTCHA is working fine only ReCaptchaNoCaptcha is not working with VisualEditor.
If you look at
https://github.com/wikimedia/mediawiki-extensions-VisualEditor/blob/master/modules/ve-mw/init/ve.init.mw.ArticleTarget.js
You can see
"API for different things in the UI. At this point we only support the SimpleCaptcha and FancyCaptcha"
we need find a way fix this. Vishnunuk (talk) 08:44, 4 September 2018 (UTC)
I don't have the time to help you implement this. I've set up a phabricator task for it, though: Support No CAPTCHA reCAPTCHA in VisualEditor. MarkAHershberger(talk) 15:48, 4 September 2018 (UTC)
Thank you! If you can throw some relevant resources to learn how ConfirmEdit and VisualEditor communicate. i will try to fix it by writing some code. I try to figure it out myself but failed. Vishnunuk (talk) 01:18, 5 September 2018 (UTC)
Yes Simple CAPTCHA is working fine.
VE on mobile? it is not loading The editor! also no error on browser console. Vishnunuk (talk) 17:00, 3 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Updating from 1.22.12

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.


To avoid problems I'm thinking of installing a clean 1.22.12 version on test domain then update it,

I have 2 questions:

- Where can I download the 1.22.12 version? (I don't have archives)

- Can I then upgrade straight from 1.22.12 to 1.31.0? Hoyquepaso (talk) 16:12, 3 September 2018 (UTC)

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

Unprotectedarticle

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


Where MediaWiki:Unprotectedarticle and MediaWiki:Unprotectedarticle-comment are used and what is the difference between them? PlavorSeol (talk) 16:58, 3 September 2018 (UTC)

It looks like you must be using a very old version of MediaWiki since the MediaWiki:Unprotectedarticle page was deleted 10+ years ago.
Any uses of MediaWiki:Unprotectedarticle should probably be updated to MediaWiki:Unprotectedarticle-comment. MarkAHershberger(talk) 22:56, 3 September 2018 (UTC)
I'm using MediaWiki 1.32.0-wmf.19 but Special:AllMessages still shows it. PlavorSeol (talk) 03:18, 4 September 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.


I am trying to write a template that can output an external web link that incorporates use of a template parameter as part of the URL.

e.g., I'd like to make a Template:Google that could be called as

<nowiki>{{Google|search+string}}</nowiki>

that would output the wikitext:

"[https://www.google.com/search?q=search+string Here is the search you requested]"

I'd expect the solution to be something such as

"[https://www.google.com/search?q={{{1}}} Here is the search you requested]"

If I wanted this to be inside (say) a ref tag pair, I know I could do it via #tag:, but I want this done exactly as shown above, and there does not seem to be a NOP extension tag I could exploit using that approach.

Any ideas? DulcetTone (talk) 20:49, 3 September 2018 (UTC)

I overcame this by wrapping my invocation of {{{1}}} with urlencode, e.g.,
Here is the search you requested DulcetTone (talk) 21:06, 3 September 2018 (UTC)
Yes, that's the correct solution. Help:Magic_words#urlencode Ciencia Al Poder (talk) 09:25, 4 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Does varnish/squid provide better performance compare to file cache?

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.


The page Manual:File cache suggested that for a large wiki web cache proxy is better than file cache. Is it really true for mediawiki?

In our test for a wiki with about 800k views each day, where most of users are not logged in and there aren't hot article among visits.

It seems that file cache is more stable compare to varnish in this case. As we don't have enough money to buy ram for all the pages, but we can sure afford disk space for all pages. Therefore file cache have higher hit rate Deletedaccount4567435 (talk) 22:55, 3 September 2018 (UTC)

It could well be that (as you found by your own measurements) File caching is better for some scales than caching with a proxy like Squid or Varnish. MarkAHershberger(talk) 22:58, 3 September 2018 (UTC)
Yes, it provides better performance, because caching is done in memory, and requests that hit the cache doesn't hit your app server, which means PHP isn't handling such requests and has more CPU time to do other things.
Of course, it should be configured correctly. For example, by default, requests with cookies won't be cached/retrieved from cache, and cookies doesn't necessarily mean the user is logged-in. Many tracking sites like google-analytics, etc, set cookies for anons too.
The key thing here is how many RAM do you want to spend on caching. Ciencia Al Poder (talk) 09:24, 4 September 2018 (UTC)
@Ciencia Al Poder: the key here are the two phrases "for some scales" and "caching is done in memory". If the server doesn't have much RAM then the caching proxy may give up and pass to MediaWiki. In that case, if MediaWiki doesn't have file caching, then the DB lookup, etc, to render the page is going to be slower than just using file caching. MarkAHershberger(talk) 15:53, 4 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Nome da empresa

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.


Bom dia, gostaria de criar uma página no wikipédia para minha empresa, porém o nome da empresa é CentralAr.com e o wikipédia entende esse nome como um link e não me permite utilizá-lo, como proceder para conseguir utilizar o nome? Lucas Marques Rezende de Mendonça (talk) 12:45, 4 September 2018 (UTC)

Whichever Wikipedia you refer to, that Wikipedia community might have rules which names are allowed, or not. You need to ask on that Wikipedia which you refer to. Malyacko (talk) 13:33, 4 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

500 Internal Server Error when adding Horizontal Line

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

Every-time I try to add a Horizontal Line to a post I get an Server Error 500.

*PHP: 7.0.31

*Mediawiki 1.31.0

Any clues as to why this might be happening?

Many thanks,

Sascha Saschaeh (talk) 13:11, 4 September 2018 (UTC)

Please check your server's error log and share its output. Malyacko (talk) 13:28, 4 September 2018 (UTC)
Here we go:
POST <nowiki>https://cc8x-cpmr.accessdomain.com:8443/smb/file-manager/code-editor?currentDir=%2Fshinewiki.thenstudio.co%2F&file=index.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F3/index.php?title=Order_Process&action=submit</nowiki> HTTP/1.0
[client 90.68.190.235] ModSecurity: Access denied with code 44 (phase 2). Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required. [file "[https://cc8x-cpmr.accessdomain.com:8443/smb/file-manager/code-editor?currentDir=%2Fshinewiki.thenstudio.co%2Fetc%2Fhttpd%2Fconf.d&file=mod_security.conf&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F3 /etc/httpd/conf.d/mod_security.conf]"] [line "34"] [id "200003"] [msg "Multipart parser detected a possible unmatched boundary."] [hostname "shinewiki.thenstudio.co"] [uri "[https://cc8x-cpmr.accessdomain.com:8443/smb/file-manager/code-editor?currentDir=%2Fshinewiki.thenstudio.co%2F&file=index.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F3 /index.php]"] [unique_id "W46JUbBxwLHeQOc-cjsxJQAAAIc"], referer: <nowiki>https://shinewiki.thenstudio.co/index.php?title=Order_Process&action=edit</nowiki>
AH01579: Invalid response status 44, referer: <nowiki>https://shinewiki.thenstudio.co/index.php?title=Order_Process&action=edit</nowiki>
this is a very new instal one of Plesk App installs. Saschaeh (talk) 13:55, 4 September 2018 (UTC)
this is the wiki: https://shinewiki.thenstudio.co/ Saschaeh (talk) 13:59, 4 September 2018 (UTC)
mod_security is causing the problem. Disable it in Plesk for the wiki. MarkAHershberger(talk) 15:58, 4 September 2018 (UTC)
This was already turned off server wide - Look at here Screenshot Saschaeh (talk) 16:02, 5 September 2018 (UTC)
The error log says that it's triggered by ModSecurity. Maybe your "web application firewall" is not ModSecurity, but another service, and you'll have to ask your host about it Ciencia Al Poder (talk) 09:40, 6 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Redaction

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 was invited to comment on a discussion. After posting several comments, my comments appeared using an IP address rather than my user name. I would like them redacted please but cannot find where to request this. Kerry Raymond (talk) 05:34, 5 September 2018 (UTC)

Those comments are now deleted. Tropicalkitty (talk) 05:43, 5 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I need to implement certian bot on Turkmen Wikipedia, how can I do it?

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 hope I am in the right place to ask this question.

There is a bot that automatically signs unsigned edits on talk pages etc. How can I implement it on Turkmen Wikipedia? Who can help me? Turkmen Wikipedia does not have it, we have too few users and many of them do not even know to sign their comments. Who can help me? Where can I get help? Ruhubelent (talk) 06:57, 5 September 2018 (UTC)

The bot you require appears to be en.Wikipedia:User:SineBot. Maybe ask its operator User:Slakr to help in implementing it in Turkmen Wikipedia like it has been done on the English WikiNews. The bot's source code has not been released publicly. AhmadF.Cheema (talk) 14:31, 5 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Draft saving problem

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


Hi,

i have no problem with saving drafts in mediawiki 1.15.4 since today. I haven't update it or anything. When i try to save draft page it says that "view is complete" but page stays still and dont go to "Approved site". When I view page console on button click i get: POST http://page_sample.com/mediawiki/index.php?action=ajax 0 () error

Any ideas what to do ?

Gregor P. 89.142.169.184 (talk) 13:12, 5 September 2018 (UTC)

Hi!
MediaWiki itself does not provide a "draft" mechanism. It probably comes from an extension. AFAIK there are only two extensions that that provide drafts: Extension:FlaggedRevs and Extension:Approved Revs. Are you using one of them (probably Approved Revs)? If so, which one and in which version? You can check this by looking at the Special:Version page of your wiki.
Please also check the PHP error_logs on your server (see Manual:How to debug). And maybe there are more information included in the response body of that AJAX request that you have mentioned. Please have a look at the network panel of your browser.
The MediaWiki version you are using is heavily outdated. Please consider updating to current LTS version 1.31. Osnard (talk) 06:10, 6 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

$wgAllowCopyUploads MediaWiki 1.31.0

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.


If i put what config option in LocalSettings.php and remove the # from $wgAllowCopyUploads then my browser show me that. "Parse error: syntax error, unexpected '$wgFileExtensions' (T_VARIABLE) in C:\xxx\htdocs\Expertenrat.lan\LocalSettings.php on line 213"

The line 213 are "$wgFileExtensions = array('png','jpg','gif','pdf' );"

Is that a MW1.31.0 bug? Shadowslight 14:21, 5 September 2018 (UTC)

No, this is not a bug in MediaWiki 1.31. Instead, it is a mistake in your LocalSettings.php file.
The line, which you posted looks ok so far. What is in the lines directly above it? The problem most likely is in there. 2001:16B8:10B3:D400:D4F8:3AE7:7A56:C36E (talk) 17:38, 5 September 2018 (UTC)
line 206 * WARNING: If you add any OpenOffice or Microsoft Office file formats here,
line 207 * such as odt or doc, and untrusted users are allowed to upload files, then
line 208 * your wiki will be vulnerable to cross-site request forgery (CSRF).
line 209 */
line 210
line 211 #$wgAllowTitlesInSVG = true;
line 212 #$wgAllowCopyUploads = true
line 213 $wgFileExtensions = array('png','jpg','gif','pdf' ); Shadowslight 11:11, 6 September 2018 (UTC)
Those lines are all comments. What are the prior non-commented out lines? Clump (talk) 14:48, 6 September 2018 (UTC)
That is automatically generated settings by MW....!
I let them so, so dont forget that. ;-) Shadowslight 17:48, 6 September 2018 (UTC)
The OP mentioned that when they "remove the # from $wgAllowCopyUploads", the error starts appearing. In the lines quoted above, the "$wgAllowCopyUploads" line is missing the semicolon ;. Add the semicolon and try again. AhmadF.Cheema (talk) 16:09, 6 September 2018 (UTC)
"$wgAllowCopyUploads = true;" <-- i thing so. ;-)
Thx Shadowslight 17:49, 6 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

can not install & config restbase for ubuntu 18.04

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


MediaWiki 1.31.0 (5e8e72f)

‏۷ شهریور ۱۳۹۷، ساعت ۰۶:۴۴

PHP 7.2.7-0ubuntu0.18.04.2 (fpm-fcgi)
MariaDB 10.1.34-MariaDB-0ubuntu0.18.04.1
ICU 60.2
Lua 5.1.5
address
مسیر مقاله /index.php?title=$1
مسیر اسکریپت /
index.php /index.php
api.php /api.php
load.php /load.php

To test: node server.js

{"name":"restbase","hostname":"wiki-howzeh","pid":10546,"level":30,"levelPath":"info/service-runner","msg":"master(10546) initializing 4 workers","time":"2018-09-05T15:40:13.976Z","v":0}

{"name":"restbase","hostname":"wiki-howzeh","pid":10556,"level":60,"err":{"message":"","name":"Error","stack":"Error: SQLITE_CANTOPEN: unable to open database file","code":"SQLITE_CANTOPEN","errno":14,"levelPath":"fatal/service-runner/unhandled"},"msg":"SQLITE_CANTOPEN: unable to open database file","time":"2018-09-05T15:40:15.605Z","v":0}

{"name":"restbase","hostname":"wiki-howzeh","pid":10556,"level":60,"err":{"message":"","name":"Error","stack":"Error: SQLITE_CANTOPEN: unable to open database file","code":"SQLITE_CANTOPEN","errno":14,"levelPath":"fatal/service-runner/unhandled"},"msg":"SQLITE_CANTOPEN: unable to open database file","time":"2018-09-05T15:40:15.607Z","v":0}

{"name":"restbase","hostname":"wiki-howzeh","pid":10546,"level":40,"message":"first worker died during startup, continue startup","worker_pid":10556,"exit_code":1,"startup_attempt":1,"levelPath":"warn/service-runner/master","msg":"first worker died during startup, continue startup","time":"2018-09-05T15:40:15.714Z","v":0}


please help me Sokote zaman (talk) 15:42, 5 September 2018 (UTC)
This is being handled in Talk:RESTBase/Installation#h-can_not_install_&_config_restbase_for_ubuntu_18.04-2018-09-05T15:41:00.000Z Ciencia Al Poder (talk) 09:41, 6 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Country and city attribution of geolocated item

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 make use of GeoData API to perform aforementioned task.

I found GeoData API very clean, simple and user friendly in retrieving various data according to geo location of the item. But there are difficulties with retrieving country/city affiliation of the item. While country can theoretically be get in a single request (also not always but only if being specified and not in name format but rather by its alphabetic designation), the city is possible to be get only for items which are cities by themselves. Let's imagine I want to determine in one request providing the coordinates of the Sagrada Familia temple the name of the item and that it is located in Barcelona, Spain. As far as I understood there is no way to do that. From the second hand this information does exist for every geo tagged item and is available for example through WikiData SPARQL query service. But then I'll need to perform a second request to WikiData which I would have liked to avoid by all means.

Looking on advice on the optimal strategy to perform the desired. If not is it possible to add the country/city attributes to GeoData list=geosearch attributes? 31.168.140.228 (talk) 09:32, 6 September 2018 (UTC)

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

how do I change my username?

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 how do I change my username on Mediawiki? I am a new user and put in wrong username. Thanks RachelMagee (talk) 18:04, 6 September 2018 (UTC)

You can request another user name on Special:GlobalRenameRequest. Mainframe98 talk 18:19, 6 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Quiero crear el artículo de una artista argentina pero alguien ya lo hizo en Polaco

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.


¡Hola! quiero crear el artículo de una artista musical a quien le administro la comunicación y al objetivo que ya lo haya hecho en polaco. La artista es originaria, vive y trabaja en Argentina y quiere tener su artículo en español. ¿Es posible crear uno nuevo o debo traducir el creado por otra persona? Gracias 201.231.174.60 (talk) 21:01, 6 September 2018 (UTC)

Welcome to the support channel for the MediaWiki software. For questions about the content on another website, please refer to that other website. Malyacko (talk) 10:34, 8 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Search Discussion - "topic" subject headline

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


I have mediawiki 1.26.0.

  1. We have been creating topic by clicking "Add Topic".
  2. We fill in the subject / headline: ABC : General Notes
  3. Fill in the body with our notes.
  4. Question i have here are:
    1. The search function will only search the "body" of topics we add. How can i setup the search so that it also searches the subject/headline?
    2. Why i don't see the "subject/headline" shown in the Read view?
    3. How do i make the talk such that it adds in the user notes in?
  5. This is the results i got today:

Talk:Pen

-- JohnD (talk) 13:48, 2 September 2018 (PDT)[VisualEditSection | SourceEditSection]

  1. Using Staedler pens AmazingTrans (talk) 15:04, 7 September 2018 (UTC)
Version 1.26.0 nowadays has dozens of open security vulnerabilities. Please upgrade to a supported version, for your own safety. See https://www.mediawiki.org/wiki/Download and https://www.mediawiki.org/wiki/Manual:Upgrading Malyacko (talk) 10:32, 8 September 2018 (UTC)
I am using mediawiki locally only. So, would the newer version have the newer visualeditor? AmazingTrans (talk) 12:20, 10 September 2018 (UTC)
You have to update extensions too while you update version of MediaWiki to be compact with the version of the MediaWiki you are upgrading to. Kizule (talk) 10:06, 11 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Change font of wiki name in Timeless skin

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


How can I change it (shows on left top corner when using PC) with CSS? PlavorSeol (talk) 16:15, 7 September 2018 (UTC)

+Also username font that shows on right top corner (PC) in Timeless skin PlavorSeol (talk) 16:40, 7 September 2018 (UTC)
In your Wiki's version of the MediaWiki:Timeless.css page, add the following:
/* Website title text */
#p-logo-text a {
	font-family: "Dancing Script";
	font-variant: none;
}
/* Username text */
#p-personal-label > b {
	font-family: "Dancing Script";
}
AhmadF.Cheema (talk) 18:03, 7 September 2018 (UTC)
It has effect to website title text, but not username text. PlavorSeol (talk) 18:18, 7 September 2018 (UTC)
Did you remember to hard-refresh (Ctrl+Shift+R) the browser tab? AhmadF.Cheema (talk) 20:07, 7 September 2018 (UTC)
Yes, or course.
I also tried to clear both web brower's cache (Ctrl+Shift+Del) and server-side cache ($IP/cache), but neither of them works. PlavorSeol (talk) 04:52, 8 September 2018 (UTC)
I've tested it and it is working on my side. Maybe, there is some other .css rule on your end that is interfering?
Did you include the > b part at the end of the selector? Try using "!important" for the .css rule, like so: font-family: "Dancing Script" !important;.
I tested on the master branch of the skin, which branch are you using? AhmadF.Cheema (talk) 09:54, 8 September 2018 (UTC)
#p-personal-label>b
{font-family: "NanumGothic_Web" !important;}
Still not working...
I'm using master branch of Timeless skin which I downloaded yesterday, on MediaWiki 1.32.0-wmf.20.
==See also==
Were you asking about the "Anonymous" text on the top right, which changes to "Your account" when logged-in, or the actual username which appears in the drop-down of "Your account" when logged-in?
For the former case, use the following:
#personal > h2 > span {
	font-family: "NanumGothic_Web";
}
AhmadF.Cheema (talk) 10:41, 8 September 2018 (UTC)
Yes, I was asking about that.
Now it works correctly, thanks! PlavorSeol (talk) 11:37, 8 September 2018 (UTC)
Additional question (I'm sorry but I don't know about CSS selector well):
  1. How can I change font of 'Navigation', 'Wiki tools' and 'Page tools' text that shows on narrow screen as well?
  2. Is there an universal selector or wildcard for entire top bar (which includes search bar and some menus) in Timeless skin? (NOT for entire page(*), just top bar) PlavorSeol (talk) 15:42, 17 September 2018 (UTC)
/* Navigation and tools text on max-width: 1099px screens */
#site-navigation > h2 > span,
#site-tools > h2 > span,
#page-tools > h2 > span {
	font-family: "Dancing Script";
}
/* Fixed positioned top bar */
#mw-header-container {
	background: #FFC107;
}
/* Top fixed positioned colour bar */
#mw-header-hack {
	display: none;
}
You can find the name of selectors for individual webpage elements by using the selection tool available from browser developer tools. Press Ctrl+Shift+C (wait a few seconds) and select the element whose CSS you want to edit. For Chrome, in the "Styles" window, test your CSS rules by entering them under the element.style section at the top. AhmadF.Cheema (talk) 17:52, 17 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I keep getting a "login incorrect"

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 do I get connected to my host from Filezilla . I keep getting a "login incorrect" message. The test from the Sepawoc (talk) 21:03, 7 September 2018 (UTC)
Welcome to mediawiki.org. We don't know because Filezilla is not MediaWiki. Malyacko (talk) 10:30, 8 September 2018 (UTC)
Probably will have to ask at a Filezilla forum, or from your host. AhmadF.Cheema (talk) 02:18, 8 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Apply Edit Review Improvements

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.


Which extension should I install to enable Edit Review Improvements? PlavorSeol (talk) 16:29, 8 September 2018 (UTC)

From this page, it looks like a lot of the work is being done in PageTriage. Or maybe it is being based on that? Or maybe I'm completely wrong.
Let's ask @Catrope. MarkAHershberger(talk) 17:51, 8 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Notice: Undefined index: Pingback-1.31.0 (Resolved)

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 I launch my Wiki, I have this sentence that appears at the bottom

"Notice: Undefined index: Pingback-1.31.0 in D:\Xampp\htdocs\MonWiki\includes\libs\rdbms\database\Database.php on line 2762"

What is the problem?

Thank You MonsieurMixem (talk) 18:55, 8 September 2018 (UTC)

What happened before you "launch" your wiki? Did you install something following some steps (where?), or upgrade? Steps to reproduce the problem are welcome. Malyacko (talk) 12:54, 9 September 2018 (UTC)
Hello Malyacko,
My problem is solved by myself and I do not know how.
But I have a new problem when I try to go on my wiki I get messgae that appears
"Parse error: syntax error, unexpected 'wgScribuntoDefaultEngine' (T_STRING), expecting variable (T_VARIABLE) or '{' or '$' in D: \ Xampp \ htdocs \ MyWiki \ LocalSettings.php on line 155"
Here is what I have on line 154 and 155 of my localhost
wfLoadExtension ('Scribunto');
    $ wgScribuntoDefaultEngine = 'luastandalone';
This is the code for Scribunto
Where does this error come from?
Thank you MonsieurMixem (talk) 18:44, 9 September 2018 (UTC)
Try removing the blank space after $ from line $ wgScribuntoDefaultEngine = 'luastandalone';. AhmadF.Cheema (talk) 20:38, 9 September 2018 (UTC)
Thank you, my problem is resolved MonsieurMixem (talk) 10:04, 10 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Automatically arranging articles in alphabetical order

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


Hello. I am planning to work on a navigation bar which would surf between articles within a certain category and I was wondering if I could automatize in a way that I do not have to set the previous and next articles for each individual pages. Example: Let's say I have the following articles: Apple, Peach, Plum, Orange and I want to add said navbar to these articles so that, if I am on the Apple article, I can easily go to Orange (since it's "previous") and Peach ("next"). Is it possible to somehow create a switch that compares the "Pagesinacat" (or anything appropriate - I am just theorizing here) magic word against the "pagename" magic word and then outputs either the previous page in alphabetical order and the next page also in alphabetical order? And, of course, as in my example with the Apple article, if I reached the last page in the category, then the "next" page would be the first page. And if it's the first page, then the "previous" page should be the last page.

It seems like something that is doable, but I had no luck in finding such a feature on this wiki and I am thinking I am just not looking into the right place. Thanks! 2001:16B8:2BC5:2E00:ECF2:81EA:E5DF:1080 (talk) 05:18, 9 September 2018 (UTC)

Please? 2001:16B8:2B76:4000:4D90:4EE4:207F:15F3 (talk) 14:56, 10 September 2018 (UTC)
Maybe you can write your own extension or skin including some PHP codes like:
function getNext( Title $title, Title $category ) {
    $dbr = wfGetDB( DB_REPLICA );
    
    $next = $dbr->selectField(
        'categorylinks',
        'cl_from',
        [
            'cl_sortkey > ' . $dbr->addQuotes( $title->getDBkey() ),
            'cl_to' => $category->getDBkey()
        ],
        __METHOD__,
        [
            'ORDER BY' => 'cl_sortkey',
            'LIMIT' => 1
        ]
    );
    if ( $next )
        return Title::newFromId( $next );
    return Title::newFromId( $dbr->selectField(
        'categorylinks',
        'cl_from',
        [ 'cl_to' => $category->getDBkey() ],
        __METHOD__,
        [
            'ORDER BY' => 'cl_sortkey',
            'LIMIT' => 1
        ]
    ) );
}
And then echo getNext( Title::newFromText( 'Apple' ), Title::newFromText( 'Animal', NS_CATEGOY ) )->getText(); prints "Peach". Lens0021 (talk) 17:43, 10 September 2018 (UTC)
If I were that tech savvy that I were able to write my own extension, then I would have been long able to do the little template I want to.... 2001:16B8:2B76:4000:4D90:4EE4:207F:15F3 (talk) 18:24, 10 September 2018 (UTC)
I think the closest existing solutions to what you need are Wikipedia's Navigation_templates. AhmadF.Cheema (talk) 19:44, 10 September 2018 (UTC)
I managed to find a solution through the use of Extension:DynamicPageList3 and it works almost 100% the way I want it to, but it encounters a problem with articles that have two or more words in their title. Namely, it follows the alphabetical order of the second word and not the first. I've read up and I was able to fix the "next" dpl call through the use of ordermethod = title, but using the same parameter for "previous" always gives the first page in the category, no matter on which page I am...
Also, I wasn't able to find a parameter that, once you reach the final page in the category, you're given the first page as the next and when you're on the first page, you're given the last page as the first. 2001:16B8:2B76:4000:4D90:4EE4:207F:15F3 (talk) 20:38, 10 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I just noticed Scottish actor Frank Gilhooley isn't even mentioned on Wikipedia

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


I just wondered why someone who has appeared in so many TV productions and Movies, including hollywood blockbusters like Guardians Of The Galaxy and Outlaw King, and the global hit Outlander isn't even mentioned on your site, yet theres information on him everywhere online? 2A02:C7F:D21B:8700:F0FD:7F63:ABF7:1B5D (talk) 11:43, 9 September 2018 (UTC)
See https://en.wikipedia.org/wiki/Wikipedia:Requested_articles and https://en.wikipedia.org/wiki/Wikipedia:Your_first_article in case that you refer to the English Wikipedia. Malyacko (talk) 12:53, 9 September 2018 (UTC)
Hi. You have to ask that question on Wikipedia. This page is for support of the Mediawiki software. Tegel (talk) 11:47, 9 September 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.


I have searched and searched and inspected to no avail. I am trying to change the link colors of the #p-personal section (the username/contributions/watchlist/etc. section) in Vector. In inspect, it gives me the basic a links, which changes everything. Is there any way to change JUST those link colors, like you could with the navigation ones? 98.21.171.79 (talk) 02:38, 10 September 2018 (UTC)

#p-personal a {
    color: red;
}
110.149.118.108 (talk) 03:32, 10 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

logging in

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 goofed up and did not write my login username or password down anywhere.  How do I retrieve my information? 75.132.160.235 (talk) 04:27, 10 September 2018 (UTC)

There is no easy way to do that but to look in the Special:RecentChanges feed for the entry that goes with you creating an account. Tinss (talk) 05:13, 10 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Recent Upload Changes not Abnomral

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


Dear friends,

In my wiki, some times recent changes appear and some time not. I have not made an major change in running wiki. can some body help me? here is the link

http://www.naatkainaat.org/index.php/صفحۂ_اول SONOTECH Pk (talk) 08:37, 10 September 2018 (UTC)

Difficult to say.
Since you are using a couple-years-old (now unsupported) version of MediaWiki, it could be because of some bug that was fixed later on. AhmadF.Cheema (talk) 12:42, 10 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Visual editor in Swahili: Categories??

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


Hi is there a way to edit categories in the Swahili editor?

I do not see the option. Kipala (talk) 08:41, 10 September 2018 (UTC)

Check the upper right <figure-inline class="mw-default-size"></figure-inline> > Jamii, thanks. Lens0021 (talk) 08:46, 10 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Failed to import: No interwiki prefix has been provided

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, here is my problem when I want to import a document in xml, for my part a template, I get error message

"Failed to import: No interwiki prefix has been provided"

Why ?

I am under Mediawiki 1.31.0 and Localhost

Thank you MonsieurMixem (talk) 10:06, 10 September 2018 (UTC)

See Project:Support desk/Flow/2018/07#h-Import_fehlgeschlagen:_Es_wurde_kein_Interwiki-Präfix_angegeben-2018-07-23T14:38:00.000Z. AhmadF.Cheema (talk) 10:59, 10 September 2018 (UTC)
Thank you, that solved my problem
But now I have 3 others,
1) My infobox is the full size of the page.
2) In my infobox I have error message, "Error Lua in Module: Wikidata at line 118: attempt to index field 'wikibase' (a nil value)."
3) When I want to import an image, example for the flag France (Flag_of_France.svg), I have this error message, "The extension of the file" .svg "does not correspond to the detected MIME type of the file (image / png). " *
And I have to put the image in .svg, it is for the templates of the flags and for that appear in the infobox
Where do all these problems come from?
Thank you MonsieurMixem (talk) 13:22, 10 September 2018 (UTC)
  1. You might need to copy the .CSS rules related to Infoboxes from Wikipedia:MediaWiki:Common.css too.
  2. Not sure. Make sure you extension version is up-to-date and the templates/modules you are importing are also the latest ones. Maybe Extension talk:Scribunto/2013#h-attempt_to_index_field_'text'_(a_nil_value)_in_luasandbox-2013-04-11T17:43:00.000Z could help.
  3. I don't think I understand you correctly. From what I understand, the image file is actually in .png format and you are just changing the extension alphabets. First, why would you need to do that? Just use Commons:File:Flag_of_France.svg. Or you "can disable the MIME type check completely by setting $wgVerifyMimeType = false; — note however that this is very insecure". AhmadF.Cheema (talk) 13:49, 10 September 2018 (UTC)
1. Thanks, the infobox appears normally
2. I am under Mediawiki 1.31 and the version of Scribunto is the good one (The template that I use is Modèle:Infobox Footballeur (It comes from the wikipedia french))



3. To make it clearer, I use the infobox, Modèle:Infobox Footballeur (Taken from the French version), and in the infobox to display the French flag side to the club, we must put this {{FRA-d} } (We must remove the space between the two parentheses) , but the problem instead that the flag appears I "Flag: France" which appears in red, and when I click on "Flag: France", I have the page "Import a file" which is displayed, and it is written directly in "Description of the file", "Flag_of_France.svg" I hope this has been clearer, if not I will try to send you some screens MonsieurMixem (talk) 15:56, 10 September 2018 (UTC)
I think the wording would be "File:France", not "Flag:France". It means the template calls for a "File:France" on your Wiki, but when it is not present the Wiki gives you the option to upload it. The easy way for this would be to enable $wgUseInstantCommons in your Wiki, to automatically get images hosted on Wikimedia Commons. AhmadF.Cheema (talk) 17:14, 10 September 2018 (UTC)
Thank you very much for your help, in terms of flags it's good, I used the technique $wgUseInstantCommons, it's easier to use


But as for the problem, "Error Lua in Module: Wikidata at line 118: attempt to index field 'wikibase' (a nil value).", It has not been solved. I'm going to Module: Wikidata, and that's what we find between line 108 and 119
function wd.getEntity (val)
if type (val) == 'table' then
return val
end
if val == '-' then
return nil
end
if val == then
val = nil
end
return mw.wikibase.getEntity (val)
end MonsieurMixem (talk) 18:09, 10 September 2018 (UTC)
Hello,
I am going to open a new topic, on my problem link with "Lua in Module: Wikidata" and close this topic of discussion.
Thank you very much for your help AhmadF.Cheema MonsieurMixem (talk) 17:16, 11 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Does Auth remoteuser work being a different servers?

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


I have a site I want to incorporate my wiki into. The wiki is on a different server and has a different url. If the user logs into my website successfully and is part of the admin group I want to automatically have them logged into my wiki which is on a different server. Is this possible or does my wiki have to be on the same server? Thank you PSIDWiki (talk) 13:57, 10 September 2018 (UTC)

Anyone? PSIDWiki (talk) 19:17, 11 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can somebody suggest elegant way to disable #jump-to-nav for all users, mwversion 1.32 upward

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.


Can somebody suggest elegant way to disable (disable means hide) #jump-to-nav for all users, mediawiki version 1.32 upward?

Do I need to repeat that mw masters often add things which just annoy users?

As editing users common.css did not hide this, I did it using browsers CSS, but soon I'll need to disable this on quite a few wikis, so I would like solution that work either for users common.css or sitewide CSS (MediaWiki:Common.css), and yes, I (yet) didn't try changing sitewide MediaWiki:Common.css.


I'm annoyed as usual by changing what works, by adding something not called for by far. SpeedyGonsales (talk) 18:37, 10 September 2018 (UTC)

If common.css "did not work", please provide exact steps and why it did not work and which version this is about and what "changed" and where to see "jump-to-nav" on some page and why you haven't tried MediaWiki:Common.css. Malyacko (talk) 15:33, 11 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Sorry! This site is experiencing technical difficulties.

Getting subject error while accessing Mediawiki. Need assistance 14.141.91.65 (talk) 09:06, 11 September 2018 (UTC)

(Can't contact the database server: No such file or directory (localhost)) 14.141.91.65 (talk) 09:27, 11 September 2018 (UTC)
Hi, I would ask you to check if the database access data is correctly specified in LocalSettings.php Kizule (talk) 10:02, 11 September 2018 (UTC)

Login with office365

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 in the process of implementing an extension for login with Office365 user(Version 1.22.3).

I was able to redirect to office 365 login page and return back to wiki index page with a valid office365 user.

I want to auto log users to wiki if the user exits in the table 'user' and Create new users on first login attempt by checking the email.

User login to wiki is working fine with below code.

$user->setId($wiki_user_id);

$user->loadFromId();

$user->setCookies();

$user->setToken();

But the New user creation is not working during the login.

$user->addToDatabase() Does not create a record in the table 'user'.

But the value of auto increment column 'user_id' is increased by 1 in each login attempt.

Is there any configuration for enable user creation during the login? or any other way to force user creation programmatically and login? Cms.lakruwan (talk) 11:11, 11 September 2018 (UTC)

If you still use 1.22.3 then you have dozens of open security holes. Please upgrade to a supported version first. See Manual:Upgrading. Malyacko (talk) 15:35, 11 September 2018 (UTC)
Done!! Cms.lakruwan (talk) 07:46, 2 October 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can't edit

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


I'm unable to edit / update MediaWici:Vector.css on cywiki. I'm an Ombudsman, Admin etc. Why is this? Llywelyn2000 (talk) 13:05, 11 September 2018 (UTC)

There is a new user right for users who can edit CSS and JavaScript for the entire wiki. Before this all admins could edit CSS and JavaScript. This was a security risk. This group is called interface administrators. Administrators can delete user CSS and JavaScript pages.
[1] Lens0021 (talk) 13:24, 11 September 2018 (UTC)
How on earth did I miss this? Many thanks! I'll apply for those rights. Llywelyn2000 (talk) 13:33, 11 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Centos 7 visual editor

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.


Good morning,

i have issues configuring visual editor in my mediawiki instance. i have installed parsoid successfully on port 8000 but when i add the lines to enable the visual editor on the LocalSettings.php i can't reach my wiki anymore with error 500. what am i doing wrong?

Thanks 213.215.150.116 (talk) 14:43, 11 September 2018 (UTC)

Maybe there is some syntax errors in LocalSettings.php. Can I see your added lines? Lens0021 (talk) 14:51, 11 September 2018 (UTC)
taken from the official guide:
wfLoadExtension( 'VisualEditor' );
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// Optional: Set VisualEditor as the default for anonymous users
// otherwise they will have to switch to VE
// $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
// Don't allow users to disable it
$wgHiddenPrefs[] = 'visualeditor-enable';
// OPTIONAL: Enable VisualEditor's experimental code features
#$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
'url' => 'http://localhost:8000',
// Parsoid "domain", see below (optional)
'domain' => 'localhost',
// Parsoid "prefix", see below (optional)
'prefix' => 'localhost'
); 213.215.150.116 (talk) 16:07, 11 September 2018 (UTC)
i leave the lines as default because i haven't a domain and i wanna use mediawiki for test purposes in my lan.
Thank you 213.215.150.116 (talk) 16:09, 11 September 2018 (UTC)
Is the following: $wgVirtualRestConfig['modules']['parsoid'] = array( // URL to the Parsoid instance // Use port 8142 if you use the Debian package 'url' => 'http://localhost:8000', // Parsoid "domain", see below (optional) 'domain' => 'localhost', // Parsoid "prefix", see below (optional) 'prefix' => 'localhost' );
actually a single line in your LocalSettings.php?
Because if it is, it is commenting out the closing bracket and semicolon at the end, therefore causing the syntax error. AhmadF.Cheema (talk) 18:51, 11 September 2018 (UTC)
i also tryed to copy one line at time but no changes i don't think it's a syntrax error at this point. 213.215.150.116 (talk) 06:40, 12 September 2018 (UTC)
If you have shell access to your server, $ php maintenance/checkSyntax.php will check for syntax errors and print those. Lens0021 (talk) 09:58, 12 September 2018 (UTC)
Looks like checkSyntax.php was deleted in 1.31: https://phabricator.wikimedia.org/rMW0ca822a3201dc280e2b9176d10c61d75a16f844a Ciencia Al Poder (talk) 09:19, 13 September 2018 (UTC)
On the, if no syntax error front, make sure you are using the correct version of the extension for your MediaWiki core version.
Add the following in your LocalSettings.php to get a more detailed error message:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true;
error_reporting( -1 );
ini_set( 'display_errors', 1);
For more details, see Manual:How to debug. AhmadF.Cheema (talk) 16:25, 12 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Pooled servers going offline randomly

We have a media wiki site that once updated to PHP version 7.1.21 were seeing the site being hosted go up and down randomly. We have 3 servers hosting the site and never more than 5 connections are on any given one at a time. Were seeing 500 errors in the event logs but that's all we have to go on. The PHP log was showing a message about an extension that was corrected but has not changed the issue. What settings might allow me to enabled more verbose PHP logging or has someone experienced this and may have a direction I can look. Thanks.

Server 2012 r2 IIS8.5 Stanleyj420 (talk) 16:34, 11 September 2018 (UTC)

Have you already taken a look at Manual:How to debug? AhmadF.Cheema (talk) 18:55, 11 September 2018 (UTC)

Error Lua in Module: Wikidata at line 118: attempt to index field 'wikibase' (a nil value)

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 a pretty annoying problem.
I have an error message that appears in my infobox (Modele: Infobox_footballeur), "Error Lua in Module: Wikidata at line 118: attempt to index field 'wikibase' (a nil value)."
Here are the lines 108 to 119 of Module: Wikidata
function wd.getEntity (val)
if type (val) == 'table' then
return val
end
if val == '-' then
return nil
end
if val == then
val = nil
end
return mw.wikibase.getEntity (val)
end


And I also have this displayed at the bottom, after Categories "Pages with script errors | Infobox error / Image unknown or badly coded | Page using P570 | No local image but image on Wikidata"

I am under Mediawiki 1.31.0 and on the latest version of Scribunto

Here is a screen of my problem (The problems are circled in red)
http://image.noelshack.com/fichiers/2018/37/2/1536691043-problem.png
Sorry if it's written in French on the screen, being that I'm french and my wiki is french.
Where can my problem come from ?
Thank you MonsieurMixem (talk) 18:38, 11 September 2018 (UTC)

Hello,
Nobody knows how to solve my problem?
Here is what is displayed when I click on the error


Error: attempt to index the 'wikibase' field (a null value).
Stack of calls:
(tail call):
Module: Wikidata: 118: in the "getEntity" function
Module: Wikidata: 1447 :?
(tail call):
mw.lua: 511 :?
(tail call):
[C]: in the function "xpcall"
MWServer.lua: 99: in the "handleCall" function
MWServer.lua: 313: in the "dispatch" function
MWServer.lua: 52: in the "execute" function
mw_main.lua: 7: in the main segment
[C] :?

Thank you MonsieurMixem (talk) 10:59, 15 September 2018 (UTC)
You'll probably have to:
try using different (newer/older) versions of Extension:Scribunto and the template,
or try to edit the template yourself,
or use some other Infobox template which does not use Wikidata, or ask one of the authors of the template for help. AhmadF.Cheema (talk) 11:27, 16 September 2018 (UTC)
Thank you,
The creator of the model contacted me, to avoid this type of error it is necessary to put a dash in the place which must leave free.
Example: | image = -
Thanks a lot for your help MonsieurMixem (talk) 18:47, 29 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Template image size on mobile viewing

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 figure out the best way to fix this template such that the image formats okay on mobile and doesn't shrink too much. See the template here:

https://www.speedsolving.com/wiki/index.php?title=Template:Case

You can see how the images look fine on desktop, but on mobile they are tiny:

https://www.speedsolving.com/wiki/index.php/PLL

Can you let me know the best way to modify the template such that on mobile the images are larger and can be seen more easily?

Thanks. Pjkcar (talk) 09:08, 12 September 2018 (UTC)

Their width="10%" property makes the image shrink on mobile, Since 10% of mobile device's screen width is different from desktop's screen width.
Have you considered using the CSS min-width property(W3school link) together? Lens0021 (talk) 10:21, 12 September 2018 (UTC)
Ah, yes, thanks! As for the min-width, what's the best way to integrate that into the template if I want the min. image width to be 100px? Pjkcar (talk) 03:14, 14 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How can I export (pdf, docx, ??) all the content of the wiki (with historic) ?

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 can I export (pdf, docx, ??) all the content of the wiki (with historic) ? PereiraJoa (talk) 11:51, 12 September 2018 (UTC)

To export into PDF documents, you will need Extension:Collection, for something similar to .docx, see Extension:OpenDocument Export.
If page histories are to be included, I think the only format available is XML, see Help:Export. AhmadF.Cheema (talk) 14:11, 12 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Prevent editing other users' user pages

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


Is there an extension for preventing users from editing other users' user pages (including subpages), except users have specific rights? PlavorSeol (talk) 14:26, 12 September 2018 (UTC)

Use the Extension:AbuseFilter. You can make any rule you want. For example, article_namespace === 2 & !(article_text contains user_name) & !(user_groups contains "sysop") will detect user page edits made by the other users that is not sysop. Lens0021 (talk) 14:54, 12 September 2018 (UTC)
For a working example of the above rule, see Terraria.wikia:Special:AbuseFilter/1. AhmadF.Cheema (talk) 15:43, 12 September 2018 (UTC)
But it allows users whose username is part of other users to edit those people's userpages. PlavorSeol (talk) 09:26, 24 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How can I delete my wikipedia account?

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 can I delete my wikipedia account? Arnouddenbesten (talk) 14:29, 12 September 2018 (UTC)

No, you can't. See Wikipedia:FAQ#How_do_I_change_my_username/delete_my_account?. Lens0021 (talk) 14:31, 12 September 2018 (UTC)
Impossible. PlavorSeol (talk) 14:57, 12 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

After Update to Ubuntu 18.04.1 LTS the editing panes revert to text based

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


I have just finished upgrading my server to Ubuntu 18.04.1 LTS. I had to make a couple of changes to the php configurations and re-enable the php to get the wiki to come up again and it looks great. The only issue that I have noticed now is that when I have to use the editing panes everything reverts to a basic text editing look and not the polished look that I used to have before the upgrade. The pages look fine until I try to edit. It is not a public wiki and I cannot post a screen shot or upload anything to show what I am seeing unfortunately

Product Version
MediaWiki 1.30.0
PHP 7.2.7-0ubuntu0.18.04.2 (apache2handler)
MySQL 5.7.23-0ubuntu0.18.04.1
ICU 60.2

Any Ideas what has caused this?

Thanks! Koldawne (talk) 16:22, 12 September 2018 (UTC)

To Add additional information - It looks like when you edit it goes back to the original 2003 editing page.
I have confirmed that the Extension:WikiEditor IS present and installed in the correct /extensions directory but when I try to follow the instructions to include the line wfLoadExtension( 'WikiEditor' ); at the bottom of my LocalSettings.php file then reload I get the following when I try to access the wiki
[bfa094c5bdcfe2705455ee63] 2018-09-12 17:30:51: Fatal exception of type "Error"
I can get rid of this if I include the below line in the LocalSettings.php as indicated by the README documentation
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
HOWEVER..then I can't load the wiki with
HTTP ERROR 500
I have also tried clearing my browser cache as indicated in the Extension:WikiEditor page. Koldawne (talk) 17:34, 12 September 2018 (UTC)
OK, so ..I figured it out.
I needed to add wfLoadExtension( 'WikiEditor' ); at the bottom of my LocalSettings.php file and then also install php7.2-xml because the older version of php that I had been using on my server no longer included the DOM extension.
Maybe this will help someone else ;) Koldawne (talk) 18:17, 12 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

After logging into a private wiki searching prompts another login page

Hi,

I'm currently having an issue on my private MediaWiki instance where after signing in the first time and successfully being brought to the main page, if you attempt to search or visit another page you're prompted with another login screen. I don't really know what could be causing this, so thank you for any replies in advance.

My current configuration consists of:

— MediaWiki 1.30.0

— Apache 2.4

— Ubuntu Server 18.04 LTS 67.131.21.67 (talk) 18:37, 12 September 2018 (UTC)

So basically, every time you navigate to another page of your wiki, you got logged-out, right?
Look at Manual:How to debug/Login problems Ciencia Al Poder (talk) 09:29, 13 September 2018 (UTC)
It's only after you log in. After the 2nd time, you stay logged in and the issue doesn't come back. 67.131.21.67 (talk) 20:05, 13 September 2018 (UTC)
Are you using any authentication plugin/extension on MediaWiki?
Check also if the URL is consistent. For example, your browser is at www.example.org, you log-in, and then you're redirected to wiki.example.org (since it's a different domain, the login cookies are not valid). Ciencia Al Poder (talk) 09:28, 14 September 2018 (UTC)
No authentication plugins/extensions are being used. The URL remains consistent the whole time as far as I'm aware. I checked LocalSettings.php and didn't see any inconsistencies, where else could I check? 67.131.21.67 (talk) 19:17, 14 September 2018 (UTC)
Look at Manual:How to debug/Login problems
Try to set a debug log as explained on Manual:How to debug, and see what happens on the request where you got logged-out. Ciencia Al Poder (talk) 16:19, 16 September 2018 (UTC)

How to disable registration for registered users

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


I have open wiki and everyone can register, but I see that registered users can create more user profiles. How to disable it, but to allow all guests to register Fokebox (talk) 06:33, 13 September 2018 (UTC)

What would be the point of disabling that? They can just log out to create more accounts instead. 110.148.133.71 (talk) 07:31, 13 September 2018 (UTC)
May be you are right Fokebox (talk) 08:04, 13 September 2018 (UTC)
I guess you'll need to revoke that permission:
$wgRevokePermissions['user']['createaccount'] = true;
This can, however, affect other groups as well, like sysops or bureaucrats, that also are part of the "user" group. Ciencia Al Poder (talk) 09:17, 13 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Database errors

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


Hi,

I can't save pages. Every time this error occur:

[695a8e7bad30ad3277ac210a] /index.php?title=PAGENAME&action=submit Wikimedia\Rdbms\DBQueryError from line 1457 of /w/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: INSERT INTO `text` (old_id,old_text,old_flags) VALUES (NULL,' fb','utf-8')
Function: MediaWiki\Storage\SqlBlobStore::storeBlob
Error: 1048 Column 'old_id' cannot be null (localhost)
Backtrace:
#0 /w/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)
#1 /w/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /w/includes/libs/rdbms/database/Database.php(1966): Wikimedia\Rdbms\Database->query(string, string)
#3 /w/includes/Storage/SqlBlobStore.php(242): Wikimedia\Rdbms\Database->insert(string, array, string)
#4 /w/includes/Storage/RevisionStore.php(377): MediaWiki\Storage\SqlBlobStore->storeBlob(string, array)
#5 /w/includes/Revision.php(1123): MediaWiki\Storage\RevisionStore->insertRevisionOn(MediaWiki\Storage\MutableRevisionRecord, Wikimedia\Rdbms\DatabaseMysqli)
#6 /w/includes/page/WikiPage.php(1922): Revision->insertOn(Wikimedia\Rdbms\DatabaseMysqli)
#7 /w/includes/page/WikiPage.php(1676): WikiPage->doCreate(WikitextContent, integer, User, string, array)
#8 /w/includes/EditPage.php(2214): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User, string, array, integer)
#9 /w/includes/EditPage.php(1506): EditPage->internalAttemptSave(array, boolean)
#10 /w/includes/EditPage.php(652): EditPage->attemptSave(array)
#11 /w/includes/actions/EditAction.php(60): EditPage->edit()
#12 /w/includes/actions/SubmitAction.php(38): EditAction->show()
#13 /w/includes/MediaWiki.php(500): SubmitAction->show()
#14 /w/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#15 /w/includes/MediaWiki.php(861): MediaWiki->performRequest()
#16 /w/includes/MediaWiki.php(524): MediaWiki->main()
#17 /w/index.php(42): MediaWiki->run()
#18 {main}

When I try to run mw-config another error occur:

Turning off Content Handler DB fields for this part of upgrade.
...have ipb_id field in ipblocks table.
...have ipb_expiry field in ipblocks table.
...already have interwiki table
...indexes seem up to 20031107 standards.
...have rc_type field in recentchanges table.
...index new_name_timestamp already set on recentchanges table.
...have user_real_name field in user table.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
...have pagelinks; skipping old links table updates
...il_from OK
...have rc_ip field in recentchanges table.
...index PRIMARY already set on image table.
...have rc_id field in recentchanges table.
...have rc_patrolled field in recentchanges table.
...logging table already exists.
...have user_token field in user table.
...have wl_notificationtimestamp field in watchlist table.
...watchlist talk page rows already present.
...user table does not contain user_emailauthenticationtimestamp field.
...page table already exists.
...have log_params field in logging table.
...logging table has correct log_title encoding.
...have ar_rev_id field in archive table.
...have page_len field in page table.
...revision table does not contain inverse_timestamp field.
...have rev_text_id field in revision table.
...have rev_deleted field in revision table.
...have img_width field in image table.
...have img_metadata field in image table.
...have user_email_token field in user table.
...have ar_text_id field in archive table.
...page_namespace is already a full int (int(11)).
...ar_namespace is already a full int (int(11)).
...rc_namespace is already a full int (int(11)).
...wl_namespace is already a full int (int(11)).
...qc_namespace is already a full int (int(11)).
...log_namespace is already a full int (int(11)).
...have img_media_type field in image table.
...already have pagelinks table.
...image table does not contain img_type field.
...already have unique user_name index.
...user_groups table exists and is in current format.
...have ss_total_pages field in site_stats table.
...user_newtalk table already exists.
...transcache table already exists.
...have iw_trans field in interwiki table.
...wl_notificationtimestamp is already nullable.
...index times already set on logging table.
...have ipb_range_start field in ipblocks table.
...no page_random rows needed to be set
...have user_registration field in user table.
...templatelinks table already exists
...externallinks table already exists.
...job table already exists.
...have ss_images field in site_stats table.
...langlinks table already exists.
...querycache_info table already exists.
...filearchive table already exists.
...have ipb_anon_only field in ipblocks table.
...index rc_ns_usertext already set on recentchanges table.
...index rc_user_text already set on recentchanges table.
...have user_newpass_time field in user table.
...redirect table already exists.
...querycachetwo table already exists.
...have ipb_enable_autoblock field in ipblocks table.
...index pl_namespace on table pagelinks includes field pl_from.
...index tl_namespace on table templatelinks includes field tl_from.
...index il_to on table imagelinks includes field il_from.
...have rc_old_len field in recentchanges table.
...have user_editcount field in user table.
...page_restrictions table already exists.
...have log_id field in logging table.
...have rev_parent_id field in revision table.
...have pr_id field in page_restrictions table.
...have rev_len field in revision table.
...have rc_deleted field in recentchanges table.
...have log_deleted field in logging table.
...have ar_deleted field in archive table.
...have ipb_deleted field in ipblocks table.
...have fa_deleted field in filearchive table.
...have ar_len field in archive table.
...have ipb_block_email field in ipblocks table.
...index cl_sortkey on table categorylinks includes field cl_from.
...have oi_metadata field in oldimage table.
...index usertext_timestamp already set on archive table.
...index img_usertext_timestamp already set on image table.
...index oi_usertext_timestamp already set on oldimage table.
...have ar_page_id field in archive table.
...have img_sha1 field in image table.
...protected_titles table already exists.
...have ipb_by_text field in ipblocks table.
...page_props table already exists.
...updatelog table already exists.
...category table already exists.
...category table already populated.
...have ar_parent_id field in archive table.
...have user_last_timestamp field in user_newtalk table.
...protected_titles table has correct pt_title encoding.
...have ss_active_users field in site_stats table.
...ss_active_users user count set...
...have ipb_allow_usertalk field in ipblocks table.
...change_tag table already exists.
...tag_summary table already exists.
...valid_tag table already exists.
...user_properties table already exists.
...log_search table already exists.
...have log_user_text field in logging table.
...l10n_cache table already exists.
Adding index change_tag_rc_tag to table change_tag ...
An error occurred:
A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: DROP INDEX ct_rc_id ON `change_tag`
Function: Wikimedia\Rdbms\Database::sourceFile( /w/maintenance/archives/patch-change_tag-indexes.sql )
Error: 1091 Can't DROP 'ct_rc_id'; check that column/key exists (localhost)
Purging caches...done.

Is there a solution for that?

Thank you :-) EinhornMitNashorn (talk) 20:35, 13 September 2018 (UTC)

I use these versions:
Software Version
MediaWiki 1.31.0
PHP 7.2.9 (fpm-fcgi)
MariaDB 10.0.36-MariaDB-0+deb8u1
ICU 52.1
EinhornMitNashorn (talk) 20:46, 13 September 2018 (UTC)
An easy fix, I think, would be to add the index ct_rc_id to the change_tag column and then re-run the config.
Do you need help doing that? Do you have access to your DB via phpmyadmin or the command line? MarkAHershberger(talk) 18:06, 14 September 2018 (UTC)
I tried it with the query ALTER TABLE `change_tag` ADD INDEX `ct_rc_id` (`ct_rc_id`), but unfortunately the error still occur. :-( EinhornMitNashorn (talk) 15:43, 16 September 2018 (UTC)
I resolved it with a backup of my MySQL database. Thank you :-) EinhornMitNashorn (talk) 16:08, 16 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

In accordance with data protection guidelines, how to delete this article

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 wrote an article for wikipedia when I was at University and subsequently dropped out in May 2017. In accordance with data protection guidelines, it contains information that my family want removed and which I agree is the correct course of action. I can't remember my password and as I am no longer at De Montford University, can they delete this article or can they send me clear processes as to how to delete this. 2A02:C7D:8A6E:4200:2015:2F0A:36:F565 (talk) 23:02, 13 September 2018 (UTC)

mediawiki.org is about the MediaWiki software, not about content. For content on some Wikipedia you have to contact some Wikipedia, not mediawiki.org. Malyacko (talk) 06:55, 14 September 2018 (UTC)
...and nobody will know which vague "data protection guidelines" you have in mind. You might be way more specific when bringing that up. Malyacko (talk) 06:57, 14 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

help to translate 'slot'

Hi all. I am a bit lost with the translation in other languages of term 'slot' described here ( Manual talk:Slots table ). As I understand it is a relation. Can somebody help me with english synonyms providing a more concrete aspect of the word 'slot' in order to have a translation following the technical function. Thank you. Christian 🇫🇷 FR 🚨 (talk) 14:12, 14 September 2018 (UTC)

Context matters. Which 'slot' usage are you talking about? MarkAHershberger(talk) 18:00, 14 September 2018 (UTC)
I just insert the link. Christian 🇫🇷 FR 🚨 (talk) 08:52, 17 September 2018 (UTC)
^Manual:Slots table. AhmadF.Cheema (talk) 18:37, 14 September 2018 (UTC)
@Wladek92 It's to mean a position/hole/sub-unit/section of a revision. For French (as a non-native) I'd possibly use emplacement or position. Jdforrester (WMF) (talk) 19:06, 14 September 2018 (UTC)
Merci bien. Christian 🇫🇷 FR 🚨 (talk) 08:53, 17 September 2018 (UTC)
Sorry to add a new element, but translating KDE provides us with a new direction for possible SLOT translation :
(see https://techbase.kde.org/Development/Tutorials/Python_introduction_to_signals_and_slots) Christian 🇫🇷 FR 🚨 (talk) 21:08, 23 November 2018 (UTC)
I don't think that usage is comparable, though my knowledge of Python is shallow so I can't guarantee that. Jdforrester (WMF) (talk) 15:44, 26 November 2018 (UTC)

Cross-wiki upload filter

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.


Ho tentato di uploadare una foto scattata da me nella pagina di un modello d'auto, ma m'è comparso questo messaggio : "Questa azione è stata ritenuta pericolosa e quindi impedita in base a una verifica automatica. Se si ritiene che l'azione in questione sia costruttiva, contattare un amministratore e informarlo su ciò che si stava tentando di fare. Questa è una breve descrizione della regola di sicurezza che è stata violata: Cross-wiki upload filter". Come faccio per caricarla correttamente? Grazie. MadMikeStyle (talk) 00:26, 15 September 2018 (UTC)

What it says: "contattare un amministratore e informarlo su ciò che si stava tentando di fare". I'm not sure what you are asking for. :) Malyacko (talk) 19:37, 15 September 2018 (UTC)
I would ask you to write to us in English so that we can understand you 100%. Thanks! Kizule (talk) 09:32, 16 September 2018 (UTC)
This is caused by https://commons.wikimedia.org/wiki/Special:AbuseFilter/153. Please ask for further help at https://commons.wikimedia.org/wiki/Commons:Bar_italiano
Si prega di chiedere ulteriore aiuto su https://commons.wikimedia.org/wiki/Commons:Bar_italiano Bawolff (talk) 16:47, 16 September 2018 (UTC)
Buoasera,
ho provato a caricare una foto scattata da me, ma un messaggio mi dice Cross-wiki upload filter, e non mi fa proseguire con il caricamento....
Come posso fare per caricarla, grazie.

Amktwi (talk) 23:27, 13 February 2020 (UTC)
I tried to upload an image (a logo), but at the end of the upload is appeared a message that say a rule violation: Cross-wiki upload filter.
Can you make me upload this image?
Thanks, Roqvy Roqvy (talk) 11:41, 26 May 2020 (UTC)
Again, ask at the wiki where you are trying to upload. Most logos are not allowed on commons and have to be uploaded to wikipedia. Bawolff (talk) 15:33, 26 May 2020 (UTC)
Pure a me dice lo stesso, non mi lascia caricare foto scattate da me! Che nervoso! 93.144.181.64 (talk) 20:16, 22 August 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

help about plugin wordpress (wiki)

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


I would like to update a wordpress plugin (wiki). Can someone help me? (the developer no longer wants to update :( F1templo (talk) 00:46, 15 September 2018 (UTC)

Hard to help for anyone if you don't link to any code base. :) Malyacko (talk) 19:35, 15 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension to add meta problem

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


I want to be able to add meta data, like titles, to my wiki. I'm following procedure described here Extension:Add HTML Meta and Title

I downloaded archived extension files and unpacked them in the extension/AddHTMLMetaAndTitle

The next step should be adding to LocalSettings a line

require_once "$IP/extensions/AddHTMLMetaAndTitle/AddHTMLMetaAndTitle.php";

But...

In the folder there is no AddHTMLMetaAndTitle.php file! If I add this line anyway, the whole wiki stops working.

Please, explain what should I do?

Thank you 142.157.25.184 (talk) 16:37, 15 September 2018 (UTC)

The wiki is 1.31 142.157.25.184 (talk) 16:38, 15 September 2018 (UTC)
Did you unpack the extension files in "extension/AddHTMLMetaAndTitle" or in "extensions/AddHTMLMetaAndTitle"?
Also try enabling the extension with the following in your LocalSettings.php:
wfLoadExtension( 'AddHTMLMetaAndTitle' ); AhmadF.Cheema (talk) 17:02, 15 September 2018 (UTC)
Thanks, you way worked! 142.157.25.184 (talk) 18:31, 15 September 2018 (UTC)
Sorry, of course I unpacket to extensions. It was a typo here.
But where is a AddHTMLMetaAndTitle.php file? It is not in the extension pack. 142.157.25.184 (talk) 18:24, 15 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Question about capitalization

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.


What happens if I set $wgCapitalLinks to false, create a page with lowercase title in first letter, and then set $wgCapitalLinks back to true? PlavorSeol (talk) 16:43, 15 September 2018 (UTC)

The lowercase page will be inaccessible except by curid parameter until you run a maintenance script like cleanupTitles.php. They might still show up in categories and recentchanges though Bawolff (talk) 16:54, 16 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

AntiSpoof seems not working

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 wiki has an account called 'PlavorSeol', but it is able to create accounts named 'PlavorSe0l' or 'PlavorSeo1'. Extension:AntiSpoof page says it prevents account creation like this situlation, but it's not working. PlavorSeol (talk) 16:59, 15 September 2018 (UTC)

Did you remember to run the update script?
Was "PlavorSeol" present before the extension's installation or after it? If the username was already present, did you run the batchAntiSpoof.php script? AhmadF.Cheema (talk) 11:03, 16 September 2018 (UTC)
Oh, I forget running batchAntiSpoof.php. After running that, it works well.
I'm terribly sorry. PlavorSeol (talk) 12:03, 16 September 2018 (UTC)
No problem.👍 AhmadF.Cheema (talk) 12:13, 16 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

VisualEditor together with RESTBase give HTTP 404 apierror-visualeditor-docserver-http

I try to setup a Mediawiki with Visual Editor, Parsoid and RESTBase.

I have been able to setup the wiki with only Visual Editor and Parsoid, but when I try to get RESTBase to work I get problems.

When I try to edit a page with Visual Editor and try to save, I get a HTTP 404 apierror-visualeditor-docserver-http

See my code at https://github.com/magol/sag-wiki/tree/master/sag-wiki

Settings for Virtual Editor

    $wgVirtualRestConfig['modules']['parsoid'] = array(
        'url'                   => getenv( 'MEDIAWIKI_PARSOID_URL' ),
        'domain'                => 'localhost',
        'prefix'                => 'localhost'
    );
    
    $wgVirtualRestConfig['modules']['restbase'] = array(
    	'url' => getenv( 'MEDIAWIKI_SERVER' ).'/api/rest_v1',
    	'domain' => 'localhost', # matches the "domain" used above
    	'forwardCookies' => true,
    	'parsoidCompat' => false
    );
    $wgVisualEditorRestbaseURL     = getenv( 'MEDIAWIKI_SERVER' ).'/api/rest_v1/page/html/';
    $wgVisualEditorFullRestbaseURL = getenv( 'MEDIAWIKI_SERVER' ).'/api/rest_';

Settings for RESTBase

services:
  - name: restbase
    module: hyperswitch
    conf:
      port: {env(RESTBASE_PORT,7231)}
      salt: secret
      default_page_size: 125
      user_agent: RESTBase
      ui_name: RESTBase
      ui_url: https://www.mediawiki.org/wiki/RESTBase
      ui_title: RESTBase docs
      spec:
        x-request-filters:
          - path: lib/security_response_header_filter.js
          - path: lib/normalize_headers_filter.js
        x-sub-request-filters:
          - type: default
            name: http
            options:
              allow:
                - pattern: '{env(MEDIAWIKI_API_URL,http://localhost/w/api.php)}'
                  forward_headers: true
                - pattern: http://localhost:8142
                  forward_headers: true
                - pattern: /^https?:\/\//
        paths:
          /{domain:localhost}:
            x-modules:
              - path: projects/example.yaml
                options:
                  action:
                    # XXX Check API URL!
                    apiUriTemplate: '{env(MEDIAWIKI_API_URL,http://localhost/w/api.php)}'
                    # XXX Check the base RESTBase URI
                    baseUriTemplate: "{{'http://{domain}:7231/{domain}/v1'}}"
                  parsoid:
                    # XXX Check Parsoid URL!
                    host: '{env(PARSOID_HOST_PORT,http://localhost:8142)}'
                  table:
                    backend: sqlite
                    dbname: /data/restbase_tables.sqlite3
                    pool_idle_timeout: 20000
                    retry_delay: 250
                    retry_limit: 10
                    show_sql: false
                  mathoid:
                    host: '{env(MATHOID_HOST_PORT,http://localhost:10044)}'
                  mobileapps:
                    host: '{env(MOBILEAPPS_URI,https://appservice.wmflabs.org)}'
                  citoid:
                    host: '{env(CITOID_URI,http://localhost:1970)}'
                  purged_cache_control: s-maxage=0, max-age=86400
                  purged_cache_control_client_cache: s-maxage=0, max-age=300

# Finally, a standard service-runner config.
info:
  name: restbase

logging:
  name: restbase
  level: '{env(RESTBASE_LOGGING_LEVEL,info)}'

num_workers: 1

Settings for Parsoid

    num_workers: '0'
    worker_heartbeat_timeout: 300000
    logging:
        level: info
    services:
      - module: lib/index.js
        entrypoint: apiServiceWorker
        conf:
            serverPort: 8142
            mwApis:
              -
                uri: 'http://web/w/api.php'
                domain: 'localhost'

Magol (talk) 19:46, 15 September 2018 (UTC)

Is there anyone who has an idea how to solve this? Magol (talk) 12:20, 20 September 2018 (UTC)

No text appears in articles after migration

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


I have migrated a mediawiki from one server provider to another. All files have been copied, the MySQL-database was exported from the old site and imported to the new server, and the username, server-address and password were updated in the LocalSettings.php-file. However, no text appears on any of the pages. Only the menu and article headlines appears: http://transla.dk/biografi/index.php?title=Forside
What is wrong, and what do I have to do to get the article text to appear. When you approach the "source", you can see there is text. But it is not visible in the main view: http://transla.dk/biografi/index.php?title=Forside&action=edit
Hope that someone can help. 188.114.154.19 (talk) 08:44, 16 September 2018 (UTC)
Manual:Errors and symptoms#You see a Blank Page AKlapper (WMF) (talk) 13:40, 16 September 2018 (UTC)
Hi, I checked your wiki and I see to you use MediaWiki 1.15.1 which is not supported. Please upgrade your wiki (and extensions/skins) on version which is supported: [2]
Thanks! Kizule (talk) 09:29, 16 September 2018 (UTC)
Database was deleted in the process
-- comment by 188.114.154.19 AhmadF.Cheema (talk) 20:56, 16 September 2018 (UTC)
See Manual:Errors_and_symptoms#All_pages_have_no_content,_but_when_editing_a_page_the_wiki_text_is_there.
Upgrading MediaWiki really is the solution here.
I see you are already doing this - your page currently shows
"MediaWiki 1.31 internal error - Installing some external dependencies (e.g. via composer) is required."
Make sure that you downloaded the right package from releases.wikimedia.org (which then includes the dependencies). For MediaWiki 1.31 this is https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.0.tar.gz. 2001:16B8:10E8:1100:2C14:4166:3E9F:D7A9 (talk) 22:15, 16 September 2018 (UTC)
Thank you very much, all of you. I will try to do so - but some problems appeared during the upgrade. So I will re-load the backup and try again - following your instructions from the beginning. 87.49.147.17 (talk) 05:56, 17 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problem after changing $wgAuthenticationTokenVersion

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.


Special:RecentChanges does not show anything since I changed $wgAuthenticationTokenVersion, even new edits made after changing.

I also ran rebuildrecentchanges.php, but Special:RecentChanges still empty.

Also Special:Preferences shows following error:

[9169a02fa766d7a8f3b6d952] /plavorexitbeta/index.php?title=Special:Preferences MWException from line 186 of C:\NGINX\html\plavorexitbeta\includes\preferences\DefaultPreferencesFactory.php: Global default '' is invalid for field gender

Backtrace:
#0 C:\NGINX\html\plavorexitbeta\includes\preferences\DefaultPreferencesFactory.php(136): MediaWiki\Preferences\DefaultPreferencesFactory->loadPreferenceValues(User, RequestContext, array)
#1 C:\NGINX\html\plavorexitbeta\includes\preferences\DefaultPreferencesFactory.php(1496): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor(User, RequestContext)
#2 C:\NGINX\html\plavorexitbeta\includes\specials\SpecialPreferences.php(173): MediaWiki\Preferences\DefaultPreferencesFactory->getForm(User, RequestContext, string)
#3 C:\NGINX\html\plavorexitbeta\includes\specials\SpecialPreferences.php(112): SpecialPreferences->getFormObject(User, RequestContext)
#4 C:\NGINX\html\plavorexitbeta\includes\specialpage\SpecialPage.php(569): SpecialPreferences->execute(NULL)
#5 C:\NGINX\html\plavorexitbeta\includes\specialpage\SpecialPageFactory.php(581): SpecialPage->run(NULL)
#6 C:\NGINX\html\plavorexitbeta\includes\MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#7 C:\NGINX\html\plavorexitbeta\includes\MediaWiki.php(868): MediaWiki->performRequest()
#8 C:\NGINX\html\plavorexitbeta\includes\MediaWiki.php(525): MediaWiki->main()
#9 C:\NGINX\html\plavorexitbeta\index.php(42): MediaWiki->run()
#10 {main}
PlavorSeol (talk) 10:57, 16 September 2018 (UTC)
Based on this, and the notices you are getting from the job queue in the thread above, it looks like you tried to override $wgDefaultUserOptions incorrectly in LocalSettings.php. Bawolff (talk) 16:42, 16 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Replacing in mass

Required Regex replacement text: {{Template|$1.jpg|c|$2}}.

Hello all! I was wondering if I could get some help with a little issue. I am trying to replace specific images that have the following format:

[[File:Nameofcharacter_Character.jpg|30x30px]]

to

{{template|Nameofcharacter.jpg|c|30}}

(where Nameofcharacter is placeholder, of course)

Now the problem I am encountering is that, for the life of me, can't seem to configure AWB in a way that it can mass replace these images with different px sizes among them. I have read up on the regex help page on Wikipedia, but nothing. I must mention that all image are in .jpg format and all have "character" at the end of their name, so it seems like the solution is so close, yet so far...

Thanks! 2001:16B8:2BA2:200:E183:846B:FBE6:E53B (talk) 12:48, 16 September 2018 (UTC)

I am sadly not really a regexp guru, but the Extension:ReplaceText should be able to do what you want: You can grab signs from the original text and reuse them in your replacement text. With the right regular expression you should be able to get both parts: The name, which starts after the colon and ends in front of the underscore and the number, which starts after the pipe and ends in front of the x sign. 2001:16B8:10E8:1100:4DBC:2195:1925:B9ED (talk) 16:17, 16 September 2018 (UTC)
Thank you for the answer, but I am still faced with the same problem because I don't know what kind of regex to use. Also, that extension says that I must have compressRevisions disabled, but it is enabled and I am not sure if disabling it now would have it work. Still, I still don't know what kind of regex to use, so as not to replace what should not be replaced. 2001:16B8:2BA2:200:E183:846B:FBE6:E53B (talk) 16:48, 16 September 2018 (UTC)
Coincidence has it that I received a solution to my answer (as I had also posted my issue in another part of the internet). For anyone interested, this should be the replacement text: {{Template|$1.jpg|c|$2}}. Anyone with the right permissions can mark this thread as solved. Thanks! 2001:16B8:2BA2:200:E183:846B:FBE6:E53B (talk) 17:01, 16 September 2018 (UTC)
Very sorry there, it seems I managed to create a red link, but I can no longer edit my previous post. 2001:16B8:2BA2:200:E183:846B:FBE6:E53B (talk) 17:02, 16 September 2018 (UTC)
Sorry for the spam, but I forgot to mention in the topic (Replacing in mass) that was just closed (and I have insufficient permissions to open it) that, in the search field, you have to add \[\[File:(.*) Character\.jpg\|(\d{2,3})px\]\] in order for the script to match the images in my initial post. Also, I've made a typo in the string for the replace text field. It's actually {{Template|$1|c|$2}} (the .jpg needs to be dropped). Someone with the appropriate rights please merge this answer to the closed topic. Thanks and sorry!
-- comment by 2001:16B8:2BA2:200:E183:846B:FBE6:E53B AhmadF.Cheema (talk) 09:13, 17 September 2018 (UTC)

How do I always show "Category : Orphaned pages"?

for example, if I do something wrong with <ref>, the "Category: Pages with reference errors" shows up automatically.

so I also want to show something like "Orphaned pages" like warning, because I just don't want to open and check Special:LonelyPages every time.

Thank you! Kwmedaw1 (talk) 11:47, 17 September 2018 (UTC)

These are called tracking categories and are added by the software. You can add your own by writing an extension that adds them upon the condition that you desire. —TheDJ (Not WMF) (talkcontribs) 14:10, 17 September 2018 (UTC)
Could you give me more details or examples please? because I only know how to use c#..
I can only imitate other peoples' codes.. I don't know where to start. Kwmedaw1 (talk) 01:52, 18 September 2018 (UTC)

Problems logging in with temporary password

I have an account with Wikipedia (Dianthus33) and I've just tried - and failed - to log in with my existing password. I clicked the "Forgot password" link and received a temporary password by email. I copied it from the email and pasted it into the box, then typed in the captcha - only to receive a message saying that my password was not recognised. I tried again, with the same result, and then I'd tried too many times and was locked out. What can I do now? 2A00:23C4:7412:A300:E0F1:52E9:4D91:7C32 (talk) 16:31, 17 September 2018 (UTC)

Skins are broken after setting Short URL

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


I added this to nginx.conf file:

	# [...]

	# Location for the wiki's root
	location /plavorexitbeta/ {
		# Do this inside of a location so it can be negated
		location ~ \.php$ {
			try_files $uri $uri/ =404; # Don't let php execute non-existent php files
			include fastcgi_params;
			fastcgi_pass 127.0.0.1:9000;
		}
	}
	
	location /plavorexitbeta/images {
		# Separate location for images/ so .php execution won't apply
		
		location ~ ^/plavorexitbeta/images/thumb/(archive/)?[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ {
			# Thumbnail handler for MediaWiki
			# This location only matches on a thumbnail's url
			# If the file does not exist we use @thumb to run the thumb.php script
			try_files $uri $uri/ @thumb;
		}
	}
	location /plavorexitbeta/images/deleted {
		# Deny access to deleted images folder
		deny	all;
	}
	
	# Deny access to folders MediaWiki has a .htaccess deny in
	location /plavorexitbeta/cache       { deny all; }
	location /plavorexitbeta/languages   { deny all; }
	location /plavorexitbeta/maintenance { deny all; }
	location /plavorexitbeta/serialized  { deny all; }
	
	# Just in case, hide .svn and .git too
	location ~ /.(svn|git)(/|$) { deny all; }
	
	# Hide any .htaccess files
	location ~ /.ht { deny all; }
	
	# Uncomment the following code if you wish to hide the installer/updater
	## Deny access to the installer
	#location /plavorexitbeta/mw-config { deny all; }
	
	# Handling for the article path
	location /exit {
		include fastcgi_params;
		# article path should always be passed to index.php
		fastcgi_param SCRIPT_FILENAME	$document_root/plavorexitbeta/index.php;
		fastcgi_pass  127.0.0.1:9000;
	}
	
	# Thumbnail 404 handler, only called by try_files when a thumbnail does not exist
	location @thumb {
		# Do a rewrite here so that thumb.php gets the correct arguments
		rewrite ^/plavorexitbeta/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /plavorexitbeta/thumb.php?f=$1&width=$2;
		rewrite ^/plavorexitbeta/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /plavorexitbeta/thumb.php?f=$1&width=$2&archived=1;
		
		# Run the thumb.php script
		include fastcgi_params;
		fastcgi_param SCRIPT_FILENAME	$document_root/plavorexitbeta/thumb.php;
		fastcgi_pass  127.0.0.1:9000;
	}
	
	# [...]

and added this to LocalSettings.php:

$wgArticlePath="/exit/$1";
$wgUsePathInfo=true;

After that, skins are broken. PlavorSeol (talk) 17:07, 17 September 2018 (UTC)

You need to ensure that requests to /plavorexitbeta/skins and /plavorexitbeta/extensions are being let through. Bawolff (talk) 21:17, 17 September 2018 (UTC)
How can I do that? PlavorSeol (talk) 14:19, 18 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

cannot reset password or establish account

I get a message stating that the account name is taken when I try to establish a new account. I get a message saying account name does not exist when I try to reset the password for this account 173.71.98.83 (talk) 20:38, 17 September 2018 (UTC)

Which website/URL is this about? Which MediaWiki version is this about? Malyacko (talk) 08:00, 18 September 2018 (UTC)
What was the resolution to this Gdecianni (talk) 21:58, 18 September 2018 (UTC)
Nothing as this" is not resolved. Malyacko (talk) 23:26, 18 September 2018 (UTC)

MediaWiki 1.31 not recognizing PHP7 after PHP 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.


My web server had previously been on PHP 5.6 while using MW 1.30. I learned that MW 1.31 would require PHP 7, and it turns out my web hosting service does have that option.

I went ahead and installed MW 1.31 and proceeded to update PHP to version 7. I tried all three settings, waiting ten minutes each before testing if MW 1.31 would recognize it. Regular PHP7, single-ini version, and Fast versions all came back with the response that "I am using PHP5.6.37" still. I don't know whether MW is failing to recognize the new PHP 7 status, if I have to wait longer before it will be propagated, or if PHP didn't update after all.

I'm at a loss, and would appreciate guidance. Note: The web hosting is given via Hostmonster, and is not my own personal server setup. DrewUniverse (talk) 05:10, 18 September 2018 (UTC)

Does Hostmonster install both PHP versions in parallel on your system? If so you need to configure your system to make version 7 the default on your system, I'd guess. Malyacko (talk) 08:03, 18 September 2018 (UTC)
Hi @Malyacko, thanks for the reply!!! I forwarded your suggestion to Hostmonster. I am still unsure what the issue was, but a tech support agent did something internally that corrected the detection issue. PHP 7 is now detected by MediaWiki and the install is proceeding (so far). I guess we can close this thread! Thank the universe. DrewUniverse (talk) 17:52, 18 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Installing MediaWiki under subdirectory NginX

I have problem installing mediawiki under subdirectory. I am using nginx 1.14 and php7.2 on ubuntu server 18.04.1 lts. I tried rewrite method, no luck. I am trying to use MediaWiki 1.31.0

I searched the web for few days, and still hasn't come up with good solution. I really want to avoid proxy (personal preference). What should I do? Is there really no solution for this? Kyj4599 (talk) 10:44, 18 September 2018 (UTC)

Formatting problem

There's formatting problem in MW 1.31.0 when <code> tag used. If you start a line inside tag with space, then additional lines appear before and after "code" block.

How to reproduce:

//additional line will appear here by her own

<code>

testline_started_with_space

testline2_started_with_space

</code>

//additional line will appear here by her own Riddimshocker (talk) 12:22, 18 September 2018 (UTC) Don't the two extra lines show up without the spaces too?

Additionally, unless the default CSS rules change, I think <code></code> tags are meant to be used for inline elements, rather than multiline? <pre> or <syntaxhighlight> tags for code blocks. AhmadF.Cheema (talk) 16:24, 18 September 2018 (UTC)

Equivalence to HitCounters extension

I have a small mediawiki site, installed on a Debian Jessie server

MediaWiki 1.27.4

PHP 5.6.33-0+deb8u1 (apache2handler)

MySQL 5.5.59-0+deb8u1

ICU 52.1

As HitCounters extension do not work with recently installed Mediawiki version, I am searching a replacement for it.

My need is totally basic, a approximate view counter on each page, no more.

I am not interested in giving any information to google, nor installing piwik/matomo which is using a sledgehammer to crack a nut

Any suggestions ? 2001:660:5301:24:0:0:55:F24 (talk) 12:23, 18 September 2018 (UTC)

Maybe whos.amung.us widget as mentioned in this Topic? However, of I'm not mistaken, it will need to be appended manually to each and every page that is to be tracked, otherwise some JavaScript work is needed to do such automatically. AhmadF.Cheema (talk) 14:05, 18 September 2018 (UTC)
https://whos.amung.us/ is blocked by my ad-blocking extension Ublock. I think most external counter will be blocked. An internal counter is far more reliable, in my own opinion. 2001:660:5301:24:0:0:55:F24 (talk) 09:28, 19 September 2018 (UTC)

test for understanding the article

It is necessary to add a section related to the article that would contain tests to check whether the reader remembered the autumn facts presented in the article. Each test consists of a set (for example 10) questions. For each question, several answers are given in advance, while one of them is right. Such a test could be created by anyone 37.221.200.35 (talk) 12:45, 18 September 2018 (UTC)
Feel free to install Extension:Quiz on your wiki. Malyacko (talk) 23:25, 18 September 2018 (UTC)
Any relevance to MediaWiki? AhmadF.Cheema (talk) 16:24, 18 September 2018 (UTC)

User page

Guys! Do you know if there are any extension that allows to set up user page just like in social networks? Users of my wiki just teenagers and they don't know nothing about wiki mark up and templates. Fokebox (talk) 14:46, 18 September 2018 (UTC)

See Extension:SocialProfile (/Screenshots, example userpage). AhmadF.Cheema (talk) 16:08, 18 September 2018 (UTC)

Issues installing MediaWiki 1.30.0

Greetings, Im attempting to install MediaWiki 1.30.0 on a Godaddy Linuz server using php version 5.6. This is my first time installing MediaWiki. I followed the install/config directions exactly, but when going to my site I get the error messages listed below. Could anyone advise? Thank you.

Warning: include(/home/content/82/8106582/html/ops/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /home/content/82/8106582/html/ops/vendor/composer/ClassLoader.php on line 444

Warning: include(): Failed opening '/home/content/82/8106582/html/ops/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='/home/content/82/8106582/html/ops/vendor/pear/pear_exception:/home/content/82/8106582/html/ops/vendor/pear/console_getopt:/home/content/82/8106582/html/ops/vendor/pear/mail_mime-decode:/home/content/82/8106582/html/ops/vendor/pear/net_smtp:/home/content/82/8106582/html/ops/vendor/pear/pear-core-minimal/src:/home/content/82/8106582/html/ops/vendor/pear/mail:/home/content/82/8106582/html/ops/vendor/pear/mail_mime:/home/content/82/8106582/html/ops/vendor/pear/net_socket:.:/usr/local/php5_6/lib/php') in /home/content/82/8106582/html/ops/vendor/composer/ClassLoader.php on line 444

Fatal error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in /home/content/82/8106582/html/ops/includes/libs/stats/BufferingStatsdDataFactory.php on line 35 2601:602:A7F:C092:85B4:5AFB:EA33:7B1C (talk) 18:16, 18 September 2018 (UTC)

Which instructions or installation method did you follow? The tarball method or through Git? Did you run composer update? AhmadF.Cheema (talk) 19:31, 18 September 2018 (UTC)
I followed: Manual:Installation guide. I did not see anything about a composer update, so did not run. 2601:602:A7F:C092:85B4:5AFB:EA33:7B1C (talk) 19:40, 18 September 2018 (UTC)
Also I downloaded the install files from Download. 2601:602:A7F:C092:85B4:5AFB:EA33:7B1C (talk) 19:51, 18 September 2018 (UTC)
Try to unpack the tarball directly on your server, instead of copying the contents through FTP, since some file may fail to transfer, causing it to be missing on the server. Ciencia Al Poder (talk) 09:08, 19 September 2018 (UTC)

MediaWiki 1.27 Exception encountered, of type "Error"

Two weeks ago I installed and configured MediaWIki 1.27 using MS SQL as the backend db. I'm running on Windows 2012 Server using MAMP Pro as the Apache/PHP handler.

I've had issue from the start, small things mainly. The search returns no results at all, some of the Special Pages return DB Errors, etc.

For the last week I've had users putting content into the Wiki, we were up to nearly 25 articles fully written and formatted. Within the last hour, something happened that caused my Wiki to start giving the above Error Message no matter what I do.

I'm not completely sure how to even go about troubleshooting. I've removed all Extensions from my LocalSettings.php that I added after the installation. I've turned on:

    error_reporting( -1 );

    ini_set( 'display_startup_errors', 1 );

    ini_set( 'display_errors', 1 );

and

$wgShowSQLErrors = true;

within my LocalSettings.php to try to come up with a solution, but they add nothing to the page. I'm still presented with Exception encountered, of type "Error" anytime I try to access my wiki.

Any help would be greatly appreciated.

Thanks Dennis2130 (talk) 20:06, 18 September 2018 (UTC)

I think you missed $wgShowExceptionDetails = true; in your LocalSettings.php. AhmadF.Cheema (talk) 21:30, 18 September 2018 (UTC)
Thanks, that gives me more to try to troubleshoot with. Dennis2130 (talk) 15:18, 19 September 2018 (UTC)
Exception encountered, of type "Error"
[W6JUbMCoAAoAACYkJ@IAAAA1] /pdmu/ Error from line 334 of E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\db\DatabaseMssql.php: Call to undefined function sqlsrv_errors()
Backtrace:
#0 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\db\Database.php(737): DatabaseMssql->lastError()
#1 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\db\loadbalancer\LoadBalancer.php(872): DatabaseBase->reportConnectionError(string)
#2 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\db\loadbalancer\LoadBalancer.php(563): LoadBalancer->reportConnectionError()
#3 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\GlobalFunctions.php(3155): LoadBalancer->getConnection(integer, array, boolean)
#4 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\objectcache\SqlBagOStuff.php(165): wfGetDB(integer)
#5 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\objectcache\SqlBagOStuff.php(247): SqlBagOStuff->getDB(integer)
#6 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\objectcache\SqlBagOStuff.php(225): SqlBagOStuff->getMulti(array)
#7 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\objectcache\SqlBagOStuff.php(221): SqlBagOStuff->getWithToken(string, NULL, integer)
#8 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\libs\objectcache\CachedBagOStuff.php(52): SqlBagOStuff->doGet(string, integer)
#9 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\libs\objectcache\BagOStuff.php(179): CachedBagOStuff->doGet(string, integer)
#10 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\session\SessionManager.php(929): BagOStuff->get(string)
#11 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\session\SessionInfo.php(149): MediaWiki\Session\SessionManager->generateSessionId()
#12 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\session\SessionProvider.php(171): MediaWiki\Session\SessionInfo->__construct(integer, array)
#13 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\session\SessionManager.php(261): MediaWiki\Session\SessionProvider->newSessionInfo(NULL)
#14 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\session\SessionManager.php(235): MediaWiki\Session\SessionManager->getEmptySessionInternal(WebRequest)
#15 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\session\SessionManager.php(185): MediaWiki\Session\SessionManager->getEmptySession(WebRequest)
#16 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\WebRequest.php(700): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#17 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\session\SessionManager.php(121): WebRequest->getSession()
#18 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\Setup.php(747): MediaWiki\Session\SessionManager::getGlobalSession()
#19 E:\PioneerData\IT\MAMP\htdocs\PDMU\includes\WebStart.php(137): require_once(string)
#20 E:\PioneerData\IT\MAMP\htdocs\PDMU\index.php(40): require(string)
#21 {main} Dennis2130 (talk) 15:25, 19 September 2018 (UTC)

Save button

I don't have "save" button how do I "get out of the red" so to speak? Gdecianni (talk) 23:39, 18 September 2018 (UTC)

Which Wiki is this in reference to? AhmadF.Cheema (talk) 03:46, 19 September 2018 (UTC)

How can I easily visualise (maybe animated) the progress of my wiki, e.g. page & user growth, top access from pages and users...

Hello everybody,

I need to display how my wiki is growing in numbers for like pages, users and also what pages are the top pages and so on.

If I remember correctly I once saw an animation where you saw a graphic like created with graphviz just animated over time that new pages came across as well as new users and so on. The interconnection between the pages where displayed as well.

Does anyone has a clue how to do that?

Many thanks in advance.

Cheers,

Jan Jaehnsen (talk) 03:07, 19 September 2018 (UTC)

Tisztelt Gm

nem jelenik meg az amit meg vettem a tárgy piacon pedig tőszőr is újra be jelentkeztem kérem a segítségeteket előre is köszönöm. 87.97.52.144 (talk) 07:18, 19 September 2018 (UTC)

Please be more verbose, provide clear steps, explain which exact website (URL) this is about. MediaWiki.org is not a market. :) Malyacko (talk) 08:15, 19 September 2018 (UTC)

Extension for 1.30 to restrict read on namespace per user?

Hello, I searched many extensions but did not find anything which would restrict read on specific namespace for specific user. I have a private wiki with many users together, but for one user I need to restrict what namespaces he can see only.

Thank you Czech.Fox (talk) 09:35, 19 September 2018 (UTC)

Manual:Preventing access#Other restrictions Malyacko (talk) 10:25, 19 September 2018 (UTC)
Keeping in mind the limitations, the unmaintained Extension:Lockdown (branch REL1_30) might work without creating additional bugs.
Also, see Extension talk:Lockdown/Archive 2/Flow export#h-Namespace_lockdown_doesn't_work_correctly_in_MW_1.31-2018-06-19T06:13:00.000Z for direct LocalSettings.php code to enable namespace restriction, although this is opposite to the kind of restriction you want. AhmadF.Cheema (talk) 11:42, 19 September 2018 (UTC)

List New Pages created by an user on xx-Wikipedia (over a given period)

How do I list the above on a local wiki page, please? I would have thought, maybe using Magic words, but doesn't seem to be there.

If possible, a second column would give the date the article was created and a third column the number of bytes.

Many thanks! Llywelyn2000 (talk) 12:10, 19 September 2018 (UTC)

Maybe, Special:Contributions&contribs=user&target=Llywelyn2000&newOnly=1&start=2015-01-01&end=2018-09-19? AhmadF.Cheema (talk) 12:29, 19 September 2018 (UTC)
Yes, I could strip the unwanted stuff from that list in a db, but would need to do that every day for a number of users; I'm looking at automating the table. Llywelyn2000 (talk) 15:38, 19 September 2018 (UTC)
Here's the project. Each user will attempt to write one new article a day: 365 over 12 months. I've done them by hand, but automating this would be wonderful. Wikidata, one day will do this. Until then - any other tools, please? Llywelyn2000 (talk) 05:44, 20 September 2018 (UTC)

Updating mediawiki webpage (INET_E_CONNECTION_TIMEOUT)

Hi guys,

I correctly installed MediaWiki on my NagiosXI new machine.

After enter inside Wiki:

- http://nagios5/wiki/index.php/Localhost

And create a new page, when I launch "save page" button, appear a timeout.

Can you help me ?

Thanks 46.172.242.161 (talk) 13:03, 19 September 2018 (UTC)

Please check the 3 images in this page to see exactly what i get:
https://support.nagios.com/forum/viewtopic.php?f=6&t=50279&p=262303#p262303 46.172.242.161 (talk) 13:05, 19 September 2018 (UTC)
See Manual:How to debug Malyacko (talk) 21:35, 19 September 2018 (UTC)
Maybe Nagios is too slow to handle a MediaWiki installation... Ciencia Al Poder (talk) 09:21, 20 September 2018 (UTC)

Translation

Why cannot I get a simple translation into ENGLISH of a page that already exists in SPANISH? Every time I attempt this, WIKI deletes the SPANISH version. Is this an attempt to monetize the service? Ericcliffordgraf (talk) 17:58, 19 September 2018 (UTC)

Which exact website(s) is this about? This does not seem to be about mediawiki.org ? Who is "WIKI" exactly? Any links for your statements so someone could take a look? Malyacko (talk) 21:34, 19 September 2018 (UTC)
Wikipedia. https://es.wikipedia.org/wiki/Eric_Clifford_Graf Ericcliffordgraf (talk) 20:58, 20 September 2018 (UTC)
What exactly do you mean "translation into ENGLISH"?
In any case, it would be more efficient to ask questions related to Spanish Wikipedia on its community help page. AhmadF.Cheema (talk) 23:31, 20 September 2018 (UTC)

Page Names with :

Hi All,

I have some duplicated pages in the Glossary's but they point to the same page. Example I have a page called 5S but right below it in the glossary it says :5S. Any ideas on how to get rid of the : pages? When I edit the pages, they both point to the correct one 5S. 163.185.148.245 (talk) 18:03, 19 September 2018 (UTC)

How is that "glossary" implemented? Which MediaWiki version is this about? Malyacko (talk) 21:32, 19 September 2018 (UTC)
It is setup like /index.php?title=Category:EMS_Glossary with pages below it. Version is
MediaWiki 1.29.2
PHP 5.6.30 (cgi-fcgi)
MySQL 5.6.35-log 163.185.148.245 (talk) 13:02, 20 September 2018 (UTC)
Did you rename/delete any custom namespace? Ciencia Al Poder (talk) 09:24, 21 September 2018 (UTC)

MediaWiki stating it needs PHP5.6 when starting up

I had to upgrade PHP5.6 to PHP7.0 as not being able to run update.php from maintenance folder after performing an upgrade for MediaWiki 1.27 to 1.30. Set all system env values to point to the new PHP7.0 installation and works fine from web and CLI. When I start the MediaWiki server it errors out and does not start stating that it needs PHP5.6. 65.87.242.113 (talk) 21:44, 19 September 2018 (UTC)

we just did an upgrade from 29 to 31 and ran into similar issues.
we did a lot of checking /var/log/apache2/error.log for specific items to fix RobFantini (talk) 08:50, 20 September 2018 (UTC)
Just install PHP 7.0 or newer on the webserver (apache, nginx...) Ciencia Al Poder (talk) 09:16, 20 September 2018 (UTC)

Hey there!

I am a student in Susitna Valley Jr/Sr high school. I have this pretty big protected coming up and I was hoping someone could help me on a couple things I don't really understand.

Many thanks, Angelita. Angelita146 (talk) 04:41, 20 September 2018 (UTC)

Kindly ask your questions here, if someone here can help you, they will. AhmadF.Cheema (talk) 04:56, 20 September 2018 (UTC)

monaco skin

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


Hi, i want to use monaco skin, but my free hosting is not use, it only give vps host use, how can i do? Msnhinet8 (talk) 07:59, 20 September 2018 (UTC)

VPS gives you the freedom to install anything. Follow the Manual:Installation guide and installation instructions in Skin:Monaco Ciencia Al Poder (talk) 09:17, 20 September 2018 (UTC)
so free host is not install monaco skin? Msnhinet8 (talk) 10:15, 20 September 2018 (UTC)
beacuse i use free host is not vps. Msnhinet8 (talk) 10:21, 20 September 2018 (UTC)
If your free host allows uploading of files to the server, you should be able to install the skin. AhmadF.Cheema (talk) 11:57, 20 September 2018 (UTC)
but i once it not uploading of files by free host, can you help me? Msnhinet8 (talk) 13:45, 20 September 2018 (UTC)
Sorry, what? AhmadF.Cheema (talk) 14:45, 20 September 2018 (UTC)
i from to taiwan, so i can little english.
Added by PlavorSeol: Fixed some grammar for better English - I'm from Taiwan and I can speak little English. Msnhinet8 (talk) 23:21, 20 September 2018 (UTC)
i once install monaco skin in my free host extensions, but not success.
can you help me? Msnhinet8 (talk) 23:24, 20 September 2018 (UTC)
What is your free host?
How did you install MediaWiki on your free host? AhmadF.Cheema (talk) 23:25, 20 September 2018 (UTC)
my free host use [https://www.freehosting.com/ free hosting.com].
i install app install mediawiki. Msnhinet8 (talk) 23:29, 20 September 2018 (UTC)
you once have install monaco free host success? Msnhinet8 (talk) 23:30, 20 September 2018 (UTC)
at home? Msnhinet8 (talk) 23:48, 20 September 2018 (UTC)
With your free hosting, you should have also gotten access to cPanel? Is there an icon for a file manager in cPanel? AhmadF.Cheema (talk) 00:34, 21 September 2018 (UTC)
yes, it have. Msnhinet8 (talk) 06:14, 21 September 2018 (UTC)
you know monaco skin author is who? Msnhinet8 (talk) 06:39, 21 September 2018 (UTC)
See Skin:Monaco Malyacko (talk) 07:08, 21 September 2018 (UTC)
ok. Msnhinet8 (talk) 07:45, 21 September 2018 (UTC)
From the file manager of your cPanel, go to your Wiki directory, then inside the skins directory, upload the Skin:Monaco files there. AhmadF.Cheema (talk) 09:12, 21 September 2018 (UTC)
ok
thanks. Msnhinet8 (talk) 03:35, 22 September 2018 (UTC)
Maybe we aren't understanding each other well because of language? PlavorSeol (talk) 05:14, 24 September 2018 (UTC)
no, but you are know monaco skin author?
Added by PlavorSeol: Better (fixed) English - No, but do you know who is author of Monaco skin? Msnhinet8 (talk) 09:56, 24 September 2018 (UTC)
See this. PlavorSeol (talk) 10:02, 24 September 2018 (UTC)
ok
thanks Msnhinet8 (talk) 10:12, 24 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Internal error after upgrading to 1.31

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 All!

I've upgraded my wiki from 1.25 to the latest version 1.31. The upgrade was successful as stated by the upgrade script but now I am getting error even when trying to visit the main page. The error is without any supporting info, just like

Internal error

[733a7abdae665b843d48b224] 2018-09-20 11:29:43: Fatal exception of type "Error"

Interestingly , special pages work fine, for example Version page shows all infos as expected.

PHP is working fine (version 7.0., I can successfully run phpinfo() function), no errors in php and apache logs. I've already turned off most of the extensions -- no changes.

I do not even know how to start debugging in this situation. How to solve the problem? Thank you. Rarruga (talk) 11:41, 20 September 2018 (UTC)

Add the following in your LocalSettings.php file, to get a more detailed description of the error:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);
For more details, see Manual:How to debug.
Special Pages work fine probably because whatever application element (like an extension) is causing the error, does not get loaded on those pages. AhmadF.Cheema (talk) 11:50, 20 September 2018 (UTC)
Thank you very much! This helped a lot, the problem was indeed in extensions. I've not solved all of them yet, but at least I can see where the problems are. Rarruga (talk) 12:49, 20 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Require NTLM/Form based authentication setup for MediaWiki 1.30.0

HI,

Please find below are the software/product we are having with in Redhat Linux 7 cluster server.

Product Version
MediaWiki 1.30.0
PHP 7.1.8 (apache2handler)
MySQL 5.6.40
ICU 50.1.2

Currently, We are having Kerberos/LDAP Setup with in our WIKI server(RHEL7) to achieve SSO (Single Sign On)

Now we do require our WIKI to be accessed over the Internet.

For that, we are having issues in authentication from AD server to our WIKI server (RHEL7) and we got error 401"Authorization Required" while accessing WIKI over internet

Now infrastructure team wonders, if WIKI can be setup with either NTLM or, Form based authentication setup?

Please let us know if WIKI supports for either of NTLM/ Form based authentication setup?

We look forward your help will greatly appreciated.

Thanking you in Adv ! Sanjay (talk) 12:04, 20 September 2018 (UTC)

You can use Extension:Auth remoteuser to have an implicit login if you have mod_auth_kerb (or something similar) set up on your server.
If you want to have certain IP ranges not to be logged in implicitly, but by using a local wiki account you can configure this within the Apache configuration (Deny/Allow rules or by using a different vHost)
If you don't want to manage the accounts in the wiki locally, but have a FBA against LDAP/AD you can have a look at LDAPAuthentication (which also requires Extension:PluggableAuth and LDAPProvider Osnard (talk) 14:18, 20 September 2018 (UTC)
Thanks for your prompt comments !
Since we are AD users then, we are using Extension: LDAPAuthentication with Kerberos setup using mod_auth_kerb  and SSO is working fine with in our network.
Now, we need to avail the WIKI in the internet and as per our infrastructure AD team, we need to approach NTLM / form based/ basic authentication.
Hence, I want to know if MediaWiki 1.30.0 supports for all these methodologies to establish SSO? Sanjay (talk) 15:01, 20 September 2018 (UTC)
I am not aware of an HTTP Base Auth extension. Yet it should be doable. The AuthManager component for MediaWiki is quite powerful.
I assume you are using Extension:LDAP Authentication by Ryan Lane, not LDAPAuthentication (by MWStack). As far as I know with this extension a log in with a local user account (one that only exists in the Wiki database) is not possible. But FBA against the LDAP/AD backend is possible. An external user would need to have credentiáls in your LDAP/AD. In stead of being logged in implicitly, he would need to use standard Special:Login page.
You will have to add an exception in your mod_auth_kerb configuration, so external users can access the wiki. Also a little configuration switch in LocalSettings.php might be required. So AutoAuthSetup is not being called for external users. Osnard (talk) 06:09, 21 September 2018 (UTC)
Yes you are correct ! We are using Extension:LDAP Authentication by Ryan Lane.
Actually if we enable SSO we wouldn't get the Login/Logout Option visible in the statusbar WIKI.
But, If SSO is disabled in Sever level then we can able to see the manual Login page which is having option to choose for the DOMAIN.
If we do select the Domain=Local then we can able to login the WIKI Locally i.e. we can login WIKI with out interacting LDAP/AD server.
Else if we choose for Domain=Corporate then the user credentials will be authenticated by LDAP/AD server. Sanjay (talk) 12:16, 25 September 2018 (UTC)
Please be aware that NTLM is a less secure protocol than Kerberos. "Forms Based" is simply a way of entering a username/password. It sounds as though your infrastructure team are suggesting something like MS TMG's proxy which is awful, old and no longer supported by MS.
If your clients are all AD users and their PCs are all domain joined then Kerberos can work - even across the internet. See Intranet (I wrote it) Have a look at this: Intranet/Intranet Reference Build Ubuntu, specifically the Apache config. The require sections can be pretty sophisticated. Gerdesj (talk) 01:33, 22 September 2018 (UTC)
Thanks for the Information!
With our current requirement (to avail the WIKI over the internet),we are interacting with Loadbalancer server exist with in the corporate network.
AS per our infrastructure team LB server does not support for Kerberos authentication approach anymore.
Hence, they suggested to implement "Forms Based/Basic" authentication & authorization for WIKI to enable with SSO feature.
also I want to confirm that all our clients are AD user accessing WIKI over various platforms like Windows/Linux.
So, I would like establish multi authentication setup for internal and external traffic (i.e. Forms Based/Basic auth would parallelly work with Kerberos auth). Hence "Forms Based/Basic" authentication & authorization for external users(internet based users) & Kerberos would work for internal users. So, how would we achieve for SSO after the auth setup/implementation? Sanjay (talk) 12:31, 25 September 2018 (UTC)

Cannot Login to Sonic Retro

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 login at Sonic Retro. I get the same error message very single time. The error I am receiving is:

There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.

My username is NextGenGamerzRealm. 184.15.233.62 (talk) 18:17, 20 September 2018 (UTC)

If you are asking about info.sonicretro.org, then you should know that the Wikimedia Foundation (of which this website is part of) has no formal links to Sonic Retro. For contacting the administrators there, see Sonic Retro:FAQ#How can I contact the project?. AhmadF.Cheema (talk) 19:32, 20 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Free domain?

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


Hey guys, thank you so much for all the awesomeness in the Let's Farm Wiki. Could not do without you guys. I also tried to contribute with translations, but the site did not let [us] input the pages I had worked on.

So, is this really true you are shutting it down? I thought it was a free domain (non-profit) and that volunteers were keeping the updates.

Let me know how I/we (Let's Farm game community) can/could help to keep this site alive.

Thanks! Email is: anaclona5@yahoo.com 2601:5C2:4400:1E60:4948:CEC3:CA7E:CF99 (talk) 20:13, 20 September 2018 (UTC)

This forum is for help related to the MediaWiki software, for communication related to Let's Farm Wiki ask at support@lets-farm-wiki.com. AhmadF.Cheema (talk) 20:51, 20 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Questions have disappeared from active survey!

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


Please can you urgently have a look at the following survey

https://icds-survey.icds.ibm.com/index.php/admin/survey/sa/view/surveyid/397228/gid/8920/qid/52413

Last week the invitation was send out with 8 questions. Today we send out the reminder mail but the survey only shows 3 questions!

Please fix this asap, many thanks,

Petra Wunnink

petra_wunnink@nl.ibm.com

please copy w@nl.ibm.com (Wisse Hubers) 217.122.121.140 (talk) 09:16, 21 September 2018 (UTC)

Your question is not related to MediaWiki. Please check where are you posting potentially private information Ciencia Al Poder (talk) 09:22, 21 September 2018 (UTC)
My question relates to the ICDS tool. The support desk link in that tool points to this site, MediaWiki. 217.122.121.140 (talk) 09:42, 21 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension:UserLoginLog rises error on wrong passwords

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


When I activate the Extension:UserLoginLog [1] and a user enters a wrong password an error occurs

[W6TA5MkdxcFyrbjrzLkJGgAAAAM] 2018-09-21 09:59:00: Fataler Ausnahmefehler des Typs „ConfigException“

When the password is correct the user is logged in and a corresponding log is made to he logbook. When I deactivete the extension , no error rises with a wrong password.

It is a fresh Mw install V1.31 and UserLoginLog V1.5.0.

[1] Extension:UserLoginLog Carchaias (talk) 10:11, 21 September 2018 (UTC)

See Manual:How to debug how to provide a stacktrace AKlapper (WMF) (talk) 10:52, 21 September 2018 (UTC)
[W6TTYLs04ajoy4aIz3ckYQAAAAE] /aquanautwebwiki11205/index.php?title=Spezial:Anmelden&returnto=Spezial:Version ConfigException from line 53 of /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'ServerUser'
Backtrace:
  1. 0 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/extensions/UserLoginLog/src/Hook.php(80): GlobalVarConfig->get(string)
  2. 1 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/Hooks.php(177): MediaWiki\Extension\UserLoginLog\Hook::logError(FakeAuthTemplate)
  3. 2 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
  4. 3 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/specialpage/LoginSignupSpecialPage.php(831): Hooks::run(string, array)
  5. 4 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/specialpage/LoginSignupSpecialPage.php(664): LoginSignupSpecialPage->getFakeTemplate(Message, string)
  6. 5 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/specialpage/LoginSignupSpecialPage.php(557): LoginSignupSpecialPage->getAuthForm(array, string, Message, string)
  7. 6 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/specialpage/LoginSignupSpecialPage.php(370): LoginSignupSpecialPage->mainLoginForm(array, Message, string)
  8. 7 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/specialpage/SpecialPage.php(522): LoginSignupSpecialPage->execute(NULL)
  9. 8 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
  10. 9 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
  11. 10 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/MediaWiki.php(861): MediaWiki->performRequest()
  12. 11 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/includes/MediaWiki.php(524): MediaWiki->main()
  13. 12 /home/www/sites/IP.IP.IP.IP/mediawiki-1.31.0/index.php(42): MediaWiki->run()
  14. 13 {main} Carchaias (talk) 11:20, 21 September 2018 (UTC)
Looks like $wgServerUser is undefined. Have you tried explicitly giving it a value in your LocalSettings.php? AhmadF.Cheema (talk) 13:46, 21 September 2018 (UTC)
I have $wgServerUser = 1; in the LocalSettings like in the docs. Well, I don't undersand what this varible does. Carchaias (talk) 08:19, 24 September 2018 (UTC)
I downloaded the recent master and now it works. Carchaias (talk) 08:37, 10 October 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Fatal error: Uncaught RuntimeException

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.


Greetings I was upgrading our MediaWiki to add Blue Spice (Free) and ran into a Fatal error that I cant seem to fix, any suggestions... (i'm new to PHP, Apache etc.)  

OS: Ubuntu-18.04.1

PHP 7.2

MySQL DB

Error Details:

Fatal error: Uncaught RuntimeException: The configuration setting 'wgUserMergeProtectedGroups' was already set by MediaWiki core or another extension, and cannot be set again by BlueSpiceUserMergeConnector. in /var/www/html/includes/registration/ExtensionProcessor.php:511 Stack trace: #0 /var/www/html/includes/registration/ExtensionProcessor.php(469): ExtensionProcessor->addConfigGlobal('wgUserMergeProt...', Array, 'BlueSpiceUserMe...') #1 /var/www/html/includes/registration/ExtensionProcessor.php(219): ExtensionProcessor->extractConfig1(Array) #2 /var/www/html/includes/registration/ExtensionRegistry.php(264): ExtensionProcessor->extractInfo('/var/www/html/e...', Array, 1) #3 /var/www/html/includes/registration/ExtensionRegistry.php(158): ExtensionRegistry->readFromQueue(Array) #4 /var/www/html/includes/Setup.php(116): ExtensionRegistry->loadFromQueue() #5 /var/www/html/includes/WebStart.php(88): require_once('/var/www/html/i...') #6 /var/www/html/index.php(39): require('/var/www/html/i...') #7 {main} thrown in /var/www/html/includes/registration/ExtensionProcessor.php on line 511 DreadHeadJoee (talk) 14:30, 21 September 2018 (UTC)

Hello, i has the same Problem.
I doesn't find a Solution. 86.111.34.9 (talk) 07:21, 4 October 2018 (UTC)
If you have the UserMerge extension installed outside of BlueSpice, remove it Ciencia Al Poder (talk) 09:38, 4 October 2018 (UTC)
When i remove the Folder "UserMerge" from ".../mediaWiki/extensions/ i show me this
C:\xampp\htdocs\mediaWIKI>c:\xampp\php\php.exe maintenance\update.php
PHP Fatal error:  Uncaught Exception: C:\xampp\htdocs\mediaWIKI/extensions/UserM
erge/extension.json does not exist! in C:\xampp\htdocs\mediaWIKI\includes\regist
ration\ExtensionRegistry.php:107
Stack trace:
#0 C:\xampp\htdocs\mediaWIKI\includes\GlobalFunctions.php(50): ExtensionRegistry
->queue('C:\\xampp\\htdocs...')
#1 C:\xampp\htdocs\mediaWIKI\settings.d\001-BlueSpiceDistribution.php(15): wfLoa
dExtension('UserMerge')
#2 C:\xampp\htdocs\mediaWIKI\LocalSettings.BlueSpice.php(34): require_once('C:\\
xampp\\htdocs...')
#3 C:\xampp\htdocs\mediaWIKI\LocalSettings.php(142): require_once('C:\\xampp\\ht
docs...')
#4 C:\xampp\htdocs\mediaWIKI\includes\Setup.php(94): require_once('C:\\xampp\\ht
docs...')
#5 C:\xampp\htdocs\mediaWIKI\maintenance\doMaintenance.php(81): require_once('C:
\\xampp\\htdocs...')
#6 C:\xampp\htdocs\mediaWIKI\maintenance\update.php(245): require_once('C:\\xamp
p\\htdocs...')
#7 {main}
  thrown in C:\xampp\htdocs\mediaWIKI\includes\registration\ExtensionRegistry.ph
p on line 107 86.111.34.9 (talk) 12:44, 4 October 2018 (UTC)
Did you remove the line enabling Extension:UserMerge from your LocalSettings.php too? AhmadF.Cheema (talk) 13:44, 4 October 2018 (UTC)
There is no Entry "Extension:UserMerge" in my LocalSettings.php 86.111.34.9 (talk) 14:04, 4 October 2018 (UTC)
Is there an entry "UserMerge" without Extension: ? Ciencia Al Poder (talk) 16:47, 4 October 2018 (UTC)
Ciencia, from his stacktrace, this is the relevant line:
> C:\xampp\htdocs\mediaWIKI\settings.d\001-BlueSpiceDistribution.php(15): wfLoa
dExtension('UserMerge')
BlueSpice is loading the extension in C:\xampp\htdocs\mediaWIKI\settings.d\001-BlueSpiceDistribution.php on line 15.
So, if he is using BlueSpice, shouldn't then the extension be available (and not be removed)? Or is BlueSpice integrating extensions from another place? Maybe only a cache problem? 2001:16B8:10D3:E900:B850:C0D3:775:F031 (talk) 20:48, 4 October 2018 (UTC)
In my LocalSettings.php is no Entry like "UserMerge".
I clear the Cache, but it's not better.
The entry in the 001-BlueSpiceDistribution.php at line 15 exists,
When i remove this entry i get this report:
C:\xampp\htdocs\mediaWIKI>c:\xampp\php\php.exe maintenance\update.php
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show d
etailed debugging information.
When i make this i get the next error:
C:\xampp\htdocs\mediaWIKI>c:\xampp\php\php.exe maintenance\update.php
[bc0272bd87294ab0a30d020e] [no req]   Error from line 329 of C:\xampp\htdocs\med
iaWIKI\extensions\BlueSpiceFoundation\includes\Core.class.php: Call to undefined
function wfProfileIn()
Backtrace:
#0 C:\xampp\htdocs\mediaWIKI\includes\Setup.php(940): BsCore::doInitialise()
#1 C:\xampp\htdocs\mediaWIKI\maintenance\doMaintenance.php(81): require_once(str
ing)
#2 C:\xampp\htdocs\mediaWIKI\maintenance\update.php(245): require_once(string)
#3 {main}
Thank you for your Support 86.111.34.9 (talk) 07:33, 5 October 2018 (UTC)
The wfProfileIn() function has been removed in MediaWiki 1.31.0.
Please be sure you downloaded the BlueSpice extension bundle corresponding to MediaWiki 1.31. Otherwise, BlueSpice may still not be compatible with MediaWiki 1.31 and you may need to keep your wiki to MediaWiki 1.30 at most until this is resolved by BlueSpice. Ciencia Al Poder (talk) 09:25, 5 October 2018 (UTC)
is there a way to downgrad from 1.31 to 1.27 ? 86.111.34.9 (talk) 11:01, 5 October 2018 (UTC)
You can use an older MediaWiki core with your installation, but beware:
  • This is not supported. There is no supported downgrade path.
  • Doing a downgrade might break future upgrades. With other words: If you do a downgrade, you might be screwed.
For BlueSpice, you might try a newer version of the BlueSpice extension.
I looked it up in the BlueSpice repository and the wfProfileIn -Out calls were removed here: https://github.com/wikimedia/mediawiki-extensions-BlueSpiceFoundation/commit/f31d1e3c176edf11a2488b14d3985bc3fbd8063a#diff-332f8b76b86bf46260d82c8e9b77fc22
This fix is included in version 3.0.0-beta2 and 3.0.0-beta - as well as in the master branch.
Maybe you want to try master! 2001:16B8:105F:2200:2939:3A7F:4B73:5097 (talk) 12:56, 5 October 2018 (UTC)
I change the MediaWiki-Version to 1.27.
Now the BlueSpice run
Thank you for your support 86.111.34.9 (talk) 09:46, 9 October 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Userpages return 403 Forbidden after hosting provider change

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...

After changing my hosting provider, all userpages return a straight HTTP403 for some reason.

Any reason why this could happen, and how could I fix it manually? Thanks in advance. GlitchyPSI (talk) 16:17, 21 September 2018 (UTC)

If your Wiki is public, can you provide a link to it?
Additionally, does the issue occur only on userpages or also for other pages which include a colon : in their name, such as Template pages? AhmadF.Cheema (talk) 17:09, 21 September 2018 (UTC)
Yes, it's currently public, but some articles might be somewhat unfinished (or straight up marked without signaling for deletion)
https://porynaz.glitchypsi.xyz/wiki
Template (Page working perfectly.): https://porynaz.glitchypsi.xyz/wiki/Template:Messagebox
User (Me, 403): https://porynaz.glitchypsi.xyz/wiki/User:GlitchyPSI GlitchyPSI (talk) 17:51, 21 September 2018 (UTC)
See, User: page giving 403 (Stack Overflow) and `You don't have permission` to view `User:` on MediaWiki (Webmasters). AhmadF.Cheema (talk) 18:33, 21 September 2018 (UTC)
Many thanks. I will contact my hosting provider now. GlitchyPSI (talk) 19:57, 21 September 2018 (UTC)
Looks as resolved, so I closing that as resolved. Kizule (talk) 08:16, 26 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Notify users of all updates

Our current version of media wiki requires users visit a page after an edit in order to receive new updates that the page has been edited.

Are there any extensions or settings that disable this feature?

If not, is there a way to modify the php code (\includes\mail\EmailNotification.php) to remove this feature? Biccat (talk) 16:19, 21 September 2018 (UTC)

Which version is that? Gerdesj (talk) 01:16, 22 September 2018 (UTC)
I'm using version 1.28.1.
Per Help:Watchlist, this is present in the current version (this is what I want to disable, I want users to get all changes):
"After receiving an email notification for a page, you have to visit the page while logged in if you want to be notified of further changes to the same page" Biccat (talk) 12:53, 24 September 2018 (UTC)

Can't load .php files in root directory

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,

Recently I enabled short URLs, but then the website only displayed texts without CSS loaded.

I read the Manual:Errors_and_symptoms#The_wiki_appears_without_styles_applied_and_images_are_missing, and found that all .php files(including load.php and index.php) would display a blank page.

Unfortunately the codes in "#You see a Blank Page" in order to display error logs also didn't work.

If I revert the settings to "index.php?title=" version, it can work well as before.

What can I do to enable it? Thanks! Brror (talk) 09:46, 23 September 2018 (UTC)

Are you using Apache or nginx?
In any case, I think the problem is in the server configuration, which you added to make short URLs working. It would help, if you post, which tutorial you followed and/or, which server configuration you added.
I guess that you still have to add an exception for .php files, so that the server does not redirect from them but instead leaves them alone. 2001:16B8:1055:6C00:80C6:9E5F:AA36:E475 (talk) 14:22, 23 September 2018 (UTC)
It has been solved, thanks for your suggestion!
I just followed MediaWiki ShortURL Builder tool for nginx before, which caused this issue, but I tried separating "location /\.php" from "location /" in nginx.conf just now, and now it works well. Brror (talk) 00:58, 24 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Caching with opcache

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 set up cache with PHP opcache extension? PlavorSeol (talk) 11:51, 23 September 2018 (UTC)

Yes, you just have to enable the PHP extension OPcache and restart PHP. See Manual:Performance tuning#Bytecode caching. ~ Seb35 [^_^] 17:30, 23 September 2018 (UTC)
How about object caching? PlavorSeol (talk) 05:34, 24 September 2018 (UTC)
Please read the page Manual:Performance tuning. ~ Seb35 [^_^] 07:38, 24 September 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.


I have a massive link spam problem with unregistered users on their discussion pages.

How do I delete the older pages? (Nuke just shows me the last 30 days)

How can I prevent this in the future?

Thanks for help! 213.153.88.174 (talk) 18:54, 23 September 2018 (UTC)

See Topic:Allow nuke to delete older pages, might still work today.
On the spam prevention front, are you using any CAPTCHA techniques? In case it is Google's ReCaptcha (NoCaptcha), try using QuestyCaptcha. AhmadF.Cheema (talk) 19:29, 23 September 2018 (UTC)
Thanks, it works :-) 213.153.88.174 (talk) 08:29, 25 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Category Meta-data Export

Hi, is there a way to export category meta-data in bulk for a given set of categorized pictures? (e.g. into a spreadsheet) 108.18.27.125 (talk) 03:15, 24 September 2018 (UTC)

This is vague... What kind of "category meta data" do you have in mind? Malyacko (talk) 07:43, 24 September 2018 (UTC)
I'm using the categories feature (which is fantastic) to tag and organize pictures, but I'm looking for a way to scan the picture set categories and export the categories tagged to each picture into a datasheet. Example:
Ideal:
FileName | CategorySet1 Value | Category Set2 Value | Category Set3 Value
Bare Minimum:
FileName | Categories Tagged 193.37.253.116 (talk) 02:25, 26 September 2018 (UTC)
You can get category data from the api: API:Categories.
You can query a list of pages instead of a single page by using generators Ciencia Al Poder (talk) 09:17, 26 September 2018 (UTC)

Cancellazione foto

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.


Buongiorno, come posso cancellare una foto che ho appena caricato?

Mi sono accorto dopo che c'era il watemark Stefano Uberti (talk) 07:49, 24 September 2018 (UTC)

"To tag a page for speedy deletion, [in the file's page] you may use {{speedydelete|<reason in prose>}} or the shortcut {{SD|<criterion code such as G7 for "author/uploader request", see list>}}."
For further details, see Commons:Criteria for speedy deletion. AhmadF.Cheema (talk) 10:47, 24 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mediawiki blank page

I have faced problems to load my mediawiki with mysql server , so i have removed mysql server and installed new mysql server. And i have lost my data and i don't have any backup files. Now my mediawiki showing blank page. Can you please let me know how to solve my problem. 90.187.42.65 (talk) 12:32, 24 September 2018 (UTC)

Are you saying that you deleted your Wiki's MySQL database?
If your Wiki is public on the internet, can you provide a link to it? AhmadF.Cheema (talk) 13:07, 24 September 2018 (UTC)
The below errors are been displaced when i have run my wiki:
[b0613efb8b238ef5680cd55a] /mediawiki/mediawiki-1.31.0/ InvalidArgumentException from line 536 of /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/database/Database.php: Wikimedia\Rdbms\Database::getClass no viable database extension found for type 'mysql'
Backtrace:
#0 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/database/Database.php(482): Wikimedia\Rdbms\Database::getClass(string, NULL)
#1 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1013): Wikimedia\Rdbms\Database::attributesFromType(string, NULL)
#2 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/loadbalancer/LoadBalancer.php(697): Wikimedia\Rdbms\LoadBalancer->getServerAttributes(integer)
#3 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(184): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean, integer)
#4 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(267): SqlBagOStuff->getDB(integer)
#5 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(245): SqlBagOStuff->getMulti(array)
#6 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(241): SqlBagOStuff->getWithToken(string, NULL, integer)
#7 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/objectcache/CachedBagOStuff.php(56): SqlBagOStuff->doGet(string, integer)
#8 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/objectcache/BagOStuff.php(185): CachedBagOStuff->doGet(string, integer)
#9 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(939): BagOStuff->get(string)
#10 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionInfo.php(150): MediaWiki\Session\SessionManager->generateSessionId()
#11 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionProvider.php(172): MediaWiki\Session\SessionInfo->__construct(integer, array)
#12 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(270): MediaWiki\Session\SessionProvider->newSessionInfo(NULL)
#13 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(244): MediaWiki\Session\SessionManager->getEmptySessionInternal(WebRequest)
#14 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(194): MediaWiki\Session\SessionManager->getEmptySession(WebRequest)
#15 /var/lib/mediawiki/mediawiki-1.31.0/includes/WebRequest.php(736): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#16 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(130): WebRequest->getSession()
#17 /var/lib/mediawiki/mediawiki-1.31.0/includes/Setup.php(847): MediaWiki\Session\SessionManager::getGlobalSession()
#18 /var/lib/mediawiki/mediawiki-1.31.0/includes/WebStart.php(88): require_once(string)
#19 /var/lib/mediawiki/mediawiki-1.31.0/index.php(39): require(string)
#20 {main}
please help me out how to fix this problem 90.187.42.65 (talk) 13:17, 24 September 2018 (UTC)
If you deleted and purged the data files of the MySQL server, I’m afraid it is lost, except if you find some backup.
Given the error, I guess you upgraded the wiki recently, and either you are on a very old server either you have a very customised configuration parameter $wgServers. ~ Seb35 [^_^] 16:01, 24 September 2018 (UTC)
Hello Seb35,
Thank you for your response.
Can you let me know what steps to be taken for solving this issue. 89.204.139.200 (talk) 16:25, 24 September 2018 (UTC)
Do you really have the database with data inside? You said previously you deleted the database. What did you exactly when you "delete" the database?
How re-installed you the database?
What are the following configuration parameters in LocalSettings.php:
  • $wgDBtype,
  • $wgDBserver,
  • $wgDBservers ?
What are the version of your MySQL server and PHP ? ~ Seb35 [^_^] 16:44, 24 September 2018 (UTC)
I don‘t have mysql data in my system. But i have all the files of mediawiki that i have installed in /var/www/html/mediawiki.
In Localsettings.php i have the following below:
$wgDBtype : "mysql“
$wgDBserver : "localhost“
Currently i am using the version of Mysql - 5.7 and php - 7.2 89.204.139.200 (talk) 16:56, 24 September 2018 (UTC)
Hello AhmadF.Cheema,
Thank you for your response. I am sorry my wikii is not available on the internet. It is of local community one. 90.187.42.65 (talk) 13:15, 24 September 2018 (UTC)
i have resolved the errors that i have posted above.
But now when i open my mediawiki it is showing
=Sorry! This site is experiencing technical difficulties.=
Try waiting a few minutes and reloading.
(Cannot access the database)
----You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.
can you help me out in this. 90.187.42.65 (talk) 15:49, 24 September 2018 (UTC)
> Wikimedia\Rdbms\Database::getClass no viable database extension found for type 'mysql'
This sounds like MySQL is not installed properly. At least I guess that the system currently cannot use it.
Apart from that: If you do not have a backup of the database, then I don't see a way of how to restore the wiki.
Maybe you can create a dump of the database from inside the old MySQL server. You could then restore this dump into the new server. 2001:16B8:10D9:9A00:ADE0:7A87:F23F:D332 (talk) 17:17, 24 September 2018 (UTC)
Thank you for your response.
Can you please let me know how can i create a dump of this database from inside the old mysql server and restore this in to the new server. 139.30.75.12 (talk) 17:23, 24 September 2018 (UTC)
See Manual:Backing up a wiki#Database and Manual:Restoring a wiki from backup#Import the database backup Malyacko (talk) 18:42, 24 September 2018 (UTC)
Hello Malyacko,
Thank you for your response.
I want to completely remove the mediawiki from my server and I want to install a new wiki again. I tried to install a new wiki but when i am opening in the browser its not working ( I mean it is not displaying anything ).
Can you please say me how can i remove complete mediawiki that i have in my Server, the old one and what ever files that are linked to mediawiki. And I want to remove my apache2, php7.2, mysql, mariadb Softwares too. 139.30.76.105 (talk) 08:49, 25 September 2018 (UTC)
See Manual:Uninstallation Malyacko (talk) 13:52, 25 September 2018 (UTC)

lowercase username

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 can I have mediawiki display a lowercase username as a lowercase username without capitalizing the first letter?

who implemented this "I know you wrote the username all lowercase, but of course you wanted the first letter to be capitalized"? and could you please remove that since whoever did that omitted to provide a button that says "I know what I am doing"? thank you, much appreciated.

-- I do not know myself and God forbid that I should 87.116.176.43 (talk) 13:19, 24 September 2018 (UTC)

Short answer, unfortunately you cannot.
See Project:Support desk/Flow/2013/05#h-Username_lowercase-2013-05-31T23:42:00.000Z and User talk:MarkAHershberger#h-lowercase_usernames?-2018-09-19T14:53:00.000Z. AhmadF.Cheema (talk) 15:11, 24 September 2018 (UTC)
thank you and thanks for linking the quote from the idiot that sealed it now and forevermore :) how probably unfortunate indeed. haha.
/**
* These namespaces should always be first-letter capitalized, now and forevermore. Historically, they could've probably been lowercased too, but some things are just too ingrained now. :)
*/ 87.116.176.43 (talk) 03:45, 25 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Remove sensitive pages permanently

I have a wiki I've been building on localhost (in Windows 10). The wiki has both private (personal financial info) and public (regular wiki articles on all kinds of topics) pages, categories, etc.

Now I want to split the wiki into a private one that I will keep on my computer (to help manage household finances and bookkeeping duties) AND then publish the public pages to the web as a separate wiki.

I've considered several options, but none of them seem very good.

First, I thought about duplicating my local wiki folder, then migrating the second half to local, and deleting pages through the normal MediaWiki deletions process. But, I read that the pages aren't actually deleted, which won't work for me because I don't want my private credit card and other financial details online for some smart hacker to take a crack at, even if it is supposedly "secure".

I looked up options on how to permanently delete pages, but all I found was conversations where people were inquiring how, but with no solution.

Finally, I thought maybe there is a way to install MediaWiki fresh and import the pages from local that I want to be public on the web. The challenge there is what if I miss something? When I try to import my pages, will that handle all dependencies automatically as well? It took me forever to import all the wiki templates and subtemplates to configure a musical artist infobox to look like on WikiPedia. I don't want to have to suffer through that kind of start and stop again if I don't have to.

So, what is the OPTIMAL way to split a wiki in two, remove parts from the copy, and post the copy with all the removed parts PERMANENTLY REMOVED?

Any help is appreciated. Ehtech2000 (talk) 17:02, 24 September 2018 (UTC)

MediaWiki has a few maintenance scripts, which can do that.
Some scripts can work on a batch of pages, e.g. deleteBatch.php, but this one only does a normal deletion. Data will still be inside the database afterwards.
E.g. nukePage.php will permanently delete a page and all revision texts associated to it. You can e.g. create a list of the pages to be removed and then use Notepad++ to easily turn this list into a nukePage.php call for each one of them. 2001:16B8:10D9:9A00:ADE0:7A87:F23F:D332 (talk) 17:13, 24 September 2018 (UTC)
Thank you. I will test and report back. Ehtech2000 (talk) 07:56, 12 October 2018 (UTC)
there is a page about m with false information and personal information located at https://encyclopediadramatica.rs/Erik_%22Tazman%22_Mokracek it needs to be deleted, please delete it MGHSHour (talk) 19:50, 12 October 2018 (UTC)
^The Wikimedia Foundation (of which this site is a part of) has no formal links with Encyclopeda Dramatica. You will have to ask them to delete the mentioned article. AhmadF.Cheema (talk) 20:07, 12 October 2018 (UTC)
how do I do that MGHSHour (talk) 00:01, 13 October 2018 (UTC)
See dealing-with-encyclopedia-dramatica.91505/#post-1040039. AhmadF.Cheema (talk) 14:48, 13 October 2018 (UTC)
that page really harasses me and bashes me, and I did not do anything, I keep my personal info a secret MGHSHour (talk) 00:01, 13 October 2018 (UTC)

EDGE Browser comes up with manipulated page title

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 altogether! In our small wiki, we have pages like this: https://www.perrypedia.proc.org/wiki/Portal_%22Intrawelt%22_(Zyklus)

In Firefox, opera, Chrome the page title shows: Portal "Intrawelt" (Zyklus)

Likewise does the EDGE browser, if I am _not_ logged in. With EDGE & being logged in, suddenly the title appears as: Portal "Intrawelt" #Zyklus#

Huh? When analyzing the source code, I can see the server sends (Zyklus) and I don't have any clue where and how the parenthesis are changed to hashes.

Server: Ubuntu 14.04.5, Apache 2.4.7, MySQL 5.5.61, Mediawiki 1.27.4 including several extensions Client: Windows 10, Microsoft Edge 42.17134.1.0

Does anyone have any ideas how and why this can happen? Sincerely, A. AnonymusGdpr (talk) 18:06, 24 September 2018 (UTC)

A random idea: try deactivating JavaScript in Edge to check if it is a JavaScript issue. (I don’t have Edge myself, I cannot test.) ~ Seb35 [^_^] 08:26, 26 September 2018 (UTC)
Good idea. Sadly, it's not possible to turn off javascript in Edge.
(I guess Edge is rarely used, but one of our members does.) AnonymusGdpr (talk) 15:18, 26 September 2018 (UTC)
I checked the Common.js but it seems there is no such change.
Perhaps check on other pages with parentheses like [3] or [4].
Also check with the skin MonoBook these three pages [5] [6] [7]. ~ Seb35 [^_^] 12:03, 27 September 2018 (UTC)
Hi Seb35! Now I have tried other pages and MonoBook. It is amazing, or annoying, or both: This one seems to be the _only_ page where the parenthesis replacement happens, and it does so in MonoBook either. Haven't tried other skins. Instead I tried moving the page and creating a new one. As soon as the page name changes, <Portal "Intrawelt" (Zyklus) x> -> the title is displayed correctly; created a new page <Portal "Intrawelt" (Zyklus)> -> hashes again. Also moving around the page (to dismiss probably wrong characters within the page title) did not work.
Finally I found a workaround. I inserted
DISPLAYTITLE:Portal "Intrawelt" &#x28;Zyklus&#x29;
and then it works, whatever browser, whatever skin. That's really odd. However, as long as this one is the only page I'll accept the deal.
Thank you for your effort, didn't want to steal your time! AnonymusGdpr (talk) 07:20, 28 September 2018 (UTC)
That’s curious. And it’s great you found a workaround! ~ Seb35 [^_^] 12:58, 28 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Undefined Method getSpecialPageFactory()

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! Brand new to WikiBase and WikiMedia in general. I ran through the install documentation, and WikiMedia works just fine. However, when I activate WikiBase, I suddenly receive the following traced error.

Fatal error: Uncaught Error: Call to undefined method MediaWiki\MediaWikiServices::getSpecialPageFactory() in /extensions/Wikibase/repo/includes/Hooks/HtmlPageLinkRendererBeginHookHandler.php:100 Stack trace: #0 /extensions/Wikibase/repo/includes/Hooks/HtmlPageLinkRendererBeginHookHandler.php(133): Wikibase\Repo\Hooks\HtmlPageLinkRendererBeginHookHandler::newFromGlobalState() #1 /includes/Hooks.php(177): Wikibase\Repo\Hooks\HtmlPageLinkRendererBeginHookHandler::onHtmlPageLinkRendererBegin(Object(MediaWiki\Linker\LinkRenderer), Object(Title), Object(HtmlArmor), Array, Array, NULL) #2 /includes/Hooks.php(205): Hooks::callHook('HtmlPageLinkRen...', Array, Array, NULL) #3 /includes/linker/LinkRenderer.php(180): Hooks::run('HtmlPageLinkRen...', Array) #4 /p in /extensions/Wikibase/repo/includes/Hooks/HtmlPageLinkRendererBeginHookHandler.php on line 100

I'm wondering if it's a version mismatch. I have MediaWiki v1.31.1 installed, and grabbed the latest version of WikiBase. Has anyone else run into this issue? Thanks! 69.166.32.188 (talk) 00:40, 25 September 2018 (UTC)

You probably meant MediaWiki instead of Wikimedia. :) Have you tried using the 1.31 branch of Wikibase instead of "the latest version" which is the unstable development master branch? Malyacko (talk) 05:38, 25 September 2018 (UTC)
yes, best always match your versions. —TheDJ (Not WMF) (talkcontribs) 09:44, 25 September 2018 (UTC)
@Malyacko
I did mean MediaWiki - slip of the fingers! :)
And it does appear that it was a version mismatch. Thanks for the advice! 69.166.32.188 (talk) 18:07, 25 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how to modify the graphical interface

I need to add a third field to initiate a session in which I ask for a client number, normally I only ask for a username and password but I do not know in which part of the code I could add this the version is 1.28 if someone could help me 187.232.20.44 (talk) 02:58, 25 September 2018 (UTC)

See the fine manual: Manual:Interface
Also note that version 1.28 is old, unsupported, and has security vulnerabilities. Please upgrade: Manual:Upgrading Malyacko (talk) 05:37, 25 September 2018 (UTC)
Adding another input field here, requires making an extension that modifies the login/registration form.
You will have to create an extension that does this, and it should take some hints from:
Manual:SessionManager and AuthManager/Adding fields to the registration formTheDJ (Not WMF) (talkcontribs) 09:36, 25 September 2018 (UTC)
thanks, how can i implement this code on the project, please?, i tried to create new files but i didnt have any result postive. Martinherrera1013 (talk) 04:16, 27 September 2018 (UTC)

rebuildrecentchanges.php lists every revision as "bot" edit and deletes tags

When running rebuildrecentchanges.php, my script seems to think every single edit is a bot edit. Also, tags are removed from revisions so that they don't display in the recent change listing. Is there some way to correct this? Battaglia01 (talk) 06:27, 25 September 2018 (UTC)

Be sure your users are not in the "bot" group. About tags, I'm not sure if rebuildrecentchanges.php takes them into account (that may be a bug) Ciencia Al Poder (talk) 09:20, 26 September 2018 (UTC)
Can vouch that this happened to be as well, and this is not how the script used to work. 104.129.196.195 (talk) 16:15, 27 September 2018 (UTC)
They are definitely not in the "bot" group, this is a bug Battaglia01 (talk) 16:55, 29 September 2018 (UTC)
bugreport it and post the link here. Ciencia Al Poder (talk) 12:06, 30 September 2018 (UTC)
OK, done - https://phabricator.wikimedia.org/T205905 Battaglia01 (talk) 17:56, 1 October 2018 (UTC)

Unable to view images in wiki

Hi

I have installed MediaWiki on my website, and I can upload image files to it using FTP. The files are stored in sub-folders of the /images directory, and look to be fine, the meta-data is readable and correct.

But MediaWiki is unable to render the image, and if you try to open it you get an internal server error. The behaviour can be observed at:

http://www.lambdapi.co.uk/morganatica/Special:ListFiles

and

https://www.lambdapi.co.uk/morganatica/File:Chassis.jpg

The lack of a thumbnail doesn't worry me as I haven't yet enabled ImageMagick, but surely the original image file should be accessible?

Many thanks Morganatica (talk) 11:47, 25 September 2018 (UTC)

First see if Topic:500 Error on Uploaded File helps. AhmadF.Cheema (talk) 12:36, 25 September 2018 (UTC)
Thanks for the clue but sadly no help. Morganatica (talk) 17:38, 25 September 2018 (UTC)
Any errors in server logs? AhmadF.Cheema (talk) 17:58, 25 September 2018 (UTC)
Unfortunately I don't have admin access to the server, it's hosted by Fasthosts. Morganatica (talk) 16:50, 28 September 2018 (UTC)
You shouldn't need admin access for the logs. Fasthosts' website says that its hosting includes "Raw log files" and a control panel. You should be able to access error logs specific to your hosting from there. AhmadF.Cheema (talk) 17:55, 28 September 2018 (UTC)
You cannot use ftp to upload images like this. MediaWiki will have none of the metadata for the images and it won't work.
If you want to upload images directly and have shell (SSH) access, you can use the importImages.php script to do so. Otherwise you must upload images using Special:Upload or the MW api. Bawolff (talk) 22:10, 2 October 2018 (UTC)

PROCEDURE c1_db_mediawiki.refresh_all_parents_for_page does not exist

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


Since yesterday Mediawiki suddenly stops to work. No one did an Update or something. On Page Save with VisualEditor it gives the Error in Subject.

This is the SQL Statement:

INSERT IGNORE INTO `page` (page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len) VALUES ('0','Test_ergergegegegergegegege','','0','1','0.620618256636','20180925131212','0','0') 62.84.213.98 (talk) 13:22, 25 September 2018 (UTC)

Which exact MediaWiki version? Do you use https://github.com/mediawiki4intranet/IntraACL by any chance? Malyacko (talk) 13:50, 25 September 2018 (UTC)
Perhaps a full disk or database? ~ Seb35 [^_^] 08:20, 26 September 2018 (UTC)
The version is 1.31.1
Another related error is when i want to delete a Page, it gives Error: 1305 PROCEDURE c1_db_mediawiki.refresh_parent_pages_for_parent_children does not exist
Why are there missing Procedures and where are they coming from? Can't find them in the Source Code, just tried to update via /mw-config/ but it says that everything is up-to-date. 62.84.213.98 (talk) 10:37, 7 January 2019 (UTC)
I am in the process of moving the wiki to a new server and have the same problem when creating a new article (on new server).
QUERY:
INSERT IGNORE INTO `page` (page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_late st,page_len) VALUES (NULL,'0','Hallo',</nowiki>,'0','1','0.849581375899','20190205083213','0','0')
ERROR:
1305 PROCEDURE mywiki.refresh_all_parents_for_page does not exist (localhost)
BACKTRACE:
#0 /var/www/html/mediawiki/includes/db/Database.php(1205): DatabaseBase->reportQueryError('PROCEDURE mywiki...', 1305, 'INSERT IGNORE I...', 'WikiPage::inser...', false)
#1 /var/www/html/mediawiki/includes/db/Database.php(2087): DatabaseBase->query('INSERT IGNORE I...', 'WikiPage::inser...')
#2 /var/www/html/mediawiki/includes/page/WikiPage.php(1219): DatabaseBase->insert('`page`', Array, 'WikiPage::inser...', 'IGNORE')
#3 /var/www/html/mediawiki/includes/page/WikiPage.php(1898): WikiPage->insertOn(Object(DatabaseMysqli))
#4 /var/www/html/mediawiki/includes/page/Article.php(2016): WikiPage->doEditContent(Object(WikitextContent), 'Die Seite wurde...', 97, false, Object(User), 'text/x-wiki')
#5 /var/www/html/mediawiki/includes/EditPage.php(1920): Article->__call('doEditContent', Array)
#6 /var/www/html/mediawiki/includes/EditPage.php(1305): EditPage->internalAttemptSave(Array, false)
#7 /var/www/html/mediawiki/includes/EditPage.php(539): EditPage->attemptSave(Array)
#8 /var/www/html/mediawiki/includes/actions/EditAction.php(56): EditPage->edit()
#9 /var/www/html/mediawiki/includes/actions/SubmitAction.php(40): EditAction->show()
#10 /var/www/html/mediawiki/includes/MediaWiki.php(395): SubmitAction->show()
#11 /var/www/html/mediawiki/includes/MediaWiki.php(273): MediaWiki->performAction(Object(Article), Object(Title))
#12 /var/www/html/mediawiki/includes/MediaWiki.php(566): MediaWiki->performRequest()
#13 /var/www/html/mediawiki/includes/MediaWiki.php(414): MediaWiki->main()
#14 /var/www/html/mediawiki/index.php(41): MediaWiki->run()
#15 {main} 77.245.46.62 (talk) 08:42, 5 February 2019 (UTC)
The procedure "refresh_all_parents_for_page" is not provided by MediaWiki core (MediaWiki core doesn't use procedures), but it's created by MediaWiki4Intranet/IntraACL extension:
https://github.com/mediawiki4intranet/IntraACL/blob/master/storage/intraacl-functions-mysql.sql#L112
One thing is clear: someone did change something in the database. Things don't suddenly break when people doesn't touch anything.
This extension creates the procedure, and also adds a trigger on the page table that calls to the procedure. However, looks like the procedure has been dropped, or the user has been denied the permission to execute procedures. If you want to uninstall the extension, read the instructions carefully. Otherwise, ask your host administrator about possible permission issues. Ciencia Al Poder (talk) 10:34, 5 February 2019 (UTC)
Thank you, that was the reason. I removed the one line from the Trigger where it states "efresh_all_parents_for_page
" 62.84.213.98 (talk) 13:51, 18 February 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

ASCIIDOC Support?

Hi Guys,

Just wondering if you ever intend to support ASCIIDOC? Thanks so much. 192.186.76.50 (talk) 13:39, 25 September 2018 (UTC)

Hi Non-guys, what does "support" mean? :) Malyacko (talk) 13:49, 25 September 2018 (UTC)
Support means an "extension" that renders pages in mediawiki that are in Asciidoc rather than wiki markup. 86.178.129.218 (talk) 00:07, 30 May 2020 (UTC)

Project Budget

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 would like to know how to add budget entries to a project via the SDK.

Regards,

Xander 41.180.0.37 (talk) 13:25, 26 September 2018 (UTC)

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

Media Wiki Restore on other hosting

Hi, We have a setup of media wiki running on 1.4. We have changed the hosting so need to restore the Media wiki again to another hosting provider. We have Database and all application files with us. Kindly help. TIA. 103.211.39.64 (talk) 06:03, 27 September 2018 (UTC)

Version 1.4 has been unsupported since 2006 and has many security vulnerabilities nowadays. Please see Manual:Upgrading.
See Manual:Moving a wiki for moving. Malyacko (talk) 08:42, 27 September 2018 (UTC)

I set up translation of sidebar on wiki according this guide: https://www.mediawiki.org/wiki/Help:Extension:Translate/Unstructured_element_translation Translate to other language work but translation does not depend on the switching languages. That is, whatever language I choose, the translation will always be one which i use in Special:Translate/sidebar-example.

Wiki: 1.31.0

PHP: 7.0.32

MySQL: 5.0.12 Krown1900 (talk) 08:50, 27 September 2018 (UTC)

ShortURL & base Redirect Help

Hi,

I have a private internal MediaWiki that is working great with customised logo. However, I am having trouble setting up ShortURL, and a redirect from the DNS hostname http://wiki.example.com to the index.php http://wiki.example.com/w/index.php

The redirect from http://wiki.example.com/w redirects ok to http://wiki.example.com/w/index.php/Main_Page

Thank you for any help offered!

-- The changes to default LocalSettings.php --

$wgScriptPath = "/w";

$wgScriptExtension = ".php";

## The protocol and server name to use in fully-qualified URLs

$wgServer = "http://wiki.example.com";

## The URL path to static resources (images, scripts, etc.)

$wgResourceBasePath = $wgScriptPath;

-- My mediawiki.conf file --

<VirtualHost *:80>

        ServerAdmin admin@xxxx

        DocumentRoot /var/www/html/w

        ServerName wiki.example.com/

        ServerAlias

        ## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache

        Alias /w /var/www/html/w/index.php

        Redirect / http://wiki.example.com/w/

        # Enable the rewrite engine     RewriteEngine On

        # Redirect / to Main Page       RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]

        <Directory /var/www/html/w/>

                Options +FollowSymlinks +Indexes -Multiviews

                AllowOverride All

                Require all granted

        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

--

MediaWiki 1.31

PHP 7.1

MariaDB 10.2.18

Apache2 Bpwhitehouse (talk) 13:05, 27 September 2018 (UTC)

Load CSS from external URL

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


How can I load CSS from external raw URL? @import does not work. PlavorSeol (talk) 14:19, 27 September 2018 (UTC)

Try the following:
@import url(https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css);
Place @import rules at the beginning (otherwise they would be ignored), AhmadF.Cheema (talk) 15:15, 27 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Vandalism on my talk 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.


I have been receiving vandalism on my talk page, but not sure where to post regarding this matter. So, posting here. See my talk page Revision history (at [https://www.mediawiki.org/w/index.php?title=User_talk:Northamerica1000&action=history]) to preview the vandalism. Northamerica1000 (talk) 08:38, 28 September 2018 (UTC)

The spammer has already been blocked from editing. 2001:16B8:10DA:C500:C500:5408:F5C:E509 (talk) 12:40, 28 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

office adding files

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


when i download video files from my camera office adds (libre office config files) can this be stoped? 195.147.47.231 (talk) 08:49, 28 September 2018 (UTC)

Wrong support forum. AhmadF.Cheema (talk) 09:29, 28 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error message while saving new page

Error message: It appears that your browser does not support Unicode. It is required to edit pages, so your edit was not saved.

I get the same message under different browser/OS's.

Package: mediawiki131--php71-1.31.1 OS: FreeBSD 11 PHP: php7.1 SQL: MariaDB 10.2.17 ImageMagick: php71-pecl-imagick-3.4.3_2 PECL-intl: php71-intl-7.1.22 84.82.68.25 (talk) 18:45, 28 September 2018 (UTC)

The edit page of MediaWiki sends a unicode test-string to and compares it with an internal constant. So either the HTTP request actually contains a wrong string or the serverside has an issue.
Is is possible that your network traffic is being modified? By a proxy maybe? 2001:16B8:1055:9B00:7179:8097:6C70:A0AD (talk) 21:28, 29 September 2018 (UTC)
Traffic not being modified, no proxy used. Could it be locale settings? 2001:7B8:204:7:DFED:8D34:7942:EF9A (talk) 09:00, 1 October 2018 (UTC)
> Could it be locale settings?
No, I don't think locale settings could do this.
Perhaps if pages are being served with the wrong content-type headers. Check your php error log for "Headers already sent" error messages. Check to make sure pages really are being served with Content-Type: text/html; charset=UTF-8 http header Bawolff (talk) 22:06, 2 October 2018 (UTC)
  1. Cache-Control:private, must-revalidate, max-age=0
  2. Connection:keep-alive
  3. Content-Encoding:gzip
  4. Content-language:en
  5. Content-type:text/html; charset=UTF-8
  6. Date:Wed, 03 Oct 2018 11:25:07 GMT
  7. Expires:Thu, 01 Jan 1970 00:00:00 GMT
  8. Link:<>;rel=preload;as=image
  9. Set-Cookie:UseCDNCache=false; expires=Wed, 03-Oct-2018 11:25:16 GMT; Max-Age=10; path=/; secure; HttpOnly
  10. Set-Cookie:UseDC=master; expires=Wed, 03-Oct-2018 11:25:16 GMT; Max-Age=10; path=/; secure; HttpOnly
  11. Strict-Transport-Security:max-age=15768000;includeSubDomains;preload
  12. Transfer-Encoding:chunked
  13. Vary:Accept-Encoding, Cookie
  14. Vary:Accept-Encoding
  15. X-Content-Type-Options:nosniff
  16. X-Frame-Options:DENY
  17. X-Random:aaaaaaaaaaa
  18. X-UA-Compatible:IE=Edge
  19. X-XSS-Protection:1;mode=block 2001:7B8:204:7:DFED:8D34:7942:EF9A (talk) 11:27, 3 October 2018 (UTC)
That certainly suggests you have a proxy between you and MW, as some of those headers are not generated by MediaWiki (Like X-Random). Bawolff (talk) 22:45, 3 October 2018 (UTC)
These are custom headers generated by the webserver. The webserver is hiawatha. Even if i disable all the custom headers, i still get cant save pages.
Is Content-Type header ok? I dont see any errors in php-fpm error log. 2001:7B8:204:7:DFED:8D34:7942:EF9A (talk) 09:21, 4 October 2018 (UTC)
Yes, content-type header is fine. Maybe the webserver is somehow mangling unicode. Bawolff (talk) 17:03, 7 October 2018 (UTC)

Extension:Mailgun 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.


Exception encountered, of type "Error"
[ff4cd43337366b8f516cf825] /w/index.php?title=%ED%8A%B9%EC%88%98:%EC%9D%B4%EB%A9%94%EC%9D%BC%ED%99%95%EC%9D%B8 Error from line 42 of (webdir)/w/extensions/Mailgun/MailgunHooks.php: Class 'Http\Adapter\Guzzle6\Client' not found
Backtrace:
#0 (webdir)/w/includes/Hooks.php(195): MailgunHooks::onAlternateUserMailer(array, array, MailAddress, string, string)
#1 (webdir)/w/includes/mail/UserMailer.php(344): Hooks::run(string, array)
#2 (webdir)/w/includes/mail/UserMailer.php(189): UserMailer::sendInternal(array, MailAddress, string, string, array)
#3 (webdir)/w/includes/user/User.php(4301): UserMailer::send(array, MailAddress, string, string, array)
#4 (webdir)/w/includes/user/User.php(4275): User->sendMail(string, string)
#5 (webdir)/w/includes/specials/SpecialConfirmemail.php(133): User->sendConfirmationMail()
#6 (webdir)/w/includes/htmlform/HTMLForm.php(613): EmailConfirmation->submitSend(array, OOUIHTMLForm)
#7 (webdir)/w/includes/htmlform/HTMLForm.php(510): HTMLForm->trySubmit()
#8 (webdir)/w/includes/htmlform/HTMLForm.php(525): HTMLForm->tryAuthorizedSubmit()
#9 (webdir)/w/includes/specials/SpecialConfirmemail.php(106): HTMLForm->show()
#10 (webdir)/w/includes/specials/SpecialConfirmemail.php(68): EmailConfirmation->showRequestForm()
#11 (webdir)/w/includes/specialpage/SpecialPage.php(479): EmailConfirmation->execute(NULL)
#12 (webdir)/w/includes/specialpage/SpecialPageFactory.php(577): SpecialPage->run(NULL)
#13 (webdir)/w/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#14 (webdir)/w/includes/MediaWiki.php(735): MediaWiki->performRequest()
#15 (webdir)/w/includes/MediaWiki.php(509): MediaWiki->main()
#16 (webdir)/w/index.php(43): MediaWiki->run()
#17 {main}
I already installed deps by run 'composer update'. Hoto Cocoa (talk) 06:02, 29 September 2018 (UTC)
See How to report a bug Malyacko (talk) 08:33, 1 October 2018 (UTC)
Poking back here, @Hoto Cocoa, did you successfully fix the issue? Or you got stuck somewhere? :) X-Savitar (talk) 14:30, 3 October 2018 (UTC)
No changes. Hoto Cocoa (talk) 09:36, 6 October 2018 (UTC)
Thanks for reporting this @Hoto Cocoa, could you report this issue here: https://phabricator.wikimedia.org/project/view/1424/ by filing a phabricator task? Also, I think you should install dependencies (for the first time) by running `composer install` instead. Let me know if this helps. X-Savitar (talk) 12:05, 29 September 2018 (UTC)
What Alangi Derick says. To use Extension:Mailgun, you must run composer for the MailGun extension. phab:T206415 was created, and has accordingly been declined. Mainframe98 talk 09:38, 7 October 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Image thumbnail protruding past the next section

Is there any way to prevent that without adding more text? Like, making the next section start after the image thumb? 76.121.250.32 (talk) 23:48, 29 September 2018 (UTC)

"<br clear=all>" should work.
See, Help:Images#Vertical alignment. AhmadF.Cheema (talk) 00:39, 30 September 2018 (UTC)

"Some or all of the undeletion failed:"

A vandal recently deleted a few pages, and when I go back to restore the deletion log, I get:

Some or all of the undeletion failed:

Invalid or missing revision.

You may have a bad link, or the revision may have been restored or removed from the archive.

---

I ran php populateRevisionSha1.php I saw from another thread with no luck solving the issue. What's the best way to troubleshoot?

Thanks. Pjkcar (talk) 14:53, 30 September 2018 (UTC)

Which exact MediaWiki version is this about? Malyacko (talk) 08:33, 1 October 2018 (UTC)
The latest version, 1.31 Pjkcar (talk) 01:27, 2 October 2018 (UTC)
Did you run populateRevisionSha1.php with the --force option?
Also, the error message should be more complete. Try setting $wgShowExceptionDetails = true; Ciencia Al Poder (talk) 09:21, 2 October 2018 (UTC)
Yes, I ran populateRevisionSha1.php with the --force option and without, still get the same error.
When I set $wgShowExceptionDetails = true; I still just get the same error:
Some or all of the undeletion failed:
Invalid or missing revision.
You may have a bad link, or the revision may have been restored or removed from the archive.
----
Any other suggestions to try? Would findAnomalies.php be useful? Thanks. Pjkcar (talk) 03:29, 4 October 2018 (UTC)
This may be a bug, but highly depends on your configuration.
I wonder how a vandal could "delete" pages. Is that vandal a sysop, or do you give anyone permissions to perform deletions?
I assume you first got to the undeletion page, where it lists one or more revisions of the page to undelete, and then after selecting some of them, or none (which would undelete all), you get the error message, right?
Deleted revisions are stored in the archive table, you can look at that table to see if they're still there. Ciencia Al Poder (talk) 09:32, 4 October 2018 (UTC)
When I go to the deleted page and click on History, and then click on "View or restore 6 deleted edits?", it shows all the edits below next to the usernames. But when I try to restore either all or selecting any individual one, I get "Some or all of the undeletion failed:".
Regarding how they deleted it, good question. I'm unsure how they were able to delete it and cause these issues. Some of the pages they deleted I was able to restore without any issues using the process above, but 3-4 pages give me this error for some reason. Is it possible to prevent users from being able to delete pages but still allow them to edit? This would help for the future to prevent this issue, which is my bigger concern right now. Pjkcar (talk) 04:29, 5 October 2018 (UTC)
The delete right is not available to all users, as you can see in Manual:User rights. Either you added that right to all users, or the vandal was granted the sysop user group.
On the undeletion page, there's also an option to see the deleted revisions without restoring them. Are you able to see the deleted revision text from there, or does it cause an error too? Ciencia Al Poder (talk) 09:27, 5 October 2018 (UTC)
Ah, I see on Special:ListGroupRights it shows emailconfirmed can delete pages. I've set $wgGroupPermissions['emailconfirmed']['delete'] to false now.
Yes, I can see the deleted revisions without restoring. When I copy the content of the latest revision and go to the page, click Edit, and paste the content, I get:
"Someone else has changed this page since you started editing it. The upper text area contains the page text as it currently exists. Your changes are shown in the lower text area. You will have to merge your changes into the existing text. Only the text in the upper text area will be saved when you press "Save changes"."
The upper text area is blank then and the lower area has my revisions, but I can't save it. If I paste the revision into the blank upper text area and push save, it shows the same error "someone else...". How can I paste the revision onto the deleted page without merging? Thanks. Pjkcar (talk) 09:22, 6 October 2018 (UTC)
Also, if someone spams, this means and admin has to delete the pages, and not the community. Is there a way around this? Thanks. Pjkcar (talk) 09:27, 6 October 2018 (UTC)
Looks like there may be some inconsistency on the database for the page you're trying to undelete, causing it to not be able to undelete or even recreate it. It's hard to tell how to solve this without viewing the actual tables. Maybe you can try to recreate that page with another name, and then rename it to the correct name, although I suspect this may also fail too. The problem you're having may be that there's a row in the page table without revisions in the Revision table for that page. If that's the case, deleting that row may solve this problem. To be safe, you can simply update the page_title column to some random text.
About the spam problems, you should give delete rights only to trusted contributors. Everyone could get emailconfirmed and delete all pages of the wiki. You can create a new user group with the delete right and promote users to that group manually. Ciencia Al Poder (talk) 10:20, 6 October 2018 (UTC)