Project:Support desk/Flow/2019/04

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

Logging error on web Wikipedia and iOs app

I have problem with my Wikipedia on web (Chrome) and ios app on Iphone. I keep getting logged out few seconds after logging. There is error: "You have been logged out. There was an error verifying your account..." What can I do? Thank you.


185.14.233.249 (talk) 15:49, 1 April 2019 (UTC)

I have a categories page which is, of course, automatically generated. Instead of having text-only links however, is there any way I can programatically pull in the main image from each page and use these as my hyperlinks? In otherwords, I'm looking for a categories page that displays each link as a thumbnail image. Thanks! 2A01:4B00:EA15:2200:588A:EF91:AABD:7831 (talk) 00:23, 2 April 2019 (UTC)

So we already do that for File pages.
If you want to do that for general pages. It is possible but would require writing a custom extension in PHP.
Basically you would want to subclass the CategoryPage class. Then you have to use a hook to override the default class and use yours instead. The two choices are the CategoryPageView hook or the ArticleFromTitle hook. Bawolff (talk) 18:47, 4 April 2019 (UTC)

How do I generate a route file using my own car collected GPS data?

I have collected the car motion GPS data on the road. I want to simulation this car trajectory, but I do not know how to import the GPS data to the SUMO to generate a car route. Thanks! Chongachong (talk) 02:57, 2 April 2019 (UTC)

This does not appear to be a question about MediaWiki, which is the topic of this wiki. Whatever "SUMO" stands for, I would suggest you search for a online forum about that and ask your question there. dcljr (talk) 03:02, 2 April 2019 (UTC)

invoke infobox error in Wp/ban 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.


Please, someone can help me with this. I don't have permission to change the content model "Scribunto" to "TemplateStyles" Thanks in advance.

https://incubator.wikimedia.org/wiki/Template:Wp/ban/infobox Angayubagia (talk) 05:28, 2 April 2019 (UTC)

Need Edit the content model of a page (editcontentmodel) right.
Better ask a local sysop to change it.
A list of active sysops can be found here 94rain Talk 14:16, 10 April 2019 (UTC)
Thanks, the problem already solved. Angayubagia (talk) 14:19, 10 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

admin notifications

Hello dear MediaWiki-Team,

can't find the answer, so I'll try here... Is it possible for an admin to get a notification if someone did some changes on the internetpage?

Thank you for your answer.

Kind regards,

Tadej 46.229.18.130 (talk) 09:09, 2 April 2019 (UTC)

By internetpage, you mean any Wiki page? Notifications are received if the page is in a user's Watchlist. AhmadF.Cheema (talk) 10:03, 2 April 2019 (UTC)
Hello Ahmad,
I meant the wiki page of which I'm the admin.
Thank you. 46.229.18.130 (talk) 05:32, 4 April 2019 (UTC)
You can get notifications by email of any pages in your watchlist, as Ahmad pointed out. Add the pages you want to the watchlist and enable notifications by email from your preferences. Ciencia Al Poder (talk) 09:24, 4 April 2019 (UTC)

Html2Wiki requires pandoc

I have already install pandoc but it is still showing I have verified the pandoc install on my server. 14.102.63.244 (talk) 12:04, 2 April 2019 (UTC)

Please provide way more specific steps and clearer information and output, version information for all involved components, what kind of "server" software this is about, in which exact path pandoc is installed. Malyacko (talk) 18:02, 2 April 2019 (UTC)

does mediawiki support saml authentication?

does mediawiki support saml authentication? if yes, is there a link/doc i can refer to.

43.225.26.50 (talk) 16:23, 2 April 2019 (UTC)
Yes. See Extension:SimpleSAMLphp, which depends upon Extension:PluggableAuth. Cindy.cicalese (talk) 15:55, 5 April 2019 (UTC)
Have you tried Extension:SimpleSamlAuth ? Malyacko (talk) 22:21, 2 April 2019 (UTC)
I have a working installation of simplesamlphp (https://simplesamlphp.org/download). im able to authenticate against my saml provider.i have installed Extension:SimpleSamlAuth by referring doc. however, when i try to login i get below error
Internal error [XKdaxhDr4SfP0V1CUaxoRAAAAAs] 2019-04-05 13:40:22: Fatal exception of type "InvalidArgumentException". 43.225.26.50 (talk) 13:51, 5 April 2019 (UTC)
See Manual:How to debug how to get a stack trace for that exception. Please also provide exact MediaWiki and exact extension version information. Malyacko (talk) 13:59, 5 April 2019 (UTC)
Thank you for the response. i enabled debug log, but logs are populated in given path. and yes, path is writable by application. 43.225.26.50 (talk) 14:10, 5 April 2019 (UTC)
Thank you for the response. i enabled debug log, but logs are *not populated in given path. and yes, path is writable by application. 43.225.26.50 (talk) 14:28, 5 April 2019 (UTC)
@Cindy.cicalese Can you please help me on this? 43.225.26.50 (talk) 14:36, 5 April 2019 (UTC)
@Malyacko
Here is the debug log,
[XKdpHxf6ZEpFzph3rK7NswAAAAM] /index.php/Special:PluggableAuthLogin InvalidArgumentException from line 203 of /var/www/html/includes/session/SessionManager.php: Invalid session ID
Backtrace:
#0 /var/www/html/includes/session/PHPSessionHandler.php(215): MediaWiki\Session\SessionManager->getSessionById(string, boolean)
#1 [internal function]: MediaWiki\Session\PHPSessionHandler->read(string)
#2 /var/simplesamlphp/lib/SimpleSAML/SessionHandlerPHP.php(342): session_start()
#3 /var/simplesamlphp/lib/SimpleSAML/Session.php(178): SimpleSAML\SessionHandlerPHP->setCookie(string, string, array)
#4 /var/simplesamlphp/lib/SimpleSAML/Session.php(304): SimpleSAML\Session->__construct()
#5 /var/simplesamlphp/lib/SimpleSAML/Auth/Simple.php(51): SimpleSAML\Session::getSessionFromRequest()
#6 /var/www/html/extensions/SimpleSAMLphp/includes/SimpleSAMLphp.php(250): SimpleSAML\Auth\Simple->__construct(string)
#7 /var/www/html/extensions/SimpleSAMLphp/includes/SimpleSAMLphp.php(145): SimpleSAMLphp::getSAMLClient()
#8 /var/www/html/extensions/PluggableAuth/includes/PluggableAuthLogin.php(31): SimpleSAMLphp->authenticate(NULL, NULL, NULL, NULL, NULL)
#9 /var/www/html/includes/specialpage/SpecialPage.php(569): PluggableAuthLogin->execute(NULL)
#10 /var/www/html/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#11 /var/www/html/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#12 /var/www/html/includes/MediaWiki.php(860): MediaWiki->performRequest()
#13 /var/www/html/includes/MediaWiki.php(517): MediaWiki->main()
#14 /var/www/html/index.php(42): MediaWiki->run()
#15 {main} 43.225.26.50 (talk) 14:43, 5 April 2019 (UTC)
As wriiten before, Please also provide exact MediaWiki and exact extension version information. Malyacko (talk) 15:00, 5 April 2019 (UTC)
Yes, version information is very important. I see the that problem is related to sessions and seems to be using the PHP sessions, which is a known bug. See Extension:SimpleSAMLphp#Known_Bugs for a solution. Cindy.cicalese (talk) 16:02, 5 April 2019 (UTC)

IC7300

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 must have missed something somewhere. I do not see the IC7300 listed as being supported. What radio is used for the piece of equipment? 2605:6000:1713:460:FCFD:135A:F6AF:B817 (talk) 17:39, 2 April 2019 (UTC)

Welcome to the support desk for the MediaWiki software. Nobody here knows what an IC7300 is and this place is not about radios. You are likely on the wrong website and I wonder how and from where you ended up here. Malyacko (talk) 18:01, 2 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Image description pages not loading

I recently noticed that the image description page for images on my wiki are not working most of the time.. sometimes they work for smaller images. If I already have a direct link to an image I can load the image from the server.

Anyway turns out there was a ton of extra traffic due to some russian bots ignoring the robot.txt so I've for the time being shut down all access except for myself but I'm still having the same problems.

I had previously done some maintenance to reduce the size of the database but that was a couple of weeks ago and performance improved greatly as a result until the past couple of days.

Looking at the error logs there seems to be several reoccurring errors.

*Premature end of script headers: php71.cgi

*Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.  

*Directory index forbidden by Options directive: ../wiki/images/thumb/1/  

Some of these seem to have to do with permissions but permissions seem to be fine.

I'm currently on 1.26.3 .. I'm considering upgrading but I'd like to try to sort this out before proceeding with an upgrade.

Any suggestions? Obfuscated (talk) 23:14, 2 April 2019 (UTC)

BTW another possible clue is that you can still upload new images but when you pick the file the destination filename is not auto populated. Obfuscated (talk) 23:24, 2 April 2019 (UTC)
Maybe this is a problem with redirect rules on the server being confused by URLs that end in image extensions like .jpg, .png, etc? Ciencia Al Poder (talk) 09:16, 3 April 2019 (UTC)
I don't think so.. it's definitely not something that has been changed in anyway from the defaults. Normally when you click on an image that has been uploaded to the wiki it will take you to a page showing you it's history etc. Also there are a few images that do display their description pages as expected.
For example the wiki code of [[File:myimage.jpg]] has a url of http://www.mywiki.com/wiki/index.php?title=File:myimage.jpg
Clicking on it should display a page with the history and the image embedded in that page is then hardlinked to the file on the server http://www.mywiki.com/wiki/images/a/a/myimage.jpg

Obfuscated (talk) 16:44, 3 April 2019 (UTC)
Maybe setting up a debug log as explained in Manual:How to debug and inspecting the requests that get logged there can give you a clue of what's the problem. Ciencia Al Poder (talk) 19:49, 3 April 2019 (UTC)

HTTP 502 error when trying to get VisualEditor to work

I followed the instructions here for setting up parsoid, but when I try to edit a page I get the following error:

Error loading data from server: apierror-visualeditor-docserver-http: HTTP 502. Would you like to retry?

Does anyone know what might have caused it?


Might it be something to do with the parsoid.conf file? I put the following in it:

cert = /etc/ssl/my_certs/parsoid.crt

key = /etc/ssl/my_keys/mykey.key CAfile = /etc/ssl/my_ca/ca.crt

[parsoid]accept = 8143


connect = 8142 83.216.132.79 (talk) 17:37, 3 April 2019 (UTC)

That last bit didn't format very well... Let me try again. My parsoid.conf file actually looks like this:
cert = /etc/ssl/my_certs/parsoid.crt
key = /etc/ssl/my_keys/mykey.key
CAfile = /etc/ssl/my_ca/ca.crt
[parsoid]
accept = 8143
connect = 8142 83.216.132.79 (talk) 17:40, 3 April 2019 (UTC)
In case it helps, my MediaWiki version is 1.32.0, my PHP version is 7.0.33 (litespeed), and my Mariadb version is 10.2.15-MariaDB-cll-lve. 83.216.132.79 (talk) 18:08, 3 April 2019 (UTC)

404 Error right after uploading large video file

So I'm trying to upload a .mp4 video file that goes beyond the 100MB upload limit, I've changed the $wgMaxUploadSize to meet the value above the file I need to upload and everything.

But as I select the file I need and then hit upload right as the upload finishes it throws me a 404 error I can't even get the post upload page, nothing it just keep throwing a 404 error.


BTW

MediaWiki is running on Win Server 16 using IIS 10 with PHP 7.2.16 and running on MySQL 8.0.15. 66.98.50.125 (talk) 19:44, 3 April 2019 (UTC)

https://serverfault.com/questions/863069/receiving-a-404-after-posting-a-large-file-via-php-on-iis Ciencia Al Poder (talk) 09:27, 4 April 2019 (UTC)
Which exact MediaWiki version? What does the IIS error log show? Malyacko (talk) 09:28, 4 April 2019 (UTC)

Issues with a picture URL

Hi to all. I am very new to Media Wiki, but I find it brilliant. We made an installation on a VPS just a few days ago and we are starting now entering content. By entering the first picture, I realized there is a bug on the URLs. Let me clarify:

When I am on a "read" mode of an article and click on the image, I am forwarded on the image's page. I can see on the URL that there is the "/index.php?title=File:" and then the filename of the image follows. The page is shown correctly.

Unfortunately that is not happening if I click on the image, while I am on an "edit" mode of the page. Then I am forwarded on a page, where the URL contains "/File:" and the page cannot be found. Please note that I have installed the "VisualEditor" extension and the necessary "parsoid". This error can be reproduced if you place an image in your page and then click on it and then on it's name.

I hope the above information are clear enough in order to reproduce the problem and I hope to help you solve it. AngelPitsos (talk) 21:38, 3 April 2019 (UTC)

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


Hi everyone,

Thanks for your great support and pardon me for my ignorance. I don't know the right terms to use - or maybe that's my problem, that I don't know what terms to search on -

I just have an ultra tiny personal wiki, but it's a very general question...

More than once I have found that I simply want to show a URL, whether it be an external one (like http:\\www.cnn.com) or one that's internal to my site (like my_latest_greatest_game_review_wiki_page, or whatever). I would usually be using one or two sets of square brackets around these, of course.

It is annoying to me that if I simply try to put an external URL in square brackets, it becomes a footnote.

Isn't there some sort of shorthand to let MediaWiki know, "just show the reference", whether it be a URL (external) or my wiki page (internal).

Instead of having to actually manually copy it twice, every time I want to do that?

There is grace and utility in just showing users what they're clicking on. Plus it's a little less work and site care-taking.

Am I unaware of some simple "ditto" shortcut?

I do not want to have to load some plugin just for this. The question is, am I missing a shortcut.

FWIW: This is something hard to Google on. There's 1M pages on how to edit wikis. So I ask here.

I am using MediaWiki 1.27.1 (ca. late 2015) on a Win7 PC. But I think this is a general question.

Thanks if you can help! RedKnight7 (talk) 03:21, 4 April 2019 (UTC)

Doesn't writing the URL without any brackets gives what you want? AhmadF.Cheema (talk) 04:42, 4 April 2019 (UTC)
Solved by Ahmad! RedKnight7 (talk) 04:50, 4 April 2019 (UTC)
As I said, URL without any brackets. Your example is using brackets. AhmadF.Cheema (talk) 05:02, 4 April 2019 (UTC)
That's got it!
Wow, that was too easy. I guess I forgot that ... I've been using wikis for going on 20 years.
Thank you Ahmad.
Wow. Don't even use brackets!
Now I have to delete my ranting, lol
Ahmad - thank you for your skill in talking people down RedKnight7 (talk) 05:06, 4 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Cannot upload GIF images.

Hi There

I have installed the latest Mediawiki 1.32.0 and included the followings in my Localsetting.php

$wgStrictFileExtensions = TURE;

$wgFileExtensions = array('png','jpg','jpeg','ogg','doc','gif','ppt','mp3','sxc','pdf');


But when I try to upload images, it still does not allow me to upload gif. Any advice?


Michael 2001:8003:D036:9900:81F7:C460:9042:A916 (talk) 05:00, 4 April 2019 (UTC)

See if correcting the value of $wgStrictFileExtensions helps? Incorrect spellings. It can also be just left out, as default is already "true". AhmadF.Cheema (talk) 05:33, 4 April 2019 (UTC)
I already have $wgStrictFileExtensions = TURE; and the in the following line have
$wgFileExtensions = array('png','jpg','jpeg','ogg','doc','gif','ppt','mp3','sxc','pdf'); 124.189.34.55 (talk) 05:49, 4 April 2019 (UTC)
true
not
TURE AhmadF.Cheema (talk) 06:32, 4 April 2019 (UTC)
Thank you again. Even with true, it did not work. It stil showing me "Permitted file types: png, jpg, jpeg, ogg, doc, xls, ppt, mp3, sxc, pdf." it does not even have the gif in the list. 124.189.34.55 (talk) 12:38, 4 April 2019 (UTC)
Check to see if you have more than one $wgFileExtensions line in LocalSettings.php Perhaps a latter entry is overriding your earlier entry. Bawolff (talk) 16:49, 4 April 2019 (UTC)
By nay chance do you have $wgFileBlacklist defined in your LocalSettings.php? AhmadF.Cheema (talk) 16:56, 4 April 2019 (UTC)
Thanks,
  • I checked and I do not have multiple $wgFileExtensions in LocalSettings.php
  • Also, $wgFileBlacklist is not anywhere in my LocalSettings.php
Can you think of any other file that may be overriding Localsetting.php? Is there anything to do with cache or something?
Becasue I still see the error message "Permitted file types: png, jpg, jpeg, ogg, doc, xls, ppt, mp3, sxc, pdf." and still it does not even have the gif in the list. 2001:8003:D036:9900:E88A:5123:B4E3:C115 (talk) 22:02, 4 April 2019 (UTC)
Can you check if xls appears anywhere in your config file? In your error message it says that's allowed, but that isn't in the default allow list, and its not in what you said you added to LocalSettings.php, so it must be somewhere.
Check also you are added the correct LocalSettings.php and all that. Bawolff (talk) 22:08, 4 April 2019 (UTC)
Hi Everyone
I solved the issues. However, I don't know the exact cause.
I deleted all the previous code related to this. Refreshed my server cache. Put the code back in and it started to work.
Thanks for the help and though I do not know the reason, sharing this, in case this helps somebody. 124.189.34.55 (talk) 11:02, 5 April 2019 (UTC)

Moin, in my wiki (v 1.31.1) there are some categories (Spezial:Categories) with redlinks. But they have "0 members". So i searched in Wikipedia and found identical listings: https://en.wikipedia.org/wiki/Special:Categories

Where they come from? Aren't they unnecessary because of nobody want's it (0 members) and they do not exist (redlink)?

Thanks, Paul Paul Hema (talk) 07:16, 4 April 2019 (UTC)

This special page is just an interface to see the contents of the category table. On that manual page you'll see what's tracking it. Probably not very useful. Ciencia Al Poder (talk) 09:21, 4 April 2019 (UTC)

Capital Letters displayName

Hi Support Desk,


I have LDAP Extension working and use the $wgLDAPSearchAttributes = array('domain' => 'displayName',); and it works fine logging in with authentication to AD.

But the username becomes in the format Big small instead of Big Big.


Is it possible to set via a hook or somewhere so the last name also is a capital letter?


Regards,

Martin 212.247.15.114 (talk) 08:46, 4 April 2019 (UTC)

Error after MediaWiki update

Hello. I updated the MediaWiki version to 1.32.0. Everything seemed to work well at first, but when you search for documents that do not exist, you get a "Wikimedia\Rdbms\DBQueryError" error.

I checked the error code and it says:

Function: SearchMySQL::searchInternal

Error: 1191 Can't find FULLTEXT index matching the column list (localhost)

How can I solve this? (Note: I ran update.php.) 51.77.152.216 (talk) 10:34, 4 April 2019 (UTC)

Do Project:Support desk/Flow/2017/09#h-Error_when_searching_for_not_existing_articles-2017-09-26T20:42:00.000Z or Project:Support desk/Flow/2017/12#h-DBQueryError_when_use_search_function-2017-12-31T07:50:00.000Z help? Malyacko (talk) 11:28, 4 April 2019 (UTC)
When I run rebuildtextindex.php, the following error appears:
Error: 1091 Can't DROP 'si_text'; check that column/key exists (localhost)
When I type SHOW CREATE TABLE searchindex; in mysql, the following error appears:
ERROR 1146 (42S02): table 'wikiname.searchindex' does not exist 51.77.152.216 (talk) 11:48, 4 April 2019 (UTC)
I am using 10.1.38-MariaDB 51.77.152.216 (talk) 13:17, 4 April 2019 (UTC)
I solved the problem. Thank you for your help. 51.77.152.216 (talk) 15:22, 4 April 2019 (UTC)
I guess your search_index table was somehow broken. I would try adding the missing columns/indeces manually. 2001:16B8:10D6:4200:D508:5620:1127:16E8 (talk) 17:10, 4 April 2019 (UTC)

Job Queue Broken

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 noticed my wiki wasn't running jobs (2000 at the moment), so manually tried running runJobs.php and get the following:

[481947e9f5c761909198e8df] [no req]   InvalidArgumentException from line 538 of /var/www/html/w/includes/libs/rdbms/database/Database.php: Wikimedia\Rdbms\Database::getClass no viable database extension found for type 'mysql'

Backtrace:

#0 /var/www/html/w/includes/libs/rdbms/database/Database.php(427): Wikimedia\Rdbms\Database::getClass(string, NULL)

#1 /var/www/html/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1152): Wikimedia\Rdbms\Database::factory(string, array)

#2 /var/www/html/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(942): Wikimedia\Rdbms\LoadBalancer->reallyOpenConnection(array, Wikimedia\Rdbms\DatabaseDomain)

#3 /var/www/html/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(890): Wikimedia\Rdbms\LoadBalancer->openLocalConnection(integer, integer)

#4 /var/www/html/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(766): Wikimedia\Rdbms\LoadBalancer->openConnection(integer, boolean, integer)

#5 /var/www/html/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1735): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)

#6 /var/www/html/w/includes/libs/objectcache/WANObjectCache.php(1277): Wikimedia\Rdbms\LoadBalancer->Wikimedia\Rdbms\{closure}(boolean, integer, array, NULL)

#7 /var/www/html/w/includes/libs/objectcache/WANObjectCache.php(1150): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)

#8 /var/www/html/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1746): WANObjectCache->getWithSetCallback(string, integer, Closure, array)

#9 /var/www/html/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1713): Wikimedia\Rdbms\LoadBalancer->masterRunningReadOnly(boolean, NULL)

#10 /var/www/html/w/includes/ReadOnlyMode.php(45): Wikimedia\Rdbms\LoadBalancer->getReadOnlyReason()

#11 /var/www/html/w/includes/ReadOnlyMode.php(29): ReadOnlyMode->getReason()

#12 /var/www/html/w/includes/GlobalFunctions.php(1239): ReadOnlyMode->isReadOnly()

#13 /var/www/html/w/includes/jobqueue/JobRunner.php(123): wfReadOnly()

#14 /var/www/html/w/maintenance/runJobs.php(89): JobRunner->run(array)

#15 /var/www/html/w/maintenance/doMaintenance.php(94): RunJobs->execute()

#16 /var/www/html/w/maintenance/runJobs.php(122): require_once(string)

#17 {main}


Can anyone help? I'm stuck. I most recently installed Upload Wizard extension, and initially tried to run runJobs.php where it told me I needed to install xml and mbstring for php 7.3, but the wiki is running 7.2, and both are installed. So I installed mbstring and xml for PHP 7.3, and now get the above error...

I've disabled php 7.3 using dismod, and ensured 7.2 is enabled, but still having the issue Brickscrap (talk) 11:28, 4 April 2019 (UTC)

This may be caused by the php.ini for php-cli does not have the mysql extension installed, while the php-ini used by apache does it have enabled. Review the php.ini and enable the missing modules. Ciencia Al Poder (talk) 13:07, 4 April 2019 (UTC)
Here's what I did on Ubuntu. Type php -v to find out your PHP version; then if it's, say, PHP 7.3, do apt install php7.3-mysql. 2601:5CD:C200:9BE0:5C5F:C11:9C4B:F263 (talk) 01:28, 17 December 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to access pages from old Wiki

Hi, not sure if this is the best place to ask this but I've had a look on the FAQs etc here and online but cannot really answer my query. Basically, I have been given a Zip file of all the files from the web server that comprised a wiki in MediaWiki format that I was involved in editing as the publisher does not want to continue publishing it. Ideally, I just want to have a local copy on my PC that I can access as a source of reference for the new Wordpress site I'm setting up with some of the content but I am not sure how to access the Wiki, there is no obvious index.htm and trying to open index.php just comes up with an error about it not being installed. Do I have to install it on my Web server in order to access the contents or is there any way I can view the pages in the database locally? I don't need to edit anything so a read-only function is fine. GaryReggae (talk) 13:29, 4 April 2019 (UTC)

Typically the pages of the wiki are in the database, not the filesystem. Unless your zip file includes a database dump, the page contents are not included. Bawolff (talk) 16:39, 4 April 2019 (UTC)
First, the Zip file you have, does it also include a backup of the database of the MediaWiki website? AhmadF.Cheema (talk) 16:42, 4 April 2019 (UTC)
Thanks, I assume the zip file includes the database. I have an older backup of the Wiki that includes the pages but I created that one by using some software that grabbed the pages. I'm hoping to get the pages from this newer zip file so I can compare it with the older one. GaryReggae (talk) 09:42, 12 April 2019 (UTC)

MainCategories in MSCatSelect

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 can't seem add more categories to this array. I'd like to add about 5 more. Any ideas???

$wgMSCS_MainCategories = array( 'Top Level WCS', 'About', 'Does', 'Frequency', 'Is', 'Issue', 'Makes', 'Sells', 'Serves');

Thanks,

Stan S pokras (talk) 22:40, 4 April 2019 (UTC)

Like in this example?
$wgMSCS_MainCategories = array( 'Top Level WCS', 'About', 'Does', 'Frequency', 'Is', 'Issue', 'Makes', 'Sells', 'Serves',
'Additional category 1', 'Additional category 2', 'Additional category 3', 'Additional category 4', 'Additional category 5'); Ciencia Al Poder (talk) 09:20, 5 April 2019 (UTC)
Thank you for working this out. I believe that I discovered my problem. It had to do with typing in the wrong kind of apostrophe. When I realized that I needed to copy and paste rather than type to add my additional items to the array, it started to work. But I have another issue with this extension. It doesn't permit the existence of more than 10 categories per page... My pages that have more than ten were being cut down. Have you experienced this? I'm talking about the number of "Assigned Categories" list at the bottom of the "Edit Source" tool. This was really obvious when I tried adding a category to a page that had 60 existing categories and discovered a vastly trimmed page. Otherwise I really liked MsCatSelect. But it's a real bad thing for my Wiki. I had to disable it. S pokras (talk) 02:51, 19 April 2019 (UTC)
Yes, the extension is only displaying 10 categories on a page because of api pagination. I've filed a bug about that: T221442
An alternative for you may be the HotCat Gadget. Ciencia Al Poder (talk) 09:24, 19 April 2019 (UTC)
Actually, I've found that the Visual Editor offers sufficient features, including type-ahead, when adding a category. I'm happy with it that way.
Thanks,
Stan S pokras (talk) 00:04, 5 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

makefile missing in Math Extension installation step.

Referring to this exact step:

cd $IP/extensions/Math/

<nowiki>#</nowiki> install the dependencies listed in the Math subfolder README file e.g.:

sudo apt-get install build-essential ocaml

make

When I reach the step of make, nothing happens because there is no makefile.

root@wiki:/var/www/html/wiki/extensions/Math# make

make: *** No targets specified and no makefile found.  Stop.

root@wiki:/var/www/html/wiki/extensions/Math# sudo apt-get install build-essential ocaml

Reading package lists... Done

Building dependency tree       

Reading state information... Done

build-essential is already the newest version (12.4ubuntu1).

ocaml is already the newest version (4.05.0-10ubuntu1).

0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.

root@wiki:/var/www/html/wiki/extensions/Math# make

make: *** No targets specified and no makefile found.  Stop.

Should I just ignore this problem?  Should this make step even be in the wiki?

The details: Ubuntu 18.04 Server, nginx1.14.0, php7.2, MySQL15.1, Latest MediaWiki installed manually, Latest Math extension installed manually 170.199.250.52 (talk) 04:13, 5 April 2019 (UTC)

There's no Makefile on that folder. Looks like the rendering engine of Math no longer requires to run make. Those instructions seem to be outdated. Try to skip the "make" command and see if it works... I've marked that section as outdated Ciencia Al Poder (talk) 09:19, 5 April 2019 (UTC)
Yes, the instructions are out of date. I'm at a point of indecision of how to proceed.
There are these choices:
Server-side rendering with Mathoid,
Server-side rendering with LaTeXML, and
Server-side rendering with LaTeX.
The first one says it will be used on future Wikipedia articles but it appears this was written in the v1.22-v1.23 era and not certain if that stance still holds. The second two are attractive in that I have 20 years of TeX experience and already know how to form any equation that is dreamed up, not so with Mathoid (of which I can't find as much as a demo for). But if it's supported going forward by Wikipedia, I suspect that is where continued support and active development will be, and I'll follow that line regardless of experience.
This is being installed on a VM, so I think I will make a backup of the current state and try all three approaches and see how they compare and see which one has ugly/aesthetic outputs.
Any, proceeding forward from the 'make' step towards Mathoid. 170.199.250.52 (talk) 15:53, 5 April 2019 (UTC)
I did the Debian Stretch approach as the Ubuntu steps are unmaintained and thus unsupported. I have enough experience between the two, I can adapt to fit. The symlink for node as done by nodejs-legacy has already been done by default in Ubuntu, so that is allowed to be omitted.
I followed the steps. They don't work.
Manual:Mathoid#NPM package (Debian Stretch)
# systemctl status mathoid
● mathoid.service - Mediawiki Mathoid Service
   Loaded: loaded (/etc/systemd/system/mathoid.service; enabled; vendor preset:
   Active: failed (Result: exit-code) since Fri 2019-04-05 16:26:04 UTC; 6s ago
     Docs: https://www.mediawiki.org/wiki/Mathoid
  Process: 6323 ExecStart=/usr/bin/node /usr/local/lib/mathoid/server.js (code=e
Main PID: 6323 (code=exited, status=1/FAILURE)
Apr 05 16:26:04 wiki node[6323]:     at Module.require (module.js:596:17)
Apr 05 16:26:04 wiki node[6323]:     at require (internal/module.js:11:18)
Apr 05 16:26:04 wiki node[6323]:     at Object.<anonymous> (/usr/local/lib/matho
Apr 05 16:26:04 wiki node[6323]:     at Module._compile (module.js:652:30)
Apr 05 16:26:04 wiki node[6323]:     at Object.Module._extensions..js (module.js
Apr 05 16:26:04 wiki node[6323]:     at Module.load (module.js:565:32)
Apr 05 16:26:04 wiki node[6323]:     at tryModuleLoad (module.js:505:12)
Apr 05 16:26:04 wiki node[6323]:     at Function.Module._load (module.js:497:3)
Apr 05 16:26:04 wiki systemd[1]: mathoid.service: Main process exited, code=exit
Apr 05 16:26:04 wiki systemd[1]: mathoid.service: Failed with result 'exit-code'
On this step, I got a strange and useless kind of error. You'd think we'd be beyond the days of "1/FAILURE" in this era of machines with gigabytes of RAM for detailed messages... I am somebody whom hasn't done anything with Javascript since very briefly in the late 90s? What does this mean? 170.199.250.52 (talk) 16:37, 5 April 2019 (UTC)
Okay - Those instructions are useless. That part of the wiki is obsolete and incorrect. I installed Debian 9, just to try the Mathoid installation steps there since the Ubuntu installation is unmaintained. I got the same error. The documentation is wrong. 170.199.250.52 (talk) 19:54, 5 April 2019 (UTC)
How did Wikipedia do this? I really don't feeling like editing Wikipedia pages as a means of generating images with equations that I have to download and upload in order to make my wiki have the appearance of a working Math plugin. Seriously? Is Wikipedia the only working installation of the Math plugin? What the hell... I thought wikis were supposed to help with documentation. I just simply don't get it. I have no words... 170.199.250.52 (talk) 21:23, 5 April 2019 (UTC)
There's a "npm install" instruction missing after "cd mathoid". I've added it Ciencia Al Poder (talk) 13:19, 6 April 2019 (UTC)
npm package is not available for Debian Stretch. Those steps do not work for Debian 9. Deleting that line from that wiki does not change that fact. It doesn't work - that is true. There is no npm package. The sudo apt-get install line 5 lines above WILL result in a failure. 170.199.250.52 (talk) 19:08, 6 April 2019 (UTC)
There's a npm package, just not in the usual debian repositories. You need to add the repository for nodejs on your system. The installation instructions omit that part about nodejs
I issued this 1 year ago when I installed it on my server, and it worked perfectly:
curl -s "https://deb.nodesource.com/gpgkey/nodesource.gpg.key" | sudo apt-key add -
echo "deb https://deb.nodesource.com/node_6.x stretch main" | sudo tee /etc/apt/sources.list.d/nodesource.list Ciencia Al Poder (talk) 10:12, 7 April 2019 (UTC)

the search box on https://stt.wiki is throwing errors every time.

I don't know who to report this to....

the search box on https://stt.wiki is throwing errors every time.

The front page comes up fine but searching throws an error every time, the error code changes each time. FredNapier (talk) 11:18, 5 April 2019 (UTC)

If something is broken on stt.wiki then you need to contact the maintainers of stt.wiki. stt.wiki might use MediaWiki like thousands of other web sites, but the folks on mediawiki.org are not in charge of administering thousands of other web sites. Malyacko (talk) 12:20, 5 April 2019 (UTC)
Just in case someone else ends up looking here, Timeline's wiki tech support is via the About at the bottom of the main page: https://stt.wiki/wiki/Star_Trek_Timelines:About FredNapier (talk) 14:57, 5 April 2019 (UTC)

JS config name of the leave page with changes warning

What's the config name of the pop up that warns you on leaving a page with unsaved changes?

I want to disable it for a certain page in my user js. 78.94.95.51 (talk) 11:26, 5 April 2019 (UTC)

I'm afraid you need to ask in a forum of your web browser. What makes you think it is a MediaWiki dialog? Malyacko (talk) 12:19, 5 April 2019 (UTC)

Database error

[1fc27d5c7daae9a62ade5f6c] /index.php?title=Main_Page&action=edit Wikimedia\Rdbms\DBQueryError from line 1496 of /var/www/cisa2kwiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT ipb_id,ipb_address,ipb_timestamp,ipb_auto,ipb_anon_only,ipb_create_account,ipb_enable_autoblock,ipb_expiry,ipb_deleted,ipb_block_email,ipb_allow_usertalk,ipb_parent_block_id,ipb_reason AS `ipb_reason_text`,NULL AS `ipb_reason_data`,NULL AS `ipb_reason_cid`,ipb_by,ipb_by_text,NULL AS `ipb_by_actor` FROM `ipblocks` WHERE ipb_address IN ('59.95.57.22','59.95.57.22') OR ((ipb_range_start LIKE '3B5F%' ESCAPE '`' ) AND (ipb_range_start <= '3B5F3916') AND (ipb_range_end >= '3B5F3916'))

Function: Block::newLoad

Error: 1054 Unknown column 'ipb_reason' in 'field list' (localhost)

Backtrace:

#0 /var/www/cisa2kwiki/includes/libs/rdbms/database/Database.php(1466): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)

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

#2 /var/www/cisa2kwiki/includes/libs/rdbms/database/Database.php(1693): Wikimedia\Rdbms\Database->query(string, string)

#3 /var/www/cisa2kwiki/includes/Block.php(349): Wikimedia\Rdbms\Database->select(array, array, string, string, array, array)

#4 /var/www/cisa2kwiki/includes/Block.php(1196): Block->newLoad(string)

#5 /var/www/cisa2kwiki/includes/user/User.php(1865): Block::newFromTarget(User, string, boolean)

#6 /var/www/cisa2kwiki/includes/user/User.php(2292): User->getBlockedStatus(boolean)

#7 /var/www/cisa2kwiki/includes/user/User.php(2282): User->getBlock(boolean)

#8 /var/www/cisa2kwiki/includes/user/User.php(2306): User->isBlocked(boolean)

#9 /var/www/cisa2kwiki/includes/Title.php(2692): User->isBlockedFrom(Title, boolean)

#10 /var/www/cisa2kwiki/includes/Title.php(2864): Title->checkUserBlock(string, User, array, string, boolean)

#11 /var/www/cisa2kwiki/includes/Title.php(2205): Title->getUserPermissionsErrorsInternal(string, User, string)

#12 /var/www/cisa2kwiki/includes/EditPage.php(711): Title->getUserPermissionsErrors(string, User, string)

#13 /var/www/cisa2kwiki/includes/EditPage.php(618): EditPage->getEditPermissionErrors(string)

#14 /var/www/cisa2kwiki/includes/actions/EditAction.php(60): EditPage->edit()

#15 /var/www/cisa2kwiki/includes/MediaWiki.php(501): EditAction->show()

#16 /var/www/cisa2kwiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#17 /var/www/cisa2kwiki/includes/MediaWiki.php(860): MediaWiki->performRequest()

#18 /var/www/cisa2kwiki/includes/MediaWiki.php(517): MediaWiki->main()

#19 /var/www/cisa2kwiki/index.php(42): MediaWiki->run()

#20 {main} 59.95.57.117 (talk) 11:49, 5 April 2019 (UTC)

What happened before? Did this happen out of the blue? Did you upgrade something? Which MediaWiki version is this about? Malyacko (talk) 12:18, 5 April 2019 (UTC)
Thank for reply , please check the live http://cisa2k.org/ , I have just installed MediaWiki with proper process as instructed in manual.
This is Mediawiki 1.32 lates version installed by this command:
git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git
composer install --no-dev.
Install database set all privileges :
GRANT ALL PRIVILEGES ON wikidb.* TO 'wikiuser'@'localhost' IDENTIFIED BY 'password';
What happened before? The skin folder was not there when I install via core, I have installed manually vector skin . 59.95.57.117 (talk) 13:38, 5 April 2019 (UTC)
What version is this? ipb_reason was removed in 0abb9338f8, which will be in MediaWiki 1.33, however it has not been removed in any released version as of yet. If you are using MW 1.32 the field should have been created during install Bawolff (talk) 16:12, 5 April 2019 (UTC)
First I have cloning the repository via Git , and install and shown that it was MediaWiki 1.33 beta, then I have installed the version is Mediawiki 1.32, via this commantd
wget https://releases.wikimedia.org/mediawiki/1.32/mediawiki-1.32.0.tar.gz Jayantanth (talk) 17:16, 5 April 2019 (UTC)
And I have update via my your webbrowser to /mw-config/. that is your webbrowser to http://cisa2k.org/mw-config/. Jayantanth (talk) 17:25, 5 April 2019 (UTC)
So yeah, delete everything and re-install. MediaWiki installer is per version. Update.php supports updating the version but not down-grading. You need to run the installer from the same version as the version of mediawiki you are using. Bawolff (talk) 17:33, 5 April 2019 (UTC)
Thanks for reply but after remove all previous installation , re-install the same and found below error
[88eefeb0736fca9f8e324691] /index.php/Special:RecentChangesLinked/Main_Page Wikimedia\Rdbms\DBQueryError from line 1496 of /var/www/cisa2kwiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: (SELECT rc_id,rc_timestamp,rc_namespace,rc_title,rc_minor,rc_bot,rc_new,rc_cur_id,rc_this_oldid,rc_last_oldid,rc_type,rc_source,rc_patrolled,rc_ip,rc_old_len,rc_new_len,rc_deleted,rc_logid,rc_log_type,rc_log_action,rc_params,rc_comment AS `rc_comment_text`,NULL AS `rc_comment_data`,NULL AS `rc_comment_cid`,rc_user,rc_user_text,NULL AS `rc_actor`,page_latest,(SELECT GROUP_CONCAT(ct_tag SEPARATOR ',') FROM `change_tag` WHERE ct_rc_id=rc_id ) AS `ts_tags` FROM `recentchanges` LEFT JOIN `page` ON ((rc_cur_id=page_id)) INNER JOIN `pagelinks` ON ((rc_namespace = pl_namespace) AND (rc_title = pl_title)) WHERE rc_bot = '0' AND (rc_timestamp >= '20190329201542') AND pl_from = '1' ORDER BY rc_timestamp DESC LIMIT 50 ) UNION (SELECT rc_id,rc_timestamp,rc_namespace,rc_title,rc_minor,rc_bot,rc_new,rc_cur_id,rc_this_oldid,rc_last_oldid,rc_type,rc_source,rc_patrolled,rc_ip,rc_old_len,rc_new_len,rc_deleted,rc_logid,rc_log_type,rc_log_action,rc_params,rc_comment AS `rc_comment_text`,NULL AS `rc_comment_data`,NULL AS `rc_comment_cid`,rc_user,rc_user_text,NULL AS `rc_actor`,page_latest,(SELECT GROUP_CONCAT(ct_tag SEPARATOR ',') FROM `change_tag` WHERE ct_rc_id=rc_id ) AS `ts_tags` FROM `recentchanges` LEFT JOIN `page` ON ((rc_cur_id=page_id)) INNER JOIN `templatelinks` ON ((rc_namespace = tl_namespace) AND (rc_title = tl_title)) WHERE rc_bot = '0' AND (rc_timestamp >= '20190329201542') AND tl_from = '1' ORDER BY rc_timestamp DESC LIMIT 50 ) UNION (SELECT rc_id,rc_timestamp,rc_namespace,rc_title,rc_minor,rc_bot,rc_new,rc_cur_id,rc_this_oldid,rc_last_oldid,rc_type,rc_source,rc_patrolled,rc_ip,rc_old_len,rc_new_len,rc_deleted,rc_logid,rc_log_type,rc_log_action,rc_params,rc_comment AS `rc_comment_text`,NULL AS `rc_comment_data`,NULL AS `rc_comment_cid`,rc_user,rc_user_text,NULL AS `rc_actor`,page_latest,(SELECT GROUP_CONCAT(ct_tag SEPARATOR ',') FROM `change_tag` WHERE ct_rc_id=rc_id ) AS `ts_tags` FROM `recentchanges` LEFT JOIN `page` ON ((rc_cur_id=page_id)) INNER JOIN `imagelinks` ON ((rc_title = il_to)) WHERE rc_bot = '0' AND (rc_timestamp >= '20190329201542') AND il_from = '1' AND rc_namespace = '6' ORDER BY rc_timestamp DESC LIMIT 50 ) ORDER BY rc_timestamp DESC LIMIT 50
Function: SpecialRecentChangesLinked::doMainQuery
Error: 1054 Unknown column 'rc_comment' in 'field list' (localhost)
Backtrace:
  1. 0 /var/www/cisa2kwiki/includes/libs/rdbms/database/Database.php(1466): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)
  2. 1 /var/www/cisa2kwiki/includes/libs/rdbms/database/Database.php(1226): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
  3. 2 /var/www/cisa2kwiki/includes/specials/SpecialRecentchangeslinked.php(231): Wikimedia\Rdbms\Database->query(string, string)
  4. 3 /var/www/cisa2kwiki/includes/specialpage/ChangesListSpecialPage.php(934): SpecialRecentChangesLinked->doMainQuery(array, array, array, array, array, FormOptions)
  5. 4 /var/www/cisa2kwiki/includes/specialpage/ChangesListSpecialPage.php(629): ChangesListSpecialPage->getRows()
  6. 5 /var/www/cisa2kwiki/includes/specials/SpecialRecentchanges.php(167): ChangesListSpecialPage->execute(string)
  7. 6 /var/www/cisa2kwiki/includes/specialpage/SpecialPage.php(569): SpecialRecentChanges->execute(string)
  8. 7 /var/www/cisa2kwiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(string)
  9. 8 /var/www/cisa2kwiki/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
  10. 9 /var/www/cisa2kwiki/includes/MediaWiki.php(860): MediaWiki->performRequest()
  11. 10 /var/www/cisa2kwiki/includes/MediaWiki.php(517): MediaWiki->main()
  12. 11 /var/www/cisa2kwiki/index.php(42): MediaWiki->run()
  13. 12 {main} Jayantanth (talk) 20:18, 5 April 2019 (UTC)
So did you run your application's database schema updater after upgrading? Which exact steps did you perform, step by step, without any room left for interpretation? Malyacko (talk) 16:01, 6 April 2019 (UTC)

Probs while installing

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.


There occurred an error while trying to install MediWiki 1.32.0 (clean install). Can someone help me please?

[3d49d8a67b6d84d29a9815b2] /mw-config/index.php?page=Install Wikimedia\Rdbms\DBQueryError from line 1496 of /html/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: CREATE TABLE `MWuser` (

user_id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,

user_name varchar(255) binary NOT NULL default '',

user_real_name varchar(255) binary NOT NULL default '',

user_password tinyblob NOT NULL,

user_newpassword tinyblob NOT NULL,

user_newpass_time binary(14),

user_email tinytext NOT NULL,

user_touched binary(14) NOT NULL default '',

user_token binary(32) NOT NULL default '',

user_email_authenticated binary(14),

user_email_token binary(32),

user_email_token_expires binary(14),

user_registration binary(14),

user_editcount int,

user_password_expires varbinary(14) DEFAULT NULL

) ENGINE=InnoDB, DEFAULT CHARSET=binary

Function: Wikimedia\Rdbms\Database::sourceFile( /html/mediawiki/maintenance/tables.sql )

Error: 1142 CREATE command denied to user 'XXXXX'@'xxx.xx.xxx.xxx' for table 'MWuser' (db1457.XXXXX.com)

Backtrace:

#0 /html/mediawiki/includes/libs/rdbms/database/Database.php(1466): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)

#1 /html/mediawiki/includes/libs/rdbms/database/Database.php(1226): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /html/mediawiki/includes/libs/rdbms/database/Database.php(4352): Wikimedia\Rdbms\Database->query(string, string)

#3 /html/mediawiki/includes/libs/rdbms/database/Database.php(4287): Wikimedia\Rdbms\Database->sourceStream(resource (closed), NULL, NULL, string, NULL)

#4 /html/mediawiki/includes/installer/DatabaseInstaller.php(225): Wikimedia\Rdbms\Database->sourceFile(string)

#5 /html/mediawiki/includes/installer/DatabaseInstaller.php(248): DatabaseInstaller->stepApplySourceFile(string, string, boolean)

#6 /html/mediawiki/includes/installer/Installer.php(1601): DatabaseInstaller->createTables(MysqlInstaller)

#7 /html/mediawiki/includes/installer/WebInstallerInstall.php(44): Installer->performInstallation(array, array)

#8 /html/mediawiki/includes/installer/WebInstaller.php(272): WebInstallerInstall->execute()

#9 /html/mediawiki/mw-config/index.php(79): WebInstaller->execute(array)

#10 /html/mediawiki/mw-config/index.php(38): wfInstallerMain()

#11 {main} Imprimatur (talk) 12:32, 5 April 2019 (UTC)

Helped myself! :-)
There was a prob with privileges from the database user. Imprimatur (talk) 12:48, 5 April 2019 (UTC)
So has the problem been solved? 94rain Talk 13:29, 5 April 2019 (UTC)
Yes, the problem is solved! :-) Imprimatur (talk) 14:02, 5 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Permissoes de Grupo

Bom dia.


Gostaria de separar minha wiki em Grupos. Ex.: Tem um grupo que nao poder ler nem ter acesso em determinada pagina.


Não estou conseguindo achar como fazer isso. Alguém sabe? Gustavoecp (talk) 13:16, 5 April 2019 (UTC)

Need to change LocalSettings.php.
$wgGroupPermissions['*']['read'] = false;
See Manual:Preventing_access 94rain Talk 13:27, 5 April 2019 (UTC)

Edit toolbar

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


In my MediaWiki I'm missing the edit toolbar. What to do?


Imprimatur (talk) 14:45, 5 April 2019 (UTC)

MediaWiki itself does not have a toolbar in the editor, however if you have WikiEditor extension installed there should be one: Editor. Which version of MediaWiki did you install? Which version of WikiEditor is installed, if it is installed? Malyacko (talk) 14:58, 5 April 2019 (UTC)
Sorry for not providing the version #: 1.32.0
I think that the newest WikiEditor was installed. The problem has been, that I didn't add 'wfLoadExtension( 'WikiEditor' );' to the 'LocalSettings.php'. 2A02:8070:949E:3400:C31:ABEA:CFED:7904 (talk) 15:22, 5 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is it okay to use MediaWiki:Common.css?

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:Common.css loads data for every page on Wikipedia, so opening and loading a page might get quite slow. Is that true? Is it safe to include CSS rules that applies for several pages, even though not every page will use them? Also, does caching work for the CSS rules in that page? How long for? CaiusSPQR (talk) 15:50, 5 April 2019 (UTC)

It's "OK" but it's not great. In order:
  • Weight — It does add page weight to all of your wiki, yes (except Special:Preferences, Special:UserLogin, and other security-sensitive pages)., so it will slow down your wiki a bit, but it's not likely to be significant unless you massively abuse it.
  • Applicability — If you have content on a few but not all pages that needs wiki-managed styling, the TemplateStyles extension may well fit your needs and avoids weighing down other pages.
  • Cacheing — This depends on your configuration. The call to MediaWiki:Common.css is hard-coded into the HTML of pages, but the contents of it are cached separately (as part of your ResourceLoader caching strategy), so for cached page renders (served to logged out users), it will depend. For Wikimedia production, the HTML is cached for 30 days but the content of the CSS is cached for 5 minutes.
Hope this helps! Jdforrester (WMF) (talk) 16:21, 5 April 2019 (UTC)
It does help, thanks! I still have a couple of questions, though.
First, how much weight does it add? The CSS rules we're talking about is basic styling (padding, border, etc.) for mboxes (those templates work differently for desktop view and mobile view, and they use modules). Also, is there any way I can check the performance of MediaWiki:Common.css? And how much is too heavy for CSS?
Second, what do you mean by 'That depends on your configuration'? Is it the user's configuration or the wiki's configuration? If the wiki has to configure that, how can I do that? CaiusSPQR (talk) 16:50, 5 April 2019 (UTC)

First, how much weight does it add? The CSS rules we're talking about is basic styling (padding, border, etc.) for mboxes (those templates work differently for desktop view and mobile view, and they use modules). Also, is there any way I can check the performance of MediaWiki:Common.css? And how much is too heavy for CSS?

Well, very roughly CSS gets compressed at 4:1, so every 400 bytes of CSS you write adds 100 bytes of network transfer and 400 bytes of local memory management/processing for every reader, which is about the same damage as adding a random invisible icon on every page for every reader.
Ideally you would add none, but many Wikimedia wikis already have loads of content in Common.css, so every byte you add is small in percentage terms. MediaWiki doesn't currently do a good job of warning users about the cost of actions they make when editing, either for articles (for which the Performance team are building a tool to warn editors), or for Common.css.

Second, what do you mean by 'That depends on your configuration'? Is it the user's configuration or the wiki's configuration? If the wiki has to configure that, how can I do that?

I meant that it depends on the configuration of the MediaWiki installation. For a Wikimedia wiki, that's not available for variation on a per-wiki basis; it's managed centrally for performance, sorry.

Jdforrester (WMF) (talk) 18:09, 5 April 2019 (UTC)
Does that mean it is best to use inline styling? The size of the code I'm talking about is 9.50&nbsp;KB (about 9.85 if counting whitespace). I have no idea how big that is. So, does that make a difference? Does that make every page a noticeably heavier if I use Common.css? CaiusSPQR (talk) 18:37, 5 April 2019 (UTC)
Yes, that is big, and yes, that will be noticeable for many users. I would strongly encourage you to use TemplateStyles, which is available on all Wikimedia wikis. See Help:TemplateStyles. Jdforrester (WMF) (talk) 18:59, 5 April 2019 (UTC)
Okay, thanks a lot! CaiusSPQR (talk) 19:02, 5 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I will often need two related two wiki pages with mutual links. Manual editing of both two pages is inconvenient and error-prone (a link may be mistakenly made just in one direction).

How to do this more automatically to make links mutual?

Using "What links here" is not what I need, because it is located in the sidebar and as a link, not noticeably on the page, as I need. VictorPorton (talk) 01:17, 6 April 2019 (UTC)

Some extension for mutual links? VictorPorton (talk) 01:22, 6 April 2019 (UTC)
You can try using Navigation templates
For example, create a template like this
en:Template:Policy_list
.
And then add {{Policy_list}} to those pages.
All you need to do is to change
en:Template:Template:Policy_list. 94rain Talk 03:36, 6 April 2019 (UTC)
You could transclude the "What links here" Special page. Jonathan3 (talk) 21:53, 6 April 2019 (UTC)

I've looked long and hard for this, my best solution is to use the advanced DPL query


|{{#dpl:
| debug=1
| namespace=
| notlinksfrom={{PAGENAME}}
| linksto={{PAGENAME}}
| reset=links
| mode=inline
| ordermethod=title
| redirects=exclude
| suppresserrors=true
}}
|}

Which shows unbalanced links. It doesn't handle incoming pages coming through a redirect though. Ie Victor Hugo is French, French redirects to France Vicarage (talk) 14:46, 11 May 2020 (UTC)

Here's what I'm using:
{{#dpl:
| linksto = {{PAGENAME}} 
| notnamespace=Category
| nottitlematch = ............ (I have a few of these lines)
| notnamespace = ............ (likewise)
| noresultsheader=
*No pages link to this page
| eliminate = all 
}}
Jonathan3 (talk) 23:12, 11 May 2020 (UTC)

close my hamsterlive 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.


I cant find any where how to close my account, anyone?


2600:1700:9AE0:5020:A851:D4B7:F109:FDF6 (talk) 10:55, 6 April 2019 (UTC)

Wrong support forum.😕 AhmadF.Cheema (talk) 11:39, 6 April 2019 (UTC)
Do you want to delete your account?
It is not allowed. But you may refer to meta:Right to vanish. 94rain Talk 12:06, 6 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error when uploading the site files to my host

Hi, I don't understand why , when I decided to put the files of mediawiki I had on wamp server who were working perfectly, I got an error , so I edit my localsettings.php to add

$wgShowExceptionDetails = true;

$wgShowDBErrorBacktrace = true;

lines , and then when I open up the site , I have this error :https://prnt.sc/n8ctl6

Maybe it cames from when they ask me on filezilla that there are two same files and I clicked everytime on "replace all" , thx. 2A01:CB08:5DF:BE00:8555:D358:31CA:B8EF (talk) 15:37, 6 April 2019 (UTC)

It's unclear what you are doing and what you did before. When was it "working perfectly"? In any case the error says that MediaWiki cannot connect to your database, so check your database settings... Malyacko (talk) 15:59, 6 April 2019 (UTC)

Can't install AntiSpoof

We've been trying to install that extension on a wiki, but we have been hit with an error which seems to be due to WMF-dependent extensions or libraries: [9734fc9b17ece108026ceeeb] /wiki/index.php?title=Special:CreateAccount&returnto=Main+Page Error from line 148 of ...\wiki\extensions\AntiSpoof\includes\AntiSpoof.php: Class 'Wikimedia\Equivset\Equivset' not found Backtrace: [back trace]

The admin does not recall using Composer at all, which is something that was suggested while trying to fix the problem.
Help on this would be appreciated, thanks. Leaderboard (talk) 09:56, 7 April 2019 (UTC)

Is the extension being installed through Git? If so, then composer install/update is necessary. If it wasn't done before, what can't composer be simply installed/updated now?
Also check if the MediaWiki and extension versions match. AhmadF.Cheema (talk) 11:31, 7 April 2019 (UTC)
Are you downloading the extension for the same MediaWiki version you're using? Ciencia Al Poder (talk) 13:20, 7 April 2019 (UTC)
@Ciencia Al Poder: Yes, he's told me that he installed the 1.32 version of AntiSpoof, which is the same version as on the wiki.
@AhmadF.Cheema: I think he got the extension from the MediaWiki extension distribution site. Leaderboard (talk) 13:50, 7 April 2019 (UTC)

CSS not loading

Hello , I'm working on a website with 000webhost , and my file structure is like : /public_html/wiki/...

so I installed my wiki , but when I go on the site, transfering the files of mediawiki with file zilla (ftp access),there is an error : It doesn't want to load the css part.

Here is what the developer console shows: https://prnt.sc/n8o22h .

I saw it has a link with the .htaccess file and rewrite function but I don't know how it functions and when I copy past this Manual:Load.php in the file, it changes nothing , hope you'll help me, thanks. 2A01:CB08:5DF:BE00:948E:AEE7:95B9:26E3 (talk) 14:27, 7 April 2019 (UTC)

You're question is a little confusing.
Exactly, which files are you uploading with FileZilla? Did you originally upload the MediaWiki files through FileZilla and then installed the Wiki or did you somehow first install the Wiki and then uploaded some files through FileZilla?
Additionally, the styles not applied error, on which page does it occur? Is it the Main Page of the Wiki? AhmadF.Cheema (talk) 16:09, 7 April 2019 (UTC)
Yep I first upload the mediawiki files through filezilla and then I installed the wiki. And the problem did occur on the mainpage of the wiki 2A01:CB08:5DF:BE00:948E:AEE7:95B9:26E3 (talk) 16:25, 7 April 2019 (UTC)
See Manual:Errors and symptoms#The wiki appears without styles applied and images are missing AKlapper (WMF) (talk) 16:29, 7 April 2019 (UTC)
Yeah I checked but they tell me that its a problem with the .htaccess file whereas I edited it like they said with this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule (api|load)\.php - [L]
...
and It changes nothing 2A01:CB08:5DF:BE00:948E:AEE7:95B9:26E3 (talk) 16:35, 7 April 2019 (UTC)
MediaWiki doesn't work on free hosts like 000webhost that inject ads in JavaScript files and imposes several limitations in the use of PHP functions Ciencia Al Poder (talk) 09:42, 8 April 2019 (UTC)
thank you for answering me ! 2A01:CB08:5DF:BE00:1172:76DE:1B2A:9CE1 (talk) 08:12, 9 April 2019 (UTC)

Admin/Sysop Can't Edit Template Namespace

MediaWiki 1.23.9 PHP 5.6.40 (cgi-fcgi) MySQL 5.6.41-84.1

Attempting to edit a template page, but am getting the following message:

You do not have permission to edit this page, for the following reason: You do not have permission to edit pages in the Template namespace.

The user account being used is a member of Administrators and Bureaucrats. There is no sysop user group listed that users can be added to, but in the user_groups table, the ID in question is a member of sysop.

How do I edit pages in the template namespace, or alternatively, remove the page from that namespace? 97.105.0.2 (talk) 16:47, 7 April 2019 (UTC)

On an unrelated note, 1.23 is ancient unsupported insecure software. Please upgrade to a supported version for your own safety. Malyacko (talk) 21:21, 7 April 2019 (UTC)
See if you have $wgNamespaceProtection set-up in your LocalSettings.php? If so, what is its value? AhmadF.Cheema (talk) 23:34, 7 April 2019 (UTC)

Is there any way to reset LocalSettings.php? or can someone help me fix my 500 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.


I edited what I _thought_ was just un-commenting a setting ($wgShowExceptionDetails = true;), but then instead of giving me more details about the error I was getting, it was returning a 500 error. I think I must have accidentally changed something else in the meantime, because re-commenting that line doesn't bring it back to the state it was in before.

If it's not possible to reset LocalSettings.php, or there's a better way, please let me know! If it helps, here's my LocalSettings.php minus secret info. Teasprout (talk) 18:41, 7 April 2019 (UTC)

turns out I did exactly what I thought, but I found the error! Teasprout (talk) 19:42, 7 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upload file : underscore are replaced by space

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


Hi,

I'm working on Mediawiki 1.30.1. When I upload a file named (for ex) my_file.png, Mediawiki change it with my file.png.

I didn't find a issu on the internet for this problem. Can you help ?

Thanks

Xavier


37.71.18.153 (talk) 18:43, 7 April 2019 (UTC)

I think that's just for the page title e.g. "File:my file.png" - the URL will contain e.g. "my_file.png". Jonathan3 (talk) 21:08, 7 April 2019 (UTC)
Ok, that's true, thanks. But the wysiwyg replace the _ by space when I use it to import the image. 37.71.18.153 (talk) 07:23, 8 April 2019 (UTC)
Does the space/underscore matter? For MediaWiki, both are equivalent on page names. It would only matter on the URL of the file. Ciencia Al Poder (talk) 09:35, 8 April 2019 (UTC)
Have to try. I have an other problem, when I insert an image, with the good name, it says : File not found.
Do you know the parameters to set in the localsetting file ? I didn't find :( 37.71.18.153 (talk) 07:11, 9 April 2019 (UTC)
I suppose he don't find the good folder, but I don't know where to configure it. And for each file there is a subfolder, I don't know how mediawiki does to find the good subfolder 37.71.18.153 (talk) 07:12, 9 April 2019 (UTC)
MediaWiki uses a database to track all files uploaded to the wiki. The subfolders are generated based on the image name, and they can be turned off with Manual:$wgHashedUploadDirectory (but don't change this setting if you already have uploaded files, because that would render them broken!) Ciencia Al Poder (talk) 09:25, 9 April 2019 (UTC)
I don't have many files, I just have two.
My parameter actually is like this : $wgHashedUploadDirectory = true;
I import correctly the file, and I have ERR_FILE_NOT_FOUND when try to display it. Even if I turn off this parameter. 37.71.18.153 (talk) 13:30, 9 April 2019 (UTC)
Ok, Solved ! The problem was linked to this parameter : $wgUrlProtocols
I used 'file:' as parameter to open folder with link, but that broke the image display. So I add the name of the server : 'file://<server_name>'.
Thanks for you help anyway. 37.71.18.153 (talk) 07:38, 10 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Javascript when debug=false not processing

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.


As discussed in Manual:Errors and symptoms#Missing edit toolbar, JavaScript not working, client producing "Uncaught SyntaxError: Unexpected token ;" in F12 output for all pages. Tested on both Chrome for Windows 10 and Edge. Tested both logged in and logged out. Problem does not occur when URL includes "&debug=true" to try and diagnose (JavaScript minimizer error?).

Disabled many extensions and got resource loader javascript file down to: http://localhost/RTWWiki/load.php?debug=false&lang=en&modules=jquery%2Coojs%2Coojs-ui-core%2Csite%7Cjquery.accessKeyLabel%2CcheckboxShiftClick%2Cclient%2Ccookie%2CgetAttrs%2ChighlightText%2Csuggestions%2CtabIndex%2Cthrottle-debounce%7Cmediawiki.RegExp%2CString%2CTitle%2Capi%2Cbase%2Ccldr%2Ccookie%2Cdebug%2CjqueryMsg%2Clanguage%2Cnotify%2CsearchSuggest%2Cstorage%2Ctoc%2Cuser%2Cutil%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cmediawiki.page.watch.ajax%7Coojs-ui-core.styles%7Coojs-ui.styles.icons-alerts%2Cicons-content%2Cicons-interactions%2Cindicators%2Ctextures%7Cskins.vector.js%7Cuser.defaults&skin=vector&version=0bnon32 (which still showed error).

Product Version
MediaWiki 1.32.0
PHP 7.3.1 (apache2handler)
MySQL 8.0.13
ICU 63.1
Lua 5.1.4

Nothing odd in server logs. maintenance/update.php shows everything current.


Any thoughts? Any hints on how to debug when problem doesn't occur in debug mode? Iowajason (talk) 21:33, 7 April 2019 (UTC)

The resources/src/mediawiki.api/* files have code in them that isn't part of MediaWiki. There is a whole commented block var xDebugParam="XDEBUG_SESSION_START"; which is incorrectly disabled, leaving an extra } character.
Next to this, your MediaWiki:Common.js contains a reference to $.client.profile() but using this module requires ensuring the ResourceLoader module jquery.client is loaded using mw.loader.using —TheDJ (Not WMF) (talkcontribs) 08:15, 8 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

latex editing

instead of wiki markup i'd like to edit with latex

with the ability to view pdf output in 'preview' button

with images, if i mention foo.png in latex it automatically loads the image from File:foo.png

is such a feature available? Gryllida 01:42, 8 April 2019 (UTC)

I don't see any relation to MediaWiki in this thread. If you want to edit some text with Latex and export to PDF, use a Latex editor and export your Latex text to PDF? Malyacko (talk) 08:29, 8 April 2019 (UTC)
Malyacko, thanks, but I would like to have collaborative editing of the latex markup, with history of changes and the talk page for discussions Gryllida 23:27, 9 April 2019 (UTC)
Most you can do is using latex inside <math>. Ciencia Al Poder (talk) 09:33, 8 April 2019 (UTC)
Thank you, Ciencia. I guess this can be a good starting point for writing a new extension. Gryllida 23:28, 9 April 2019 (UTC)
I found mediawiki2latex, which partially addresses this goal. I've queried the author about inserting page breaks here. Gryllida 23:28, 9 April 2019 (UTC)

I keep getting material in other languages. i want everything in English

LATELY i GET INFORMATION IN FOREIGN


LANGUAGES. i WANT EVERYTHING IN eNGLISH. 2601:646:8781:8363:4D8F:B643:E922:ABAF (talk) 02:14, 8 April 2019 (UTC)

Which foreign languages do you get? What exactly do you encounter? Please explain in details. 94rain Talk 02:16, 8 April 2019 (UTC)

We ended up with 8 pages that contain "%E2%80%8B" in the URL

We moved some content pages from other resources such as OneNote. Many times pages were created from pasted strings copied from those sources. We ended up with 8 pages that contain "%E2%80%8B" in the URL. I can see the page in the list of pages and it is blue. When I click on it I get taken to the page does not exist dialog and am offered a chance to create it. On a couple cases I did this and ended up with 2 copies of the exact same name, as it appears in the All pages list. But if I click on the one with "%E2%80%8B" in it I get offered the opportunity to create it since it does not exist.

I know the full URL with the Fixed Width Space character included. Is there a way to force that to be deleted. Going to it does not provide the delete option under "More" since the system does not think the page exists.

Product Version
MediaWiki 1.31.0
PHP 7.2.9 (cgi-fcgi)
MySQL 5.7.23-log
ICU 62.1

WikimeSteve (talk) 16:37, 8 April 2019 (UTC)

Apparently that's the left-to-right mark: https://en.wikipedia.org/wiki/Left-to-right_mark
I wonder if you could just edit page_title in the page table: https://www.mediawiki.org/wiki/Manual:Page_table#page_title Jonathan3 (talk) 22:05, 8 April 2019 (UTC)
You can try to run cleanupTitles.php to see if it automatically fixes them. Ciencia Al Poder (talk) 09:28, 9 April 2019 (UTC)
I worked out a solution and will post it in case it helps someone else.
When I would click on the link and it would lead to the page does not exist and give the option to Create it. When I tried to create it, I noticed the URL had the hidden character (encoding) stripped out and just added the “&action=edit”. I tried injecting the hidden characters into their proper place in the URL like “%E2%80%8B&action=edit” and hit enter. Suddenly the content I was sure the page contained showed up. I was now offered a chance to use the More drop-down to select Delete. I copied the content source and saved it in notepad. I then deleted the page with a note not to restore it. Now I could create a normal title page and paste the content back in. Only thing I lost was the history. WikimeSteve (talk) 21:09, 10 April 2019 (UTC)
If it gave the option to delete it, you could have tried to rename it instead Ciencia Al Poder (talk) 09:12, 11 April 2019 (UTC)
I tried to rename it but it gave an error since the system did not think the object really existed. Trying to protect it failed as well. Seemed like, if as a next step it had to do something new with the URL, it would strip the hidden character and lose contact with the page. Sadly I did not think to capture those effort result more precisely. WikimeSteve (talk) 14:39, 11 April 2019 (UTC)

Calendar on Special:Log changed to match Special:Contributions

Recently, the calendar on Special:Log under "From date (and earlier):" has changed to match the one on Special:Contributions. Some differences are that the current version shows days of the week with 2 initial letters instead of just 1, has an up-arrow to go to the list of the 12 months of the year and then the list of the 20 years in 2 decades, shows the last 7 days of the preceding month for months that start on Sunday (or equivalently, have a Friday the 13th), and does not have separate boxes for the day of the week, day of the month, month, and year. Neither SpecialLog.php nor LogPager.php has changed in MediaWiki 1.33/wmf.24, so this must have been caused by a change to another file. Does anyone know the patch that caused the calendar on Special:Log to change its style to the Special:Contributions style? GTrang (talk) 02:05, 9 April 2019 (UTC)

Has this been reported on phabricator? That's the place to report such issues, since WMF developers usually don't come here to find such bugs Ciencia Al Poder (talk) 09:27, 9 April 2019 (UTC)

Incorrect information on a Wikipedia 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.


There was incorrect information regarding the El Reno tornado, it was upgraded to an EF5, and it was correctly posted as an EF 5 on Wikipedia, however, it was recently edited by someone in Wikipedia stating, “It was an EF3” This edit was against the Wikipedia policy in that, “editing cannot be made for monetary reasons or because of a dispute of facts.” Germanine (talk) 03:19, 9 April 2019 (UTC)

Please comment on that article's talkpage or be bold to fix the problem.
This site focuses on the development of the MediaWiki software that support Wikipedia and we do not talk about articles on Wikipedia. 94rain Talk 05:46, 9 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Lockdown still bugged?

Running on version 1.32 but I have a problem getting this to work - look at [[Extension talk:Lockdown]] for further description.


Say $wgSpecialPageLockdown['Export'] = [ 'user' ];

Should prevent 'user' from export, but it don't? AssetDenmark (talk) 12:56, 9 April 2019 (UTC)

Extension:Lockdown has more than a few bugs and appears to not have been actively maintained. For locking special pages, perhaps Extension talk:Lockdown/Archive 2/Flow export#h-Locking_down_special_pages-2011-11-20T10:30:00.000Z would be better. AhmadF.Cheema (talk) 15:28, 9 April 2019 (UTC)
To be true: This extension does not do what its name suggests it does. Have you found another bug - apart from that? 2001:16B8:1007:3200:7D06:7E6A:4AAE:B872 (talk) 16:03, 9 April 2019 (UTC)
Thanks @AhmadF.Cheema- the linked Extension talk:Lockdown/Archive 2/Flow export#h-Locking_down_special_pages-2011-11-20T10:30:00.000Z works perfectly even when you try to got to (type in) Special:Export in the browser...
I have a locally installment in version 1.18, where Lockdown worked just fine, but it could be "bugged" as I would not have any idea on how to "hack" Wiki.
I will perhaps look a bit more into the hooks used by Lockdown and figure out if i can do similar stuff for other namespaces.

AssetDenmark (talk) 05:53, 10 April 2019 (UTC)
Thanks to this Extension talk:Lockdown/Archive 2/Flow export#h-Locking_down_special_pages-2011-11-20T10:30:00.000Z - i can now exclude users from Specialpages... please look at that topic for my comments!
$wgNamespacePermissionLockdown['*']['edit'] = [ 'sysop' ];
IS working fine for me.. and I can also add namespacve permissions to selected users... like this.
$wgNamespacePermissionLockdown[NS_Baggrund]['read'] = array('user');
$wgNamespacePermissionLockdown[NS_Baggrund_TALK]['*'] = array('user');
Tip you can also add a new user group, that 'sysop' can then assigned. Say I have some namespace material that should only be available to 'user' (registered), and then some that should be available it I give permission. To create a new group, this group will be on the you must have lines (one for each group) like this in the localsettings.php:
$wgGroupPermissions['your-permisison-group']['read']   = false;

AssetDenmark (talk) 08:26, 10 April 2019 (UTC)

60 upvalues max in wiki LUA

I have got several times an error about "60 upvalues" in a LUA module. The thing refuses to even save my code in such a case. 60 is a pretty low limit, for example some BASIC dialects from the 70'ties allowed 128 variables in a program. Apparently it is possible to pack several values into a table or make them "global" (well ... nothing is global, and global is evil at wiki as we found out from former discussions). Is this restriction documented somewhere? Taylor 49 (talk) 17:18, 9 April 2019 (UTC)

This is a hard limit of lua (i believe in their compiler.) If you google, you'll find that many users of other lua based runtimes have run into it as well. 60 local variables is quite a lot though, for a block/function scoped language. Are you defining all your functions as local variables or within a single block or something ?
> 60 is a pretty low limit, for example some BASIC dialects from the 70'ties allowed 128 variables in a program
Lua is a language specifically designed to be small and very low on complexity, to provide very manageable and safe scripting. That's why there are restrictions like that. See also: https://www.lua.org/about.html and https://www.lua.org/wshop16/Ierusalimschy.pdfTheDJ (Not WMF) (talkcontribs) 20:55, 10 April 2019 (UTC)
Thanks ... of course low complexity is great and high complexity sucks ... I am defining constants as "up-variables" as there does not seem to be any genuine "const" thing in LUA. I want to have my (mostly string) constants bunched at the beginning of the module in order to make editing or switching language easy. Is the 60-limit documented or justified somewhere? Taylor 49 (talk) 21:07, 10 April 2019 (UTC)

updating wiki 1.24.2 to 1.30.1

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


Hello,

I'm trying to update my mediawiki from 1.24.2 to 1.30.1. I'm not using a newer version because I'm locked at php 5.6 for other reasons.

I've made a link called wikipages to wikimedia-1.24.2 where everything is running fine. I've extracted mediawiki-1.30.1 into the same directory chowned all files and directories to apache/apache and changed the soft link to mediawiki-1.30.1.

now when I try to install without copying LocalSettings.php from the old installation, I always get an access denied by Mariadb. Even though I'm using the same database, user, password and prefix as the old installation. When I try to copy over LocalSettings.php to the new installation I get a blank page. No error messages in the apache logfiles.

I'm using Centos 7.2 , 5.5.52-MariaDB, httpd-2.4.6-45 and php 5.6.29.

How can I upgrade this correctly ?


81.221.10.245 (talk) 09:46, 10 April 2019 (UTC)

by the way I have a working other installation of 1.30.1 on the same system. But with a newly created DB and user for that wiki. 81.221.10.245 (talk) 09:49, 10 April 2019 (UTC)
Somehow my session timed out. When entering everything again after the timeout the wiki page now works with 1.30.1 except for the images / thumbnails. I copied over the image directory to the new version and chowned everything to apache/apache. 81.221.10.245 (talk) 10:25, 10 April 2019 (UTC)
ok, all solved.... there was a .htaccess in the images folder with should not be there. 81.221.10.245 (talk) 10:54, 10 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Some strange question marks

Hello, yesterday my wiki got two question marks on left top screen. I don't know how to remove it, it appeared of nowhere.

I am using MediaWiki 1.30.1

That's how it look 79.133.153.198 (talk) 12:50, 10 April 2019 (UTC)

Looks like invalid characters.
Is this at the place of the logo or in the article content space? Also, is your Wiki in English? Have you checked the Wiki page through different browsers? Any recent updates performed? AhmadF.Cheema (talk) 13:39, 10 April 2019 (UTC)
Corrupted UTF-8 text (cut in the middle of a char). Taylor 49 (talk) 21:13, 10 April 2019 (UTC)

Access control check error: No 'Access-Control-Allow-Origin' header is present

I've been fetching data from Wikipedia endpoints successfully, but recently have been sporadically receiving error messages along the lines of:

Access to XMLHttpRequest from origin 'localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

For reference, my queries (with the endpoint redacted to avoid a spam filter on this forum) are formatted as: action=opensearch&origin=*&format=json&search=${search}.

Since the exact same requests were working previously--and since, when I paste the query into my browser, it returns the expected results--I'm wondering if there's a bug with the API, perhaps to do with the origin=* authorization? Any help would be greatly appreciated! 173.75.231.32 (talk) 16:13, 10 April 2019 (UTC)

You may need to set Manual:$wgCrossSiteAJAXdomains Ciencia Al Poder (talk) 09:43, 11 April 2019 (UTC)

How do I setup MediaWiki for Mac using LocalHost?

I would like to setup a localhost server for MediaWiki using XAMPP and PHPMyAdmin.

The tutorials located on the Manual Page for WikiMedia describe no localhost features using XAMPP and PHPMyAdmin.

All YouTube videos are using Windows 7 or greater.

Thank you!


Parsz1va1 (talk) 23:00, 10 April 2019 (UTC)

Have you tried Manual:Running MediaWiki on Mac OS X ? Ciencia Al Poder (talk) 09:34, 11 April 2019 (UTC)

copywright images?

Can images on wikipedia be reused? Are there any rights behind specific images? And if so, where can be see which images can be used and wich ones are copywrighted? 157.193.240.3 (talk) 06:58, 11 April 2019 (UTC)

The copyright information for each image is present on its Wiki page. AhmadF.Cheema (talk) 07:10, 11 April 2019 (UTC)

Automatically Purge Page every hour

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


I am using the Extension:RSS on my Mediawiki but it won't update by itself. I have the same issue with my "Did you know" Tab and my "Article of the Week" tab. But theese two do not apply to a RSS-Feed but to a template such as {{Article_of_the_week/{{CURRENTWEEK}}}} or {{Did_you_know/{{LOCALDAYNAME}}}}.

My idea was to force Mediawiki to clear the cache like every hour so that all those Tabs may update. This might be a quite dirty solution so maybe some of you have better Ideas or solutions for me.

Hoping you know what i am willing to do, if not please feel free to ask specific questions, I'll try to answer them the best I can.


~Schmuel

Installed Software
Software Version
MediaWiki 1.32.0
PHP 7.3.3-nmm1 (fpm-fcgi)
MySQL 5.6.38-nmm1-log
ICU 52.1
146.0.119.209 (talk) 08:08, 11 April 2019 (UTC)
Here on mediawiki.org, placing {{LOCALDAYNAME}} on a page causes its parser cache to expire in 3600 seconds (1 hour). If there's no other frontend layer of caching (varnish, etc) it should already work if you place such a magic word on your page (this can be seen inspecting the source code of the HTML in the "NewPP limit report" text in an HTML comment.
If you use file cache, this may be another cause, because file cache is not normally updated when the parser cache expires. Or it may be also a browser cache. Ciencia Al Poder (talk) 09:33, 11 April 2019 (UTC)
Thanks for your response.
I've checked the NewPP limit report and it says Cache expiry: 3600 as far as I know the $wgUseFileCache is set to false by default and I didn't changed that in my LocalSettings. I am pretty sure that I cleared my BrowserCache before I refreshed the Page on my Computer as well - but the content of the Did_you_know field didn't changed untill i manually purged the Page.
But as I can't be sure about that I am curious if there is any way to check if the parser cache expires correctly. I gues it does have effect on the <rss> Tag as well so I might just post something on my Blog and check if the new content is loaded after one hour. Does that actually makes sense? I'll write back weither I succeeded or not.
~Schmuel
By the way, feel free to read the source code of my wiki at ultos.de (german) maybe there is just a silly mistake? 146.0.119.209 (talk) 09:55, 11 April 2019 (UTC)
Yes, if you have Cache expiry: 3600, it should change after 1 hour. However, on the main page there's a second NewPP limit report, apparently for MediaWiki:Rss-feed, which has Cache expiry: 86400. Maybe that's some forced value for the RSS extension.
Anyway, any other section of the page should refresh every 1 hour. For now it looks good since it has Cached time: 20190411205701 (I assume this is UTC) Ciencia Al Poder (talk) 21:01, 11 April 2019 (UTC)
Thanks for your support,
Everything works fine for me. I have no clue why I had this issue the first time, I guess it might be the browser cache.... I'm sorry for wasting your time ;-) but I learned a lot!
~Schmuel 146.0.119.209 (talk) 07:25, 15 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

visualeditor with contentEditable

I'm looking for a visual editor which does not require waiting for the parser to load like in visualeditor. My markup is pretty simple -- lists, bold, italic -- I hope there is an extension that uses contenteditable=true to allow editing the wiki? Gryllida 19:22, 11 April 2019 (UTC)

No. If it was possible to support MediaWiki simply, that's what VisualEditor would have done. :-) You should find a different wiki back-end if you want something that simple. Jdforrester (WMF) (talk) 19:49, 11 April 2019 (UTC)

Own home page

When logging in to a wiki, normaly the users get the home page.

1) Is it possible to change the default to any other page ?

2) Is it possible that every user should come to a specific page by default for Ex: to his user page ? 2610S (talk) 05:19, 12 April 2019 (UTC)

You may force a redirect using the UserLoginComplete hook. To only change the link it points on the success login page you may use the PostLoginRedirect hook Ciencia Al Poder (talk) 09:11, 12 April 2019 (UTC)
@Ciencia Al Poder Can you help me and simplify what I need to do, for Ex: if I want than the user 'john' should be directed to a page named 'support', and 'jake' should be directed to a page named 'help', how do I do it ?
What do need to write in the Localsettingsfile and what in other files.
THANKS 2610S (talk) 05:04, 14 April 2019 (UTC)
You would add this to LocalSettings.php:
$wgHooks['UserLoginComplete'][] = function( User &$user, &$inject_html, $direct ) {
	if ( $user != null ) {
		switch( $user->getName() ) {
			case 'John':
				header('Location: '. Title::newFromText('Support')->getFullUrl());
				exit();
				break;
			case 'Jake':
				header('Location: '. Title::newFromText('Help')->getFullUrl());
				exit();
				break;
		}
	}
};
Ciencia Al Poder (talk) 10:26, 14 April 2019 (UTC)

Lua not working on GreyHawkWiki

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.


(originally posted at en:Wikipedia:Help desk )

I've been trying to follow Wikipedia guidelines for citations by using templates like {{cite web}} in my own wiki. Once I copied the citation templates, I still got an "Script error: No such module "citation/CS1" in the citation itself at the bottom of the page. So, I copied the Module code from Wikipedia, and tried copy/pasting it directly, then tried importing it using the Special:Export function from Wikipedia.

No matter how I try to save the page, I get a "Fatal exception of type "MWException"" whenever I try to save or view the page. Also, now, when I try to edit them "preview" the page.

I'm just trying to install all the Cite functions … any help is appreciated.

-IcarusATB (talk) 06:17, 10 April 2019 (UTC)

I can help with problems with the cs1|2 module suite itself (eight modules and one sanitized css; all required) but there is more wrong that I cannot help with. As a test I attempted to edit Module:Citation/CS1. So far so good. Then, in the debug console at the bottom of that page I typed =_VERSION which returned this error message:
[XK3Hz9c1F61UyEIF4TvrrgAAAhs] Exception caught: The lua binary (/home3/legionxi/greyhawkonline.com/greyhawkwiki/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
at en.wiki, that standard function returns: Lua 5.1.
I do not know what that error message means but it suggests that there is something in the greyhawkonline configuration that isn't correct; that the Lua executable is not installed. If you do not get an answer here you might try asking at at en:WP:VPT.
Trappist the monk (talk) 10:51, 10 April 2019 (UTC)
I copied the above thread verbatim (except for a few comments of mine saying "this should be moved here") from the English Wikipedia help desk, on the grounds that the question is actually about help on an external wiki. To state the problem in a few words, the error is that Lua is not working at all on https://greyhawkonline.com/greyhawkwiki. * Pppery * it has begun 11:47, 12 April 2019 (UTC)
Admins of Greyhawk Wiki need to set correct execute permissions for Lua binaries as detailed at Extension:Scribunto#Bundled binaries. AhmadF.Cheema (talk) 13:42, 12 April 2019 (UTC)
Thank you, @AhmadF.Cheema: for your response.
Most of it, I understand. But, for your linked resource, it's step no. 3 where I'm not able to say whether the settings are right, or not.
3.) Your web server is configured to allow the execution of binary files in the MediaWiki tree.
Note: Execute permissions may need to be set; ...
I'm not able to say whether I know if those permissions are set. The examples are given for Linux, but, I believe it's an Apache Windows server. … if I can get a little help figuring out where/how to direct the correct path to the LUA files, it would be greatly appreciated.
Also, thank you, @Pppery: for moving the topic.
IcarusATB (talk) 01:34, 17 April 2019 (UTC)
The above transferred post are a little confusing. Are you getting the "Fatal exception of type "MWException"" error or the "Exception caught: The lua binary ... is not executable" error?
For the "Fatal exception", in your LocalSettings.php, set the following:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
After which perform the same actions which give out the the fatal exception. This will give a more detailed error report. AhmadF.Cheema (talk) 03:20, 17 April 2019 (UTC)
@IcarusATB: * Pppery * it has begun 02:17, 30 April 2019 (UTC)
Well, it's been just about a year ... and I still haven't figured out the problem. I gave up for a while, but, I back at it, and still can't get it. I can't believe I never saw the notification for the most recent reply. [D'oh!]
When I try to use the "Special:Import" function to pull the following pages directly from Wikipedia, I get the following statement in red letters:
  • Template:Cite web
  • Module:Citation/CS1
  • Module:Citation/CS1/Configuration
  • Module:Citation/CS1/Date validation
  • Module:Citation/CS1/Whitelist
Import failed: The lua binary (/.../greyhawkonline.com/greyhawkwiki/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
And when I try to save the code to a new page (or edit one I've already tried to save), there's no preview, and I get:
[XmUGS-hhhXkdhLWvHuLmVQAAABc] 2020-03-08 14:50:52: Fatal exception of type "MWException"
Is it just that I don't know how to properly install a "Module", or something?
Is there something special I'm supposed to do other than just paste the code into a page titled, for example, "Module:Citation/CS1/Configuration"? IcarusATB (talk) 14:45, 8 March 2020 (UTC)
Have you already performed the above suggestions? AhmadF.Cheema (talk) 17:02, 8 March 2020 (UTC)
Yes, Ahmad. I have.
And I reported precisely what I see on my screen when I perform the function. I wish there were more to put. I really do. IcarusATB (talk) 15:22, 9 March 2020 (UTC)
After including the debug lines mentioned in Manual:How to debug, do you still continue to receive the general - Fatal exception of type "MWException" - error? AhmadF.Cheema (talk) 15:56, 9 March 2020 (UTC)
Yes. That's it precisely. After I updated the localsettings.php you included above (which are the same as the Manual:How to debug you just linked, I posted the exact results as they appeared onscreen above, which were noted on 2020-03-08. IcarusATB (talk) 19:41, 9 March 2020 (UTC)
Have you fixed this message?
The lua binary (/.../greyhawkonline.com/greyhawkwiki/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
Have you made it executable? Ciencia Al Poder (talk) 10:27, 10 March 2020 (UTC)
Cienica ... no. I haven't been able to fix any of this.
That particular error hasn't repeated recently since I started trying to fix the problem again, but, that's the first error I reported at the top of this page.
I don't recall doing anything in particular to fix it. IcarusATB (talk) 17:49, 10 March 2020 (UTC)
The Fatal exception of type "MWException" shouldn't appear if you set $wgShowExceptionDetails = true; in LocalSettings.php. It seems you didn't, or edited the wrong LocalSettings.php Ciencia Al Poder (talk) 10:22, 11 March 2020 (UTC)
Cienca ... then, perhaps, you can help me understand. Because, you're right. It SHOULDN'T be doing that. That's part of the problem.
If you'd like to help me check the code, or something ... here's an image of the code actually in the file: [img]https://greyhawkonline.com/images/Forum%20Files/GHO/%24wgShowExceptionDetails.png[/img]
Or, this is how it reads:
#Trying to figure out the Module:CS1 settings for citations
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
It is located in the main folder for the wiki. Which in this case is at GreyhawkOnline.com/greyhawkwiki. It's the same base folder that all other stuff has always been completed at, and there's never been a problem with the way the LocalSettings.php has worked before. It's not it "seems that I didn't". I did. And the results are described above. IcarusATB (talk) 03:57, 16 March 2020 (UTC)
Then the most probably cause is that you edited the wrong LocalSettings.php, or php is somehow caching its code and doesn't check if the file is edited (try restarting the webserver, or php-fpm if you use that).
As per detecting if the LocalSettings.php is the correct one, you can introduce a syntax error there and see if viewing a page on the wiki causes an error (undo that to restore it) Ciencia Al Poder (talk) 10:42, 16 March 2020 (UTC)
Seriously?
Most probably the cause is me?
You can stop, like, right now. I *literally* just said that it's the root folder for it. It's where all changes have already been made, corrected, more made, deleted, and amended. It's literally the LocalSettings.php that was edited to create the problem to begin with. Literally.
If all you're going to to is blame my error, when I already - literally - told you I've checked to insure that it's the correct file in the root folder for the wiki it's controlling - if you can't be constructive, and are just going to repeat inane tech-advice that's already been stated as having been done - then, please. Just stop.
It doesn't need a reply if it's neither constructive or helpful. IcarusATB (talk) 23:28, 18 March 2020 (UTC)
Just for sake of saying ... this was resolved.
Turns out, there was a LUA error caused by the LUA version that was being run.
We had to use a "chmod+x" command to fix it .. followed by editing the ScribuntoEngineConf line in the LocalSettings.php to change the 'luaPath'.. IcarusATB (talk) 23:53, 19 August 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mediawiki not providing "gapfrom" response

We are running into an issue with MediWiki not sending a “gapfrom” response when the limit of 500 pages is reached while trying to migrate using Quest's Content Matrix tool..


This is the wording from Quest…


Thank you for your patience on this ongoing issue. We now have an understanding of the underlying reason for missing pages:


The current architecture of “Content Matrix Blogs and Wiki Edition” relies on “gapFrom” property in MediaWiki’s response, to load the next set of pages.  Given below is an example of  response from "MediaWiki" version 1.16.1. It has the “gapFrom” which tells what is the next pages in sequence:


<?xml version="1.0"?><api><query-continue><allpages gapfrom="Once Upon a Time in the West" />


Newer versions of MediaWiki API, no longer include that gapFrom property in the response.  Given below is the response from your Mediawiki ( version 1.26.2):


<?xml version="1.0"?><api><warnings><query xml:space="preserve">Formatting of continuation data has changed. To receive raw query-continue data, use the 'rawcontinue' parameter. To silence this warning, pass an empty string for 'continue' in the initial query.</query></warnings><continue clcontinue="27|DS:eCapture" imcontinue="24|BatchingFiles.PNG" continue="||info|revisions" /><query><pages><


Content Matrix is unable to load the remaining pages due to that missing gapFrom property in newer versions of MediaWiki


Thanks in advance! SharePointyGuy (talk) 14:28, 12 April 2019 (UTC)

You should open a ticket with Quest's Content Matrix support to tell them about the problem and adapt their use of the api to the new format Ciencia Al Poder (talk) 16:07, 12 April 2019 (UTC)

missing files after clean installation

Hi,

i have install a new version of medawiki but i get the php fatal error: Uncaught Exception: /var/customers/webs/Anzah/rollenspiel.wiki/skins/Splash/skin.json But in the LocalSettings.php there's no mention of splash anywhere. 93.212.25.183 (talk) 15:08, 12 April 2019 (UTC)

If you use a php op-cache extension (wincache, APCu, etc), it may still have the old LocalSettings.php cached. Try restarting your webserver, although this won't be possible if you're on a shared host... Open a ticket to your hosting support in that case. Ciencia Al Poder (talk) 16:05, 12 April 2019 (UTC)

change headings to sans-serif

how can I change all headings to sans-serif via common.css?
thank you

79.143.111.185 (talk) 16:43, 12 April 2019 (UTC)
See https://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_edit_the_wiki's_CSS? Malyacko (talk) 18:20, 12 April 2019 (UTC)
could not find it there yet but I will read the whole FAQ on Sunday, thank you for the link. 79.143.111.185 (talk) 18:24, 12 April 2019 (UTC)
why would you want to change that? 79.143.111.185 (talk) 17:31, 12 April 2019 (UTC)
you could try this also:
.mw-body .firstHeading { font-family: sans-serif; }
.mw-headline { font-family: sans-serif; } 79.143.111.185 (talk) 18:22, 12 April 2019 (UTC)

Upgrade from 1.17 to 1.32

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 tried to make an upgrade as described under Manual:Upgrading. I created a new directory, installed all the new files, copied LocalSettings.php and images, then started the update.php script. I get the following message:

syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/vhosts/web468.webbox180.server-home.org/html/phys-med.de/wiki/maintenance/update.php on line 137

Can anyone help me what that means and how I can fix it?

Thank you!

Daniel 188.104.9.130 (talk) 18:31, 12 April 2019 (UTC)

Can you confirm that you copied the files for MediaWiki v1.32 into an empty directory?
Also, what's the PHP version for your setup? AhmadF.Cheema (talk) 18:35, 12 April 2019 (UTC)
Yes, i can confirm that. I extracted the files to a new directory and copied only LocalSettings.php and the images-directory from the old installation.
PHP Version is 7.3.2, but I can change that if necessary. 188.104.9.130 (talk) 09:01, 13 April 2019 (UTC)
MediaWiki is not fully compatible with PHP 7.3 yet.
See Compatibility#PHP. AhmadF.Cheema (talk) 09:44, 13 April 2019 (UTC)
Before two weeks I upgraded two wikis where I am admin. First my private wiki from (1.29 to 1.34-alpha) and second was wiki for our department (from 1.26 to 1.31 LTS). Both servers use PHP 7.3, and no problem.
But to theme – I'd rather upgrade gradually. First from 1.17 to 1.19 (old LTS). After to 1.23 (old LTS), next 1.27 (old LTS) after it do upgrade from PHP 5.6 to 7.3 and finally upgrade MediaWiki to 1.31 (latest LTS). See Version_lifecycle
Big step from 1.17 to 1.32 is very risically acording me. Want (talk) 23:24, 18 April 2019 (UTC)
Thank you fpr the hint!
I changed PHP version now to 7.0.33, but still get the same error message:
"PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/vhosts/web468.webbox180.server-home.org/html/phys-med.de/wiki/maintenance/update.php on line 137"
Any futher ideas what's wrong? Grmblfx5 (talk) 15:06, 15 April 2019 (UTC)
Sometimes multiple PHP versions are available on the same system.
Can you make sure that the PHP version used to install MediaWiki is the correct 7.0 one? AhmadF.Cheema (talk) 15:55, 15 April 2019 (UTC)
Yes, my hoster offers the following versions:
5.6.40
7.0.33
7.1.26
7.2.15
7.3.2
The first one is too old, the last one too new, so I took the 7.0.33, which should work.
What do you mean by "correct one"? I copied the new mediaWiki files to my server and tried tu run the update script, which gives me the above error message. Grmblfx5 (talk) 20:30, 18 April 2019 (UTC)
Try running php -version before running the update script and see what version the system gives you. AhmadF.Cheema (talk) 22:36, 18 April 2019 (UTC)
Thanks for the tip!
On the bash, I get php version 5.4.16.
Running phpinfo in the web browser, I get 7.0.33
I tried to run the update script via web browser as described in Manual:Upgrading#Web browser
The first step /mw-config/ works, but then I get a blank page
Any ideas how to go on? 94.218.62.136 (talk) 09:26, 27 April 2019 (UTC)
Can't you ask your hoster how to access PHP 7.0 through bash. Sometimes a different command is used to access the different PHP version, for example, php54 to access PHP 5.4.
You can try running php70 -version if PHP 7.0 is available though this command, otherwise ask your hoster. AhmadF.Cheema (talk) 14:02, 27 April 2019 (UTC)
Yes, for example, for PHP 7 I have to type /usr/local/bin/php70-cli instead of just php. Jonathan3 (talk) 01:05, 30 April 2019 (UTC)
Thank you, Jonathan3, that was the solution! I have to type the full path to the PHP-Version I wish.
Now the update is ready, only problem is to find a replacement for the great NiceCategoryList2 I used under the old version... 92.74.45.37 (talk) 10:19, 6 May 2019 (UTC)
Maybe try Extension:DynamicPageList (Wikimedia) or Extension:DynamicPageList3. AhmadF.Cheema (talk) 14:03, 6 May 2019 (UTC)
Thanks for the hint!
I tried both but was only able to show categories, not pages.
With NCL2, I could produce a complete index of contents as starting page, as shown here:
http://www.psych-med.de/wiki/index.php?title=Hauptseite
Is that possible with an other, newer extension? Grmblfx5 (talk) 08:30, 13 May 2019 (UTC)
The example is a little difficult to understand. From what I follow, you want the pages categorized inside a specific category to be listed.
If so, through Extension:DynamicPageList3, the following should show the first 10 pages from your Category:Begriffe.
<DynamicPageList>
category             = Begriffe
count                = 10
order                = ascending
</DynamicPageList>
AhmadF.Cheema (talk) 10:42, 13 May 2019 (UTC)
Thanks for your help, bu that doesn't do what I want. 8a recursive list of categories and pages in that categories).
But it hasn't to do with my original topic, so I will try to find information on the project page or start a new topic here!
Thank you! Grmblfx5 (talk) 15:49, 19 May 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

My script has a name of the file and I want to somehow get the link to it in the common.js file for putting in a <audio> tag.

I am using the newest version of MediaWiki.

I know JS so I can adapt a script. 88.156.243.136 (talk) 12:25, 13 April 2019 (UTC)

You can use Special:FilePath, like Special:FilePath/Example.png Ciencia Al Poder (talk) 16:40, 14 April 2019 (UTC)

Mathematical operations

Hi there!

Im running a wiki about sport statistics and keeping the data up to date can be pretty time consuming.

Is there any way to make the wiki do simple mathematical operations, f.e. lets say I want to divide the number {{PAGESINCATEGORY:Games won vs. Team X}} by the number {{PAGESINCATEGORY:Games Played vs. Team X}}.

Thanks in advance,

Tim Hessentotal (talk) 12:48, 13 April 2019 (UTC)

This can be done with LUA or "#expr" : https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr. Example: https://id.wikipedia.org/w/index.php?title=Templat:HitungVoting&action=edit Taylor 49 (talk) 04:56, 14 April 2019 (UTC)
Thanks a lot! Hessentotal (talk) 09:34, 14 April 2019 (UTC)

Autocomplete search doesn't work anymore

Since last week the autocomplete (which I installed in Mediawiki Version 1.23.9 ) doesn't works anymore and I didn't change anything. I have also a website running on Mediawiki Version 1.23.13 and this works fine. Anyone has the same problem or has a solution ? 91.178.66.78 (talk) 17:32, 13 April 2019 (UTC)

In my opinion the default rendering of InterWiki links is quite ugly. There is a lot of InterWiki links in my wiki with very messy (for most users) prefixes. Id like to omit those prefixes so links like xyz:article would be shown just plain "article". Nonetheless it is desired to make some notice that the link is external.


So is there a way to treat Interwiki links as external links so it can be written for example article and still have the arrow used for external links to notice that the links is not within the wiki?


In addition id like to ask whether the arrow image can be modified according to the interwiki prefix ( so for example [[gen:article]] could render to "article" with gentoo logo in stead of the normal arrow and [[arch:article]] would render to "article" with arch logo) 84.248.91.111 (talk) 17:50, 13 April 2019 (UTC)

To answer my own question: Adding css attribute selectors with title attribute does the trick quite well. For example adding
a.extiw[title^='xyz:'] {
background: url(icon_to_external_wiki) centre right no-repeat;
padding-left: <size_of_icon>px;
}
to main.css of desired skin works well. 84.248.91.111 (talk) 21:12, 13 April 2019 (UTC)

changing background color of page tabs

The only parts still not colorized are table labels and the tabs for "Message," "Discussion," "Read," "View source," and "View history."

#p-caction will take care of the "More" tab - does anyone know what the other tabs are called?

thank you 79.143.111.185 (talk) 20:16, 13 April 2019 (UTC)

found it - sorry for spamming :)
.vectorTabs span a { background-color: #e6ffb4; }
#mw-head { background-color: #e6ffb4; } 79.143.111.185 (talk) 20:25, 13 April 2019 (UTC)

Cannot afford expensive functions ??

I have trouble with so-called "expensive functions" "{ {#ifexist:} }" and "{ {PAGESINCATEGORY} }". https://www.mediawiki.org/wiki/Manual:$wgExpensiveParserFunctionLimit Is there a way to increase the limit (500) for a single page on a public wiki? Alternatively, is there a non-expensive or more efficient way (from LUA) to peek "ifexist" ? Can I maybe peek both "PAGESINCATEGORY" and "ifexist" with just 1 call instead of 2? Strange enough, after the limit of 500 is reached, the thing starts lying and returning "false" for all "ifexist" requests despite the page exists, and despite the link is blue, ie despite wiki DOES already have the needed information. How can I peek the information now? Taylor 49 (talk) 04:50, 14 April 2019 (UTC)

Style of Infobox

Hello, here is the specs of my wiki :

If you go on pages like https://www.wikifield.fr/wiki/Squirkiz or https://www.wikifield.fr/wiki/Aégis you will notice the infobox style is completly broken. Any guess on what I could have done wrong ? I'd like to have the same style as in regular wikipedia pages.

Also if you notice any bad practice on my wiki (Even though it is still a draft), I will be extremely thankful if you can share it with me :)

Thank you in advance for your help ! 45.62.52.42 (talk) 14:08, 14 April 2019 (UTC)

Exactly which Wikipedia template pages did you copy your infobox templates from? AhmadF.Cheema (talk) 16:55, 14 April 2019 (UTC)
Thanks for your answer,
It was the ones from the french wikipedia pages 45.62.52.42 (talk) 16:59, 14 April 2019 (UTC)
Oooooh, so I should use the french MediaWiki:Common.css file !
Damn... I'm wondering if I should not go back to the basis. What are the usual tutorials used by beginners ? 45.62.52.42 (talk) 17:17, 14 April 2019 (UTC)
For infoboxes, it is Manual:Importing Wikipedia infoboxes tutorial. For the rest you would have to be more specific. There are many such as download, install, configure and Manual:FAQ#Installation and configuration etc. AhmadF.Cheema (talk) 21:43, 14 April 2019 (UTC)

Allowing for revisions to be deleted through the page deletion system

Has any of the people that are in charge of producing each version of MediaWiki ever considered creating an extension that allows administrators to select revisions to delete through the page deletion system? This idea would obviously be different from Manual:RevisionDelete which deletes revisions through the revision deletion system, as opposed to the page deletion system.

I remember having this idea for years, and yet I can remember how surprised I was to find that there was no extension to my knowledge that allowed for revisions to be deleted through the page deletion system. Since there are specific sites that disallow pages in specific namespaces to be restored once deleted, unless the said users are in specific user-groups that aren't available to the general community.

The said extension would be pretty much identical to Manual:Page restoration only the exact opposite. As it would be added to the page deletion system and would allow for revisions to be deleted, instead of revisions to be restored. ― C.Syde (talk | contribs) 07:53, 15 April 2019 (UTC)

What's wrong with deleting revisions from the history page? Ciencia Al Poder (talk) 09:20, 15 April 2019 (UTC)
It's not possible to selectively delete revisions from the page history, because to delete revisions you have to delete the entire history, and then restore the revisions that you want to keep. ― C.Syde (talk | contribs) 23:46, 15 April 2019 (UTC)
Feel free to poke at phab:T20493 Ciencia Al Poder (talk) 09:26, 16 April 2019 (UTC)
Done. ― C.Syde (talk | contribs) 10:52, 16 April 2019 (UTC)

I need to create new users only for reading the pages. How I can do it?

Good morning,

I have installed MediaWiki on my computer and I am working for creating our Wiki (mediawiki-1.32.0).

I have created pages (in our Wiki) with the administrator user but I need to create new users only for reading the pages.

Please could you indicate to me how I can create these users? Thanks in advance.

Best regards.


89.167.129.74 (talk) 08:31, 15 April 2019 (UTC)

You can go to the Special:CreateAccount page (on your wiki) to create new accounts.
Read Manual:Preventing access for more configurations, but basically you want the "Simple private wiki" approach, and also "Restrict editing". Ciencia Al Poder (talk) 09:18, 15 April 2019 (UTC)
@Ciencia Al Poder: Thanks so much for your reply! Thanks for your support with this topic. 89.167.129.74 (talk) 08:13, 23 April 2019 (UTC)
There is a number of ways to do this; I have made it work using statements like below (in localsettings.php.. please ask further if you need help!
## Group permissions
/** @cond file_level_code */
// Implicit group for all visitors
$wgGroupPermissions['*']['createaccount'] = true;
$wgGroupPermissions['sysop']['createaccount'] = true;
$wgGroupPermissions['*']['read']   = false;
$wgGroupPermissions['*']['edit']   = false;
$wgGroupPermissions['*']['createpage']   = false;
$wgGroupPermissions['*']['createtalk']   = false;
$wgGroupPermissions['*']['writeapi']   = true;
$wgGroupPermissions['*']['viewmywatchlist']   = true;
$wgGroupPermissions['*']['editmywatchlist']   = true;
// Maybe?  
$wgGroupPermissions['*']['viewmyprivateinfo'] = true;
$wgGroupPermissions['*']['editmyprivateinfo']   = true;
$wgGroupPermissions['*']['editmyoptions']   = true;
....
$wgGroupPermissions['sysop']['edit']    = true;
// Implicit group for all logged-in accounts
$wgGroupPermissions['sysop']['move'] = true;
$wgGroupPermissions['sysop']['move-subpages'] = true;
$wgGroupPermissions['sysop']['move-rootuserpages'] = true; // can move root userpages
$wgGroupPermissions['sysop']['move-categorypages'] = true;
$wgGroupPermissions['sysop']['movefile'] = true;
$wgGroupPermissions['sysop']['read'] = true;
$wgGroupPermissions['sysop']['edit'] = true;
$wgGroupPermissions['sysop']['createpage'] = true;
$wgGroupPermissions['sysop']['createtalk'] = true;
$wgGroupPermissions['sysop']['writeapi'] = true;
$wgGroupPermissions['sysop']['upload'] = true;
$wgGroupPermissions['sysop']['reupload'] = true;
$wgGroupPermissions['sysop']['reupload-shared'] = true;
$wgGroupPermissions['sysop']['minoredit'] = true;
$wgGroupPermissions['sysop']['editmyusercss'] = true;
$wgGroupPermissions['sysop']['editmyuserjson'] = true;
$wgGroupPermissions['sysop']['editmyuserjs'] = true;
$wgGroupPermissions['sysop']['purge'] = true;
$wgGroupPermissions['sysop']['sendemail'] = true;
$wgGroupPermissions['sysop']['applychangetags'] = true;
$wgGroupPermissions['sysop']['changetags'] = true;
$wgGroupPermissions['sysop']['editcontentmodel'] = true;

... etc. and you can prevent people access to special pages like this..
function SpecialPageBlock(&$list)
{
   global $wgUser;
      
   $allowedGroups = array(
       'sysop',
   );
   
   $whiteList = array(
       'Confirmemail',
       'CreateAccount',
       'Userlogin',
       'Userlogout',
       'Search',
       'Preferences',
       'Changepassword',
   ); AssetDenmark (talk) 09:33, 23 April 2019 (UTC)

how do i create a document

how do i create a document. i am a new user Lspiresjr (talk) 13:36, 15 April 2019 (UTC)

By document do you mean a Wiki content page? See Help:Starting a new page. AhmadF.Cheema (talk) 14:24, 15 April 2019 (UTC)

Uploading/re-uploading bulk images and editing metadata.

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


We are hosting an Edit-A-Thon and are planning to upload 20K images to WikiMedia using API to automate or any tool if API does not work.
We are creating a bot to automate the process. Accessing tokens and Login works fine - https://mediawiki.org/w/api.php. But when we try to upload an image we get "The action you have requested is limited to users in one of the groups: Administrators, Uploaders". Our user group is "Autoconfirmed user, Users".

1. What is the process process to change permissions?
2. Please recommend any tool(s) that could allow bulk image upload and edit meta data later.
Any help would be appreciated.

Htsa (talk) 07:20, 16 April 2019 (UTC)
It looks like you edited your posting while I was writing my previous comment. Now it says that you are using a bot. For bots on Commons, see https://commons.wikimedia.org/wiki/Commons:Bots/Requests. That would be a question for Commons. Malyacko (talk) 07:31, 16 April 2019 (UTC)
@Htsa When you write "WikiMedia", do you mean "Wikimedia Commons"? How exactly are you using the API and which exact actions are you performing via the API? https://outreach.wikimedia.org/wiki/GLAM/Resources/Tools might list some tools to bulk upload. Malyacko (talk) 07:29, 16 April 2019 (UTC)
Thanks a lot for your reply.
Sorry I should have mentioned that - yes "Wikimedia Commons". We are experimenting with both API and Tools.
  1. Tools - I have tried pattypan and successfully uploaded an image, but the owner of the software advised not to edit any metadata. So this is a drawback.
  2. Now I am trying MediaWiki Action API Code Samples to upload an image. this is when I got the above message.

Htsa (talk) 07:35, 16 April 2019 (UTC)
@Htsa Which specific "MediaWiki Action API Code Sample" are you using? Please be specific and provide links or code. Malyacko (talk) 13:28, 16 April 2019 (UTC)
Also, again, see my link above when it comes to using bots on Commons. Malyacko (talk) 13:29, 16 April 2019 (UTC)
Not sure if you received my message, so I am re-posting as reply.
Thanks a lot in advance. I am still struggling to understand WikiMedia workflow. Help would be appreciated.
Thank you for the Commons bot link I have submitted a request. Here is the link to request https://commons.wikimedia.org/wiki/Commons:Bots/Requests/htsa_editathon_bot
Below is the mediawiki action code sample I am trying to run. Basically i am trying to upload a local file.
https://github.com/wikimedia/MediaWiki-Action-API-Code-Samples/blob/master/python/upload_file_directly.py
I have created bot and obtained credentials via Special:BotPasswords. When i tried to run the python script to upload a local image the Login token generated successfully but the CSRF token received was "+\".

Htsa (talk) 07:36, 17 April 2019 (UTC)
What is the name of the bot account? Also see https://commons.wikimedia.org/wiki/Commons:Bots/Requests. Malyacko (talk) 08:10, 17 April 2019 (UTC)
@Htsa: See the unanswered questions in the duplicated "Htsabot" sections on https://commons.wikimedia.org/wiki/Commons:Bots/Requests#Requests_for_permission_to_run_a_bot Malyacko (talk) 21:10, 20 April 2019 (UTC)
Thank you for the Commons bot link I have submitted a request. Here is the link to request https://commons.wikimedia.org/wiki/Commons:Bots/Requests/htsa_editathon_bot
Below is the mediawiki action code sample I am trying to run. Basically i am trying to upload a local file.
https://github.com/wikimedia/MediaWiki-Action-API-Code-Samples/blob/master/python/upload_file_directly.py
I have created bot and obtained credentials via Special:BotPasswords. When i tried to run the python script to upload a local image the Login token generated successfully but the CSRF token received was "+\".

Htsa (talk) 01:45, 17 April 2019 (UTC)
import requests
S = requests.Session()
URL = "https://mediawiki.org/w/api.php"
FILE_PATH = 'images/GN07551.jpg'
# Step 1: Retrieve a login token
PARAMS_1 = {
    "action": "query",
    "meta": "tokens",
    "type": "login",
    "format": "json"
}
R = S.get(url=URL, params=PARAMS_1)
DATA = R.json()
LOGIN_TOKEN = DATA["query"]["tokens"]["logintoken"]
print LOGIN_TOKEN
# Step 2: Send a post request to login. Use of main account for login is not
# supported. Obtain credentials via Special:BotPasswords
# (https://www.mediawiki.org/wiki/Special:BotPasswords) for lgname & lgpassword
PARAMS_2 = {
    "action": "login",
    "lgname": "htsa",
    "lgpassword": "botusername@botpassword",
    "format": "json",
    "lgtoken": LOGIN_TOKEN
}
R = S.post(URL, data=PARAMS_2)
print R.text
# Step 3: Obtain a CSRF token
PARAMS_3 = {
    "action": "query",
    "meta":"tokens",
    "format":"json"
}
R = S.get(url=URL, params=PARAMS_3)
DATA = R.json()
CSRF_TOKEN = DATA["query"]["tokens"]["csrftoken"]
print CSRF_TOKEN
# Step 4: Post request to upload a file directly
PARAMS_4 = {
    "action": "upload",
    "filename": "images/GN07551.jpg",
    "format": "json",
    "token": CSRF_TOKEN,
    "ignorewarnings": 1
}
FILE = {'file':('images/GN07551.jpg', open(FILE_PATH, 'rb'), 'multipart/form-data')}
R = S.post(URL, files=FILE, data=PARAMS_4)
#DATA = R.json()
print(R.text[:2000]) Htsa (talk) 02:21, 17 April 2019 (UTC)
@Htsa You started more threads in Project:Support desk/Flow/2019/04#h-Mediawiki_commons_-_image_upload_issue-2019-04-17T04:49:00.000Z and in Project:Support desk/Flow/2019/04#h-Mediawiki_commons_-_image_upload_issue-2019-04-17T04:49:00.000Z so it is hard to follow. Please resolve threads when they are finished instead of leaving them open and starting closely related new ones so nobody can follow anymore. Thanks. Malyacko (talk) 08:25, 23 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Cache Control Headers

MediaWiki 1.31.0

PHP 7.0.24 (fpm-cgi)

MySQL 5.7.11-log

Lua 5.15

Varnish 3.0.06

For reasons we can't figure out, the response headers sent by our wiki includes this:

Cache-Control: private, max-age=0, s-maxage=0


That last one is a problem for us since Varnish sees s-maxage and refuses to do its job. This seems to have started some time after we upgraded from 1.26 to 1.31, or possibly from when we switched to our skin, Tweeki. It was suggested somewhere that that particular cache-control is set when $wgResourceLoaderDebug is set, but it is not set at all in our LocalSettings.


Is there anything else that might lead MediaWiki 1.31 to send that Cache-control header? An extension? Is there any way to change the cache-control headers? I did try $wgSquidMaxage but that does not seem to have any effect.


213.64.216.57 (talk) 16:55, 16 April 2019 (UTC)

So I sort of found the issue. I did a find and discovered that between 1.26 and 1.31, a file called HeaderCallback.php was added to the includes. That exact cache-control string is in there. I can use Varnish's VCL to get around it, but I wonder if there's any place to set desired cache control headers within Mediawiki itself? 213.64.216.57 (talk) 22:54, 16 April 2019 (UTC)
HeaderCallback.php is only sending Cache-Control: private, max-age=0, s-maxage=0 if there are cookies sent by the server. This absolutely makes sense since you don't want your users to get the same cookies, potentially leaking sessions
If the server doesn't send cookies, then the problem is somewhere else. If you're logged in, responses won't (and shouldn't) be cached by Varnish. Also, some extensions may force a page to not be cacheable. A debug log may tell you why. Ciencia Al Poder (talk) 09:24, 17 April 2019 (UTC)
I was having this problem too and thanks to this post I figured out that the cause was the Extension:Antispam setting cookies for every page view. I sent this pull request to try fix it. Sophivorus (talk) 16:22, 23 June 2023 (UTC)

Cannot hide site subtitle on (redirected or moved) Main Page

I followed Manual:Tagline (Site Subtitle) and added

body.page-Main_Page.action-view #siteSub, body.page-Main_Page.action-submit #siteSub { display: none; }

to my MediaWiki:Common.css

I cannot get the subtitle to only be hidden on the Main_Page, however. Note that my Main_Page is a redirect, e.g. #REDIRECT [[Other Page]]. Does that matter?

In case it does matter, I tried substituting Other_Page into the code to give

body.page-Other_Page.action-view #siteSub, body.page-Other_Page.action-submit #siteSub { display: none; }

and that does not work, either. I have been able to change the font size of my subtitle by editing the MediaWiki:Common.css file so I know that I'm doing this in the right place.


Am I missing something or can the subtitle simply not be hidden on a redirected Main_Page? When I force to go to the Main_Page, I can see that the subtitle is hidden there... while the subtitle is *not* hidden when I force to go to another page that is also only a redirect. So that may be my answer, but I'm hoping there is still another way to hide the subtitle on a redirected Main_Page, or that I'm doing something wrong.


Thanks!


131.215.220.162 (talk) 01:37, 17 April 2019 (UTC)

Note that *moving* Main_Page to e.g. Other_Page also creates a situation where the the site subtitle cannot be hidden on Other_Page. Further, adding:
body.page-Other_Page.action-view #siteSub, body.page-Other_Page.action-submit #siteSub { display: none; }
to MediaWiki:Common.css still does not transfer the hidden quality to Other_Page.
It seems like there has to be a way to hide the site subtitle on one page but not others, regardless of whether or not the page with the hidden subtitle is Main_Page.
Does anyone know? Thanks. 2605:E000:1313:C19:FC01:92A4:5B21:C0D3 (talk) 03:06, 17 April 2019 (UTC)
If the font-size for the same class can be changed, then it could be just a CSS specificity issue. Try adding display: none !important; and see if it works. AhmadF.Cheema (talk) 07:51, 17 April 2019 (UTC)
Or just wait to the cache to be updated, and be sure you've not made a typo in the CSS rules.
As always, an URL to the problematic page would be very helpful. Ciencia Al Poder (talk) 09:14, 17 April 2019 (UTC)
The "!important" addition did not help hide the subtitle on the page with parentheses in the title. So the parentheses do seem to be the problem. Not too much trouble to just work around that by changing the name, though.
And yes, I did clear the cache, which did not work for the parentheses page, but does of course help hide the subtitle on all other pages after implementing in CSS.
My apologies for not including the URL, the site is still being built and is password protected for the moment. Thanks to both of you for the help.! 131.215.51.215 (talk) 01:37, 18 April 2019 (UTC)

Mediawiki commons - image upload issue

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.


Below is the mediawiki commons action code sample I am trying to run. https://github.com/wikimedia/MediaWiki-Action-API-Code-Samples/blob/master/python/upload_file_directly.py

Basically i am trying to upload a local image file. My user account is in group "Autoconfirmed users, Users". I have tried API and I have tried bot - obtained credentials via Special:BotPasswords. When i tried to run the python script to upload a local image the Login token generated but the CSRF token was not created "+\". Do I have to get any permissions to upload using API? Htsa (talk) 04:49, 17 April 2019 (UTC)

@Htsa You posted Project:Support desk/Flow/2019/04#h-How_to_add_title,_summary,_license_etc_when_uploading_image-2019-04-23T04:50:00.000Z (under a wrong account). Does that mean you found a solution? If you did, please update your posting/thread here and/or close it. Malyacko (talk) 08:17, 23 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Help creation of a wiki portal for my website

Hello there !

I want to create a similar wiki page as -https://en.wikipedia.org/wiki/Portal:Geography with my own contents in my wiki site(vanipedia.org). Can someone please help, what templates, codes and portals I need to create a similar page. Please help

My website is - http://www.vanipedia.org Anurag7029 (talk) 05:37, 17 April 2019 (UTC)

In the source of that Wikipedia page, the parts which are between double brackets, such as "Portal maintenance status", "portal description" etc. are called templates. A quick list of the included templates will be present under the "Pages transcluded onto the current version of this page" collapsible header near the bottom of the page.
Go to each template page, such as Template:Portal maintenance status, Template:Portal description etc. and see which templates would be relevant to you.
Then go to Special:Export, include the names of the templates you want to export, check "Include templates", and then click on the Export button.
After this, import the exported .XML file into your own Wiki.
Do this and see which portions still give problems. AhmadF.Cheema (talk) 07:47, 17 April 2019 (UTC)

Change Reference

There is an old link (to an old version of our website) inside this URL: https://en.wikipedia.org/wiki/Trentino-Alto_Adige/S%C3%BCdtirol

The reference I want to change is:

Vibrations, Zeppelin Group – Good. "L'Istitut per la pension d'enjonta - Pensplan". Retrieved 8 April 2017.

I want to change this way:

Pensplan - the Regional Complementary Welfare Project. http://www.pensplan.com

How can I do?

Thanks 62.101.1.238 (talk) 13:24, 17 April 2019 (UTC)

See Special:MyLanguage/Help:Editing pages for how to edit pages in the MediaWiki software. Malyacko (talk) 07:44, 18 April 2019 (UTC)

Mediawiki 1.32.0 very 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.


I've just created a new (empty) Mediawiki installation on php7.0 in docker. I'm using Ubuntu 16.04 and a MySQL instance from Amazon's RDS. The wiki is very slow. It takes around 5 seconds to load any page. It takes around 8 seconds to write to a page.

What am I doing wrong? I have the default LocalSettings.php that was generated by the installation process. I've tried setting apache trace8, monitoring DNS via tcpdump, also using mediawiki debug. I cannot see what's taking the time, all processes just seem slow. Joelittlejohn (talk) 14:28, 17 April 2019 (UTC)

You may need to enable caching. in-memory object caching improves performance a lot. See Manual:$wgMainCacheType. Use memcached or redis. Ciencia Al Poder (talk) 09:28, 18 April 2019 (UTC)
One thing I noticed: If I go through the exact same installation process *outside* of docker (a regular EC2 instance), the wiki is fast. If I install *inside* docker the result is an extremely slow wiki. I've tried a few different versions of Ubuntu, Mediawiki and PHP. Joelittlejohn (talk) 09:34, 23 April 2019 (UTC)
Note that docker is running another OS inside it, which adds yet another layer of CPU and disk usage. My guess is that EC2 instances, being already a virtualized machine inside another machine, may not be optimized to handle yet another virtualized machine inside it.
Also, PHP and MediaWiki may require a fair amount of available RAM, that if not present, could lead to swap to disk, increasing the slowness. Ciencia Al Poder (talk) 09:19, 24 April 2019 (UTC)
Docker is container virtualization. There isn't "another OS inside it". It's not virtualized hardware. 87.174.46.125 (talk) 12:54, 15 May 2023 (UTC)
You're right about that, I didn't know those details when I replied 4 years ago. Problem may be caching, available CPU cores, disk speed... Ciencia Al Poder (talk) 12:38, 16 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to see the address of a private wiki?

I installed MediaWiki on a private server (using XAMPP) but when I last cleared my browser history I unfortunately also removed all my bookmarks and I've lost the address to the private wiki I was using. Clearly, it still exists somewhere under http://localhost but I have no idea where. I've tried looking through the intact files (which I know where they are) but they don't give any clues as to the actual URL I have to put in to get to my wiki and neither does the XAMPP dashboard. Is there any way to find the address where the wiki is located (again, it's private so it should be localhost/something) or is it lost because I was stupid? Quanblas (talk) 16:16, 17 April 2019 (UTC)

See the configuration file of your web server software. The configuration file of your web server software defines where something on some hard disk (for example /var/www/html/mediawiki/) becomes accessible via a web browser (for example https://localhost/whatever). Malyacko (talk) 07:39, 18 April 2019 (UTC)
Maybe it's using a different port number, so you should use http://localhost:81/ or similar. Try to find the port number in the XAMPP control panel Ciencia Al Poder (talk) 09:26, 18 April 2019 (UTC)

Special:WhatLinksHere error

When I use 'Specific:WhatLinksHere' the following error will occur:


Wikimedia\Rdbms\DBTransactionError from line 1426 of ...includes/libs/rdbms/loadbalancer/LoadBalancer.php: MediaWiki::preOutputCommit: Commit failed on server(s) localhost: Cannot execute query from MediaWiki::preOutputCommit while transaction status is ERROR.


How can I fix this error? 51.77.152.216 (talk) 19:05, 17 April 2019 (UTC)

Oh, I also have another problem.
When I install Extension:StructuredDiscussions and run update.php, the following error occurs:
Error from line 114 of .../Flow/maintenance/FlowFixLog.php: Call to a member function getRoot() on bool
Please help me solve these problems. 51.77.152.216 (talk) 23:09, 17 April 2019 (UTC)
Please provide exact version information for MediaWiki and for the StructuredDiscussions extension.
Please see Manual:How to debug how to provide a stacktrace. Malyacko (talk) 07:37, 18 April 2019 (UTC)
WhatLinksHere problem solved.
My MediaWiki version is 1.32.0 and flow version is 1.1.1. Backtrace is like this:
#0 .../includes/utils/BatchRowUpdate.php(91): LogRowUpdateGenerator->update(stdClass)
#1 .../extensions/Flow/maintenance/FlowFixLog.php(55) : BatchRowUpdate->execute()
#2 .../maintenance/Maintenance.php(1698) : FlowFixLog->doDBUpdates()
#3 .../maintenance/update.php(215) : LoggedUpdateMaintenance->execute()
#4 .../maintenance/doMaintenance.php(94) : UpdateMediaWiki->execute()
#5 .../maintenance/update.php(248) : require_once(string)
#6 {main}
There are no additional errors on the Web. But I can't even see the StructuredDiscussions. 51.77.152.216 (talk) 07:57, 18 April 2019 (UTC)
Please provide exact version information including the exact commit ID of "1.1.1". Malyacko (talk) 21:08, 20 April 2019 (UTC)
1.1.1 (bf651cf) 20190123 (Wednesday) 04:51 51.77.152.216 (talk) 15:50, 21 April 2019 (UTC)

Migrate and update from 1.23.4 to 1.30.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.


I am trying to change my provider. Since the new provider has a preinstalled wiki package with version 1.30.0, I am trying to (and I have to) upgrade mediawiki at the same time while migrating.

While I have successfully upgraded mediawiki in the past, following the described standard browser based process at Manual:Upgrading, I got stuck with this migration.

I think that I am correctly following the procedure, since I am able to upgrade to an 1.31.0 installation at my old provider using that procedure.

If I am trying to do the same at my new provider, the process differs, I now run into a screen asking me to choose between data base systems (InnoDB/MyISAM) and a format (binary/ UTF-8), and independent of my choice, the final outcome of the resulting wiki is empty.

Support from my new provider (Ionos) is non-existing.

I have also tried a "php upgrade php", and it seems the php version there is rather old, though I may be able to start a newer php version using php7.

Any ideas for next steps?


EDIT:

  • the database prefix changed; the new database had a prefix which was listed in LocalSettings.php, the export of the old DB had no prefix. I had to remove the prefix in the LocalSettings.php ThomasER (talk) 02:44, 18 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to show dropdown dynamically from database in mediawiki?

I am using latest mediawiki(version - 1.32.0). My requirement is to show drop-down with dynamic value from database in form section with add and edit with form section.

I found some options related to SF Select with custom parser function to show dynamically values in drop-down, But I don't have any idea how to create,use and where custom parser functions. Shyamongraph (talk) 06:39, 18 April 2019 (UTC)

Probably a question for a Semantic MediaWiki forum. You may want to explain what "dynamic" means and what exactly it's based on. For parser functions, see Help:Extension:ParserFunctions. Malyacko (talk) 07:35, 18 April 2019 (UTC)
I am working on mediawiki and created a form where I put some input fields. I have also added an dropdown field to show value fetching from database.
Want to fetch data from database and show in dropdown list. Shyamongraph (talk) 10:11, 18 April 2019 (UTC)
In my opinion you should try Semantic MediaWiki although it's not too straightforward and needs some learning before you'll be able to build fully functional site utilising its (i.e.: SMW) capabilities. Pawel Niemczuk (talk) 23:52, 18 April 2019 (UTC)
I have same problem. Not able to show data from database into dropdown list. 103.82.220.50 (talk) 10:55, 23 April 2019 (UTC)

wgCiteEnablePopups

Hello, I used the wgCiteEnablePopups option while using MediaWiki. But it didn't work at some point, and I found out that it was deleted. I Iike this option very much, so I want to use it again.

Please let me know how to use it again.


Notes: Don't ask me to use gadgets. I don't like it. 94.23.167.104 (talk) 08:07, 18 April 2019 (UTC)

Add the following to your user script file: Special:Mypage/common.js (On your wiki)
mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups');
94rain Talk 14:29, 20 April 2019 (UTC)

Could someone please make a template for me?

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


I'd like a template at Template:Add to watchlist that produces a Big Blue Button (like {{Clickable button 2}}) that says something like "Click here to add this page to your watchlist" (perhaps configurable in the template), and which, when clicked, adds the page to the user's watchlist.

(Yes, I know: there's a nice little star at the top of the page to do this. But the little watchlist star is at the top, and it's little, and some people don't know what it does, and others won't think to do it when they're not on their home wiki.)

I think the button would have to link to something like https://www.mediawiki.org/w/index.php?title={{subst:PAGENAME}}&action=watch – only I don't suppose that URL would actually work. Does anyone know how to do this? Whatamidoing (WMF) (talk) 19:51, 18 April 2019 (UTC)

That'd work (no subst), but it'll take the user to the confirmation page (see https://www.mediawiki.org/wiki/User:Whatamidoing_(WMF)?action=watch for instance) which JS users normally don't see. Doing it without the interstitial would require a custom gadget/site script. Jdforrester (WMF) (talk) 21:29, 18 April 2019 (UTC)
The confirmation box is likely okay. I suppose I'll need to wrap the = in the URL in braces; any other obvious problems? Whatamidoing (WMF) (talk) 20:37, 19 April 2019 (UTC)
Nope, theoretically it should Just Work™. But I've not tested it. Jdforrester (WMF) (talk) 00:17, 24 April 2019 (UTC)
Use {{FULLPAGENAMEE}} instead (note the double E at the end), which will include the namespace and also URL-encode the title in case it contains spaces or other characters that may break the URL. Ciencia Al Poder (talk) 09:29, 24 April 2019 (UTC)
Thanks. It appears to be working at VisualEditor on mobile. I'd rather have it float right; is there any easy way to do that? Whatamidoing (WMF) (talk) 01:11, 26 April 2019 (UTC)
You can place it inside <div style="float:right"></div>
Optionally, add clear:right; to the style to make it appear below the infobox Ciencia Al Poder (talk) 09:11, 26 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

A portal question

Hello guys!


Have a question about portals. I created portal page. There are sections like "Selected article" and "Selected picture.

So, there are links "Suggest" and "Archive" in each section. I don't really need it. Is there any way to get rid of it?

Thank you for your help! Kattey (talk) 04:12, 19 April 2019 (UTC)

It can definitely be done, but how much complicated such would be, depends on the particular Templates and Modules being used. AhmadF.Cheema (talk) 05:51, 19 April 2019 (UTC)

I'm having trouble find the "effects" for the wiki. The only one I know is <strong>, and that doesn't seem to be working.

So, I need every "effect" there is, because I want my writing to be, well, professional! 2605:A000:1407:20E3:2CBA:27F0:2588:5EFA (talk) 12:27, 19 April 2019 (UTC)

Help:Formatting. AhmadF.Cheema (talk) 13:06, 19 April 2019 (UTC)

Help to debug JS on my site

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


On my site https://newtestamentwiki.org when I load every page, it appears "[93c046f19a445578643043b5] 2019-04-19 20:56:16: Fatal exception of type "BadMethodCallException"". Also I cannot edit a page due to JS error.

Please help to debug. VictorPorton (talk) 21:00, 19 April 2019 (UTC)

Oh, I fixed myself, needed just to upgrade VisualEditor. VictorPorton (talk) 21:12, 19 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

i just got this system i can not get in to do set up

i just got this system i can not get in to do set up the no pass word does not wor and i dont speak spanish Johnh1967 (talk) 22:52, 19 April 2019 (UTC)

Is this related to MediaWiki? AhmadF.Cheema (talk) 01:50, 20 April 2019 (UTC)

There's a symbol I can't find an answer to in the math problem.

There's a math problem in the registration process. After the equal sign, there is a colon ":" I can't find any meaning for this in any math systems online except for ratios. Please, help so I can register for the user forum where I work.

Thanks


2603:3001:22C0:0:203D:7362:308B:24F9 (talk) 01:37, 20 April 2019 (UTC)

Exactly which website is this related to? AhmadF.Cheema (talk) 01:50, 20 April 2019 (UTC)

Magic word for number of users

I've been trying to transclude the number of users using the magic word {{NUMBERINGROUP:groupname}} at Help:Magic words. However, no matter what I use, I always get 0 for users and autoconfirmed users.

For example,
{{NUMBERINGROUP:user}} -> 0
{{NUMBERINGROUP:users}} -> 0
{{NUMBERINGROUP:User}} -> 0

While I am aware that the autoconfirmed usergroup is not assignable, and the user usergroup is automatically given to any registered user, those groups still exist.

Am I missing something or is this just not possible? Thanks in advance. Leaderboard (talk) 09:28, 20 April 2019 (UTC)

I think i'm wrong, but it's not possible for "automatically given" groups. Someone need to confirm Tomybrz Bip Bip 12:03, 20 April 2019 (UTC)
For users,
{{NUMBEROFUSERS}}
18,104,107
I had no idea about autoconfirmed users... 94rain Talk 14:08, 20 April 2019 (UTC)

Limit Thumbnail Generation [SOLVED]

My server is extremely limited in both disk space and memory. When looking into disk usage, I found that a majority of it was being consumed by /thumbs. I just needed the 280x210 thumbnails for galleries but many other sizes were being generated.

My first solution was to set $wgImageLimits and $wgThumbLimits to 280x210. This stopped generation of file page previews but three gallery thumbnails were still being generated: 280px, 420px and 560px. So I set $wgThumbnailScriptPath. Now only the 280px thumbnails are being generated but my server quickly caps out on process usage and every other thumbnail is broken on page load. So I disabled $wgThumbnailScriptPath.

Is there any way I can generate just the 280x210 thumbnails without enabling $wgThumbnailScriptPath? If I could change the file history thumbnails from 120px to 280px that would also be good. Here are my relevant configuration options:

# Default gallery options

$wgGalleryOptions = [

'imagesPerRow' => 0,

'imageWidth' => 280,

'imageHeight' => 210,

'captionLength' => true,

'showBytes' => true,

'mode' => 'traditional',

];

# Thumbnail settings

$wgImageLimits = array( array( 280, 210 ) );

$wgThumbLimits = array( 210 );

$wgDefaultUserOptions['thumbsize'] = 0;

$wgDefaultUserOptions['imagesize'] = 0;

$wgUseImageResize = true;

$wgUseImageMagick = false;

# $wgImageMagickConvertCommand = '/usr/bin/convert';

# $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";

# Upload settings

$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg');

$wgMaxShellTime = 0;

$wgMaxShellMemory = 0; PukupukuDragon (talk) 18:56, 20 April 2019 (UTC)

Turns out there was a thumbnailing option I overlooked: $wgResponsiveImages. This is responsible for creating the additional thumbnails that are 50% and 100% larger than the default size. Setting this to false should fix the issue. PukupukuDragon (talk) 00:42, 22 April 2019 (UTC)

Files don't all transfer

I don't remember this problem from the last time I upgraded: using ftp, 180 files failed to transfer. I tried again, and 273 files failed to transfer! Without them all transferring from my computer to the website, I shouldn't expect a very stable wiki, should I?

What was even more weird was that dozens of times the upload was delayed while Filezilla asked me if I wanted to overwrite a newer file with an older file. How is that possible when I am transferring the unzipped files into an empty folder?!!! 71.7.53.76 (talk) 21:02, 20 April 2019 (UTC)

Welcome to the support desk for the MediaWiki software. What does your question have to do with the MediaWiki software? Malyacko (talk) 14:58, 21 April 2019 (UTC)
My two questions, stated another way: (1) Is it normal part of uploading mediawiki upgrade files that not all of them successfully transfer through ftp - should I not worry about it, and expect the wiki to work anyway? (2) How can it be that while transferring extracted files from my computer to the website, that an older file would try to overwrite a newer file (identical in name and size)? Do wikimedia files have twin files in the same directory with the same name and same size, but one older than the other? I don't know how that is even possible and I don't know how to respond, or if I should somehow not worry about it.

2604:2D80:4038:906A:B59F:4E79:513D:5173 (talk) 18:56, 21 April 2019 (UTC)
No, all files will need to be transferred successfully. This is much more a problem with the particular FTP client than MediaWiki.
Also you should try uploading the compressed archive file and then extract that in the server. Uploading hundreds of files through FTP can be unreliable. AhmadF.Cheema (talk) 19:34, 21 April 2019 (UTC)
Thanks. I'll try that. 2604:2D80:4038:906A:B59F:4E79:513D:5173 (talk) 21:21, 21 April 2019 (UTC)

Using js event listener and setTimeout in an extension

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


Are there any restrictions on js functions allowed on MediaWiki? I'm asking because the function addEventListener() and setTimer don't seem to work.

The following js code works outside of MediaWiki (i.e. I troubleshot by creating a simple test.php file with the js script, and it works as intended.)

The following code is supposed to trigger every second and update a <nowiki><p></nowiki> tag on-screen, starting when the user clicks a button. Oddly, the function triggers on every button press, instead of once every second.

Here's the code: (I'm not using jQuery -- I copied an example online and didn't update it for jQuery.)


window.addEventListener( 'load', function ( ) {

var start = document .getElementById("start");

start.addEventListener( 'click', startTime );

});

function startTime( ) {

startWatch( );

// a few other things that hide / unhide some html elements

}

function startWatch( ) {

var x = document .getElementById("timer");

x.innerHTML = 'Time: ' + secs;

seconds++;

/* call the setTimeout( ) to keep the timer alive ! */

clearTime = setTimeout( "startWatch( )", 1000 );

}


Using MW version 1.30.0 • Supāsaru 23:18, 20 April 2019 (UTC)

This is a JavaScript problem, not a MediaWiki problem. You may have more success asking in stackoverflow.
There are various flaws here. You use an undeclared and uninitialized "secs" variable, and then increment an also undeclared and uninitialized "seconds" variable. The function may simply error out, or print exactly the same on every run. Ciencia Al Poder (talk) 10:20, 22 April 2019 (UTC)
In my example code above, I didn't add all the variable declarations that I have in my actual .js file. (I thought I'd save a bit of space.) 'Seconds' is the incrementor and 'secs' is the output to HTML.
The reason I thought of asking here is that the script is working outside MediaWiki, but not in my MW Special page.
There isn't any thing else that would prevent the script from working in MW? • Supāsaru 15:16, 23 April 2019 (UTC)
Resource Loader minifies all scripts and puts them each inside a closure. This may affect the script depending on how it's coded.
Also, the scripts may be injected after the page has been loaded, and then attaching the startup to window.load may not work at all if the event has fired already. Use the jQuery replacements for that. Ciencia Al Poder (talk) 09:17, 24 April 2019 (UTC)
Gracias, Ciencia Al Poder.
I converted the code to jQuery and I had to debug the code.
What finally worked was changing
clearTime = setTimeout( "startWatch( )", 1000 );
to
clearTime = setTimeout( function() { startWatch( ); }, 1000 );
I've added this in case anybody else has any setTimeout issues. • Supāsaru 23:59, 25 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Passwords forgotten

Really sorry to bother you. I have just bought a new computer and downloaded Filezilla in order to update two websites I run. However I cannot recall the passwords for the two sites and cant find a 'forgot password' option. Ther two sites are UAJCA and Oakworth Cricket Club Can you recall the passworsd for me please?

many thanks 86.157.142.100 (talk) 08:12, 22 April 2019 (UTC)

Apologies, but wrong support forum.😕 AhmadF.Cheema (talk) 09:03, 22 April 2019 (UTC)

Some page_title entries in database have space instead of underscore. How to fix?

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 some pages in my wiki in the Orphaned Pages list that show up as if the linked page doesn't exist.

If I search for the page in the search bar I get a result. But rather than going to the page itself it just shows the page in the Page title matches, where they appear to be active links, but if you click them you don't go to the page., but a create page instead.

When hovering over the page in the Page title matches I see that instead of underscore it sometimes has %C2%A0 or %A0 in the link.

This made me look up the page in the database where I can see that instead of underscore those particular pages have a blank space instead of the underscore it is supposed to have.

How do I fix that so that the space is changed to an underscore in the database?

MediaWiki version 1.26.3

PHP version 5.6.39 (cgi-fcgi)

MySQL version ? - Not sure where to check for the version number

Btw, this problem has existed throughout the last many updates of the wiki. Only just figured out the problem in the database names. Tenzel Kim (talk) 09:33, 22 April 2019 (UTC)

Try running the cleanupTitles.php maintenance script Ciencia Al Poder (talk) 10:14, 22 April 2019 (UTC)
Any updates here?
Run maintenance script is not the solution. Broken page titles are still creating.
My temporary quick fix: run maintenance script onPageContentSaveComplete hook... Microstep-developer (talk) 13:42, 6 July 2020 (UTC)
If those pages are still being created, you have a faulty extension creating this mess, or you're using some hack to create pages... Ciencia Al Poder (talk) 21:37, 6 July 2020 (UTC)
That worked. Thought I'd tried that before but apparently not. Thanks. Tenzel Kim (talk) 12:38, 22 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Two Column Table

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


I'm trying to create a template for semantic output results, which is limited to two columns, so the results go in column 1, column 2, then a new row starts and this repeats. As far as I can tell, CSS should be able to do this?

I have the following in my common.css:

.twocol::after td:nth-child(even) {

  content: "|-";

}

and i'm trying to insert this with <span class="twocol"></span>, with the hope that on every even column it inserts the table markup, but I'm having no luck... Is there something wrong with my code, or will this just not work? Brickscrap (talk) 10:09, 22 April 2019 (UTC)

What makes you expect that the added content would be interpreted as some markup instead of rendered as a plain pipeline character followed by a dash? The markup parsing and converting it to HTML on the server takes place before some CSS layout is rendered in your browser? Malyacko (talk) 17:49, 22 April 2019 (UTC)
That makes sense. I'm starting to think my idea isn't possible without some kind of Lua module... Brickscrap (talk) 07:12, 23 April 2019 (UTC)
Don't use a table, but div instead.
You can make divs have display:inline-block, have a specific width, and they'll be placed one next to the other. If you put them on a fixed width div that only allow 2 divs on a row that will have the effect you want. Ciencia Al Poder (talk) 09:38, 23 April 2019 (UTC)
I'd never even considered that. Thank you so much Brickscrap (talk) 15:22, 24 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to translate the content of a wiki

mediawiki 1.31; php 7.1

i am running a mediawiki in German and would like to transfer the entire content into English. How is that possible? 95.91.246.157 (talk) 13:23, 22 April 2019 (UTC)

Original language is in german language? New versions MediaWiki has special page Special:PageLanguage which may do switch original language of page to another. Want (talk) 13:39, 22 April 2019 (UTC)
Ohh this is killing me, I have a wiki in Danish and I need to guess what "Special:PageLanguage" translates into. ;-)
Anyway there is a translation package, that may help out here. However it requires some PHP add in, that I am not allowed to activate at my local host. AssetDenmark (talk) 09:44, 23 April 2019 (UTC)
i want to translate the content into english permanently, since we move on to a international team 95.91.246.157 (talk) 13:42, 22 April 2019 (UTC)
I recommend for it:
  1. change source language from german to english
  2. for old pages set source language to german
  3. hire a professional translator for translation this pages.
And new pages write only a english. Want (talk) 14:18, 22 April 2019 (UTC)
great thanks!
I would never have guessed!
will recommend this place, awesome! 95.91.246.157 (talk) 18:37, 22 April 2019 (UTC)
take a look at this Help:Extension:Translate AssetDenmark (talk) 09:47, 23 April 2019 (UTC)

Extension:UploadWizard no longer provides suggestions for the Categories field

After updating from MediaWiki version 1.31.1 Extension:UploadWizard no longer provides suggestions for the Categories field when uploading files. This feature was previously available and seems to either be malfunctioning or has been removed. Is there any way I can restore this functionality?


MediaWiki version 1.32.1

PHP 7.2.17 (fpm-fcgi)

MariaDB 10.1.38-MariaDB

https://blazblue.wiki/wiki/Special:Version


Issue can be recreated here (account registration required):

https://blazblue.wiki/wiki/Special:UploadWizard Jdesu (talk) 21:32, 22 April 2019 (UTC)

Deleting multiple users

I'd like to be able to delete nearly every user on my wiki - probably "every user which has never made an edit" - or "every user who has only edited his own user page".

Is there an extension that could do this? Or a tried-and-tested SQL query?

Thanks in anticipation. Jonathan3 (talk) 22:33, 22 April 2019 (UTC)

The most appropriate way to achieve something similar is by way of Extension:UserMerge. The more customized solutions, either don't exist or are likely to be very unreliable. AhmadF.Cheema (talk) 01:39, 23 April 2019 (UTC)
Thanks. That extension doesn't look useful for removing (or merging) hundreds of users. Its page has a link to Extension:BlockAndNuke but that's not maintained and from the talk page looks not to be working with the latest MW version. Jonathan3 (talk) 22:35, 28 April 2019 (UTC)
Back to SQL, do you think the following would work? The intention would be to delete every user from the user table who has never made a revision which appears in the revision table.
DELETE 
FROM wm_user 
WHERE user_id NOT IN (SELECT DISTINCT rev_user FROM wm_revision)
There are no pages in the User or User Talk namespaces to worry about having to delete. Jonathan3 (talk) 22:40, 28 April 2019 (UTC)
@Samwilson I saw you reply to another message about users, and wondered if you would be able to help with my (SQL) query above. Thanks in anticipation. Jonathan3 (talk) 00:16, 3 May 2019 (UTC)
I'd recommend against trying to do this directly with SQL. It's really likely to be a headache.
I suspect that getting the BlockAndNuke extension up to date would be easier, and result in a more reliable solution that's more usable by more people. :)
(I might have a look at it this weekend...) Sam Wilson 00:19, 3 May 2019 (UTC)
>> every user which has never made an edit
Well, this is simple. Just run the maintenance script 'RemoveUnusedAccounts.php' - Manual:RemoveUnusedAccounts.php Deimos (talk) 13:52, 7 May 2019 (UTC)
Thank you very much. I'll look into it as soon as I get a chance! Because of the settings on my wiki, the spam accounts get created but don't edit pages, so this looks like the right solution for me. Jonathan3 (talk) 22:20, 23 May 2019 (UTC)
i know zombie thread and stuff. I ran the removeUnusedAccounts.php and found and removed over 88k users. (got a massive spam attack and have since added captcha)
when i go onto mu wikipage and view user lists it still hows 1000s of users that need to be removed. is there another option for getting rid of them? as a bonus if you can remove pages that they made under the talk option. Meanderpaul (talk) 15:52, 19 January 2022 (UTC)

How to add title, summary, license etc when uploading image

I am using python script to upload an image. Below is a sample code I use to upload an image, but what is the correct syntax to provide license, title and summary fields in the  variable "text":"Text on the File: page... description, license, etc." so will be it be "text":"my dummy title, my dummy description, {{CC-0}}.",

PARAMS_4 = {

   "action": "upload",

    "filename": "images/GN07551.jpg",

    "comment":"<MY UPLOAD COMMENT>",

    "text":"my dummy title, my dummy description, {{CC-0}}",

    "format": "json",

    "token": CSRF_TOKEN,

    "ignorewarnings": 1

}

FILE = {'file':('images/GN07551.jpg', open(FILE_PATH, 'rb'), 'multipart/form-data')}

R = S.post(URL, files=FILE, data=PARAMS_4)

DATA = R.json()

print(DATA)


Any help would be appreciated. thanks Htsabot (talk) 04:50, 23 April 2019 (UTC)

@Htsabot (wrong) / @Htsa: What is a "title"? Where to see a specific example for a "title" in a link that you can provide?
/If/ you follow API:Upload (do not know, as you do not tell anybody where you code comes from), maybe also ask how to set the file license on the corresponding talk page there?
Also, please do not manually add or edit with the bot account "Htsabot", like you just did here. This was already requested on https://commons.wikimedia.org/wiki/Commons:Bots/Requests. Malyacko (talk) 08:22, 23 April 2019 (UTC)
@Malyacko Sorry I am newbie - I won't edit bot account again.
Sorry again for the confusion regarding title. As you may know I am using bot to upload bulk images. I tried to upload an image and it worked but it was deleted by an admin as it lacked proper source and license. I want to upload the images with summary, date, source, author and license (https://creativecommons.org/share-your-work/public-domain/cc0/). How can i include these fields at the time of upload? Htsa (talk) 04:37, 24 April 2019 (UTC)
You should add this information to the text parameter, see API:Upload Ciencia Al Poder (talk) 09:26, 24 April 2019 (UTC)

Uploading Images Internal Server 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.


I recently istalled the latest version of MediaWiki 1.32.0.

After the Istallation I noticed that all pictures could not be displayed. I uploaded them through the website (not via FTP).

I've looked at the following troubleshooting but have not used them because i dont understand them.

Project:Support desk/Flow/2018/09#h-Unable_to_view_images_in_wiki-2018-09-25T11:47:00.000Z

Project:Support desk/Flow/2016/01#h-500_Error_on_Uploaded_File-MediaWiki_1.26_internal_error-2016-01-23T20:57:00.000Z

I also tried to find logs but can not find them


You can see the Error here:

http://wiki.tacticalbacon.de/index.php?title=Hauptseite

http://wiki.tacticalbacon.de/images/c/c9/Logo.png


Picture: Checking the installation environment

https://imgur.com/1woFM9P

Are these errors critical? Xdarkeyex (talk) 08:55, 23 April 2019 (UTC)

Accessing any path inside http://wiki.tacticalbacon.de/images/ causes a HTTP 500 error. This is caused by a configuration error on the webserver, probably a .htaccess file in the images directory. Try commenting-out all directives of that file and then uncomment one by one until you find the cause of the problem. This is often caused by the webserver not allowing configuration to be overridden from .htaccess files. Ciencia Al Poder (talk) 09:14, 23 April 2019 (UTC)
@Ciencia Al Poder at the moment in the .htaccess (/mediawiki/images) file is this:
# Protect against bug T30235
<IfModule rewrite_module>
RewriteEngine On
RewriteOptions inherit
RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
RewriteRule . - [forbidden]
# Fix for bug T64289
Options +FollowSymLinks
</IfModule>
what should i edit? Xdarkeyex (talk) 10:52, 23 April 2019 (UTC)
First of all, try removing everything (if this doesn't work neither, try removing/renaming the file itself)
Then you can add it again and comment out lines from bottom to top , not touching <IfModule rewrite_module> nor </IfModule> Ciencia Al Poder (talk) 21:30, 23 April 2019 (UTC)
@Ciencia Al Poder Only when the file is completely empty can the images be displayed. Can I leave it this way or is this a security issue? Xdarkeyex (talk) 22:19, 25 April 2019 (UTC)
Apparently the server doesn't have Allow Override +Options for the MediaWiki directory. You should enable that, or add the rules of htaccess to a <Directory> pointing to the images folder.
It may be a security risk for old InternetExplorer users, but if you don't care about them you may simply ignore them. Ciencia Al Poder (talk) 09:18, 26 April 2019 (UTC)
@Ciencia Al Poder I think i found the problem. My webspace is on strato.de:
Note: Please note that we do not offer Directive RewriteOptions in .htaccess files and that the maximum depth for RewriteLoops is limited to 3
The Apache directive RewriteOptions is not allowed.
(source:https://www.strato.de/faq/hosting/kann-ich-in-meinem-paket-die-rewrite-engine-modrewrite-fuer-meine-php-skripte-verwenden/)
so the .htaccess file cant work or? Xdarkeyex (talk) 09:45, 26 April 2019 (UTC)
so i delted only this line RewriteOptions inherit
Now the pictures are displayed Xdarkeyex (talk) 09:50, 26 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Import did not create categories...

I am trying to export/import pages - from a local wiki to a new one, but I have a few issues. ( This apparently requires me to enter an "Interwiki prefix" - for this I used the name of the target wiki). The language for the wiki is Danish, but my profile is set to English.
At first sight import looks like a success, however when i check page with categories the link works but the category pages does not refer to the pages and contains this text: "This category currently contains no pages or media."
When I go to the specialpage:categories I get this message:
[XL7T4zh62JutCTuDi5sqqwAAAIA] 2019-04-23 08:59:15: Fatal exception of type "Error"
also most pages have been put into a the category for missing files, but this category also do not contain any page references.
Even if I go to the edit and save a page, the category is not updated!

(Target is 1.32.0 and source is 1.18 ) AssetDenmark (talk) 09:15, 23 April 2019 (UTC)
I tried to restore my new wiki to a state before I even had the most basic extensions added , and the results are the same!
My next attempt must be to remove categories from the import... and import these prior to the other pages!

AssetDenmark (talk) 08:19, 24 April 2019 (UTC)
Doing this does not work either. New errors occurs...
The categories appear to import correctly, but importing the main data - or a "big" namespace - results in "No interwiki prefix was supplied" even though the interwiki prefix was supplied! - this seems to occur now (and not before), because I included the entire history in the 2nd files I exported!

AssetDenmark (talk) 09:49, 24 April 2019 (UTC)
Maybe the category pages haven't populated yet. See runJobs.php.
Regarding the fatal exception, to get a more detailed error description, in your LocalSettings.php, add the following:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
AhmadF.Cheema (talk) 09:32, 23 April 2019 (UTC)
Thanks for the tips! Re the fatal error This was going wrong:
[XL7gZQyBgBlOyCfL6kZ4kQAAAA8] /Speciel:Kategorier Error from line 415 of /home/n117056/public_html/extensions/TinyMCE/TinyMCE.hooks.php: Call to undefined method TitleValue::getArticleID()
so I can disable TinyMCE (editor extension) and then I can see the categories... the getArticleID function may work when the categories are updated. ( I wound NEVER have found this without your help!)
I set
$wgJobRunRat = 0.01;
...but I can I somehow trigger the jobs run? ( I do not have PHP access, but I know there is a way to run the update scripts. Or is there something in an error log i need to check? AssetDenmark (talk) 10:03, 23 April 2019 (UTC)
The Extension:TinyMCE problem could be because the extension on your setup has not been updated.
For running maintenance scripts without PHP access, try Extension:Maintenance. AhmadF.Cheema (talk) 11:47, 23 April 2019 (UTC)
I wonder if, i used $wgExportFromNamespaces = true; and "from" this got the option to select the namespace "categories" - now I wonder if the categories was somehow has invalidated by this? (Or can someone perhaps exclude that as what cause the error?) AssetDenmark (talk) 10:39, 23 April 2019 (UTC)

User:Suleimanjama

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 tag this for deletion but I can't edit other user's user pages. Could someone take a look? user page is clearly only for advertising Gbawden (talk) 09:17, 23 April 2019 (UTC)

Removed; thanks. Clump (talk) 10:57, 23 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Unable to edit Exampedia page

I am attempting to make edits to this page: https://exampedia.org/wiki/CIC_Certification.

I created a login for MediaWiki but when I attempt to use this same login on Exampedia, I receive an error message that my username does not exist. I was under the impression that MediaWiki accounts could also edit Exampedia pages.

Can anyone assist?

Thanks! CBICStaff (talk) 13:56, 23 April 2019 (UTC)

If by "MediaWiki accounts" you meant "accounts on MediaWiki.org", then your impression is wrong. Malyacko (talk) 14:25, 23 April 2019 (UTC)

Translator hub

Lately I see, querying about translations and best practices what use here, and any specialized page for translators was not here. For it, I created a page Translator hub (draft).

Because I translate primarily from English, but not into English, do anybody check this page, please? Thank you. Want (talk) 15:22, 23 April 2019 (UTC)

It seems helpful. I suggest that we can also have a babel list (Languages spoken) for local sysops and translationadmins. (like m:Stewards#List_of_current_stewards)
So that newcomers may turn to admins for help in their native language. 94rain Talk 15:35, 23 April 2019 (UTC)
I looked into the code of this page and it is horrible solution – template with static table which is manually filled. Best is use template and Extension:Page Forms, but this extension is not used here (it may do query for data from templates).
By my mind, better is directly contact between translators over talk pages, because cooperation on prepare of pages is not limited by translator or translator admin native language. And anonymous user may translate too. Want (talk) 16:40, 23 April 2019 (UTC)

DNA data gone

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 just paid for Tier 1 and my DNA profile has disappeared or 'deleted'. I still have my kit number, but it is not showing anywhere. All was working well a few moments ago, before payment. What can I do? 86.129.51.156 (talk) 17:30, 23 April 2019 (UTC)
go and look for it 68.106.65.77 (talk) 20:49, 23 April 2019 (UTC)
Wrong support forum.😕 AhmadF.Cheema (talk) 17:33, 23 April 2019 (UTC)
Why do you think MediaWiki can help you on this? 94rain Talk 00:11, 24 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The supplied credentials are not associated with any user on this wiki.

Hi,


I've done the configuration as per the online documentation, but I'm getting the following error "The supplied credentials are not associated with any user on this wiki." after I login to google. Does anyone have any idea what is the issue?

Really appreciate if anyone can help. I'm currently running MediaWiki 1.31.0 and the latest stable mediawiki 1.32.


115.66.216.75 (talk) 07:58, 24 April 2019 (UTC)

Which exact online documentation? How is some Google login related to MediaWiki? Malyacko (talk) 08:24, 24 April 2019 (UTC)

Image not centered and text not displayed in box

The image is here

This is how I expect it to be displayed, the same wikicode in another wiki:

Do you know why it is displayed differently?

For version info see my wiki's version page

Thanks! Robertinventor (talk) 10:45, 24 April 2019 (UTC)

Because Encyclopedia of Buddhism use on page centered div as default for all pages. Want (talk) 11:05, 24 April 2019 (UTC)
I don't think that's it. The same image can be put left or right just by changing the wiki markup. But this doesn't work in the Encyclopedia of Astrobiology. Also it's not just the placing it's also the frame around it which separates the image from the rest of the page.
I've put the same code here in mediawiki and added a left image below it as well a a right image:
User:Robertinventor
And the same wikicode in my Encyclopedia of Astrobiology here: Robertinventor (talk) 15:50, 24 April 2019 (UTC)
May be is overrided CSS attribute for it. Want (talk) 17:12, 24 April 2019 (UTC)
Ah sorted. It's because I'm using the "Foreground" skin, seems there is something in its css changes the styling of image placement and captions, did a preview in Vector and it looks as expected. Also in Metrolook. Robertinventor (talk) 18:18, 27 April 2019 (UTC)

Import bug reporting

How/where do I report a bug in the export/Import function?
As described (Project:Support desk/Flow/2019/04#h-Import_did_not_create_categories...-2019-04-23T09:15:00.000Z ) I am having serious problems when importing pages that contains category references. That is the categories are not updated/maintained - I tried to create a category prior to the import. From this there are these symptoms:
  • The pre-created category is populated only with new pages.
  • New Categories are created (when I import pages containing categories), they are blank but can be updated.
  • Imported pages can not be categorized, placing them in the existing/new or imported categories does not work... !
  • (There seems to be a short delay on the registration - indicating that the job queue is actually running?)

(...can I otherwise verify that the job queue is running? Is that shown on some of the special pages or in a log?)

Please help - since this is a new/blank Wiki I can open this up to anyone that may want to try to import/test their own pages. Once the bug has been found I will start over..

AssetDenmark (talk) 11:59, 24 April 2019 (UTC)
See "Report wrong software behavior or a feature proposal" on https://www.mediawiki.org/wiki/MediaWiki linking to https://www.mediawiki.org/wiki/Special:MyLanguage/How_to_report_a_bug AKlapper (WMF) (talk) 13:05, 24 April 2019 (UTC)
All bug reports should be made in phabricator with an accurate reproduction scenario.
To correct, you can run the script Manual:Rebuildall.php to force an update of all the indexes. —TheDJ (Not WMF) (talkcontribs) 12:22, 24 April 2019 (UTC)
Thanks, I do not have access to run PHP from a command line, so I did try to reinstall/update using the /mw-config/ option, but that did not rebuild the indexes. Is there any other ways to this, or do I need to move to a server/host that will allow me to run PHP? (I have a few other reasons to do so, but I have some 400 wiki pages and those was what I would really want to work with ... :-O )
Is there no other ways to run the rebuild the indexes (and to do other maintenance jobs without PHP comandline?)... AssetDenmark (talk) 17:40, 24 April 2019 (UTC)
I just - to make sure that this was not an issue between MediaWikis - tried to export from https://test2.wikipedia.org/wiki/Special:Export and then import to my Wiki. This gave the same result: http://www.medomtanke.dk/Mac_OS and this is how the category looks http://www.medomtanke.dk/Kategori:1984_software (after I have edited the category page... )

AssetDenmark (talk) 18:08, 24 April 2019 (UTC)

Export/Import Wiki Content from a cloud hosted Media Wiki to and OnPrem one

Hi we have a media wiki hosted by a cloud provider and I need to move the content to a new one I have setup on our local network. I have tried the export and import but am confused by the Interwiki prefix error. What do I need to enter into the field ?
Also is there any way of exporting the user accounts to the new wiki?
Thanks in advance Megacubic (talk) 14:19, 24 April 2019 (UTC)
@Megacubic sorry for messing with your original questions. But I think you can use MySQL for this.
If you follow my instructions you get a complete copy of your wiki.

AssetDenmark (talk) 07:35, 30 April 2019 (UTC)
As far as I have found there is "only" these: Extension:UserExport / Extension:ImportUsers- this will export in .CSV format.
However it looks like you will be allowed to see the passwords, and that may giver some issues... depending on your users views/needs for privacy... if this is at all an possible problem you should perhaps prompt the users to create new logins. (Some GDPR issues may pop up?)
I do not know if you can make/reserve the usernames with random passwords, then mail them.. and ask/force them to change the password! (also, perhaps take a look at this: Wikimedia Security Team/Password strengthening 2019 ) AssetDenmark (talk) 19:31, 24 April 2019 (UTC)
Can't you take a dump of the database (mysql) and import it to the new server? Ciencia Al Poder (talk) 09:16, 25 April 2019 (UTC)
Thanks - That is what I would try next, only I do not know if that will work goring from 1.18 to 1.32 - has the tables changed and do I finally need to run some PHP (that I do not have access to.. ) .
Also I would think that I am not the only one that will have this, very basic, problem.. (sorry this was about the users, my current problem is regarding the export/import that is apparently not working for categories)... AssetDenmark (talk) 10:14, 25 April 2019 (UTC)
Exporting the contents of the database isn't a problem if you upgrade, because after importing the contents of the database you'll do an upgrade (if you also copy the LocalSettings.php file with required modifications like database and paths).
See Manual:Moving a wiki for explanations and alternatives. Ciencia Al Poder (talk) 09:15, 26 April 2019 (UTC)
Thanks, I am not sure if the "upgrade" will do all what I need as I try to import the 1.18 MySQL tables, into the 1.32 tables. - I may have to run the rebuildall.php, but I do not have the PHP command line probably also because I have no access to PHP command line at the host I chose.
I Looks like I managed to get this done in few simple steps.... I will naturally first need to test if everything is working.... and the I will post at the Manual:Moving a wiki page. ;-)
I must admit that I find the move/upgrade as the most difficult task here, to many alternatives/options/choices with unknown consequences.. and I have to learn a lot of different tools, only to find that they are not fit or not needed. The entire process could be much more easy, if not automated.
But there are also a lot of stuff that can go wrong, say I have the 1.18 in utf-8 (on an W7 laptop), while the hosted Installatron installed 1,32 in binary... and it seems like there are 'more' tables in 1.32. -only time will tell if I need the data in these tables and if I then somehow need to convert the missing data to utf-8.
The "easy" way would be to mirror the 1.18 and upgrade it on the laptop, but can that be done in one take, will installing the latest PHP/MySQL version invalidate the laptop... that is slowly dying.

AssetDenmark (talk) 13:19, 26 April 2019 (UTC)
The idea of moving a wiki is not import 1.18 data in 1.32 tables, but to copy the 1.18 tables to a new database on the new hosting, leaving it the same as 1.18. Then run update.php to upgrade the 1.18 schema to 1.32 (or the version you're using on the new host), giving the correct database credentials in LocalSettings.php Ciencia Al Poder (talk) 17:09, 26 April 2019 (UTC)
I did that - on a Installatron supported host - and it seems to work OK, only i wonder if there are some MySQL data that was lost.. I does not look like things are missing,but I wound not know that until I hit something that is affected.. this requires that you have a little bit of understanding on MySQL, tables, their naming and the different users/passwords...
In my case the host has cPanel/Installatron support... to make this work with the backup features you must first install a "blank" Wiki, inspect how Installatron refers to the MySQL tables, as you need to change this setup (both regarding database name and db-prefix. I do not have the option to run update.php - but i did run mw-config and after that I used a cPanel function to upgrade 1.32 to 1.32, I don't really know what effect that has!?
This is what I did:
* I create a new table, in phpMyAdmin (the user/password is the one that you use in Installatron)
* Create a New Wiki and I Export the MySQL tables, New Wiki to a file (inspect this installation, and try to match this database/prefix to that of the original table. Parameters can be seen in localsettings.PHP)
* I changed the table name and prefix of tables, by edit of the file exported file - to match the final result
* I load the new version of New Wiki tables
* I then Export the data from the Old Wiki... and
* Again, I changed the table name and prefix of tables, to match the final result
* I Load the Old Wiki data - it will drop all existing tables and keeps those that are new between versions
* I run mw-config - see https://www.mediawiki.org/wiki/Manual:Config_script
* and I update the localsettings.PHP to match the final results (the users/passwords are preserved, but the pw for the tables are that that was set in step one!)
* Finally I used the edit function of (<your web path to:>'/installatron/index.cgi#/installs' to match the new parameters for the MySQL tables....
Doing this I managed to move a 1.18 Wiki to 1.32... the two final steps would be:
* Upload all files in the /images folder as-is, these will work fine as they are registered in the MySQL.
* Install all extensions that was (and are to be) in use in your Old Wiki...
The only thing that I think may go really wrong, would be that I needed this CHARSET=utf8; and not CHARSET=binary; - where binary seems to be the default (or perhaps a "wrong choice" made when I used Installatron to set up the new Wiki...) - I needed this to support Scandinavian languages, and I don't know if binary is a better or worse solution. AssetDenmark (talk) 10:04, 28 April 2019 (UTC)
Note that the installer no longer gives the option to choose a utf8 charset (binary will be the default). See phab:T196092. Ciencia Al Poder (talk) 14:38, 28 April 2019 (UTC)
Thanks @Ciencia Al Poder - that would be a bit of a problem, along the way? I imagine that I should convert the tables asap, perhaps there is some SQL option that will tell that all input is utf8, but the new table is to be loaded using binary... I can however find a bunch of ways to convert from binary to utf8, not the other way! AssetDenmark (talk) 06:51, 29 April 2019 (UTC)
utf8 will still be supported, but maybe in the future the collation must be changed manually.
See also https://stackoverflow.com/questions/10949959/how-to-change-or-conversion-utf8-general-ci-to-binary-in-mysql Ciencia Al Poder (talk) 09:30, 29 April 2019 (UTC)
Thanks again - I must take a look into this, (just a bit later as I have some 400 pages I need to reorganize, that was the initial task I was to take on)..
And as you can see, I found that I had added a brand new namespace - but when doing that I an old namespace to that, thus the old-namespace came up twice and the links was not working.
@Ciencia Al PoderYour help is much appreciated - and I hope I will eventually be able to provide some help back to the community ... Now I can finally get to work! ;-)

AssetDenmark (talk) 10:48, 29 April 2019 (UTC)
Thanks! AssetDenmark (talk) 09:46, 28 April 2019 (UTC)

Interwiki and Import?

Can someone explain why I need the "interwiki prefix" when I import pages from an other wiki. Say I have "Wiki One"and I now want to export pages from this and import them to "Wiki Two". I do not want any reference to "Wiki One" from "Wiki Two"... so why do I need to give provide the interwiki prefix?

( I understand that interwiki is a way for us to point to an other wiki, say Mediawiki:Project:Support desk (that clearly did not work as I expected... :-/ ) - but i don't understand why "Wiki Two" is not the default value when I import pages... ??)


AssetDenmark (talk) 18:28, 24 April 2019 (UTC)

Search backend error during full_text search- Elastic Search Error

2019-04-24 18:31:05 VP-171885 DFI_WIKI_132_SBX: Search backend error during near_match search for 'and' after 31: index_not_found_exception: no such index [DFI_WIKI_132_SBX_content]

2019-04-24 18:31:05 VP-171885 DFI_WIKI_132_SBX: Search backend error during full_text search for 'and' after 3: parsing_exception: [query_string] query does not support [auto_generate_phrase_queries]

2019-04-24 18:31:58 VP-171885 DFI_WIKI_132_SBX: Search backend error during prefix search for 'and' after 18: index_not_found_exception: no such index [DFI_WIKI_132_SBX_content]

2019-04-24 18:32:00 VP-171885 DFI_WIKI_132_SBX: Search backend error during prefix search for '"' after 9: index_not_found_exception: no such index [DFI_WIKI_132_SBX_content]

2019-04-24 18:32:01 VP-171885 DFI_WIKI_132_SBX: Search backend error during prefix search for '""' after 18: index_not_found_exception: no such index [DFI_WIKI_132_SBX_content]

2019-04-24 18:32:03 VP-171885 DFI_WIKI_132_SBX: Search backend error during prefix search for '"s"' after 13: index_not_found_exception: no such index [DFI_WIKI_132_SBX_content]

2019-04-24 18:32:03 VP-171885 DFI_WIKI_132_SBX: Search backend error during prefix search for '"sd"' after 33: index_not_found_exception: no such index [DFI_WIKI_132_SBX_content]

2019-04-24 18:32:03 VP-171885 DFI_WIKI_132_SBX: Search backend error during prefix search for '"sdf"' after 15: index_not_found_exception: no such index [DFI_WIKI_132_SBX_content]

2019-04-24 18:32:04 VP-171885 DFI_WIKI_132_SBX: Search backend error during full_text search for '"sdf"' after 18: parsing_exception: [query_string] query does not support [auto_generate_phrase_queries]

This is the error I am getting while searching after installing Elastic Search.

Above is the full detail of error. Please help to solve the problem. Saddamarunachal123 (talk) 18:41, 24 April 2019 (UTC)

See the README file for installation instructions. You need to run some maintenance scripts to create the indices. Ciencia Al Poder (talk) 09:22, 25 April 2019 (UTC)

Short URL not working

Good day,


Summary: I've followed all the steps outlined in the manual, but the Short URL isn't working - I receive a 403 error. Without short URLs, the site works fine.

Setup: Apache web server, website root = /var/www/html/w

Details:

In the LocalSettings.php file, I've added the below lines under the $wgSitename.

$wgScriptPath = "/w";

$wgScriptExtension = ".php";

$wgArticlePath = "/wiki/$1";

$wgUsePathInfo = false;


In the httpd.conf file, I've added the below lines.

RewriteEngine on

RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]


For the /var/www and /var/www/html directories, I've ensured the below options are in place:

<Directory /var/www...>

Options Indexes FollowSymLinks

AllowOverride none

Require all granted

</Directory>


So, after all that I get a 403 error. When I check the server logs, it tells me there's a AH01630: client denied by server configuration: /var/www/html/wiki.

What's strange is, I don't have a wiki folder anywhere.


Any assistance would be much appreciated, thanks! 2600:1003:B026:7701:4587:529B:1E8:BA1 (talk) 22:31, 24 April 2019 (UTC)

Also, I've restarted Apache a few times just to be sure it wasn't a caching issue or something, but it didn't make a difference. 2600:1003:B026:7701:4587:529B:1E8:BA1 (talk) 22:36, 24 April 2019 (UTC)

Always show referrering URLs when clicking out from https mediawiki site

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


I am running mediawiki 1.32 on a https://... domain and this hides referrers when users click out to external websites. I would like to make it always show referrers.

One way to do this is to add <meta name="referrer" content="always"> to all pages, however I am having difficulty adding this meta tag in mediawiki 1.32.

Is there an easy way to achieve this functionality? 114.77.115.246 (talk) 23:20, 24 April 2019 (UTC)

Yes, set $wgReferrerPolicy appropriately in LocalSettings.php Ciencia Al Poder (talk) 09:11, 25 April 2019 (UTC)
Thanks for your help, I was able to figure it out. 114.77.115.246 (talk) 22:40, 25 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

New line character in scribunto/lua regular expression?

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 looking at using Module:String#replace to take a multi-paragraph piece of text and return only the first paragraph. I can't seem to find the scribunto/lua way to specify a carriage return or new line. Any ideas?
{{#invoke:String|replace
|source  = INPUTTEXT
|pattern = (.*)NEWLINESYMBOL
|replace = %1
}}


Input:

The quick brown

fox jumps over the

lazy dog


Intended output:

The quick brown

T.Shafee(EvoEvo)talk 00:13, 25 April 2019 (UTC)
Ping user:Jsimlo, user:Algorithm, and user:Kghbln as the sort of people who might know about such things. T.Shafee(EvoEvo)talk 04:52, 6 May 2019 (UTC)
I guess it will be best to ask the people who worked on the module for possibilities to implement or for a hint how to use it for you use case. [[kgh]] (talk) 08:03, 7 May 2019 (UTC)
Ping IAlex, Anomie, Dragons flight as people who were involved in editing early Module:String (apologies to those for whom this isn't relevant, since I found the module's history tricky to track) T.Shafee(EvoEvo)talk 09:51, 7 May 2019 (UTC)
I think I've solved it. Template here:
v:Template:Extract_first_paragraph T.Shafee(EvoEvo)talk 06:54, 10 May 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

font size

I would like to change the font size for my wikipedia pages, it is too small for reading! Could someone please help me with that? Thanks! Zyiyu (talk) 01:45, 25 April 2019 (UTC)

Zoom in (Ctrl++) the page.
Or include personal CSS rules for increasing the font size. Either include those rules in the page User:Zyiyu/Vector.css or use browser extensions such as Stylus (Chrome, Firefox) for this. AhmadF.Cheema (talk) 04:55, 25 April 2019 (UTC)

bookmark wikipedia article

Is it possible to bookmark an article so that I could later find it very easily? I know there is a feature called "watch", but that is not for bookmarking. Thanks! Zyiyu (talk) 01:47, 25 April 2019 (UTC)

Watched pages are listed at Special:EditWatchlist, which can in a way be used as a bookmarks page. AhmadF.Cheema (talk) 04:41, 25 April 2019 (UTC)

Error creating thumbnail: convert: no images defined

I have installed "ImageMagick" to create thumbnails for svg files; however after uploading the files I have got this error message:

"Error creating thumbnail: convert: no images defined `PNG:/tmp/transform_cf80d78c6fa6.png' @ error/convert.c/ConvertImageCommand/3300."

What should I do to fix it?

Thanks!

Attached extracted Localsetting.php:

$wgEnableUploads = true;
$wgSVGConverter = 'ImageMagick';
$wgUseImageMagick = false;
$wgUseImageResize = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp";
$wgAllowTitlesInSVG = true;

Eagle (talk) 07:08, 25 April 2019 (UTC)

Successul upload

Hello,

I changed something and I know longer get a notification of the number of successful uploads. Please advie so that i can restore this extremely useful function. 82.29.138.141 (talk) 09:13, 25 April 2019 (UTC)

Notification where? After which exact steps? On which website? Malyacko (talk) 14:09, 25 April 2019 (UTC)

Audubon Quartet

Dear Support team, I was a founding member of the Audubon Quartet in 1974 and served as its only cellist until the end of the career. Since there are so much misleading information on the Internet these days, I have decided to build a new Website and I just launched the home page today.

I used to have a Mediawiki account, but can no longer get in to correct the link to the new Audubon Quartet Website. PLEASE HELP. I would like to edit information existing on Mediawiki in regard to the Audubon Quartet, but a good start is to direct visitors to the new Audubon Quartet Website. That new link should be: audubonquartet.com

The email to use is: audubonquartet@gmail.com

Thank You 2601:5CE:4001:C816:5D47:D286:BEDD:FDD6 (talk) 12:09, 25 April 2019 (UTC)

Could you tell me where the link is? 94rain Talk 12:21, 25 April 2019 (UTC)

Pending changes

I would like to know two things: a) how to enable pending changes, and b) set it so that edits from unconfirmed users are automatically bound by them. Launchballer (talk) 16:21, 25 April 2019 (UTC)

Extension:FlaggedRevs and Extension:Moderation are the extensions for this purpose. See which one suits your needs better (What's the difference from FlaggedRevs or Approved Revs?). AhmadF.Cheema (talk) 17:56, 25 April 2019 (UTC)

Change styling

hi together,

I'd love to change the styling. In which directory are the central CSS files located?

Especially I would enlarge the left column of the wiki to have more space for the logo.

Can someone give me a hint? 2003:DE:AF23:6100:7162:44F6:AE0F:1202 (talk) 06:33, 26 April 2019 (UTC)

DO not edit CSS files directly!
Instead, use the wiki page MediaWiki:Common.css in your wiki to do the adjustments you want! 2001:16B8:10D3:7C00:998B:E0A5:AC17:A9CC (talk) 06:57, 26 April 2019 (UTC)
How do I access this page?

2003:DE:AF23:6100:7162:44F6:AE0F:1202 (talk) 07:07, 26 April 2019 (UTC)
Just like your site has a Main_Page, there is also a MediaWiki:Common.css page. Access it the same way you access your site's main page. AhmadF.Cheema (talk) 07:53, 26 April 2019 (UTC)

uploading XML and TXT file

Is it possible to upload XML and txt file in mediawiki?

The permitted file extension only are:

png, gif, jpg, jpeg, doc, xls, mpp, pdf, ppt, tiff, bmp, docx, xlsx, pptx, ps, psd, swf, fla, mp3, mp4, m4v, mov, avi. 180.183.130.173 (talk) 11:10, 26 April 2019 (UTC)

Manual:Configuring file uploads#Configuring file types. AhmadF.Cheema (talk) 14:14, 26 April 2019 (UTC)
Hi AhmadF, thanks for the link you provided. Unfortunately I cannot find this settings in our Wiki site. Do you have the exact path where to go in this settings to change the LocalSetings.php ?
Thank you! 180.183.130.173 (talk) 08:46, 29 April 2019 (UTC)
@AhmadF.Cheema 180.183.130.173 (talk) 08:46, 29 April 2019 (UTC)
If this setting is not in LocalSettings.php, you should add it to that file (usually at the end of the file) Ciencia Al Poder (talk) 09:12, 29 April 2019 (UTC)
Hi @Ciencia Al Poder What I mean is How can I locate this LocalSettings.php in our Wiki page? 180.183.130.173 (talk) 09:23, 29 April 2019 (UTC)
This is not a wiki page, but a file on the server. You need access to the server (via ssh, ftp...) to edit that file. Ciencia Al Poder (talk) 09:27, 29 April 2019 (UTC)

Confusing mis-credit in page history

I was puzzled to receive a welcome message on the Telugu wiki, which I have never edited. Looking at my contribs there, it appears that I created the page te:సహాయం:Magic words, which I have no recollection of doing. Looking at that page's history, I think that what happened was te:వాడుకరి:Arjunaraoc "imported" the page from en:Help:Magic words, to which I was the last to make a (minor; +4 byte) edit.

I don't think the page history should appear as though I created the page on 2019-03-27, with a delta of +26303 bytes (the total page size), and a null edit on 2019-04-25 by the user who imported it. The whole history should be one +26303 byte edit by the importing user on 2019-04-25. Or am I missing something? (ed.) —[AlanM1(talk)]— 12:24, 26 April 2019 (UTC)

Upload files by ftp..

Hi, I tried to upgrade my wiki from 1.19 to newest one and this shows me always error500 so I decide that ill make new website then migrate all my data.

Unfortunately not everything works perfect.

My biggest problem for now is that all my files uploaded to images folder via FTP aren't showing in /index.php?title=Specjalna:Pliki


Anyone knows how to resolve it?? 37.131.162.2 (talk) 13:07, 26 April 2019 (UTC)

Images wouldn't show up when uploaded directly to the server through FTP. For bulk upload of images, see Category:Bulk upload. AhmadF.Cheema (talk) 14:56, 26 April 2019 (UTC)

MHS-3.5 inch lcd screen problems with hdmi

hi guys.


I am trying to connect a raspberry pi 3B+ with your lcd screen (3.5 inch mhs version).

I tried downloading your kali drivers and then installing them.


They worked fine with the screen no problems.

I even managed to calibrate touch screen which was nice.


Here's the problem.

Every time I try to switch back to hdmi, it does not boot up and i have to re-install the operating system on the SD card all over again!


Any idea who I can contact?

I have tried this multiple times.

the kali linux drivers provided are SO BAD and need updates.


You can't even use HDMI how crappy is that?


Can someone please help me out here before I start regretting this purchase? 203.221.194.175 (talk) 15:48, 26 April 2019 (UTC)

Is this question related to MediaWiki? I suggest you better find a forum about that instead. 94rain Talk 15:51, 26 April 2019 (UTC)

Copywrite

Can I use images from here without copyright issues? 94.117.28.45 (talk) 17:21, 26 April 2019 (UTC)

All image pages have the specific licence requirements mentioned on them. Usually they're free to use. AhmadF.Cheema (talk) 19:11, 26 April 2019 (UTC)

The Obligatory Pilgrimage by C.V.K. Maithreya 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.


This has nothing to do with MediaWiki.org. Leaderboard (talk) 21:32, 26 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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 do I find my username for a website? 2601:183:857F:9D15:5075:6B0B:335B:206E (talk) 21:00, 26 April 2019 (UTC)

Titta1212 63.141.56.209 (talk) 02:07, 27 April 2019 (UTC)
does this question have something to do with MediaWiki? 94rain Talk 02:37, 27 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Internal Error for Unknown Reason

Using 1.32.0, my site was working a month again as intended, and then suddenly last week, one of my site pages began responding with an Internal Error. I have restored various backups of the site, and even entirely deleted it and restored from another backup, but nothing is working.


The error reads as follows and results in a blank MediaWiki-style page below the error:

Internal error

[XMQ2RPfRGVIevKUl2Uqb9wAAAkQ] 2019-04-27 11:00:20: Fatal exception of type "Error"


Upon refreshing the page, the seemingly random letters in brackets all change (as well as the time next to to), but the error is never more specific. Any help please! Gmlacey (talk) 11:02, 27 April 2019 (UTC)

Some more Googling told me to add some lines to LocalSettings.php to get a more specific error report, which now results with:
[XMQ5m6UBOIo6oieTYFmH0gAAAUE] /Expeditions Error from line 155 of /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/SimpleStyleParser.php: Class 'JsonSchema\Validator' not found
Backtrace:
#0 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/SimpleStyleParser.php(77): Kartographer\SimpleStyleParser->validateContent(array)
#1 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/SimpleStyleParser.php(58): Kartographer\SimpleStyleParser->parseObject(array)
#2 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/Tag/TagHandler.php(144): Kartographer\SimpleStyleParser->parse(string)
#3 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/Tag/TagHandler.php(119): Kartographer\Tag\TagHandler->parseGeometries(string, Parser, PPFrame_DOM)
#4 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/Tag/TagHandler.php(99): Kartographer\Tag\TagHandler->handle(string, array, Parser, PPFrame_DOM)
#5 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(3968): Kartographer\Tag\TagHandler::entryPoint(string, array, Parser, PPFrame_DOM)
#6 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Preprocessor_DOM.php(1364): Parser->extensionSubstitution(array, PPFrame_DOM)
#7 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(3014): PPFrame_DOM->expand(DOMElement, integer)
#8 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(1350): Parser->replaceVariables(string)
#9 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(476): Parser->internalParse(string)
#10 /home/w2b8ugyz85we/public_html/wiki/includes/content/WikitextContent.php(341): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#11 /home/w2b8ugyz85we/public_html/wiki/includes/content/AbstractContent.php(517): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#12 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RenderedRevision.php(242): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
#13 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RenderedRevision.php(211): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
#14 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RevisionRenderer.php(175): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
#15 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RevisionRenderer.php(128): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#16 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#17 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RenderedRevision.php(175): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#18 /home/w2b8ugyz85we/public_html/wiki/includes/poolcounter/PoolWorkArticleView.php(194): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#19 /home/w2b8ugyz85we/public_html/wiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#20 /home/w2b8ugyz85we/public_html/wiki/includes/page/Article.php(774): PoolCounterWork->execute()
#21 /home/w2b8ugyz85we/public_html/wiki/includes/actions/ViewAction.php(68): Article->view()
#22 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(501): ViewAction->show()
#23 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#24 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(860): MediaWiki->performRequest()
#25 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(517): MediaWiki->main()
#26 /home/w2b8ugyz85we/public_html/wiki/index.php(42): MediaWiki->run()
#27 {main} Gmlacey (talk) 11:17, 27 April 2019 (UTC)
Disabling the Kartographer extension allowed me to view the broken page, although (of course) the aspects of the page that use Kartographer didn't work. I deleted the extension and re-installed it, but then the same original problem persists. Gmlacey (talk) 11:37, 27 April 2019 (UTC)
Does the Extension:Kartographer version correlates with your MediaWiki core version? AhmadF.Cheema (talk) 13:55, 27 April 2019 (UTC)
The extension shows MediaWiki 1.27+ and PHP 5.5+.
My site is MediaWiki 1.32.0 and PHP 7.2.16 (litespeed). Gmlacey (talk) 16:27, 27 April 2019 (UTC)
I was asking which version of the extension have you downloaded? Did you download from Git or from Special:ExtensionDistributor/Kartographer and then which version was it? AhmadF.Cheema (talk) 16:42, 27 April 2019 (UTC)
Oh sorry, I downloaded from the same link you provided and used 1.32. Gmlacey (talk) 16:46, 27 April 2019 (UTC)
That probably means the 1.32 version of the extension has not been updated to work with MediaWiki 1.32. Try using the master version and see if that works. AhmadF.Cheema (talk) 18:10, 27 April 2019 (UTC)
Thank you. So I did try the master version, which resulted in the same. But I did learned that the Kartographer extension now apparently requires the installation of Extension:JsonConfig, which I also installed, yet resulting in the same issue. Sigh . . . Gmlacey (talk) 21:34, 27 April 2019 (UTC)
Hi @Gmlacey,
got the same error. I think there is a configuration problem with JsonConfig and we need a value for the localsettings.php hollosch (talk) 14:03, 13 August 2019 (UTC)
Did somebody solve this problem? 79.207.236.190 (talk) 18:14, 24 June 2019 (UTC)
I never got it to work again, so no, not yet. Gmlacey (talk) 18:59, 7 August 2019 (UTC)
My Versions are
MediaWiki 1.33.0
PHP 7.2.19-0ubuntu0.18.04.2 (fpm-fcgi)
MariaDB 10.1.41-MariaDB-0ubuntu0.18.04.1
ICU 60.2
I'm getting the same error as described above. My Installed extentions looks like this.
Parser hooks
Extension Version License Description Authors
Kartographer (085a7f7) 12:33, 20 March 2019 MIT Allows maps to be added to the wiki pages Yuri Astrakhan, Max Semenik, Ed Sanders, Julien Girault and others
Other
Extension Version License Description Authors
JsonConfig 1.1.0 (e19c474) 13:53, 12 March 2019 GPL-2.0-or-later Allows JSON configuration to be stored in a wiki Yuri Astrakhan
The Install directions for Kartographer only state to install jsonconfig and check special:Version to see if it's installed correctly. I'm not sure what a correct install looks like, but it's listing as installed. The Kartographer install directions do not go into if jsonconfig needs to be configured and if so how. I've read the instructions from jsonconfig for how to configure jsonconfig, and it doesn't read to me as though any configuration of jsonconfig is necessary, based on the kartographer and jsonconfig install and setup docs. Regardless I find the jsonconfig documentation configuration section to be incomprehensible. It does not explain which options, if any are applicable to me. 73.252.158.66 (talk) 08:32, 21 September 2019 (UTC)
I figured this out. The documentation says "Only when installing from git run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory." In my case at least, even though I installed via the ExtentionDistributer, running that command was still necessary. Adding keywords for people searching for this: SOLVED FIXED 73.252.158.66 (talk) 02:22, 23 September 2019 (UTC)
Yes, ExtensionDistributor isn't bundling composer dependencies as it should (and advertises). This is tracked on phab:T227362 Ciencia Al Poder (talk) 09:41, 23 September 2019 (UTC)

Error creating thumbnail: Unable to save thumbnail to destination

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


Hi Guys!

I know, this issue is well discussed. I did some research and found plenty of possible sollutions. But: none of them worked. I tried so many suggestions, that I nearly got lost in the end. That's why I'm hoping for your help right now:


I installed ImageMagick on Ubuntu Server 18.04. Im my LocalSettings these configurations were set:

$wgEnableUploads = true;

##Use ImageMagick for Thumbnail creation:

$wgUseImageMagick = true;

$wgImageMagickConvertCommand = "/usr/bin/convert";

$wgTmpDirectory = "$wgResourceBasePath/images/tmp";

$wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";

$wgGenerateThumbnailOnParse = false;


the tmp folder does have chown 774 and is owned by the same user/group as the whole mediwiki installation. While $wgLogo = "$wgResourceBasePath/resources/assets/ha_logo_256px.png"; does show the image at the website, I'm pretty sure $wgResourceBasePath is set correctly.


php error log didn't help me as well. I got rid of my sensible data, but the rest of the log is to be found here.


Has anyone any idea what I can try next?


Thanks a lot in advance!


Greetings


yw


Yrwyddfa (talk) 20:55, 27 April 2019 (UTC)

Instead of the tmp directory, I think the images directory is the one that requires the correct permissions, i.e. for the directory to be writable. Also see this. AhmadF.Cheema (talk) 00:40, 28 April 2019 (UTC)
Hi Ahmad, thanks a lot for the link. The user rights for tmp are equal to the images directory. Changing user rights for images to 755 (as suggested in your link) or even to 777 doesn't change a thing. Yrwyddfa (talk) 17:15, 28 April 2019 (UTC)
Note that permissions should be set recursively. Try setting permissions to 777 recursively on all folders (not files!) with this command:
find . -type d -exec chmod 777 {} \; Ciencia Al Poder (talk) 09:24, 29 April 2019 (UTC)
Hi Ciencia, that did the trick! Thanks. The problem lied within those two problems: The variable $wgTmpDirectory was set to "$wgResourceBasePath/tmp" instead of $wgTmpDirectory = "$wgResourceBasePath/images/tmp"; so, initially mw was not able to find that folder at all. Testing here did not solve the problem, because the user rights for that folder need to be set to chmod 777 instead of the adviced 755 as well.
Now, with the propper rights on the propper path thumbs show up.
Thanks guys! Yrwyddfa (talk) 19:43, 30 April 2019 (UTC)
Note that 777 permissions is unsecure. You should switch permissions to 755 and instead use chmod recursively to change the owner of the files and folders of the images directory to the same user that creates them (upload a file and see who's the owner) Ciencia Al Poder (talk) 15:44, 1 May 2019 (UTC)
Good point. Did so and it is still working., Thanks again!! Yrwyddfa (talk) 20:56, 1 May 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

action:featuredfeed, feed:featured not working.

feed: featured gives me error every time. Anyone else having trouble? 71.187.203.201 (talk) 23:37, 27 April 2019 (UTC)

Hi. Impossible to say without any steps to reproduce or information where to enter/click/write/do/whatever "feed:featured"... Malyacko (talk) 12:47, 28 April 2019 (UTC)

Docs

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 has had a bit of a facelift, which is great - it looks a bit cleaner and clearer. However, I think it could do with a bit more simplification.

To whom do I engage with?

Cheers

Jon


Gerdesj (talk) 01:12, 28 April 2019 (UTC)

No one... and everyone. See Wikipedia:Be bold. AhmadF.Cheema (talk) 02:07, 28 April 2019 (UTC)
For the records, the facelift was MediaWiki/Homepage improvements 2018 which also lists places where proposed changes were communicated (in the "call for comments" sections). AKlapper (WMF) (talk) 12:45, 28 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Delete wiki

Hi. How I can delete all wiki with all pages? Asketoff (talk) 13:02, 28 April 2019 (UTC)

Manual:Uninstallation Malyacko (talk) 13:28, 28 April 2019 (UTC)
If you want to keep the wiki installed, would Extension:Nuke be what you need? I've not used it but it looks like what you want - "The Nuke extension makes it possible for sysops to mass delete pages." Jonathan3 (talk) 23:45, 15 June 2019 (UTC)

Skin with AdWords

I want a skin with good support of placing AdWords ads. I prefer if it would look similar to Wikipedia, but that's not very important.

Ideally need both desktop and mobile skins.

Can you point where to download such a skin? VictorPorton (talk) 13:40, 28 April 2019 (UTC)

Category:All skins Malyacko (talk) 18:00, 28 April 2019 (UTC)

How to import template:infobox person

Good day!


I try to import infobox person template from wikipedia.


I expect to get something like this.


But I get only that. )))


There is another problem. I want to use my own lunguage in in infobox, for example not "Nationality" but "Национальность". So how can I do it? :)


Thank you for your attention! Kattey (talk) 07:55, 29 April 2019 (UTC)

This template uses Lua modules, which is supported by Extension:Scribunto.
You need to install this extension and also import those modules this template uses in Wikipedia. (See the documentation of the Template) 94rain Talk 08:04, 29 April 2019 (UTC)

Duplicat namespace

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 managed to import a Wiki version 1.18 to 1.32 - however I found one serious problem. While most of the data did transfer correctly the very first Name space and the talk pages (100 and 110) seems to have a duplicated entry.... That is when I use the drop down menu on 'All pages' the two namespace (and it's talk page) appears twice. And what is worse the page-links show up correctly, but the pages are empty.


I noticed that there is a namespaceDupes.php script - but can I somehow invoke such scripts via the mw-config process.? AssetDenmark (talk) 08:58, 29 April 2019 (UTC)

If you have custom namespaces set up, the configuration for that custom namespace should be exactly the same on the old and new wiki before and during importing.
The namespaceDupes.php script should be run from command line. If that's not possible, you can try with Extension:MaintenanceShell but I'm not sure about the stability of that extension. Ciencia Al Poder (talk) 09:15, 29 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Visual editor upload on mediawiki pool

Hi,

I've 2 wiki including one pool wiki for medias.

On my non-pool wiki, when I upload media with special page, i'm redirecting on my pool wiki it's ok, with visual editor I can search medias on my pool wiki with the api but when i want to upload media with visual editor extension the media stay on thsi wiki.

I did not find a parameter that fixes that. Jtuli (talk) 13:36, 29 April 2019 (UTC)

Add code after third h2 headline

I would like to add code automatically after the third ==Headline== in all my articles. To be precise: I want to link to my online quiz within the content area of my articles.

Does anyone have an idea how to do this? Any hook, template, parser hack, whatever...? Stefahn (talk) 14:16, 29 April 2019 (UTC)

Maybe you could use jQuery? https://api.jquery.com/after/ Jonathan3 (talk) 00:57, 30 April 2019 (UTC)
Yes, I should be able to solve this with jQuery, thanks! Stefahn (talk) 14:58, 30 April 2019 (UTC)

i am getting an application that wont open and i have had it for years, this started after i did a recovery on my pc. the progtram is Automouser v5.1

it is saying its a faulting application error. Can anyone help me to get this to work again. 65.128.160.226 (talk) 15:41, 29 April 2019 (UTC)

Wrong support forum.😕 AhmadF.Cheema (talk) 16:35, 29 April 2019 (UTC)

Neu erstellte Seite wurde gelöscht - brauche Sie wieder

Meine gerade neu erstellte Wiki Seite wurde gelöscht. Bitte erstellen Sie sie wieder. Ich brauche sie.
Es ist nichts darin vorgekommen das nicht erlaubt ist!!! AnnaProbst (talk) 16:17, 29 April 2019 (UTC)
@AnnaProbst: See https://www.mediawiki.org/w/index.php?title=User:AnnaProbst why the page was (rightfully) removed. / Siehe https://www.mediawiki.org/w/index.php?title=User:AnnaProbst warum der Seiteninhalt (korrekterweise) geloescht wurde: Project:About#What MediaWiki.org is not Malyacko (talk) 17:50, 29 April 2019 (UTC)
On which website was that page?
Unless the website is mediawiki.org, it would be more appropriate and efficient to make your request at that website. AhmadF.Cheema (talk) 16:34, 29 April 2019 (UTC)

Error creating the thumbnail image: It was not possible to save the thumbnail file at the target location.

if I want to save something I get to see this >>>>> Error creating the thumbnail image: It was not possible to save the thumbnail file at the target location.

How can I solve this Davidmeyer30 (talk) 16:42, 29 April 2019 (UTC)

What OS are you running MediaWiki on? What are the permissions set for your Wiki's /images folder? AhmadF.Cheema (talk) 17:13, 29 April 2019 (UTC)
MediaWiki1.32.0
PHP7.0.33 (litespeed)
MariaDB10.3.13-MariaDB
ICU57.1
images (0777) Davidmeyer30 (talk) 17:36, 29 April 2019 (UTC)
Davidmeyer30 (talk) 17:38, 29 April 2019 (UTC)
Also see this. AhmadF.Cheema (talk) 18:22, 29 April 2019 (UTC)

Bad rendering : Pôle des utilisateurs colonele

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.


On page https://www.mediawiki.org/wiki/User_hub/fr the translation of 'User hub' https://www.mediawiki.org/w/index.php?title=Special:Translate&showMessage=User_hub%2FPage_display_title&group=page-User+hub is well translated into 'Pôle des utilisateurs' but is rendered suffixing with an extra ' colonele' which is a non sense.

'Pôle des utilisateurs colonele'
should be:
'Pôle des utilisateurs'
Christian 🇫🇷 FR 🚨 (talk) 19:24, 29 April 2019 (UTC)
Resolved Tomybrz Bip Bip 19:30, 29 April 2019 (UTC)
... how ? Christian 🇫🇷 FR 🚨 (talk) 19:34, 29 April 2019 (UTC)
I deleted and recreated Translations:User hub/12/fr. Tomybrz Bip Bip 19:34, 29 April 2019 (UTC)
its a trick, but ok. Christian 🇫🇷 FR 🚨 (talk) 19:38, 29 April 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

i cant add new skin/template

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


hi when i upload a new skin to the skin folder then i dont find it in the appearance in admin settings i dont even find the file LocalSettings.php in cpanel so am i missing any thing?

also when i change the template to timeless the template or them doesnt really change it stays as the previos one! 156.194.148.158 (talk) 21:34, 29 April 2019 (UTC)

Maybe you haven't added the wfLoadSkin line to LocalSettings.php? See https://www.mediawiki.org/wiki/Manual:Skin_configuration#Enabling_skins
I don't understand your second question but maybe you need to purge the page? See https://www.mediawiki.org/wiki/Manual:Purge Jonathan3 (talk) 00:51, 30 April 2019 (UTC)
P.S. LocalSettings.php should be in the main wiki directory. See Manual:LocalSettings.php#Location_on_the_server. Jonathan3 (talk) 00:55, 30 April 2019 (UTC)
thank you i found the localsettings.php and added the line wfLoadSkin the skin appeared at last in the appearance but still the same problem when i choose the skin it doesnt really change i tried to open the site with many browsers even some proxies but no thing it still with the old one even tried to make purge to the page as you said but no thing changed 156.194.148.158 (talk) 02:15, 30 April 2019 (UTC)
it changes only with my browser but with other browsers no thing changed 156.194.148.158 (talk) 02:17, 30 April 2019 (UTC)
Did you remember to login in those other browsers where the skin didn't change? AhmadF.Cheema (talk) 03:14, 30 April 2019 (UTC)
See also $wgDefaultSkin for setting a default skin for all users. Ciencia Al Poder (talk) 09:18, 30 April 2019 (UTC)
Ciencia Al Poder thank you this worked for me 156.194.82.81 (talk) 21:40, 1 May 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

content about a company

can I add content or article about a company? Electra Angulo (talk) 22:25, 29 April 2019 (UTC)

Would this page help? https://en.wikipedia.org/wiki/Wikipedia:Your_first_article Jonathan3 (talk) 00:48, 30 April 2019 (UTC)

Technical difficulties on self-contained LAMPP server with MediaWiki; can't access phpmyadmin or wiki

All of a sudden I can't access my own wiki (named karaxas) on my LAMPP setup on my laptop (cannot access database). I don't know why this is occurring but it's not only stopped my wiki from functioning but I also can't get into my phpmyadmin dashboard. After some experimentation with resetting the root password, I don't get any error code in phpmyadmin, just an undefined error that prevents me from accessing the database.

When turning on backtraces in MediaWiki I get this:
#0 /opt/lampp/htdocs/karaxas/includes/libs/rdbms/loadbalancer/LoadBalancer.php(769): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /opt/lampp/htdocs/karaxas/includes/GlobalFunctions.php(2694): Wikimedia\Rdbms\LoadBalancer->getConnection(0, Array, false)
#2 /opt/lampp/htdocs/karaxas/includes/user/User.php(535): wfGetDB(-1)
#3 /opt/lampp/htdocs/karaxas/includes/libs/objectcache/WANObjectCache.php(1128): User->{closure}(false, 3600, Array, NULL)
#4 /opt/lampp/htdocs/karaxas/includes/libs/objectcache/WANObjectCache.php(1277): WANObjectCache->{closure}(false, 3600, Array, NULL)
#5 /opt/lampp/htdocs/karaxas/includes/libs/objectcache/WANObjectCache.php(1111): WANObjectCache->doGetWithSetCallback('global:user:id:...', 3600, Object(Closure), Array, NULL)
#6 /opt/lampp/htdocs/karaxas/includes/user/User.php(562): WANObjectCache->getWithSetCallback('global:user:id:...', 3600, Object(Closure), Array)
#7 /opt/lampp/htdocs/karaxas/includes/user/User.php(480): User->loadFromCache()
#8 /opt/lampp/htdocs/karaxas/includes/user/User.php(417): User->loadFromId(0)
#9 /opt/lampp/htdocs/karaxas/includes/session/UserInfo.php(88): User->load()
#10 /opt/lampp/htdocs/karaxas/includes/session/CookieSessionProvider.php(119): MediaWiki\Session\UserInfo::newFromId('1')
#11 /opt/lampp/htdocs/karaxas/includes/session/SessionManager.php(488): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(Object(WebRequest))
#12 /opt/lampp/htdocs/karaxas/includes/session/SessionManager.php(191): MediaWiki\Session\SessionManager->getSessionInfoForRequest(Object(WebRequest))
#13 /opt/lampp/htdocs/karaxas/includes/WebRequest.php(750): MediaWiki\Session\SessionManager->getSessionForRequest(Object(WebRequest))
#14 /opt/lampp/htdocs/karaxas/includes/session/SessionManager.php(130): WebRequest->getSession()
#15 /opt/lampp/htdocs/karaxas/includes/Setup.php(851): MediaWiki\Session\SessionManager::getGlobalSession()
#16 /opt/lampp/htdocs/karaxas/includes/WebStart.php(77): require_once('/opt/lampp/htdo...')
#17 /opt/lampp/htdocs/karaxas/index.php(39): require('/opt/lampp/htdo...')
#18 {main}

I'll admit I don't entirely know how to work with extensive php code or anything like that so I'm a bit stumped. Thanks. Analogandrobot (talk) 22:35, 29 April 2019 (UTC)

Check localsettings.php to ensure that your database credentials are correct Examknow (Lets Chat) 23:11, 29 April 2019 (UTC)

Thumbnails sometimes not saving?

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


Since upgrading to 1.31 from, I believe, 1.25, we seem to only get thumbnails saved to disk intermittently. Otherwise, it looks like our wiki simply runs thumb.php all the time to temporarily generate a new thumb for each visitor. When we're at high traffic situations -- thousands of concurrent visitors -- this definitely causes some slow down.


I can't get a handle on why it sometimes does and sometimes doesn't save a thumbnail, though. It feels like some sort of error, but I can't find anything else explaining it. Does anyone know what conditions are needed for a thumbnail to be saved every time thumb.php is run? Balerion300 (talk) 09:45, 30 April 2019 (UTC)

Continued at Project:Support desk/Flow/2019/05#h-Linking_Thumbnails_&_Images-2019-05-02T05:18:00.000Z. AhmadF.Cheema (talk) 03:03, 3 May 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to impliment VisualEditor/Citation_tool

I have been reading the docs on implementing the citation tool and I am way over my head. Can someone explain how to create citation templates and set everything up? Looking at wikipedias templates dont make any sense as they just link out. This might not be the right place but I have have been pulling my hair out trying to figure this out. DovAlp (talk) 18:20, 30 April 2019 (UTC)

How to edit the pages's index.

Hi there. I'm new to MediaWiki and would like some help on editing the index on the left that organizes the pages. For example in this website there is the category 'Main page' that contains 'Get MediaWiki','Ge extensions' and the remaining subcategories. I don't know how to add more subcategories in the wiki I'm working on. Thanks. Isaec.spadotto (talk) 19:29, 30 April 2019 (UTC)

This should help: Manual:Interface/Sidebar. Jonathan3 (talk) 23:35, 30 April 2019 (UTC)
Thanks, will take a look. Isaec.spadotto (talk) 18:38, 2 May 2019 (UTC)
Category:Support desk archives Category:Support desk archives with syntax highlighting errors