Project:Support desk/Flow/2015/09

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

How can i delete the files for ever, which are located in image/deleted

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


Software
Version
MediaWiki
1.22.3
PHP
5.4.20 (apache2handler)
MariaDB
5.5.33-MariaDB
My wiki isn't available in the Internet, only intranet. Sorry.
My question is:
We deleted a lot of old files from our wiki, because it wasn't connected and needed any more.
Now we would like to do some maintenance and remove the deleted files from the "images/deleted" Folder.
Can i do just rm -r * in "images/deleted" Folder or is there some maintenance tool available for that?
And what does the wiki say, when the file is deleted on the filesystem?
Thank you in advance for help.
Daniel
from Essen, Germany. 95.172.68.155 (talk) 12:32, 1 September 2015 (UTC)
Please run supported software for your own safety. Version 1.22.3 is ancient and has security vulnerabilities. See https://www.mediawiki.org/wiki/Download Malyacko (talk) 09:18, 2 September 2015 (UTC)
You can test this out yourself by just moving the files out of the way initially. For example, log in with a sysop account and visit a deleted image's file page. Then, in a shell:
$ cd $IP/images
$ mv deleted not-yet-deleted
Now reload the page in your browser -- add ?action=purge to be sure you're seeing something up-to-date -- and see how the page's appearance has changed.
You should also log out of the wiki and see if there is a noticeable problem for less privileged users of the site.
If everything is good, then you can really delete the images. If there is a problem, you can move them back to the deleted folder. MarkAHershberger(talk) 12:47, 1 September 2015 (UTC)
The maintenance script deleteArchivedFiles.php does what you want.
Greetings from ... Essen, btw. :-) 88.130.117.48 (talk) 22:48, 1 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Create new page by Perl via MediaWiki::API

I want to create simple pages in a company-wiki by Perl. In reposetory i found the modul MediaWiki::API - but not a simple example to create a page.

can someone help to me ? JanTappenbeck (talk) 13:10, 1 September 2015 (UTC)

This is really a question for the maintainer of the CPAN module (Jools Wills), but there is an example in the documentation that may help. Note I have not tested this.
use MediaWiki::API;
my $mw = MediaWiki::API->new();
$mw->{config}->{api_url} = 'YOUR-API-URL';
# log in to the wiki
$mw->login( { lgname => 'username', lgpassword => 'password' } )
    || die $mw->{error}->{code} . ': ' . $mw->{error}->{details};
my $pagename = "Project:Sandbox";
my $ref = $mw->get_page( { title => $pagename } );
$mw->edit( {
      action => 'edit',
      title => $pagename,
      text => "Additional text"
} ) || die $mw->{error}->{code} . ': ' . $mw->{error}->{details};
If you try that, does it work? If not, what problems do you run into? MarkAHershberger(talk) 13:36, 1 September 2015 (UTC)
Just to point out: I have tested this script and successfully created a page: https://en.wikipedia.org/wiki/User:Hexmode/Sandbox MarkAHershberger(talk) 14:42, 2 September 2015 (UTC)
thanks and first i try to login - but get following message:
2: Failed to decode JSON returned by http://ma22-wiki-001/eblwiki/api.php
Decoding Error:
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "\x{feff}{"login":{"r...") at C:/strawberry/perl/site/lib/MediaWiki/API.pm line 400.
in other websites the reason will be declare by wrong api.php-url - but when i call the url in browser i get the dokumentation-side like http://www.exotica.org.uk/mediawiki/api.php but with xml source at the beginning and and like:
<?xml version="1.0"?>
<api>
  <error code="help" info="" xml:space="preserve">
i use 1.23.5 of mediawiki. JanTappenbeck (talk) 08:16, 2 September 2015 (UTC)
I created an account on the server and successfully used the script to post to the wiki from Linux. I happen to have a version of Strawberry Perl on a Windows desktop, so I'll try that. But while I do that you might try upgrading your perl installation. MarkAHershberger(talk) 15:23, 2 September 2015 (UTC)
Maybe it complains from the \x{feff} character? It's the Byte order mark that usually start unicode streams... looks like that perl script doesn't support that?
Note that on the browser you see the documentation because the perl script calls the api passing parameters probably in a HTTP POST request, while your browser is using HTTP GET Ciencia Al Poder (talk) 09:38, 2 September 2015 (UTC)
Worked for me from windows, but not using Strawberry Perl -- I didn't try Strawberry Perl -- so I'm pretty sure this is a problem of your version of perl. MarkAHershberger(talk) 17:07, 2 September 2015 (UTC)

How does translating work?

Good day,

The wiki of whonix.org is using the MediaWiki software, as well as the accompanying language extension bundle with its language selector. However, noone really knows how to use it. And after reading through the guidelines written on the "mediawiki wiki", I still am unable to understand it. As far as I could gather, to translate a page, each section of text needs to be surrounded by the <language> tag. However, doing so simply doesn't work. The tags just appear in the text, as if they would serve no purpose. Also, adding the language selector, by using the <languages /> tag, doesn't work either. Only the homepage, was affected by these changes, however other sites of the forum seem to be unaffected.

If someone would be able to explain, what I'm doing wrong, I would be more than thankful.

Have a nice day,

Ego 178.114.20.135 (talk) 15:51, 1 September 2015 (UTC)

Good day,
I've just had a nice chat with some on the IRC chat. They recommended I should try copying the contents of a page where it does work on a page where it doesn't, to see, whether it would then work. Sadly, the answer is no. No matter what we do the language selector seems to be weirdly selective (no pun intended) about where it works and where it doesn't.
If someone could help me with this, I would be more than grateful.
Have a nice day.
Ego 178.114.20.135 (talk) 17:22, 1 September 2015 (UTC)
Did you talk to nikerabbit or siebrand in #mediawiki-i18n about this? I don't have any experience with the language bundle, myself. MarkAHershberger(talk) 18:15, 1 September 2015 (UTC)

A version for 1.7.10 ?

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.


Hellow,

Are you working on a version traincraft rotatable on a servuer in 1.7.10 ???

Thanks. 2A02:A03F:EDA:2B00:64A4:226D:CDA0:F94D (talk) 16:40, 1 September 2015 (UTC)

TrainCraft, formerly Trains and Zeppelin mod, is a Mincraft mod. This page here however is the Support Desk for MediaWiki, the software used to run wikis like Wikipedia. We are not associated with the developers of the aforementioned mod.
If you have questions on that mod, you should ask the mod developers! 88.130.80.141 (talk) 16:49, 1 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Approved Revs: Allowing the creators of a page to approve their own content

Hello,

First I apologize if this seems to be a repetitive question however, I have been searching and testing numerous things for a few weeks now. My organization is currently using the ApprovedRevs format of MediaWiki which I understand means that users with Admin/Bureaucrat permissions can approve newly created wiki pages as well as any/all revisions. However, the amount of approvals is getting rather big as more and more of our organization is taking advantage of this wonderful tool so we would like the creator/owner of a wiki page to be able to approval revisions themselves. We do NOT want everyone to be given admin/Bureaucrat permissions as to avoid users going to other pages they did NOT create and editing them whether accidently or on purpose. I have implanted many commands and lines of syntax to try and allow this including the below lines however, I can not seem to get the desired results. Can anyone assist? Thank you very much, Jaison

$egApprovedRevsAutomaticApprovals= false;

$egApprovedRevsApproveLatest = True;

$egApprovedRevsBlankIfUnapproved = True;

$egApprovedrevsSelfOwnedNamespace[] = array (NS_Main, NS_USER) Jaisonmb (talk) 18:51, 1 September 2015 (UTC)

Fresh Wiki with over 500+ bot accounts.

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


Greetings everyone. Im just seeking some help. Im veey new to this software and cant do much without guides quite yet. I found this link http://thread.gmane.org/gmane.org.wikimedia.mediawiki/41614/focus=41697 but im honestly unsure of how to implement anything suggested. I had the link to my wiki available for maybe 1 day before it was slammed with trash pages and bots. Bots registering and posting trash. Im not sure if any anonomous bots have created any pages. I just want it to stop and to clean the wiki. Is there a quick way I can delete all the spam pages and bots? I do have some legitimate users so I believe purging the database is not a good idea. Any help including telling me how to implement the sigges Serena Eclipse (talk) 20:11, 1 September 2015 (UTC)

Hi!
Manual:Combating spam and Manual:Combating vandalism have an overview on the topic.
If you know, which users are legitimate, it could be an idea to create a list with all spam users and remove all contributions by these users. Another idea would be, if you have a list of spam pages, to delete all those pages. The latter can be done by Extension:Nuke. 88.130.117.48 (talk) 22:45, 1 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Transfer content of category to other category

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


The dutch Nationaal Register Varende Monumenten got a new name: Register Varend Erfgoed Nederland. How can I transfer the categories in Category:Nationaal Register Varende Monumenten to the new Category:Register Varend Erfgoed Nederland without doing it by hand? Cat-a-Lot doesn't do the job. @Stunteltje Stunteltje (talk) 08:34, 2 September 2015 (UTC)

2 options:
Sorry, not experienced enough to use a bot. Stunteltje (talk) 09:41, 2 September 2015 (UTC)
If you can install Extension:Replace Text then that will take care of it without using a bot. MarkAHershberger(talk) 15:26, 2 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Odd sort problems

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 the French Wiktionary, I notice occasional odd sort glitches. For instance, http://fr.wiktionary.org/w/index.php?title=Cat%C3%A9gorie:Noms_communs&subcatfrom=bok%0ANoms+communs+en+bok#mw-subcategories will show "Noms communs en bokobaru‎", "Noms communs en boko‎", "Noms communs en bokyi‎" despite the fact that the first two sub-categories are indexed with Catégorie:Noms communs|bokobaru‏‎ and Catégorie:Noms communs|boko, respectively. The few times this happens, it is always the case that the out-of-sequence sort key is a prolongation of the key it should go after.

Another particularly bad example is http://fr.wiktionary.org/w/index.php?title=Cat%C3%A9gorie:Noms_communs&subcatfrom=dan%0ANoms+communs+en+dan#mw-subcategories where we have danaru‎, dangaléat, dani de l’Ouest, dani de Mid Grand Valley, danois, dano, and only then dan (so we have dan moved down six slots, and dano moved down one slot). Urhixidur (talk) 13:38, 2 September 2015 (UTC)

This is a problem that needs to be reported on Phabricator. I've created a task there for you. MarkAHershberger(talk) 15:33, 2 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to update all Template inside this pages? I cant do it!

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


How to update all Template inside this pages? I cant do it! 177.180.71.38 (talk) 20:55, 2 September 2015 (UTC)

This, not the Current Issues page, is the right place for this question.
Because pages are cached. If you have a small, non-public wiki you could turn off caching. See the manual on caching. MarkAHershberger(talk) 21:19, 2 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to take grab live text from mediawiki, and load it on other pages?

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


I wonder if there is a way, extension or otherwise that I can have text from my mediawiki generated on other websites, specifically on a wordpress site.

Ex: I have an entry on a company, and they want that text to be on their about page, so as things change, they dont have to update their about page because that is already done in the wiki.

Similar to using the twitter API to link to tweets on other sites.

Hope that's clear. Vapblack (talk) 13:38, 3 September 2015 (UTC)

The easiest way to do this is with client-side javascript calling to your wiki's API. Here is a way to get the json-encoded text of WikiPedia's About page, for example: http://en.wikipedia.org/w/api.php?action=parse&format=json&page=Project%3AAbout&redirects=&prop=text&contentmodel=wikitext
Probably better would be to embed such an API call in some server-side calls so that the result could be cached. MarkAHershberger(talk) 15:20, 3 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Temporarily omit SF for work-around error mw-config

Bug re-opened.

We run a wikifarm and the moment I try to add a new wiki (mw-config) I get an errormessage: "Invalid callback SFParserFunctions::registerFunctions in hooks for ParserFirstCallInit". Found out (https://phabricator.wikimedia.org/T101536) as a work-around to temporarily disable Semantic Forms, this works.

But: is this a MediaWiki problem/error, if so, when will it be fixed? Waanders (talk) 15:38, 3 September 2015 (UTC)

Following the links there, I ended up on https://gerrit.wikimedia.org/r/#/c/227240/ which indicates the fix should be included in the latest 1.25.2. If it isn't, then you'll need to re-open the bug. MarkAHershberger(talk) 18:26, 3 September 2015 (UTC)
Nope. Just updated from MW 1.25.1 to 1.25.2 today and checked again, but no, still need to exclude SF to run mw-config. Waanders (talk) 18:57, 3 September 2015 (UTC)
Thanks. I've reopened the bug. MarkAHershberger(talk) 19:01, 3 September 2015 (UTC)
When will it be fixed? Waanders (talk) 08:45, 15 September 2015 (UTC)
Nobody? Waanders (talk) 07:25, 22 October 2015 (UTC)

Some Special Pages lost after server migration

So I very recently migrated a decent sized wiki (around 20k edits) from one server to another and something weird must have happened during the db restore that I lost a few special pages (only special pages as far as I can tell).

The problem is that a lot hapened in between and I already had a lot of edits after the migration which I wouldn't want to lose if the db was to be restored again,

The pages are:

Special:RecentChangesLinked

Special:NewFiles

Special:ListFiles

Special:Redirect

These appear completely blank (not even side menus) like there was nothing on the server. I had nginx setup on the old server because it was a temporary migration to deal with a huge wave of traffic and when we moved back to the old server nginx was disabled, so I don't know if that had anything to do with it.

The wiki is still using media wiki 1.24, I wonder if upgrading to 1.25 would patch these pages and fix them? Or if my only option is to restore the db completely

Thanks in advance 2001:8A0:6A43:7801:B05D:3C00:C9D1:70AD (talk) 16:54, 3 September 2015 (UTC)

Hi ho!
As to what you write, I do not see a database problem. If you do not have any other problems with the database, then the DB should be fine.
The special pages in fact are programmed in PHP - they are not inside the database. A blank page (click me!) points to a PHP error. Activate error logging in PHP and check the error log to see, what is actually going wrong there.
Taking the above into account, I guess that a MediaWiki upgrade should most likely not fix the blank pages. MediaWiki 1.24 will still be supported until November 2015. However, if you ask me, running the most current version is a good idea - if you want to upgrade, make sure that your PHP version is at least PHP 5.3.3 or newer. And make sure that you have a working backup of all your files and of the current database. 88.130.69.182 (talk) 02:15, 4 September 2015 (UTC)
Those special pages aren't stored in database dumps. Your database is probably fine.
The key sentence of your post is this one:

These appear completely blank (not even side menus)

This indicates that your server is running into errors. See these trouble-shooting tips for a blank page. MarkAHershberger(talk) 02:16, 4 September 2015 (UTC)
(Im the OP) I was worried about the db being corrupted because after restoring the db the first time after the migration there were some content page missing, for example the main page was entirely missing (but the menus were there) and a lot of revisions had the error "2 past revisions appear to have not been found" or something around those lines, so I restored the db a second time and those first issues appeared to be solved but the blank pages didnt, so I was worried it could be the same problem. Glad you pointed out the blank page thing, I will try to look into that and report back if I run into any more problems. Thanks Kanecow (talk) 16:25, 6 September 2015 (UTC)
Hi please try reinstalling mediawiki 1.24 or upgrade to mediawiki 1.25 to see if that fixes the problem. Just re copy mediawiki 1.24 files by re downloading and copying the files to your website to see if it fixes the problem. But please make a backup before you do that. Paladox (talk) 17:08, 6 September 2015 (UTC)

Upgrading from 1.22.4 to 1.25

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


I want to upgrade my MediaWiki installation from where it currently stands:

To the latest version (1.25, I believe?).

Every time I visit the MediaWiki page for upgrading, I get a bit lost. I'm technically adept, but it seems the MediaWiki upgrade instructions are written for people comfortable with Linux server administration, which is not me.

I'm most comfortable with graphical FTP software, and simple instructions that don't cover every edge case.

What gives me most pause is the note that there are several schema changes from 1.24 to 1.25, and that the database will need to be updated or somesuch.

Can anyone confirm what steps I need to take, specifcally, to upgrade from my version to the latest? I'm a bit lost and I'm worried about doing damage to my MediaWiki installation that I won't know how to fix! 77.101.154.218 (talk) 17:41, 3 September 2015 (UTC)

Hi!
If you are not completely sure about what you are doing, you have to make sure that you have a backup: The files of your wiki and the database. I would say that I do know how to update MediaWiki and I am creating a backup before anyway.
Upgrade is the page you should be following.
For the upgrade, you can use FTP to upload the new files. However, compared to directly extracting a tarball on the server, that will takes ages. But it should work.
For the database, you will have to run an update script. The recommended way of doing that is to run it from the shell. However, there also is a web-updater, which you can run with your webbrowser. Since it is called through the browser, it has a possibility to fail, mainly because of a timeout, which might be reached somewhen during the database update. We won't be able to tell you, if that happens in your case, the details on the how, why and when are on the upgrade page. If a timeout does happen, you will have to restore the database from the backup. Especially there is no guarantee that running the web-updater again will fix the DB at that point - it most likely will not. 88.130.69.182 (talk) 02:07, 4 September 2015 (UTC)
I'm glad that you're upgrading.
First, back every thing up. Get a SQL dump from phpMyAdmin and copy the files to a zip file or something.
Probably the easiest way to do things if you only have FTP access is to
  1. extract the new tarball over the old installation.
  2. run the web-based SQL update.
That should be it. MarkAHershberger(talk) 02:09, 4 September 2015 (UTC)
You've both been a great help! Once I realised it was as simple as two steps, I took the plunge, and am happy to say I'm running 1.25 happily.
I dare say the Upgrade page could be a little more newbie-friendly, though! I'm not at all afraid to get stuck in, but it gives the impression that there are a million and one things to make sure of before one starts, when it turns out most of it can be ignored (At least in my case).
Thanks for the help, both of you. 77.101.154.218 (talk) 17:49, 4 September 2015 (UTC)
The upgrade page in fact is the central place for upgrading questions. It is true that a number of the section on it may just be irrelevant in many cases. Anyway, I guess there is nothing superfluous on it - there actually are cases, where more or less all of that, not at the same time, but on a case by case view, can be relevant. 88.130.110.179 (talk) 21:16, 4 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to Bulk Export from Wiki or Move to a New One

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 like to either exporting everything out of wiki or duplicate my old wiki to my 2nd wiki without having to copy and paste everything. Is there a way of doing this?

Also, where is the site map? Newmediacc (talk) 21:17, 3 September 2015 (UTC)

I can't help you with the site map except to point you to this extension or this documentation.
However, if you want to move your wiki, you can use your Special:Export page and the target wiki's Special:Import page.
Alternatively, you can produce an SQL Dump on your old server and import it to your new one. MarkAHershberger(talk) 23:10, 3 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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


Hi, my installation at http://youthdebates.org/partners was working fine up until recently, when suddenly the Wikipedia logo appeared. I've double and triple checked, and all LocalSettings.php settings are as they should be. The logo file itself is still there. Cleared all browser caches and tried other devices. If I inspect element on the Wikipedia logo, it tells me it's my logo.

Any ideas? :( Allegrif1 (talk) 22:46, 3 September 2015 (UTC)

When I visit http://youthdebates.org/partners/index.php/Main_Page, I see the square crown logo. Have you tried a different browser? MarkAHershberger(talk) 23:03, 3 September 2015 (UTC)
Hey, thanks for the reply. Unfortunately with all caches etc cleared I'm still seeing the wiki logo on Chrome and Microsoft's new Edge browser. Internet Explorer shows my logo, very odd. Allegrif1 (talk) 11:52, 4 September 2015 (UTC)
You should report this as a bug to Microsoft. MarkAHershberger(talk) 14:00, 4 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Updating wiki farm installation

Hi,

How would I update my wiki farm with hundreds of wikis? The wikis are stored as sqlite files and the farm is set up in the format of example.com/project1, example.com/project2, etc. Thanks Farmer193 (talk) 01:30, 4 September 2015 (UTC)

You haven't given us much information about your farm. Do they all have their own LocalSettings.php file? If they share one configuration, how does MW know which datbase to use? MarkAHershberger(talk) 02:02, 4 September 2015 (UTC)

HMAC-TOTP 2FA available on mediawiki?

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


I heard from a community member that this is an option, but I don't see it in my local wiki(wikipeida). Does anybody know how to activate this feature? Bluedeck 02:57, 4 September 2015 (UTC)

See Extension:OATHAuth or, for a simpler TOTP implementation of OTP, see Extension:TwoFactorAuthentication. Florianschmidtwelzow (talk) 06:01, 4 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

copyrigth to the artist

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


I would like to know, how were can I get copyrigth information to use a image from the wikepedia ALMAwike (talk) 03:02, 4 September 2015 (UTC)

This isn't the place to get support for a Wikipedia wiki. Here you can ask for general support for the MediaWiki software. But in general you should see copyright information for an image in wikipedia if you open the file page of the image (just click on the image). Florianschmidtwelzow (talk) 05:58, 4 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Translation Chinese between Traditional and Simplified

When Edit full page, title will show simplified 编辑, but section will show Traditional 編輯. Tunglinwu (talk) 06:24, 4 September 2015 (UTC)

Which MediaWiki version do you use in your installation? Malyacko (talk) 08:15, 4 September 2015 (UTC)

I added some javascript for some popups and tracking software to /MediaWiki:Common.js and its not working. What am I doing wrong or what is the best way to do this? 191.101.244.70 (talk) 23:32, 4 September 2015 (UTC)

Can you point to what your wiki so we can have a look? MarkAHershberger(talk) 00:26, 6 September 2015 (UTC)
Sure its http://www.pornwikileaks.com/wiki and now have reverted back to a older version where I just add the code to a file inside the skins folder but would like to upgrade and get it to work with me version. 37.46.117.49 (talk) 06:36, 8 September 2015 (UTC)
See the Manual:Hooks/BeforePageDisplay hook BeforePageDisplay. This allows you to add JavaScript to the page.
You will also be able to add the JavaScript code to the page MediaWiki:Common.js; that should be working as well.
Apart from that, MediaWiki 1.16 is an antique version, which has a ton of known security holes. Please upgrade to a supported version! 88.130.90.149 (talk) 15:08, 8 September 2015 (UTC)

Installing infobox problem

Hello, I would like to get help to integrate the infobox template in my Wiki.

I am French, and knows very little English, and I do not understand how installed "Extension: Scribunto" and I do not have a page "Special: Import"

How to do ? Cooperiens (talk) 14:20, 5 September 2015 (UTC)

If you don't have a Special:Import page, then are you sure you're running a MediaWiki wiki? MarkAHershberger(talk) 00:25, 6 September 2015 (UTC)
Yes am using WikiMedia 1.25.2,
I am in local (localhost) and I'm using a SQLite database, is what it may come to that? Cooperiens (talk) 09:11, 6 September 2015 (UTC)
But you're logged in as a sysop, or at least as a user with the importupload right? And please check, if you really try "Special: Import" or "Special:Import (without "). The first one has a white-space between the "Special:" and "Import" part, the second (correct one) not. Florianschmidtwelzow (talk) 06:13, 7 September 2015 (UTC)
It would show a permission error message rather than a missing page message if that was the case, and the space doesn't matter: Special: Import 137.147.180.136 (talk) 09:25, 7 September 2015 (UTC)
https://www.mediawiki.org/wiki/Special:_Import
The link was changed when I saved and you apparently cannot edit your own posts... 137.147.180.136 (talk) 09:27, 7 September 2015 (UTC)
Hello, thank you for your help, it works great. (I am Cooperiens)
But now I have a problem with the position of the infobox, it takes all the page.
Screens:
http://www.hostingpics.net/viewer.php?id=13253185fg.png
And how do other templates, we also export / import? Sebunian (talk) 10:47, 7 September 2015 (UTC)
The wiki you're importing the templates from, may have additional styles for templates in the page MediaWiki:Common.css (see Manual:Interface/Stylesheets) that you may need importing. Ciencia Al Poder (talk) 09:37, 8 September 2015 (UTC)
Hello, I have to export and import "MediaWiki:Gadget-site.css" or I have to created and placed in the folder of my Wiki? Cooperiens (talk) 10:24, 8 September 2015 (UTC)
Thank you very much for your help.
I have successfully installed the infobox.
But latest questions, where do I put the images in .svg, for they appear on the Wiki?
and for the others templates, I have to do as the infobox, export / import or I have installed other extensions ? Cooperiens (talk) 22:54, 8 September 2015 (UTC)
You need to upload images to your wiki, or enable InstantCommons
For other templates you need to import as well. Of course, if they make use of other extensions you'll need to install them, or remove the functionality that depends on that extension. Ciencia Al Poder (talk) 09:32, 9 September 2015 (UTC)
New problem when I want to import a picture in .svg, it said ""L'extension du fichier « .svg » ne correspond pas au type MIME détecté du fichier (image/png)."
What's the problem ? Cooperiens (talk) 17:02, 9 September 2015 (UTC)
You downloaded the PNG representation of the SVG image instead of the SVG itself. If you're getting the image from commons, like File:Example.svg, you should click on the image, or the "original file" link, to get the SVG file. Ciencia Al Poder (talk) 19:22, 9 September 2015 (UTC)
New problem when I finished uploading the picture I have this written "Erreur lors de la création de la miniature"
What for ? Cooperiens (talk) 22:51, 9 September 2015 (UTC)

Is there a number I may call to get a tech to log onto my computer and see what my problem is ? I cannot upload to GED MATCH.COM

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


Is there a number I may call to get a tech to log onto my computer and help me upload to GED MATCH.com 2602:306:370E:8F10:C855:643:507A:221F (talk) 14:50, 5 September 2015 (UTC)

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

can shared hosting support mediawiki?

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


I'm in a shared hosting plan but want to create a small wiki site. is this possible? Enhu~mediawikiwiki (talk) 22:35, 5 September 2015 (UTC)

If this hosting fullfils the requirements from Manual:Installation requirements, then yes. 88.130.75.1 (talk) 22:40, 5 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

nickname

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


My nickname - Участник:Beath111

I want to change - Pack

Thank's Beath111 (talk) 00:10, 6 September 2015 (UTC)

This is not the right place to ask. Please see the rename policy. MarkAHershberger(talk) 00:22, 6 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Help naming extension

I have created an extension based on https://www.mediawiki.org/wiki/Extension:DeletePagePermanently and doint know what to call the extension. What the extension is it deletes pages permanently but is based on DeletePagePermanently extension it has updated code and fixes for it work with mw 1.26 and maybe 1.25. I have tested the code I did with mw 1.26. Paladox (talk) 17:05, 6 September 2015 (UTC)

Why not reuse the existing name, specially if it's based on it? Ciencia Al Poder (talk) 19:31, 6 September 2015 (UTC)
Be because it would be confusing for users. Paladox (talk) 20:29, 6 September 2015 (UTC)
Why would it be confusing for users? AKlapper (WMF) (talk) 18:20, 7 September 2015 (UTC)
Per feedback here https://www.mediawiki.org/wiki/Git/New_repositories/Requests please go to bottom. Paladox (talk) 18:25, 7 September 2015 (UTC)
I have now thought of a new name but feedback on a different will be good. Paladox (talk) 18:28, 7 September 2015 (UTC)

max-age=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.


Why does Output.php set max-age to 0? Why not something like 10 seconds? Subfader (talk) 21:19, 6 September 2015 (UTC)

2 days using this I see no problems except for editing.
Any dev with an opinion? Subfader (talk) 19:26, 8 September 2015 (UTC)
It would be easier to answer if you pointed directly to the line in question. MarkAHershberger(talk) 01:24, 11 September 2015 (UTC)
The line doesn't matter much. What I mean is the header setting for the cache control:[./File:Capture_09112015_204605.png ]
Since my post I use max-age=12 (except when action=...) and I see no problems so far.
Maybe I should explain the advantage: The back button works instantly if you didn't spend more than 12 seconds on the page.
Also on pages where you you back via link, e.g. back to start / category / image / history page > check a link from a link list > back to the page you cam from > next link... Subfader (talk) 18:47, 11 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Replacement for $wgUser?

Hi, what should be used in lieu of $wgUser? Manual:User.php says it's deprecated and Manual:$wgUser says it shouldn't be used in new code. I'm trying to disable access to certain API modules based on a person's user groups as shown on API:Restricting API usage:
if ( !in_array( 'sysop', $wgUser->getGroups() ) ) {
 	$wgAPIModules['edit'] = 'ApiDisabled';
 }
How should I do it now? Thanks Sudalopa (talk) 01:21, 7 September 2015 (UTC)
I know it has been a year, but I was searching for the answer and came across this question. Here is what I've found.
You need to get a context object and use that to get the user. If all else fails, you can use RequestContext::getMain(), but often objects that you're dealing with will have a better context for you.
For example, if you have an Article object, you'll be able to do the following:
$user = $article->getContext()->getUser();
MarkAHershberger(talk) 01:16, 15 December 2016 (UTC)
I don't think that code has ever worked to be honest. Instead, try revoking the writeapi right from non-sysops. Legoktm (talk) 01:43, 7 September 2015 (UTC)
Note that revoking writeapi will disable the ability of users to add pages to their watchlist, from the page itself. Ciencia Al Poder (talk) 09:19, 7 September 2015 (UTC)

Problem with thumbnails after upgrade

Hello,

For one of my customer, I have made an upgrade of his mediawiki from 1.15 to last version. I have copy / paste the images directory but when I visit some pages, in place of thumbnails, I have "Erreur lors de la création de la miniature : Error code: -1"

If I go to the same page connected as admin, that works! I see thumbnails.

Other problem is that when I try to click on an image, I can't see file data and history but I have "

Erreur de la base de données

Une erreur de requête de base de données s'est produite. Cela peut provenir d'un bogue dans le logiciel.

Thx for your help,

Olivier 109.133.112.200 (talk) 07:59, 7 September 2015 (UTC)

did you run the update script? See manual:Upgrading. Running it should solve database errors. If not, see Manual:How to debug for settings you can change to display more detailed error messages.
If you moved your host, filesystem permissions may be a problem, if the images have a different owner/group on the new server. You may need to fix file permissions recursively on the images directory, so the owner is the webserver user.
You can also set a debug log to see what's happening, and maybe look for any error condition there, if paths on the filesystem are correct, etc. Ciencia Al Poder (talk) 09:28, 7 September 2015 (UTC)

Edit page

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


Hi !

I want to ask how to gain access to the text which was put above "save page" "show preview" "show changes" buttons in edit form  ? I have wrong url there on my own mediawiki site and want to fix it. Here's example with correct url:

https://www.mediawiki.org/w/index.php?title=Help:Recent_changes&action=edit

thanks 83.18.8.90 (talk) 09:48, 7 September 2015 (UTC)

You mean the copyright warning? It is in MediaWiki:Wikimedia-copyrightwarning Clump (talk) 21:10, 7 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Changing user name

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


How do i change my user name? Ginieaton (talk) 13:37, 7 September 2015 (UTC)

if you mean you want to change to change your username on your own wiki please use https://www.mediawiki.org/wiki/Extension:UserMerge or https://www.mediawiki.org/wiki/Extension:Renameuser Paladox (talk) 14:56, 7 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

task T69877 - update.php script 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 have just set up a new wiki and wanted to install the Translate extension. I have set it up using XAMPP and saw the problem with using the web updater. Tried it, failed. Used the update.php script as suggested and I am getting this error

Notice: Undefined variable: EXT in C:\xampp\htdocs\mediawiki\mediawiki-1.25.2\mediawiki-1.25.2\LocalSettings.php on line 163

Warning: require_once(/Babel/Babel.php): failed to open stream: No such file or directory in C:\xampp\htdocs\mediawiki\mediawiki-1.25.2\mediawiki-1.25.2\LocalSettings.php on line 163

Fatal error: require_once(): Failed opening required '/Babel/Babel.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\mediawiki\mediawiki-1.25.2\mediawiki-1.25.2\LocalSettings.php on line 163

Any help would be appreciated :D Leepbn (talk) 14:29, 7 September 2015 (UTC)

Please replace $EXT/ with $IP/extensions/ and currently the web updater is not supported for that extension. Paladox (talk) 14:54, 7 September 2015 (UTC)
Hi Paladox2017
I have replaced $EXT/ with $IP/ and this hasn't seemed to have helped. I get
Warning: require_once(C:\xampp\htdocs\mediawiki\mediawiki-1.25.2\mediawiki-1.25.2/Babel/Babel.php): failed to open stream: No such file or directory inC:\xampp\htdocs\mediawiki\mediawiki-1.25.2\mediawiki-1.25.2\LocalSettings.php on line 163
Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\mediawiki\mediawiki-1.25.2\mediawiki-1.25.2/Babel/Babel.php' (include_path='.;C:\xampp\php\PEAR') inC:\xampp\htdocs\mediawiki\mediawiki-1.25.2\mediawiki-1.25.2\LocalSettings.php on line 163
I am not using web updater I am using Shell and update.php Leepbn (talk) 15:05, 7 September 2015 (UTC)
It shows here mediawiki-1.25.2/Babel/Babel.php that isent a valid path there needs to be extensions so the path should look like mediawiki-1.25.2/extensions/Babel/Babel.php Paladox (talk) 15:07, 7 September 2015 (UTC)
As soon as you said it I saw it! Thank you for your help :D Leepbn (talk) 15:10, 7 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

In the Huntsville, Decatur, Albertville Combined Statistical Area, why isn't Marshall County, where Albertville is (one of the core cities) given a color?

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


Why not color Marshall County green since it has so much green beauty anyway in the form of mountains, trees, grass, lawns, and Lake Guntersville to top it off? If it isn't given a color, don't you think that this would be quite confusing for someone who doesn't know the state very well? I know it would be for me, if I hadn't known where Marshall County is in the first place. Arab in Marshall County is where I live right now. Bmgbamano1 (talk) 21:42, 7 September 2015 (UTC)

If this is not where I should ask this question, please tell me how to write it on the Wikipedia page where this is because I have tried to figure it out on my own, but I cannot. Bmgbamano1 (talk) 21:53, 7 September 2015 (UTC)
Hi!
I think you are speaking about this article. In that case, the right place to ask would be this discussion page.
Note that this page already has a section on the colorization of the map (see the section titled "Graphic"), but it seems like this page is not used very actively.
Another place might be to ask User:Nyttend, who has uploaded the map. 88.130.90.149 (talk) 22:47, 7 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Images not Load

I created a mediawiki site from years ago, actually i´m attempt to make it work again, i have the database and the site backup.

I regenerated the LocalSettings.php and it works, but i have a little problem the images doesn't work, the error :

GET http://localhost/Wiki/images/b/be/NuevoRecursoGlassfish.png 404 (Not Found)

GET http://localhost/Wiki/images/2/22/Jdbc_step1.png 404 (Not Found)

In all the images.

For test i'm working in localhost and all the images are in 'C:\xampp\htdocs\Wiki\images',

how i can modify the source path directory, or how i can make it work.??? Ospina9 (talk) 16:37, 8 September 2015 (UTC)

Special pages not working after migration to another server

Hi.

After migration to another server (from Debian 7 with PHP 5.4, Apache 2.2 and MySQL 5.5 to Ubuntu Server 14.04 LTS with the latest PHP 5.6.13, MariaDB 10.0.0.21 and Apache 2.4.16) I am getting error when accessing Special pages.

Warning: require(/var/www/html/wiki/includes/specials/SpecialAllPages.php): failed to open stream: No such file or directory in /var/www/html/wiki/includes/AutoLoader.php on line 90

Fatal error: require(): Failed opening required '/var/www/html/wiki/includes/specials/SpecialAllPages.php' (include_path='/var/www/html/wiki:/var/www/html/wiki/includes:/var/www/html/wiki/languages:.:/usr/share/php:/usr/share/pear') in /var/www/html/wiki/includes/AutoLoader.php on line 90

Before migration was everything OK. What is wrong? What should I do or at least try?

Using MediaWiki 1.25.2

URL: https://wiki.inf.upol.cz/

Special pages with error: https://wiki.inf.upol.cz/index.php/Speci%C3%A1ln%C3%AD:Speci%C3%A1ln%C3%AD_str%C3%A1nky Bari007 (talk) 19:08, 8 September 2015 (UTC)

Hi!
The path name /var/www/html/wiki/ obviously is correct; according to the error message, this path is where your wiki is installed.
Please check, if the file /var/www/html/wiki/includes/specials/SpecialAllPages.php exists. Is it missing?
If it is there, then most likely the permissions of that file are incorrect. The webserver user must be able to at least read that file. 88.130.122.12 (talk) 21:27, 8 September 2015 (UTC)
Hi.
Thanks for your prompt reply.
The file is there, but has a small "p":
root@lws:~# vim /var/www/html/wiki/includes/specials/SpecialAll
SpecialAllMessages.php  SpecialAllpages.php
So I changed "p" to capital "P" and now it works :-)
Thank you! Bari007 (talk) 06:55, 9 September 2015 (UTC)
That's nice to hear!
My guess is that case-insensitively overwriting files with the same name and the case-sensitivity of the new filesystem caused this.
I think you should be able to avoid this kind of problem, if in the future you upgrade MediaWiki by putting the new MediaWiki files into a new folder (as opposed to copying them over the old files). 88.130.122.12 (talk) 10:15, 9 September 2015 (UTC)

Automatically purging certain pages

Hi. I am an administrator on Ladino Wikipedia (lad.wikipedia.org) [] [] . We have five (5) versions of our home page. Each of them includes the current date (conventional and Jewish calendars). We do not regularly update the content of our home pages, so on a regular basis the only item on them that would change every day is the date, which is changed through the #date parser function, sometimes in combination with the #switch parser function. I've been told that people do not see the dates updating automatically. Is there some way to make sure this happens? Thanks. StevenJ81 (talk) 19:25, 8 September 2015 (UTC)

Another massive error...

MediaWiki 1.23.3

PHP 5.3.24 (cgi-fcgi)

MySQL 5.0.96-log

wiki.voteforthegirls.us

After editing a page or even attempting to delete an article, I keep running into the fatal error:


Warning: Class 'Diff\Differ\CallbackListDiffer' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 20

Warning: Class 'Diff\Differ\Differ' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 21

Warning: Class 'Diff\Differ\ListDiffer' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 22

Warning: Class 'Diff\Differ\MapDiffer' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 23

Warning: Class 'Diff\Differ\OrderedListDiffer' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 24

Warning: Class 'Diff\Patcher\ListPatcher' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 26

Warning: Class 'Diff\Patcher\MapPatcher' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 27

Warning: Class 'Diff\Patcher\Patcher' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 28

Warning: Class 'Diff\Patcher\PatcherException' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 29

Warning: Class 'Diff\Patcher\PreviewablePatcher' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 30

Warning: Class 'Diff\Patcher\ThrowingPatcher' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 31

Warning: Class 'Diff\DiffOp\Diff\Diff' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 33

Warning: Class 'Diff\DiffOp\Diff\ListDiff' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 34

Warning: Class 'Diff\DiffOp\Diff\MapDiff' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 35

Warning: Class 'Diff\DiffOp\AtomicDiffOp' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 37

Warning: Class 'Diff\DiffOp\DiffOp' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 38

Warning: Class 'Diff\DiffOp\DiffOpAdd' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 39

Warning: Class 'Diff\DiffOp\DiffOpChange' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 40

Warning: Class 'Diff\DiffOp\DiffOpRemove' not found in /home/content/71/10238071/html/wiki/extensions/Diff/Diff.php on line 41

Fatal error: Call to undefined function socket_create() in /home/content/71/10238071/html/wiki/includes/SquidPurgeClient.php on line 96

Even adding the Diff and Trusted XFF extensions, the errors still appear. Nsgaeverine (talk) 19:26, 8 September 2015 (UTC)

I've pretty much have given up even trying to fix the wiki and to the point where I had to completely remove MediaWiki 1.23 and replace it with MediaWiki 1.25.2 and since updated the PHP to 5.4 Nsgaeverine (talk) 03:28, 10 September 2015 (UTC)
I read your request already yesterday, but I didn't know what the problem might be.
So you are now running MediaWiki 1.25.2 on PHP 5.4?
The sourcoe code of this extension is here:
https://github.com/wmde/Diff
Obviously, when the Extension:Diff is installed, this extension cannot find some of its classes. 88.130.83.8 (talk) 10:25, 10 September 2015 (UTC)
Thanks, but Diff doesn't seem to be the problem. Yet,
this error has been ongoing since July 2015 and about to relocate the wiki from
wiki.voteforthegirls.us to voteforthegirls.wiki
Fatal error: Call to undefined function socket_create() in /home/content/71/10238071/html/wiki/includes/SquidPurgeClient.php on line 96
----
After editing a page....
A database query error has occurred.
This may indicate a bug in the software.
  • Query:
    INSERT IGNORE INTO `mw_pagelinks` (pl_from,pl_from_namespace,pl_namespace,pl_title) VALUES ('8673','0','0','Vote_for_the_Girls_(U.S._season_7)')
  • Function: LinksUpdate::incrTableUpdate
  • Error: 1054 Unknown column 'pl_from_namespace' in 'field list' (vot1424111240655.db.10238071.hostedresource.com)
Backtrace:
#0 /home/content/71/10238071/html/wiki/includes/db/Database.php(1205): DatabaseBase->reportQueryError('Unknown column ...', 1054, 'INSERT IGNORE I...', 'LinksUpdate::in...', false)
#1 /home/content/71/10238071/html/wiki/includes/db/Database.php(2087): DatabaseBase->query('INSERT IGNORE I...', 'LinksUpdate::in...')
#2 [internal function]: DatabaseBase->insert('pagelinks', Array, 'LinksUpdate::in...', 'IGNORE')
#3 /home/content/71/10238071/html/wiki/includes/db/LoadBalancer.php(1276): call_user_func_array(Array, Array)
#4 /home/content/71/10238071/html/wiki/includes/deferred/LinksUpdate.php(344): DBConnRef->__call('insert', Array)
#5 /home/content/71/10238071/html/wiki/includes/deferred/LinksUpdate.php(344): DBConnRef->insert('pagelinks', Array, 'LinksUpdate::in...', 'IGNORE')
#6 /home/content/71/10238071/html/wiki/includes/deferred/LinksUpdate.php(155): LinksUpdate->incrTableUpdate('pagelinks', 'pl', Array, Array)
#7 /home/content/71/10238071/html/wiki/includes/deferred/LinksUpdate.php(145): LinksUpdate->doIncrementalUpdate()
#8 /home/content/71/10238071/html/wiki/includes/deferred/DataUpdate.php(101): LinksUpdate->doUpdate()
#9 /home/content/71/10238071/html/wiki/includes/page/WikiPage.php(2201): DataUpdate::runUpdates(Array)
#10 /home/content/71/10238071/html/wiki/includes/page/WikiPage.php(1869): WikiPage->doEditUpdates(Object(Revision), Object(User), Array)
#11 [internal function]: WikiPage->doEditContent(Object(WikitextContent), '', 98, false, NULL, 'text/x-wiki')
#12 /home/content/71/10238071/html/wiki/includes/page/Article.php(2016): call_user_func_array(Array, Array)
#13 /home/content/71/10238071/html/wiki/includes/EditPage.php(1921): Article->__call('doEditContent', Array)
#14 /home/content/71/10238071/html/wiki/includes/EditPage.php(1921): Article->doEditContent(Object(WikitextContent), '', 98, false, NULL, 'text/x-wiki')
#15 /home/content/71/10238071/html/wiki/includes/EditPage.php(1305): EditPage->internalAttemptSave(Array, false)
#16 /home/content/71/10238071/html/wiki/includes/EditPage.php(539): EditPage->attemptSave(Array)
#17 /home/content/71/10238071/html/wiki/includes/actions/EditAction.php(56): EditPage->edit()
#18 /home/content/71/10238071/html/wiki/includes/actions/SubmitAction.php(40): EditAction->show()
#19 /home/content/71/10238071/html/wiki/includes/MediaWiki.php(395): SubmitAction->show()
#20 /home/content/71/10238071/html/wiki/includes/MediaWiki.php(273): MediaWiki->performAction(Object(Article), Object(Title))
#21 /home/content/71/10238071/html/wiki/includes/MediaWiki.php(566): MediaWiki->performRequest()
#22 /home/content/71/10238071/html/wiki/includes/MediaWiki.php(414): MediaWiki->main()
#23 /home/content/71/10238071/html/wiki/index.php(41): MediaWiki->run()
#24 {main}
------
And when I tried to run the web updater...
Another error:
[bcfc0eb1] /wiki/mw-config/?page=ExistingWiki MWException from line
337 of /home/content/71/10238071/html/wiki/includes/MagicWord.php:
Error: invalid magic word 'babel'
Backtrace:
#0 /home/content/71/10238071/html/wiki/includes/MagicWord.php(262): MagicWord->load(string)
#1 /home/content/71/10238071/html/wiki/includes/parser/Parser.php(5182): MagicWord::get(string)
#2 /home/content/71/10238071/html/wiki/extensions/Babel/BabelStatic.class.php(22): Parser->setFunctionHook(string, array)
#3 [internal function]: BabelStatic::onParserFirstCallInit(Parser)
#4 /home/content/71/10238071/html/wiki/includes/Hooks.php(209): call_user_func_array(string, array)
#5 /home/content/71/10238071/html/wiki/includes/parser/Parser.php(310): Hooks::run(string, array)
#6 /home/content/71/10238071/html/wiki/includes/parser/Parser.php(320): Parser->firstCallInit()
#7 /home/content/71/10238071/html/wiki/includes/parser/Parser.php(5025): Parser->clearState()
#8 /home/content/71/10238071/html/wiki/includes/parser/Parser.php(405):
Parser->startParse(Title, ParserOptions, integer, boolean)
#9
/home/content/71/10238071/html/wiki/includes/installer/Installer.php(630):
Parser->parse(string, Title, ParserOptions, boolean)
#10 /home/content/71/10238071/html/wiki/includes/installer/WebInstaller.php(676): Installer->parse(string, boolean)
#11 /home/content/71/10238071/html/wiki/includes/installer/WebInstallerPage.php(392): WebInstaller->getInfoBox(string)
#12 /home/content/71/10238071/html/wiki/includes/installer/WebInstallerPage.php(380): WebInstallerExistingWiki->showKeyForm()
#13 /home/content/71/10238071/html/wiki/includes/installer/WebInstaller.php(280): WebInstallerExistingWiki->execute()
#14 /home/content/71/10238071/html/wiki/mw-config/index.php(77): WebInstaller->execute(array)
#15 /home/content/71/10238071/html/wiki/mw-config/index.php(36): wfInstallerMain()
#16 {main} Nsgaeverine (talk) 03:47, 16 September 2015 (UTC)
the socket_create error is because this PHP function is disabled by your system administrator. Although MediaWiki should probably check for it instead of failing so badly.
The problem about missing field is because you haven't followed Manual:Upgrade, specifically the part about running the upgrade script. Ciencia Al Poder (talk) 10:03, 16 September 2015 (UTC)
Basically I need the system admin to re-enable the PHP function and since the wiki (wiki.voteforthegirls.us) is on a section of a wordpress site (voteforthegirls.us).
I have tried all SSH utilities and none of them do the trick. Nsgaeverine (talk) 07:53, 20 September 2015 (UTC)
Apparently the wiki simply doesn't work so I have decided to effectively move the wiki to a new URL as follows since my web hosting provider is GoDaddy:
OLD WIKI:
NEW WIKI: (This has cPanel hosting)
But still have run into serious problems though and likely ask for someone for assistance on getting things transferred. Nsgaeverine (talk) 14:51, 29 September 2015 (UTC)
Feel free to open a new post with the detailed problems you have, or contact a Professional development and consulting Ciencia Al Poder (talk) 09:19, 5 October 2015 (UTC)

Flagging deprecated words

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're building a new wiki using some ancient content that contains products that have moved onto newer product names. I'm wondering whether its possible to setup a hook/event handler to look at each word on a page as its rendered and wrap each deprecated word in a \{\{!xt\}\} template. Is this the best approach? Has this problem already been solved? If not, please point me in a direction to solve it. TYIA

Tomasthanes (talk) 19:30, 8 September 2015 (UTC)
The easiest thing to do is probably to use Extension:Replace Text to replace the old names. MarkAHershberger(talk) 01:29, 11 September 2015 (UTC)
ReplaceText needs manual action and an administrator account to run it. I don't think this is what the OP is looking for.
I would try with a hook, which is executed on saving a page revision. Basically it should be enough to do some simple str_replace() calls on the content.
What has to be taken care of will be recursivity: Your code should not add this !-template at places, where it already is. Jörgi123 (talk) 11:38, 11 September 2015 (UTC)
A combination of both ideas posted above might maybe be the best:
For the existing content, you can use Extension:ReplaceText.
For new content, you can use a hook and replace new additions as they get inserted. 88.130.83.76 (talk) 21:43, 12 September 2015 (UTC)
Thank you to all of you. It sounds like it'll be a bit more manual than I expected but the Extension:Replace Text sounds like its closest to what I was looking for. Thank you. Tomasthanes (talk) 17:34, 21 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

如何配置邮箱验证?Email verification?

在LocalSettings.php中我配置如下,

$wgSMTP = array(

      'host'     => 'smtp.exmail.qq.com',

      'IDHost'   => 'exmail.qq.com',

      'port'     => '25',

      'auth'     => true,

      'username' => 'xxxxxx',

      'password' => 'xxxx',

  );

  结果返回 [af57fe96] 2015-09-09 02:09:42: 类型“MWException”的致命错误 

  help me? thanks 222.73.151.50 (talk) 02:10, 9 September 2015 (UTC)

I can't tell what problem you're having. Can you point to your wiki? MarkAHershberger(talk) 01:26, 11 September 2015 (UTC)

For some strange reason, only on the main page, internal links are build differently than anywehere else. An internal link like should look like www.carteamuntilor.ro/index.php?title=xxxxxx and so it does on any page of the wiki, except on the main page where it links to www.carteamuntilor.ro/enciclopedie/index.php?title=xxxxxx, although in the page content is the same way of building them (2 square paranthesis).

Also the WikiSeo extension does not work on the main page, but it works on any other page.

It can be observed here: http://www.carteamuntilor.ro Sorin.sfirlogea (talk) 13:22, 9 September 2015 (UTC)

Hmmm... Going into edit mode of the main page and just saving it with no modification removes the problem... Now the issue is gone. What could it be? Sorin.sfirlogea (talk) 13:24, 9 September 2015 (UTC)

Realising search in the "full area of names" with prefix "ALL"

Hi,

Is it possible to realise search in the "full area of names" Mediawiki (ver. 1.25.1) with prefix "ALL" include "Custom namespaces"? Faithdr (talk) 16:49, 9 September 2015 (UTC)

Fatal error "Class 'DatabaseBase' not found..."

Hello there! I'm trying to upgrade my MW from 1.15 to 1.25.2 version.

I followed the Upgrading Manual but I encountered some errors of type "Exception" (Exception encountered, of type "Exception"...) when I run the update.php.

That happened both using "wfLoadExtension" and old "require_once".

So I temporarily decided to not import old extensions (by comment the lines in LocalSettings.php).

The installation page (mydomain/mediawiki-1.25.2/mw-config) finally started and I added the $wgUpgradeKey to LocalSettings.php.

Nevertheless I encountered another error:

Fatal error: Class 'DatabaseBase' not found in /web/htdocs/MYDOMAIN/home/mediawiki-1.25.2/includes/installer/MysqlInstaller.php on line 154

Where did I go wrong? What I have to do to fix the problem?

Thank in advance and forgive my very poor English. Ruster1969 (talk) 17:05, 9 September 2015 (UTC)

Changing The Logo On The Top Left Of My Mediawiki Pages

I used to have Mediawiki v.1.16 and I hot linked a Photobucket image to my wiki to display a logo on the top left of each page. Since then I've updated to v.1.24 and believe that it's now possible to display an uploaded wiki image in that position.

In simple terms (please) what is the procedure for removing the hotlink and displaying an uploaded image. Seedier Wiki (talk) 19:54, 9 September 2015 (UTC)

What do you mean with "hotlinked"?
Anyway, he recommended way of changing the logo is this:
In your LocalSettings.php file, set $wgLogo to the path of your logo file. See Manual:$wgLogo for more information! 88.130.83.8 (talk) 21:02, 9 September 2015 (UTC)
I have added an example to Manual:$wgLogo. Jörgi123 (talk) 21:07, 9 September 2015 (UTC)
Just to clarify. Previously, in order to display a logo on my Wiki pages, I had placed a direct link from my Wiki to a file hosted by a photo hosting site (Photobucket). I'm guessing I would need to remove this link before setting $wgLogo to the path of my preferred logo file? Otherwise I would potentially have two instructions to essentially do the same thing. A problem I have is that I cannot remember where I placed the direct link to Photobucket. Seedier Wiki (talk) 18:46, 10 September 2015 (UTC)
If you are using the Vector skin, then maybe you have added the image to skins/Vector.php or to the according PHP file inside the Vecor skin, if you are using a newer version of MediaWiki. If that is the case, you should remove this hack again.
Another possibility is that you used a hook; in that case you will almost certainly have the according lines of code in your LocalSettings.php file. 88.130.105.145 (talk) 19:23, 10 September 2015 (UTC)

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


I am unable to redirect the wiki to the subdomain that I have set up in the Apache-sites-available.

The IP works and when I have it set up like this in the LocalSettings.php, then I am able to access the wiki, but when I say

$wgServer = potatoGod.worldgovernment.terra then I get an error:

Not Found 

The requested URL /w/BLA/index.php/wiki/Main_Page was not found on this server.

Where my the error in my logic.

The script path points to the correct directory. I have used the stuff form the ShortUrl page. Temptuousinsolence (talk) 20:41, 9 September 2015 (UTC)

Solved it:
https://kb.asmallorange.com/customer/portal/articles/1603639-install-mediawiki
Such a banal mistake by me ... :/ Temptuousinsolence (talk) 17:19, 10 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Change Create the page "blank" on this wiki!

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


I would like to change the default search results when no page is found.

Currently if a users looks for an item example "tank" and there is no existing page. The result will say

Create the page "tank" on this wiki!

I would like to have my own custom text and add some inspirational quotes.....like "be the change you wish to see in the world" Kaysevenmm (talk) 01:53, 10 September 2015 (UTC)

If this is your own wiki, you will need MediaWiki:Noarticletext Developaws (talk) 02:52, 10 September 2015 (UTC)
Yes this is my own wiki.
I went to the MediaWiki:Noarticletext page and I edited the content, but when I do a search for non existing item....it still shows the default "Create the page "blank" on this wiki!" Kaysevenmm (talk) 12:54, 10 September 2015 (UTC)
Oops, my bad. The Noarticletext message is when you visit a specific page that's missing :P
Check out MediaWiki:Search-nonefound and MediaWiki:Searchmenu-new Developaws (talk) 14:36, 10 September 2015 (UTC)
Yes, that did it thank you! Kaysevenmm (talk) 00:30, 11 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

License terms of JWPlayer

Query on JWPlayer which is bundled as part of MediaWiki platform:

Mediawiki is based on GNU GPL v2. Does the same license apply to JWPlayer as well or are there any different licensing terms? If there are different terms, please tell me the terms under which it is used as part of Mediawiki platform.


Rajiv.thanawala (talk) 05:48, 10 September 2015 (UTC)

> JWPlayer which is bundled as part of MediaWiki platform
Where did you get this information from? AFAICT, JWPlayer isn't delivered and/or bundled with MediaWiki. Florianschmidtwelzow (talk) 11:21, 10 September 2015 (UTC)

Error on linking files from public folder

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


When I try to access a js file from public folder I get error 404, but file is on app/public 79.144.135.208 (talk) 08:03, 10 September 2015 (UTC)

This seems to be not an issue of MediaWiki, right? Florianschmidtwelzow (talk) 10:01, 10 September 2015 (UTC)
Ask to your system administrator, because that's a problem on your server, not MediaWiki Ciencia Al Poder (talk) 10:01, 10 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Using Oauth I get E003 error

And I can't ". You'll need to contact the application author for help with this." ... :)

So, I am trying to use node passport, with the module written to support mediawiki login. And in effect it makes three calls:

callbackURL: "http://127.0.0.1:30005/auth/mediawiki/callback",
requestTokenURL: 'http://v-ghost.port0.org:8081/dbfswiki/index.php?title=Special:OAuth/initiate',
accessTokenURL: 'http://v-ghost.port0.org:8081/dbfswiki/index.php?title=Special%3AOAuth%2Ftoken',
userAuthorizationURL: 'http://v-ghost.port0.org:8081/dbfswiki//wiki/Special:OAuth/authorize',

As far as I can tell this is inline with the requirement. And as far as I can tell it works up to a point. More specifically, it gets the token http://v-ghost.port0.org:8081/dbfswiki/index.php?title=Special:OAuth/initiate

It then goes on to authenticate (either to the ID I am already logged in as, or I get a login prompt, so that SHOULD mean that http://v-ghost.port0.org:8081/dbfswiki//wiki/Special:OAuth/authorize works.

But I then get the following error message:

Sorry, something went wrong. You'll need to contact the application author for help with this.

Unknown URL, E003

However, I do not know which URL this is, or where it's trying to read it from, and I can't find any error on what E003 means, and I do not know if there is any tracing options somewhere that I am missing. The callback is set to 127.0.0.1:30005/auth/mediawiki/callback

This is the same as callback url for the token.

Any suggestions what I can do about this issue? 86.176.111.244 (talk) 13:40, 10 September 2015 (UTC)

And I did run a trace as well, did not tell me much
Debug data:
      • Start request GET /dbfswiki/index.php/Special:OAuth/authorizewiki/Special:OAuth/authorize?oauth_token=&oauth_consumer_key=449c71620457972e86ef20e083ccb87b
        HTTP HEADERS:
        HOST: v-ghost.port0.org:8081
        CONNECTION: keep-alive
        ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
        UPGRADE-INSECURE-REQUESTS: 1
        USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
        ACCEPT-ENCODING: gzip, deflate, sdch
        ACCEPT-LANGUAGE: en-US,en;q=0.8
        COOKIE: wikiEditor-0-toolbar-section=advanced; dbfswikiLoggedOut=1441890109; dbfswikiUserID=1; dbfswikiUserName=Dbfswiki; dbfswiki_session=orfe7osq7ekrpkq3df4fufcfo4
      • [caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff
      • [caches] LocalisationCache: using store LCStoreCDB
      • Unstubbing $wgParser on call of $wgParser::setHook from registerEmbedDocumentHandler
      • Parser: using preprocessor: Preprocessor_DOM
      • Fully initialised
      • User: cache miss for user 1
      • Connected to database 0 at localhost
      • Query dbfswiki (1) (slave): BEGIN /* DatabaseBase::query (User::loadFromDatabase) */
      • Query dbfswiki (2) (slave): SELECT /* User::loadFromDatabase */ user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount FROM `user` WHERE user_id = '1' LIMIT 1
      • Query dbfswiki (3) (slave): SELECT /* User::loadGroups */ ug_group FROM `user_groups` WHERE ug_user = '1'
      • Connected to database 0 at localhost
      • Query dbfswiki (4) (slave): SELECT /* SqlBagOStuff::getMulti */ keyname,value,exptime FROM `objectcache` WHERE keyname = 'dbfswiki:messages:en'
      • MessageCache::load: Loading en... got from global cache
      • Gadget::loadStructuredList: MediaWiki:Gadgets-definition parsed, cache entry dbfswiki:gadgets-definition:7 updated
      • User: loading options for user 1 from database.
      • Query dbfswiki (5) (slave): SELECT /* User::loadOptions */ up_property,up_value FROM `user_properties` WHERE up_user = '1'
      • User: logged in from session
      • User: loading options for user 1 from override cache.
      • Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct
      • Query dbfswiki (6) (slave): SELECT /* MediaWiki\Extensions\OAuth\MWOAuthConsumer::newFromKey Dbfswiki */ oarc_id,oarc_consumer_key,oarc_name,oarc_user_id,oarc_version,oarc_callback_url,oarc_callback_is_prefix,oarc_description,oarc_email,oarc_email_authenticated,oarc_wiki,oarc_grants,oarc_registration,oarc_secret_key,oarc_rsa_key,oarc_restrictions,oarc_stage,oarc_stage_timestamp,oarc_deleted FROM `oauth_registered_consumer` WHERE oarc_consumer_key = '449c71620457972e86ef20e083ccb87b' LIMIT 1
      • [autoloader] Class FormatJSON was loaded using incorrect case
      • User::getBlockedStatus: checking...
      • User: cache miss for user 1
      • Query dbfswiki (7) (slave): SELECT /* User::loadFromDatabase Dbfswiki */ user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount FROM `user` WHERE user_id = '1' LIMIT 1
      • Query dbfswiki (8) (slave): SELECT /* User::loadGroups Dbfswiki */ ug_group FROM `user_groups` WHERE ug_user = '1'
      • User: loading options for user 1 from database.
      • Query dbfswiki (9) (slave): SELECT /* User::loadOptions Dbfswiki */ up_property,up_value FROM `user_properties` WHERE up_user = '1'
      • Query dbfswiki (10) (slave): SELECT /* Block::newLoad Dbfswiki */ ipb_id,ipb_address,ipb_by,ipb_by_text,ipb_reason,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 FROM `ipblocks` WHERE ipb_address = 'Dbfswiki'
      • Query dbfswiki (11) (slave): SELECT /* LinkCache::addLinkObj Dbfswiki */ page_id,page_len,page_is_redirect,page_latest,page_content_model FROM `page` WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1
      • LoadBalancer::reuseConnection: this connection was not opened as a foreign connection
      • Query dbfswiki (12) (slave): SELECT /* LinkBatch::doQuery (for Skin::preloadExistence) Dbfswiki */ page_id,page_namespace,page_title,page_len,page_is_redirect,page_latest,page_content_model FROM `page` WHERE (page_namespace = '2' AND page_title = 'Dbfswiki') OR (page_namespace = '3' AND page_title = 'Dbfswiki')
      • Query dbfswiki (13) (slave): SELECT /* User::checkNewtalk Dbfswiki */ user_id FROM `user_newtalk` WHERE user_id = '1' LIMIT 1
      • Query dbfswiki (14) (slave): SELECT /* SqlBagOStuff::getMulti Dbfswiki */ keyname,value,exptime FROM `objectcache` WHERE keyname = 'dbfswiki:sitenotice'
      • Query dbfswiki (15) (slave): SELECT /* ResourceLoaderWikiModule::getTitleInfo Dbfswiki */ page_namespace,page_title,page_touched,page_len FROM `page` WHERE (page_namespace = '8' AND page_title IN ('Common.js','Foreground.js','Common.css','Foreground.css','Print.css') )
      • Query dbfswiki (16) (slave): SELECT /* ResourceLoaderWikiModule::getTitleInfo Dbfswiki */ page_namespace,page_title,page_touched,page_len FROM `page` WHERE (page_namespace = '8' AND page_title IN ('Group-bureaucrat.js','Group-bureaucrat.css','Group-oauthadministrators.js','Group-oauthadministrators.css','Group-sysop.js','Group-sysop.css','Group-user.js','Group-user.css','Group-autoconfirmed.js','Group-autoconfirmed.css') )
      • Query dbfswiki (17) (slave): SELECT /* NewMessages::newMessageCount Dbfswiki */ 1 FROM `user_message_state` WHERE ums_user = '1' AND ums_read_timestamp IS NULL LIMIT 500
      • Query dbfswiki (18) (slave): SELECT /* ResourceLoaderWikiModule::getTitleInfo Dbfswiki */ page_namespace,page_title,page_touched,page_len FROM `page` WHERE (page_namespace = '8' AND page_title IN ('Common.js','Foreground.js','Common.css','Foreground.css','Print.css') )
      • Query dbfswiki (19) (slave): SELECT /* ResourceLoaderWikiModule::getTitleInfo Dbfswiki */ page_namespace,page_title,page_touched,page_len FROM `page` WHERE (page_namespace = '8' AND page_title = 'Noscript.css')
      • Query dbfswiki (20) (slave): SELECT /* SqlBagOStuff::getMulti Dbfswiki */ keyname,value,exptime FROM `objectcache` WHERE keyname = 'dbfswiki:resourceloader:filter:minify-css:7:67f1fbd7c11038f0915f3c80cbc4dc25'
      • Query dbfswiki (21) (slave): SELECT /* SqlBagOStuff::getMulti Dbfswiki */ keyname,value,exptime FROM `objectcache` WHERE keyname = 'dbfswiki:resourceloader:filter:minify-css:7:9e509ea665bc3b91ef00abebf315c10d'
      • Query dbfswiki (22) (slave): SELECT /* ResourceLoaderWikiModule::getTitleInfo Dbfswiki */ page_namespace,page_title,page_touched,page_len FROM `page` WHERE (page_namespace = '8' AND page_title IN ('Group-bureaucrat.js','Group-bureaucrat.css','Group-oauthadministrators.js','Group-oauthadministrators.css','Group-sysop.js','Group-sysop.css','Group-user.js','Group-user.css','Group-autoconfirmed.js','Group-autoconfirmed.css') )
      • Parser: using preprocessor: Preprocessor_DOM
      • Query dbfswiki (23) (slave): SELECT /* MessageBlobStore::getFromDB Dbfswiki */ mr_blob,mr_resource,mr_timestamp FROM `msg_resource` WHERE mr_resource IN ('user.options','user.tokens') AND mr_lang = 'en'
      • Query dbfswiki (24) (slave): SELECT /* SqlBagOStuff::getMulti Dbfswiki */ keyname,value,exptime FROM `objectcache` WHERE keyname = 'dbfswiki:resourceloader:filter:minify-js:7:4367998603c03ddf8a4e047e167eae39' 86.176.111.244 (talk) 13:53, 10 September 2015 (UTC)
So one step forward (one step back). After much fiddling about I think I found the issue.
Where as I thought it was the callback URL that was the issue, it turns out it was the authorisation URL that was wrong. passport-mediawiki-oauth seems to have added the OAuth twice
/dbfswiki/index.php/Special:OAuth/authorizewiki/Special:OAuth/authorize?oauth_token=&oauth_consumer_key=449c71620457972e86ef20e083ccb87b
Fixed this in the module code, only to be faced with a new issue, I know get a accept box, (application ... wants basic rights, and when I press OK, I get a There is problem with your input) 86.176.111.244 (talk) 09:50, 11 September 2015 (UTC)
Following up in http://stackoverflow.com/questions/32520540/how-do-i-find-mediawiki-oauth-callback-url-node-passport-mediawiki-oauth.
Re: logs, OAuth logs everything in a channel called OAuth. Setting $wgDebugLogGroups accordingly makes your life easier. Tgr (talk) 20:29, 12 September 2015 (UTC)

Invalid JSON file

Fresh installation.

Mediawiki: 1.25.2

PHP: 5.3.29 (but also changing to 5.4.45 or 5.5.29)

MySQL: 5.0.92

When I go to MYDOMAIN/home/SUBFOLDERmw-config/ this is the result:

[a3643e26] /SUBFOLDER/mw-config/ MWException from line 552 of /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/cache/LocalisationCache.php: LocalisationCache::readJSONFile: Invalid JSON file: /web/htdocs/MYDOMAIN/home/SUBFOLDER/languages/i18n/en.json

Backtrace:

#0 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/cache/LocalisationCache.php(892): LocalisationCache->readJSONFile(string) #1 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/cache/LocalisationCache.php(449): LocalisationCache->recache(string) #2 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/cache/LocalisationCache.php(323): LocalisationCache->initLanguage(string) #3 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/cache/LocalisationCache.php(260): LocalisationCache->loadItem(string, string) #4 /web/htdocs/MYDOMAIN/home/SUBFOLDER/languages/Language.php(478): LocalisationCache->getItem(string, string) #5 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/search/SearchEngine.php(391): Language->getNamespaces() #6 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/User.php(1514): SearchEngine::searchableNamespaces() #7 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/User.php(4948): User::getDefaultOptions() #8 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/User.php(2587): User->loadOptions() #9 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/context/RequestContext.php(342): User->getOption(string) #10 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/StubObject.php(204): RequestContext->getLanguage() #11 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/StubObject.php(160): StubUserLang->_newObject() #12 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/parser/ParserOptions.php(588): StubObject->_unstub() #13 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/installer/Installer.php(407): ParserOptions->__construct() #14 /web/htdocs/MYDOMAIN/home/SUBFOLDER/includes/installer/WebInstaller.php(138): Installer->__construct() #15 /web/htdocs/MYDOMAIN/home/SUBFOLDER/mw-config/overrides.php(68): WebInstaller->__construct(WebRequest) #16 /web/htdocs/MYDOMAIN/home/SUBFOLDER/mw-config/index.php(41): InstallerOverrides::getWebInstaller(WebRequest) #17 /web/htdocs/MYDOMAIN/home/SUBFOLDER/mw-config/index.php(36): wfInstallerMain() #18 {main}

Where did I go wrong? 37.182.66.90 (talk) 14:26, 10 September 2015 (UTC)

It seems there is an error in one of the localization files. Can you details where you downloaded mediawiki from, and which extensions you have and where does came from ? —TheDJ (Not WMF) (talkcontribs) 08:22, 14 September 2015 (UTC)
Whats the solution? I am getting the similar error. 2409:4071:2287:A10D:E1DB:E7B8:F4B9:9DB7 (talk) 03:32, 8 March 2019 (UTC)
Your file is corrupt. Download MediaWiki again and unpack it on the server directly, instead of copying file by file over FTP Ciencia Al Poder (talk) 10:16, 8 March 2019 (UTC)
However, it also is possible to copy json files via FTP. ;-) 2001:16B8:1065:9700:E57B:2563:BE6B:85E3 (talk) 12:49, 8 March 2019 (UTC)

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

Our wiki pages yields this error:

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

  • Query: 
    SELECT page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `mw_page` WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1 
  • Function: WikiPage::pageData
  • Error: 1054 Unknown column 'page_links_updated' in 'field list' (localhost)

On Windows it provides the images, tables, and login forms in addition to this error and trying to login results in a cookies error. On Mac, using the same browser (Chrome), it results in nothing except for the message, "A database query error has occurred. This may indicate a bug in the software." 47.16.220.101 (talk) 15:45, 10 September 2015 (UTC)

What the problem here is depends on your MediaWiki version:
According to the manual (Manual:Page_table#page_links_updated), if you are running MediaWiki 1.23 or newer, then the database table page should have a column named "page_links_updated.
So: If you are using an older version of MediaWiki, then this column should not be used (as it in fact should not be there).
If you are using MediaWiki 1.23 or newer, then the column in fact should be there. 88.130.105.145 (talk) 17:52, 10 September 2015 (UTC)
Thanks for your reply. This was after updating to 1.23. I am missing that column on my page table but I'm not that experienced with MySQL. When I tried to add the column it gave me an error. 47.16.220.101 (talk) 14:34, 14 September 2015 (UTC)

set php version in Localsettings.php

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


Hello,

This is probably very simple but I haven't been able to find any information. I have two mediawikis on one domain -- production and testing. For the testing site, I want to use a different php version than the production site.

How can I do this? Can I add something in Localsettings. php?

Thanks. Julievancouver (talk) 17:42, 10 September 2015 (UTC)

Hi!
No, LocalSettings.php is not the right place to do that.
Where and if you can change the PHP version depends on your server setup:
- You possibly can define the file handler for php files in your .htaccess file.
- You maybe can set another PHP version by selecting a different PHP module for the according domain in the Apache server configuration.
- If you are on a shared host, you maybe can change the PHP version for different subdomains somewhere in the customer menu.
Which or: If any of these is possible for you, depends on the setup of the server. 88.130.105.145 (talk) 17:48, 10 September 2015 (UTC)
I did it via the .htaccess file: added
AddHandler application/x-httpd-php54 .php Julievancouver (talk) 17:54, 10 September 2015 (UTC)
.... and many thanks for your prompt reply! Julievancouver (talk) 17:58, 10 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Maintenance: Generate thumbs for standard sizes?

I use a few standard thumb sizes (e.g. all articles use the same standard size, galeries etc.).

I'd love to generate thumbs for them via maintenance script.

Background: I have plenty of webspace and spare CPU power. Generating the thumb son the fly takes quite some while, esp. on dynamic galeries.

I found no maintenance script or extension for it :/ Subfader (talk) 21:23, 10 September 2015 (UTC)

Tracked at https://phabricator.wikimedia.org/T112312 Subfader (talk) 18:53, 11 September 2015 (UTC)

Transfer failures

I am having difficulty copying a php file from my website to my PC. I get the error message : Failed to open "C:\index.php" for writing.
I am new to this and am missing something which should be obvious. Where am I going wrong?
From Don 220.253.128.129 (talk) 03:29, 11 September 2015 (UTC)
How do you "copy"? Does the copying itself trigger the error message? How is this question related to the MediaWiki software? 82.71.63.29 (talk) 11:56, 12 September 2015 (UTC)
Do you have php on your PC? 195.171.111.194 (talk) 10:56, 11 September 2015 (UTC)

posting translations error

i dont know why i cant post a translation. can anyone help me? Jucum (talk) 04:36, 11 September 2015 (UTC)

Where are you trying to post a translation, and what errors do you get? 195.171.111.194 (talk) 10:57, 11 September 2015 (UTC)
In general however, translations are made on https://translatewiki.netTheDJ (Not WMF) (talkcontribs) 08:18, 14 September 2015 (UTC)

Multiple installs using single set of files

Hi, I'd like to set up something similar to editthis.info where different projects are located at different sub-directories like example.com/cats and example.com/dogs. So far I've got NGINX set up this way:

location / {
                try_files $uri $uri/ @rewrite;
        }

        location @rewrite {
                rewrite ^/(.*)$ /index.php;

}

There's the php-fpm stuff at the end, but that's pretty standard. For LocalSettings.php, I've got:

if (file_exists('../sqlite/'.$project.'.sqlite')) {
      $wgDBname = $project;
      $wgSitename = ucfirst($project);
      $wgServer = 'https://example.com/'.$project.'/';
      $wgArticlePath = '/$1';
      $wgScriptPath = '';
  } else {
      echo 'Project does not exist';
      echo $project;
  }

But things are getting really weird... could anyone help me with this unorthodox set up? I'm not sure how editthis does it, but I'm running into issues of redirects and general messiness. Primer19 (talk) 06:04, 11 September 2015 (UTC)

Error message "There are problems with some of your input."

I am currently trying to get oauth to work, even raised another issue to that effect which I have now resolved partially.

I now get as far as getting asked to authorise the oauth application for the user on a screen that reads:

Hi Dbfswiki,

ResourceEdge Dev 5 would like to have basic access on your behalf on all projects of this site.

Privacy Policy Cancel Allow

Once I press Allow, I get the same box, but with the statement

"There are problems with some of your input."

But no info as to what the issue is. Not certain if there is any logs or similar that might tell me what the actual issue is, have looked at the standard ones, including the debug log (can't debug the actual window as its a pop up box, not certain how I would debug that).

Any suggestions where to look. Vrghost1 (talk) 10:46, 11 September 2015 (UTC)

Replacing deprecated hook UnknownAction

Hi what do I replace deprecated UnkownAction hook with. The documentation should be updated on how to migrate please. https://www.mediawiki.org/wiki/Manual:Hooks/UnknownAction Paladox (talk) 10:25, 12 September 2015 (UTC)

I would like to replace this deprecated code https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FDeletePagesForGood/cd9f55039aebb83062b51e443812bc0dab129889/DeletePagesForGood.class.php#L13 with new updated code could I have help to do it please. Paladox (talk) 10:32, 12 September 2015 (UTC)
I have added according information to Manual:Hooks/UnknownAction. Jörgi123 (talk) 17:56, 12 September 2015 (UTC)
Hi thanks but on the code it is done in a function and action does it in a settings not sure how to migrate could there be an example on how to migrate code like show what previous looks and the new one what it looks like please. 86.141.212.67 (talk) 21:15, 12 September 2015 (UTC)

Hook on thumbs creation complete?

I can't find a hook for when thumb creation is complete, so I want to hack core.

Which function is the last to handle thumb creation so I can grab the full path of the newly created thumbs?

I hope this includes thumbs created by $wgUploadThumbnailRenderMethod. Subfader (talk) 12:01, 12 September 2015 (UTC)

getTransform and doTransform() of MediaHandler is the last 'central' function for thumbnail generation. From there it basically depends on the media and the available render methods that are available. Most logic is in Bitmap.php, which contains common code for GD and ImageMagick transforms but there is a lot more. —TheDJ (Not WMF) (talkcontribs) 08:16, 14 September 2015 (UTC)
Thanks, I meanwhile ended up in transformImageMagick(). Subfader (talk) 19:31, 14 September 2015 (UTC)

MediaWiki can't find a picture.

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 upload a picture to my wiki http://warcraftwikicz.tk/MediaWiki/index.php?title=Hlavn%C3%AD_strana

but MediaWiki can't find it. When I want to use the picture on my main page, it doesnt display, and when I write URL of the picture -http://warcraftwikicz.tk/MediaWiki/images/8/87/Desert.jpg<meta />- it write "Internal Server Error", like the picture doesn't exist. But when I go to the directory I can see the picture and I can for example copy it to my PC and open it.

My page: http://warcraftwikicz.tk/MediaWiki/index.php?title=Hlavn%C3%AD_strana

Page with the picture: http://warcraftwikicz.tk/MediaWiki/images/8/87/Desert.jpg Lukáš Hypša (talk) 12:31, 12 September 2015 (UTC)

Look at the error log on the server? Also your URL setup is not advised Ciencia Al Poder (talk) 15:15, 13 September 2015 (UTC)
How can I find it? Lukáš Hypša (talk) 17:37, 13 September 2015 (UTC)
google:Apache+debian+error+log Ciencia Al Poder (talk) 17:47, 13 September 2015 (UTC)
It write "GET /MediaWiki/images/8/87/Desert.jpg HTTP/1.1" 500 640 "http://warcraftwikicz.tk/MediaWiki/index.php?title=Soubor:Desert.jpg" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36" Lukáš Hypša (talk) 19:12, 13 September 2015 (UTC)
That looks like an access_log, not an error_log.
Maybe check also Manual:How_to_debug? Ciencia Al Poder (talk) 20:04, 13 September 2015 (UTC)
Oh, you are rigt.
Error log write:
[Mon Sep 14 16:36:31 2015] [alert] [client 85.71.136.73] /var/home/warcraftwikicz.tk/public_html/MediaWiki/images/.htaccess: Option FollowSymLinks not allowed here, referer: http://warcraftwikicz.tk/MediaWiki/index.php?title=Soubor:Desert.jpg Lukáš Hypša (talk) 16:12, 14 September 2015 (UTC)
OK, problem solved. I had to change Options +FollowSymlinks in .htaccess to  Options +SymLinksIfOwnerMatch.
Thank you very much for your help :) Lukáš Hypša (talk) 16:34, 14 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Spam

Hi, I have a problem of spam on Speedypedia and I had to protect the English version with a password. How can I delete the spam from the database and why do I see all the spam in "recent changes" even after I deleted all the spam from tables user, page and logging? The spammers created about 200 users and 250 pages, how do I block bots from adding spam to this website? I added a math captcha but it didn't block the spammers, and they all have email addresses. Will it help if I will prevent users from adding articles until they confirm they email address? I don't want to block disabled users and that's why I don't want to put another captcha which computers can't read, is there any other solution to prevent spam? I read all the article about spam in MediaWiki but I don't want to make it too hard to real users to create an account and edit articles, what can I do?

If you want to see Speedypedia in English, send me an email and I will send you the password. Uri Even-Chen (talk) 15:06, 12 September 2015 (UTC)

. Uri Even-Chen (talk) 15:07, 12 September 2015 (UTC)
http://en.speedypedia.info/Special:Version username:alpha Uri Even-Chen (talk) 15:13, 12 September 2015 (UTC)
See Manual:Combating spam for a start. Subfader (talk) 17:28, 12 September 2015 (UTC)
I already read it. I'll appreciate if you answer my specific questions above. Especially how can I delete the spam from "recent changes" and will it help if I will require users to confirm their email address? Uri Even-Chen (talk) 04:55, 13 September 2015 (UTC)
IRC I once used an extension to delete users by name and all the pages they created. But I don't remember which it was.
Undoing edits on pages you want to keep may be manual work only.
Recent changes: If you just want a clean list again you can set $wgRCMaxAge to 1 day and raise it by time going by.
Access-wise I use this strategy:
  • Enable editing only for registered users
  • User registration:
    • Email is optional
    • Captcha is required (Extension:ConfirmEdit#QuestyCaptcha) > It's a fan wiki so I use random images with persons and the user has to write the surname. Kinda restrictive but unsolvable for bots and less annoying than re-typing or calculating captchas! Subfader (talk) 13:26, 13 September 2015 (UTC)
Your message suggests that you have deleted content directly from the database... well, you should be dong this unless you absolutely know what are you doing. Your wiki may have now inconsistencies, inaccessible pages or orphaned text entries on the database. Instead, you should use Extension:Nuke or other methods already discussed on the combating spam page. Ciencia Al Poder (talk) 15:10, 13 September 2015 (UTC)
Yes, I deleted the spam directly from the database, tables user, page and logging. I didn't find any other way to delete 200 users and 250 pages in 5 minutes. Uri Even-Chen (talk) 15:42, 13 September 2015 (UTC)

Need help creating a page utilizing categories

First of all, I am not what you would consider an advanced user of Mediawiki. I have been working with it for a few years, but have never really dove into categories

I am trying to create a Wiki page dedicated to categorizing Community names, sorted by US state. However, I can't quite get categories to work the way that I would like to.

Example of what I am not trying to accomplish as seen here: Category:Category

See how it puts the letter "A", B.... and then something underneath that? If the "A" could be replaced with for example, "Alaska", and then list existing page names in alphabetical order that I have put a category tag into, that would be great.

I would also like the ability to utilize the category tag on the bottom of an existing wiki page to then display in alphabetical order under the appropriate state and not have to manually insert a link under "Alaska".

Here is a link to a PDF to illustrate what I am trying to accomplish: https://drive.google.com/file/d/0Bz4qfV-a8tqAQWRUNUJXeWxWWkU/view?usp=sharing Any help would be greatly appreciated and if I am going about this the wrong way, please recommend what I should be doing.

For reference, we are currently running Mediawiki Software version 1.23.2. I am trying to get my admin to upgrade to the newest version.

Again, thank you in advance to anyone who can help me accomplish this. Polydectus (talk) 18:24, 12 September 2015 (UTC)

Polydectus (talk) 18:28, 12 September 2015 (UTC)

Extension:CategorySortHeaders might be what you are looking for. Clump (talk) 22:55, 12 September 2015 (UTC)
I will have to take a look at it. Thank you very much for your help. Polydectus (talk) 16:05, 16 September 2015 (UTC)

Hi I have set up centralauth I am getting this error

The provided authentication token is either expired or invalid.

When I login it redirects to my main login wiki.

When I logout of one of the wikis it is still logged in on one of those wikis.

Please help.

Also when I login on my main wiki which is the main login in wiki it wont login on the other wikis I have to login on the other wiki to get it logged in on all the wikis. Paladox (talk) 13:11, 13 September 2015 (UTC)

Also my wiki keeps going to https since doing this please help me so I can change it back to http because it keeps showing up with warning when going to my https domains. Paladox (talk) 13:18, 13 September 2015 (UTC)
Bump Paladox (talk) 14:58, 15 September 2015 (UTC)
Can I register an account on your wiki and try ? —TheDJ (Not WMF) (talkcontribs) 19:35, 15 September 2015 (UTC)
Ok yes. Please it is a request account form. Paladox (talk) 15:12, 16 September 2015 (UTC)

Unable to add new skin

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


I would like to add the Nimbus skin to my wiki. I downloaded the skin and and added the extracted nimbus folder into my wiki skins folder.

Whenever I add the require statement to my localsettings.php file...my wiki fails to load.

require_once("$IP/skins/Nimbus/Nimbus.php");
I am not sure what I am missing.
Kaysevenmm1 (talk) 19:57, 13 September 2015 (UTC)
Maybe the skin is not compatible with your MediaWiki version?
An error message and your MediaWiki version may help to find the cause. Ciencia Al Poder (talk) 09:45, 14 September 2015 (UTC)
The requirements for the skin is mediawiki 1.23+ and php 5.3+
my install has 1.25 and php 5.3.3
I guess I don't is I have no loaded the or applied the skin...I just added
require_once("$IP/skins/Nimbus/Nimbus.php");
line to my localsettings.php file and after that the page will not load at all. Kaysevenmm1 (talk) 22:21, 14 September 2015 (UTC)
That version information is usually filled as 1.23+, meaning at the time of writting it it was supposed to work on newer version, but that doesn't mean it has been tested on newer versions. Maybe the skin needs to be fixed for 1.25. That should probably be reported to the maintainer of that skin, or on the talk page of the skin, Ciencia Al Poder (talk) 09:28, 16 September 2015 (UTC)
I got it to work I added a space between the parentheses and quotation marks in the require_once statement. But you are correct, the skin looks very distorted so it may need to be fixed for 1.25. Kaysevenmm1 (talk) 22:54, 16 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Thumbnails suddenly not showing

Hey all

I recently migrated my mediawiki install from dev to production, everything went smoothly and it worked with no issues.

Yesterday I went back to the wiki after a few weeks to finish up some work. when I noticed the thumbnails are missing.

It shows:

Error creating thumbnail:

Screenshot: http://i.imgur.com/El3RLqM.png

But that's it. I checked other similar threads here and tried some solutions but none of them worked so far

I've already tried adding to my localsetting.php:

$wgMaxShellMemory = 524288;

$wgFileExtensions[] = 'svg'; $wgAllowTitlesInSVG = true; $wgSVGConverter = 'ImageMagick';

as well as

error_reporting( -1 ); ini_set( 'display_errors', 1 );

Additional specs: Mediawiki version 1.25.1, PHP 5.3 and running on a VPS (Ubuntu)

Any help to finding a solution would be greatly appreciated.

Cheers! Rusty mtl (talk) 22:49, 13 September 2015 (UTC)

Add this:
$wgTmpDirectory = "$IP/images/temp";
in localsettings.php
If that didn't work, create the subfolder "temp" in your /images folder as well. 220.255.3.185 (talk) 07:59, 14 September 2015 (UTC)
Hey thanks for responding!
I did both and still nothing. Rusty mtl (talk) 15:20, 14 September 2015 (UTC)
That's weird. I had the same issue on the same mediawiki version but in my case that worked.
Did you Update the MediaWiki database by executing the update.php maintenance script after adding the code and the sub folder? 220.255.3.185 (talk) 15:42, 14 September 2015 (UTC)
I ran the update script again, and even updated my web server. stil nothing.
I uploaded a file, and the thumbnail worked no problem, looks like its an issue with my server pulling from Commons?
I enabled the debug console, and this showed up:
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschus_moschatus_Blanco2.245.png&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschus_moschatus_Blanco2.245.png&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=300&iiurlheight=-1&iiurlparam=300px&prop=imageinfo&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo::getThumbUrl got remote thumb https://upload.wikimedia.org/wikipedia/commons/thumb/8/86/Abelmoschus_moschatus_Blanco2.245.png/300px-Abelmoschus_moschatus_Blanco2.245.png
  • ForeignAPIRepo::getThumbUrlFromCache Thumbnail was already downloaded before
  • ForeignAPIRepo: HTTP GET: https://upload.wikimedia.org/wikipedia/commons/thumb/8/86/Abelmoschus_moschatus_Blanco2.245.png/300px-Abelmoschus_moschatus_Blanco2.245.png
  • ForeignAPIRepo::getThumbUrlFromCache Could not download thumb
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschus_moschatus_Blanco2.245.png&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=300&iiurlheight=-1&iiurlparam=300px&prop=imageinfo&uselang=en&format=json&action=query&redirects=true
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschi1.JPG&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschi1.JPG&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=250&iiurlheight=-1&iiurlparam=250px&prop=imageinfo&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo::getThumbUrl got remote thumb https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Abelmoschi1.JPG/250px-Abelmoschi1.JPG
  • ForeignAPIRepo::getThumbUrlFromCache Thumbnail was already downloaded before
  • ForeignAPIRepo: HTTP GET: https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Abelmoschi1.JPG/250px-Abelmoschi1.JPG
  • ForeignAPIRepo::getThumbUrlFromCache Could not download thumb
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschi1.JPG&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=250&iiurlheight=-1&iiurlparam=250px&prop=imageinfo&uselang=en&format=json&action=query&redirects=true
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3APortal-puzzle.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3APortal-puzzle.svg&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=32&iiurlheight=28&iiurlparam=32px&prop=imageinfo&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo::getThumbUrl got remote thumb https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Portal-puzzle.svg/32px-Portal-puzzle.svg.png
  • ForeignAPIRepo::getThumbUrlFromCache Thumbnail was already downloaded before
  • ForeignAPIRepo: HTTP GET: https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Portal-puzzle.svg/32px-Portal-puzzle.svg.png
  • ForeignAPIRepo::getThumbUrlFromCache Could not download thumb
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3APortal-puzzle.svg&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=32&iiurlheight=28&iiurlparam=32px&prop=imageinfo&uselang=en&format=json&action=query&redirects=true Rusty mtl (talk) 18:22, 14 September 2015 (UTC)
I even tried the deprecated:
$wgForeignFileRepos[] = array(
     'class'                   => 'ForeignAPIRepo',
     'name'                    => 'shared',
     'apibase'                 => 'http://commons.wikimedia.org/w/api.php',
     'fetchDescription'        => true, // Optional
     'descriptionCacheExpiry'  => 43200, // 12 hours, optional (values are seconds)
     'apiThumbCacheExpiry'     => 43200, // 12 hours, optional, but required for local thumb caching
  );
When I follow the explanations on the InstantCommons Page, I end up with a red link on my page, meaning the file I am trying to link to was not found. Rusty mtl (talk) 18:54, 14 September 2015 (UTC)
You might want to setup some logging. —TheDJ (Not WMF) (talkcontribs) 08:04, 14 September 2015 (UTC)
debug log:
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschus_moschatus_Blanco2.245.png&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschus_moschatus_Blanco2.245.png&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=300&iiurlheight=-1&iiurlparam=300px&prop=imageinfo&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo::getThumbUrl got remote thumb https://upload.wikimedia.org/wikipedia/commons/thumb/8/86/Abelmoschus_moschatus_Blanco2.245.png/300px-Abelmoschus_moschatus_Blanco2.245.png
  • ForeignAPIRepo::getThumbUrlFromCache Thumbnail was already downloaded before
  • ForeignAPIRepo: HTTP GET: https://upload.wikimedia.org/wikipedia/commons/thumb/8/86/Abelmoschus_moschatus_Blanco2.245.png/300px-Abelmoschus_moschatus_Blanco2.245.png
  • ForeignAPIRepo::getThumbUrlFromCache Could not download thumb
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschus_moschatus_Blanco2.245.png&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=300&iiurlheight=-1&iiurlparam=300px&prop=imageinfo&uselang=en&format=json&action=query&redirects=true
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschi1.JPG&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschi1.JPG&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=250&iiurlheight=-1&iiurlparam=250px&prop=imageinfo&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo::getThumbUrl got remote thumb https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Abelmoschi1.JPG/250px-Abelmoschi1.JPG
  • ForeignAPIRepo::getThumbUrlFromCache Thumbnail was already downloaded before
  • ForeignAPIRepo: HTTP GET: https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Abelmoschi1.JPG/250px-Abelmoschi1.JPG
  • ForeignAPIRepo::getThumbUrlFromCache Could not download thumb
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3AAbelmoschi1.JPG&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=250&iiurlheight=-1&iiurlparam=250px&prop=imageinfo&uselang=en&format=json&action=query&redirects=true
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3APortal-puzzle.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3APortal-puzzle.svg&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=32&iiurlheight=28&iiurlparam=32px&prop=imageinfo&format=json&action=query&redirects=true&uselang=en
  • ForeignAPIRepo::getThumbUrl got remote thumb https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Portal-puzzle.svg/32px-Portal-puzzle.svg.png
  • ForeignAPIRepo::getThumbUrlFromCache Thumbnail was already downloaded before
  • ForeignAPIRepo: HTTP GET: https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Portal-puzzle.svg/32px-Portal-puzzle.svg.png
  • ForeignAPIRepo::getThumbUrlFromCache Could not download thumb
  • ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3APortal-puzzle.svg&iiprop=url%7Cthumbnail%7Ctimestamp&iiurlwidth=32&iiurlheight=28&iiurlparam=32px&prop=imageinfo&uselang=en&format=json&action=query&redirects=true Rusty mtl (talk) 15:21, 14 September 2015 (UTC)
Your InstantCommons is still configured to use http instead of https. Wikimedia is no longer accessible from HTTP however.
See also: https://phabricator.wikimedia.org/T102566
Either use the fragment in the description to temporarily patch your configuration, or update to a newer version of MediaWiki. 1.25.2 should have this fixed. —TheDJ (Not WMF) (talkcontribs) 19:25, 15 September 2015 (UTC)

Tables & Columns need a help!!!

How to make a columns like at this page.

http://sportwiki.to/Категория:Питание_и_диеты 87.222.38.162 (talk) 22:59, 13 September 2015 (UTC)

Via custom CSS. Malyacko (talk) 08:21, 15 September 2015 (UTC)

How to install a BOT (written in PHP) Manually on Mediawiki 1.25.2?

I need a step by step instructions to install it manually after I've downloaded the ApiBot. I've access to all the files of my wiki. 220.255.3.185 (talk) 07:47, 14 September 2015 (UTC)

How do you allow anyone to edit Discussions but restrict Page edits to a group?

How do you allow anyone to edit Discussions but restrict Page edits to a group?

We've already successfully configured limited Page editing privileges, but we want anyone (or a different group) to edit Discussion pages. Mike46V (talk) 13:59, 14 September 2015 (UTC)

Autoblock - Automatic reset

Hi. Could somebody please clarify an issue regarding Autoblock expiry after 24 hours, as Autoblock is not clear on the issue. It states that:

"There is an internal autoblock expiry time variable, $wgAutoblockExpiry, which is set to 24 hours, meaning that autoblocks only last for 24 hours."

Does that mean that the autoblocking function will only be active for the original underlying IP for 24 hours, or does it mean that users who become autoblocked will only be blocked for 24 hours, or both?

In the following situation:

  • Oct 1st - User:Bob is blocked indefinitely, with autoblock enabled
  • Oct 8th - Bob creates a sockpuppet (User:Jane) using the same IP as he used on the 1st

Given that there was no activity from the IP address for a week, will User:Jane be autoblocked? TigerShark (talk) 16:44, 14 September 2015 (UTC)

runJobs: enqueue Main_Page?

When I run maintenance/runJobs.php half of the entries are "enqueue Main_Page":

 enqueue Main_Page jobsByWiki=array(1) (id=X) STARTING
 enqueue Main_Page jobsByWiki=array(1) (id=X) t=0 good

t=0 but what the heck is that? I think runJobs.php could finish much faster without that. Subfader (talk) 19:28, 14 September 2015 (UTC)

Nobody? Somebody must know. Subfader (talk) 17:46, 18 September 2015 (UTC)
I have ~100 page links on my Main Page. It seems everytime somebody visits the Main Page, refresh link updates are pushed:
2015-09-19 08:59:27 refreshLinks Main_Page (id=7860751) STARTING
2015-09-19 08:59:27 refreshLinks Main_Page (id=7860751) t=294 good
2015-09-19 08:59:27 refreshLinks Main_Page (id=7862450) STARTING
2015-09-19 08:59:28 refreshLinks Main_Page (id=7862450) t=280 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702188) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702188) t=0 good
2015-09-19 08:59:28 refreshLinks MyWiki:Some_other_page (id=7861946) STARTING
2015-09-19 08:59:28 refreshLinks MyWiki:Some_other_page (id=7861946) t=72 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702158) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702158) t=0 good
2015-09-19 08:59:28 refreshLinks MyWiki:Some_page (id=7862332) STARTING
2015-09-19 08:59:28 refreshLinks MyWiki:Some_page (id=7862332) t=9 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702119) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702119) t=0 good
2015-09-19 08:59:28 refreshLinks MyWiki:Some_page (id=7862477) STARTING
2015-09-19 08:59:28 refreshLinks MyWiki:Some_page (id=7862477) t=8 good
2015-09-19 08:59:28 refreshLinks Main_Page (id=7861709) STARTING
2015-09-19 08:59:28 refreshLinks Main_Page (id=7861709) t=268 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702433) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702433) t=0 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6701921) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6701921) t=0 good
2015-09-19 08:59:28 refreshLinks MyWiki:Some_page (id=7860285) STARTING
2015-09-19 08:59:28 refreshLinks MyWiki:Some_page (id=7860285) t=9 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702282) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702282) t=0 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702401) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702401) t=0 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6701964) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6701964) t=0 good
2015-09-19 08:59:28 refreshLinks Main_Page (id=7861915) STARTING
2015-09-19 08:59:28 refreshLinks Main_Page (id=7861915) t=264 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702344) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702344) t=0 good
2015-09-19 08:59:28 refreshLinks Main_Page (id=7860724) STARTING
2015-09-19 08:59:28 refreshLinks Main_Page (id=7860724) t=265 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702351) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702351) t=0 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702377) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702377) t=0 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702425) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702425) t=0 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6701937) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6701937) t=0 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702398) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702398) t=0 good
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702249) STARTING
2015-09-19 08:59:28 enqueue Main_Page jobsByWiki=array(1) (id=6702249) t=0 good
2015-09-19 08:59:28 refreshLinks MyWiki:Some_page (id=7860670) STARTING
2015-09-19 08:59:29 refreshLinks MyWiki:Some_page (id=7860670) t=9 good
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702345) STARTING
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702345) t=0 good
2015-09-19 08:59:29 refreshLinks Main_Page (id=7861437) STARTING
2015-09-19 08:59:29 refreshLinks Main_Page (id=7861437) t=268 good
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702221) STARTING
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702221) t=0 good
2015-09-19 08:59:29 refreshLinks MyWiki:Some_page (id=7862076) STARTING
2015-09-19 08:59:29 refreshLinks MyWiki:Some_page (id=7862076) t=9 good
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702326) STARTING
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702326) t=0 good
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702264) STARTING
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702264) t=0 good
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702116) STARTING
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702116) t=0 good
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702369) STARTING
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6702369) t=0 good
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6701227) STARTING
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6701227) t=0 good
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6700718) STARTING
2015-09-19 08:59:29 enqueue Main_Page jobsByWiki=array(1) (id=6700718) t=0 good
2015-09-19 08:59:29 refreshLinks Main_Page (id=7860759) STARTING
2015-09-19 08:59:29 refreshLinks Main_Page (id=7860759) t=294 good
2015-09-19 08:59:29 refreshLinks Category:Enter (id=7862169) STARTING Subfader (talk) 09:02, 19 September 2015 (UTC)

Hide Text from certain users?

Is there a way to either hide text on a page from everyone other than a certain user group - or (my main preference) to set the talk page so that noone other than that user group can even see the page? 2601:405:4000:B96B:7D57:7544:B115:BF78 (talk) 03:59, 15 September 2015 (UTC)

On English Wikipedia they do something like that. Several classes are defined that hide content wrapped in those classes
See https://en.wikipedia.org/wiki/MediaWiki:Common.css
/* Hide stuff meant for accounts with special permissions. Made visible again in
   [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-accountcreator.css]],
   [[MediaWiki:Group-templateeditor.css]] and [[Mediawiki:Group-autoconfirmed.css]]. */
.sysop-show,
.accountcreator-show,
.templateeditor-show,
.autoconfirmed-show {
    display: none;
}
and the various mentioned MediaWiki:Group-* pages have CSS that 'unhides' content only for that user group. —TheDJ (Not WMF) (talkcontribs) 19:40, 15 September 2015 (UTC)
This is an ancient post, but I just came across it when trying to solve the same thing. I documented how I set this up on our wiki, thought it might help the next person trying to do something similar. In a way I think the info would be better off on this page so others can add to the knowledge, but I don't know the process to get that started. Here is the link. Tenbergen (talk) 18:15, 1 October 2021 (UTC)

Mediawiki suddenly stopped woking

The last time checked my MediaWiki page wiki-joke.com I received the error "internal error. Exception caught inside exception handler. Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.". I proceeded to add

the required code. However, when I added the code when I went back to my site the site went totally blank. I removed the code and my site is still totally blank. I need to fix this error quickly as my my thousands of viewers will be very disappointed.

Thanks SO Much Hans.gundlach (talk) 07:26, 15 September 2015 (UTC)

I would also like to mention I added a new host because my previous host was not handling all the data. Hans.gundlach (talk) 07:38, 15 September 2015 (UTC)
Here's my LocalSettings.php some passwords have been replaced with ******************
<?php
# This file was automatically generated by the MediaWiki 1.24.2
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "wiki-joke";
$wgMetaNamespace = "Wiki-joke";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/index.html";
$wgScriptExtension = ".php";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://wiki-joke.com";
## The relative URL path to the skins directory
$wgStylePath = "$wgScriptPath/skins";
## The relative URL path to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgScriptPath/resources/assets/trollernew.png";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@wiki-joke.com";
$wgPasswordSender = "apache@wiki-joke.com";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "sqlite";
$wgDBserver = "";
$wgDBname = "mediawiki";
$wgDBuser = "";
$wgDBpassword = "";
# SQLite-specific settings
$wgSQLiteDataDir = "/home/hgcode17/data";
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from http://commons.wikimedia.org
$wgUseInstantCommons = false;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "********************";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "***************************888";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";Sho
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
require_once "$IP/skins/CologneBlue/CologneBlue.php";
require_once "$IP/skins/Modern/Modern.php";
require_once "$IP/skins/MonoBook/MonoBook.php";
require_once "$IP/skins/Vector/Vector.php";
require_once "$IP/extensions/Mantle/Mantle.php";
require_once "$IP/extensions/MobileFrontend/MobileFrontend.php";
$wgMFAutodetectMobileView = true;
# End of automatically generated settings.
# Add more configuration options below.
require_once "$IP/extensions/googleAnalytics/googleAnalytics.php";
// Replace xxxxxxx-x with YOUR GoogleAnalytics UA number
$wgGoogleAnalyticsAccount = ***************************'; 
// Add HTML code for any additional web analytics (can be used alone or with $wgGoogleAnalyticsAccount)
$wgGoogleAnalyticsOtherCode = '<script type="text/javascript" src="https://analytics.example.com/tracking.js"></script>';
// Optional configuration (for defaults see googleAnalytics.php)
// Store full IP address in Google Universal Analytics (see https://support.google.com/analytics/answer/2763052?hl=en for details)
$wgGoogleAnalyticsAnonymizeIP = false; 
// Array with NUMERIC namespace IDs where web analytics code should NOT be included.
$wgGoogleAnalyticsIgnoreNsIDs = array(500);
// Array with page names (see magic word Extension:Google Analytics Integration) where web analytics code should NOT be included.
$wgGoogleAnalyticsIgnorePages = array('ArticleX', 'Foo:Bar');
// Array with special pages where web analytics code should NOT be included.
$wgGoogleAnalyticsIgnoreSpecials = array( 'Userlogin', 'Userlogout', 'Preferences', 'ChangePassword', 'OATH');
// Use 'noanalytics' permission to exclude specific user groups from web analytics, e.g.
$wgGroupPermissions['sysop']['noanalytics'] = true;
$wgGroupPermissions['bot']['noanalytics'] = true;
// To exclude all logged in users give 'noanalytics' permission to 'user' group, i.e.
$wgGroupPermissions['user']['noanalytics'] = true;
/*require_once "$IP/extensions/MobileFrontend/MobileFrontend.php";
$wgMFAutodetectMobileView = true;*/ Hans.gundlach (talk) 08:08, 15 September 2015 (UTC)
BTW. Next time, please use a pasteboard like pastebin.ca or https://phabricator.wikimedia.org/paste/ to share a huge blob like that. —TheDJ (Not WMF) (talkcontribs) 19:28, 15 September 2015 (UTC)
See Manual:How_to_debug and Manual:Errors_and_symptoms#You_see_a_Blank_Page Malyacko (talk) 08:19, 15 September 2015 (UTC)
I cannot create a error log on my hosting account. Hans.gundlach (talk) 15:30, 15 September 2015 (UTC)
I also put the debug code and it is still not working
error_reporting( E_ALL );
ini_set( 'display_errors', 1 ); Hans.gundlach (talk) 17:41, 15 September 2015 (UTC)
by that I mean I do not get an error message Hans.gundlach (talk) 17:41, 15 September 2015 (UTC)
The website in question seems to work for me right now. Did you manage to fix the problem ? —TheDJ (Not WMF) (talkcontribs) 19:29, 15 September 2015 (UTC)

Including a "tags" feature in MediaWiki

I would like to be able to include "tags" on a MediaWiki site that would lead users to other pages that deal with the same topic. The only way I can see to accomplish that is to create the tags as links that target the site search. The result would be that clicking the tag would take the user to search results arising from a search on that tag. Is there a more elegant way to get a similar result? Wajohnst (talk) 15:55, 15 September 2015 (UTC)

Help:Categories 137.147.180.136 (talk) 04:16, 16 September 2015 (UTC)

If I try to make a link display "and" or "or", I get a 403 Forbidden message when I try to save the page:

You don't have permission to access /rccwiki/index.php on this server.

However, if I use an ampersand, it works fine. I'm new to using mediawiki so can't tell if it's on their side or if it's something within PHP, but would really appreciate any help.

For reference, this fails:

* [[Posts|Skate Posts 12oz and 16oz]]

but this goes through fine

* [[Posts|Skate Posts 12oz & 16oz]]

Skavoovee (talk) 16:36, 15 September 2015 (UTC)

Is this a public wiki ? It's easier to find a problem if we can actually look at a page producing the error. —TheDJ (Not WMF) (talkcontribs) 19:33, 15 September 2015 (UTC)
Also seems if there is an "and" or "or" anywhere on the page I get the same error. Any ideas would really be appreciated. Skavoovee (talk) 19:37, 15 September 2015 (UTC)
Hey sorry, didn't even think to include a link: http://rcc.scootjohns.com/rccwiki/index.php?title=3_Stars_Brewing change the text to include an "and" or "or" and you should be able to reproduce the error Skavoovee (talk) 19:38, 15 September 2015 (UTC)
OK, i'm as stumped as you are.. How did you do that..... ;) —TheDJ (Not WMF) (talkcontribs) 19:48, 15 September 2015 (UTC)
Haha, no idea. Like I said, it may be some werid setting on the AMP side of things, but I'm not familiar enough with that end of things to even begin to guess where to look. Skavoovee (talk) 19:54, 15 September 2015 (UTC)
Some major regex error somewhere as if you hacked Parser.php.
It appears only on "(text) and (num)".
To find which extension causes it you could disable all extensions, check and enable each by each.
Edit: That doesn't explain the FORBIDDEN imo. Subfader (talk) 20:46, 15 September 2015 (UTC)
See Manual:Errors_and_symptoms#Attempting to save an edit gives you a 403 Forbidden error, or you get redirected to the main page Ciencia Al Poder (talk) 10:04, 16 September 2015 (UTC)

Parsing problem

So this code line

<code><code>{{</code>ébauche | ''vénètes'' | ''gaule'' | …<nowiki>}}</nowiki>

{{ébauche | vénètes | gaule | …}}

becomes this on my wiki. (Follow the link to the screencap)

How can my first <code tag can be closed at the end and not by the first </code in the line? Intern25 (talk) 19:48, 15 September 2015 (UTC)

and the problem is ????
Please try to be descriptive... —TheDJ (Not WMF) (talkcontribs) 19:49, 15 September 2015 (UTC)
Sory, I accidentally sent my message and was unable to delete this. Intern25 (talk) 19:53, 15 September 2015 (UTC)
Sorry for the bump 66.158.136.58 (talk) 14:46, 16 September 2015 (UTC)

Template for span tag doesn't work as expected

I copied WP's Template:Color to my wiki. It works as expected within a single line, but if I put two line breaks in the second parameter (making two paragraphs), only the first one is colored.

Here's the template:

<span style="color:{{{1|}}}">{{{2|{{{1|}}}}}}</span><noinclude>
  {{documentation}}
  </noinclude>

Here's the text:

{{color|green|Here's one green paragraph.
  
  And here's another.}}

Here it is on Wikipedia, where it makes this HTML:

<p><span style="color:green">Here's one green paragraph.</span></p>
<p><span style="color:green">And here's another.</span></p>

And here's how it shows up on my wiki. It makes this HTML:

<p><span style="color:green">Here's one green paragraph.
</p><p>And here's another.</span>
</p>

I can kinda guess how it gets there, but how can I have it do The Right Thing, as it does on WP?

Product Version
MediaWiki: 1.25.1
PHP 5.5.9-1ubuntu4.9 (apache2handler)
MySQL 5.5.43-0ubuntu0.14.04.1

Unfortunately, it's not publicly accessible. P1h3r1e3d13 (talk) 01:37, 16 September 2015 (UTC)

The real issue is you're trying to use multiple paragraphs inside a span, which is invalid (spans are inline, paragraphs are blocks, and blocks aren't allowed inside inline elements).
The reason it "works" on WP is they have $wgUseTidy enabled, which mangles the HTML to make it valid. 137.147.180.136 (talk) 04:10, 16 September 2015 (UTC)
Ah! I'll see if we can get $wgUseTidy enabled, thanks.
That seems to be the proper method on WP, so I guess there's not a better way? A template that would apply a class or inline style to all paragraphs within it? P1h3r1e3d13 (talk) 18:29, 16 September 2015 (UTC)
Well, turned on $wgUseTidy and no change to the HTML or appearance. I even waited overnight to make sure it wasn't some kind of caching. Any other ideas? P1h3r1e3d13 (talk) 16:37, 17 September 2015 (UTC)
I can only guess that because WP is using a newer version of MW that changes something, or they're using a newer version of tidy.
My only suggestion would be to make a separate template for block level coloring (using div instead of span). 137.147.180.136 (talk) 12:56, 18 September 2015 (UTC)
Based on this, maybe Tidy is not installed by default? Or its default config file is bad? There's really no info on how to set it up. P1h3r1e3d13 (talk) 17:46, 18 September 2015 (UTC)

Mediawiki sends wrong password

Hi!

Everytime I registrate a new user including the option to send a random password, the automatically created password is wrong. But when I send an e-mail with a new random password (to changing the user's password), this temporary password is OK. Although I searched for similar problems, I couldn't find this specific issue.

This is my enviroment:

Hope to hear soon!

Thanks! Vivideo (talk) 07:59, 16 September 2015 (UTC)

I can't set up email on my test wiki to test this problem, but seems related to T105896 Ciencia Al Poder (talk) 09:34, 16 September 2015 (UTC)

Fatal exception of type MWException

Installation VisualEditor. parsoid normal work. Editor LocalSettings.php wiki. Added this content

require_once "$IP/extensions/VisualEditor/VisualEditor.php";
  
  // Enable by default for everybody
  $wgDefaultUserOptions['visualeditor-enable'] = 1;
  
  // Don't allow users to disable it
  $wgHiddenPrefs[] = 'visualeditor-enable';
  
  // OPTIONAL: Enable VisualEditor's experimental code features
  #$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;

Error Messages "Fatal exception of type MWException". Dier2014 (talk) 08:27, 16 September 2015 (UTC)

Please provide a helpful error message enabling error details as explained in Manual:How to debug Ciencia Al Poder (talk) 09:32, 16 September 2015 (UTC)
If I disable VisualEditor, wiki can operate normally. enable VisualEditor can not access. Page Display "[11792695] 2015-09-17 01:24:36: Fatal exception of type MWException"
I can not find the associated error messages in the log Dier2014 (talk) 01:23, 17 September 2015 (UTC)
Can you set $wgShowExceptionDetails to true in your LocalSettings.php? That should enable a better error message (what execption and a stack trace). (You should, after you got the details, remove the line to avoid leaking private information to your users). Florianschmidtwelzow (talk) 12:11, 17 September 2015 (UTC)
This setting is applied to what line, which line the wrong Dier2014 (talk) 03:27, 18 September 2015 (UTC)
Did you install versions of VE/Parsoid that are aligned with the version of your MediaWiki instance ? VE and Parsoid are still in development, and they are not good at backward or forward compatibility yet. —TheDJ (Not WMF) (talkcontribs) 07:46, 17 September 2015 (UTC)
I reinstalled parsoid, or the same problem, I use the mediawiki is 1.25.2. parsoid do not know how the query version number Dier2014 (talk) 09:45, 17 September 2015 (UTC)
So is the case, I immediately went to check Dier2014 (talk) 08:54, 17 September 2015 (UTC)

background-image

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


Why background-image (css) not working in the usual wiki-pages? — Green Zero обг 11:52, 16 September 2015 (UTC)

Where is it not working? I think using CSS to set a background image should be possible. 88.130.119.122 (talk) 22:40, 16 September 2015 (UTC)
Because of security. Background-image requires urls, and urls can contain all kinds of nasty. —TheDJ (Not WMF) (talkcontribs) 07:43, 17 September 2015 (UTC)
Oh, yeah, that's right. I just realize that it's not clear what we are talking about exactly:
If you mean any wiki page, which can be edited by anyone, then it is right that arbitrary images cannot be use to change the design.
If you in contrast are speaking about one of the interface-changing wiki pages like MediaWIki:Commons.css (I thought that this would be what we are speaking about), then I would think that using background-images should be possible. 88.130.70.247 (talk) 12:18, 18 September 2015 (UTC)
To work around this, you should define that style in MediaWIki:Commons.css (usually giving a class name) and referencing it from wikicode. Ciencia Al Poder (talk) 13:36, 19 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

When clicking on pages that have information below the fold, it will navigate the user to sections of the page that are not the top. Macks3500 (talk) 18:35, 16 September 2015 (UTC)

This could e.g. be caused by JavaScript. Anyway, I don't know what's happening for you; I am only guessing.
Do you have a URL, where we can see this? 88.130.119.122 (talk) 22:38, 16 September 2015 (UTC)

dagteller

hallo mensen

mijn schoonvader heeft een renault megane uit 2001 met een 1.9 dci motor

nu doet de dagteller het niet en het verbruik op het scherm waar ook de zender van de radio word weergegeven word het verbruik ook niet weergegeven de zender van de radio word wel weer gegeven het knopje op het uiteinde wat op de ruitenwisser schakelaar zit reageert ook niet

wie kan ons hiermee helpen? 77.163.139.192 (talk) 19:30, 16 September 2015 (UTC)

Hello,
I understand that your father is driving a Renault and that there are technical isues with that car.
This is the support desk for questions regarding MediaWiki, the software used to run wikis like Wikipedia. We are not associated with Renault or with some guys, who might run a Renault Wiki.
I recommend asking your Renault dealer for help - if someone should know how Renaults are working, it's him! :-) 88.130.119.122 (talk) 22:35, 16 September 2015 (UTC)

JSON error and upload failure with UploadWizard

I have two errors with UploadWizard that may or may not be related.

When I try to add a Campaign I get the following error: Fatal error: Call to a member function getJsonData() on a non-object in /path/w/extensions/UploadWizard/includes/UploadWizardCampaign.php on line 76

I also can't upload pictures (I click the button to get to the last stage after entering file name and source, and nothing happens, as described in Extension talk:UploadWizard#Generality issues and Extension talk:UploadWizard#Next button doesn.27t work).

I've run update.php and enabled everything in the config file. I've also installed the EventLogging extension. Any ideas? RDGGDR (talk) 05:15, 17 September 2015 (UTC)

Which MediaWiki version, which exact UploadWizard branch? Malyacko (talk) 08:52, 18 September 2015 (UTC)
1.25.2 and 1.4.0 respectively RDGGDR (talk) 16:58, 4 October 2015 (UTC)

MediaWiki-CMS without any sysops and bureaucrats

Hi. I install MediaWiki-CMS and removed from myself my flags sysop and bureaucrat. How can I regain the bureaucrat for myself? In the MediaWiki do not have more any bureaucrats.... I have a ftp access to CMS. — Green Zero обг 10:52, 17 September 2015 (UTC)

You could do it with the createAndPromoto.php maintenance script, or you first assign the userrights right to the group your user belongs to (I assume "user"), give yourself sysop rights (through Special:UserRights) and remove the userrights right from "user". Florianschmidtwelzow (talk) 12:18, 17 September 2015 (UTC)

Registering Wikipedia Sub-Domain.

Hello All,

I want to register a sub-domain of Wikipedia. I have seen many wiki sites having Wikipedia sub-domain (*.wikipedia.org). It would be a great help if someone explains the process for registering Wikipedia sub-domain.

Thanks in advance. RN.IN (talk) 13:07, 17 September 2015 (UTC)

I'm not sure, if I understand your question correctly. If you:
a) want to register a subdomain of wikipedia.org to host your own wiki/website: That will never happen. Wikipedia isn't a hosting service :)
b) want to request a new language version of Wikipedia, read meta:Help:How_to_start_a_new_Wikipedia Florianschmidtwelzow (talk) 13:12, 17 September 2015 (UTC)

Help:Trying to get MediaWiki again going (backup MediaWiki 1.13.3)

I had a MediaWiki site a long time ago. Back then I used MediaWiki 1.13.3 and I want to revive the site. I installed MediaWiki 1.13.3 and connected it with the database. After that I got the following error;

Database errorA database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:(SQL query hidden)from within function "Article::pageData". MySQL returned error "1054: Unknown column 'page_counter' in 'field list' (localhost)".

What does this mean and how can I fix it? I didn't practice a lot lately with MySQL, so I am not sure what to do, without making it worse than it is now. Your help will be appreciated, thank you! Config006 (talk) 15:46, 17 September 2015 (UTC)

I installed now MediaWiki 1.20.8 and it looked good, but then it said the following;
A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT page_id,page_namespace,page_title,page_restrictions,page_counter,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len FROM `database_page` WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1  
Function: WikiPage::pageData
Error: 1054 Unknown column 'page_counter' in 'field list' (localhost)
I retried upgrading it by using the web upgrade, but it didn't fix the problem. Thanks Config006 (talk) 16:15, 17 September 2015 (UTC)
https://phabricator.wikimedia.org/T40451#427892 might have a patch.
Please run supported software. Both 1.13 and 1.20 are ancient and insecure nowadays. Malyacko (talk) 08:51, 18 September 2015 (UTC)
Just paraphrasing the error message: Did you forget to run maintenance/update.php after upgrading? Ciencia Al Poder (talk) 09:32, 18 September 2015 (UTC)
If you run the web updater and this script ended with errors, then I would not be sure that your database after that is in a good state. It may be that the update applied a part of the necessary queries while it failed on one of them. This leads to inconsistency in the database. It is possible that running the updater again cannot fix that (and that the updater will not throw an error informing you about this problem).
I recommend this:
- Delete the database and restore it from backup.
- Do not use MediaWiki 1.20.8. Instead, download MediaWiki 1.25.2 and use that version (needs PHP 5.3.3 at least).
- Run the update script again. Our page Upgrade has a complete guide - if you have shell access, it is recommended not to use the web updater, but to run update.php from the shell. 88.130.70.247 (talk) 12:08, 18 September 2015 (UTC)
Update:
I have installed MediaWiki 1.25.2. I have restored it from backup. No errors at this moment, but the problem is; I don't see any content. I didn't upload any other maps or files than Images. I am afraid when I upload the rest that it will give errors again. Which files do I need to upload to my FTP? Apparently I need to upload other files instead of only linking the database with the software? Thanks for your help! Config006 (talk) 16:17, 18 September 2015 (UTC)
"Not seeing any content" is somewhat vague... if you mean the wiki looks like a clean install (there are no pages besides the main page, you can check Special:AllPages) then you probably created a new database instead of importing the old database. Ciencia Al Poder (talk) 13:18, 19 September 2015 (UTC)

Unable to delete uploads

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


Hi all-

We did an upgrade on our Wiki from 1.16 to 1.24 a couple months ago. Recently a user tried to delete a file that had been uploaded a few years ago (2011), and is unable to do so.

Here's the error we're getting:


Error deleting file: Correspondence.docx

Error deleting file: Could not move file "mwstore://local-backend/local-public/archive/20110128215148!Correspondence.docx" to "mwstore://local-backend/local-deleted/ravoo34jq7wb44u1gmgzqxzm91dpypj.docx".

(Filename has been truncated for formatting purposes.)


We're running it on Windows Server 2008, IIS 7.5. IUSR has full control to images directory and subdirectories (e.g., temp, archive, deleted, etc. -- I double checked and made sure it was propagating down to every file.).

Have tried various solutions, like specifically setting $wgDeletedDirectory, etc., but no go.

Nothing else is showing up in PHP or IIS logs, either. We've had only a few deleted uploads since the upgrade (from what I can tell by checking the dates in the deleted images folder), but otherwise I can't figure out what the heck is going on!


Excerpt from debug log:

Start request POST /index.php?title=File:Correspondence.docx&action=delete
HTTP HEADERS:
CONTENT-TYPE: application/x-www-form-urlencoded
CONTENT-LENGTH: 113
UPGRADE-INSECURE-REQUESTS: 1
ORIGIN: http://mysite.com
USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36
REFERER: http://mysite.com/index.php?title=File:Correspondence.docx&action=delete
HOST: mysite.com
COOKIE: ...
ACCEPT-LANGUAGE: en-US,en;q=0.8
ACCEPT-ENCODING: gzip, deflate
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
CONNECTION: keep-alive
CACHE-CONTROL: max-age=0
[caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff
[caches] LocalisationCache: using store LCStoreDB
Unstubbing $wgParser on call of $wgParser::setHook from wfabsHTMLExtension
Parser: using preprocessor: Preprocessor_DOM
Fully initialised
Connected to database 0 at localhost
Title::getRestrictionTypes: applicable restrictions to [[File:Correspondence.docx]] are {edit,move,upload}
[ContentHandler] Created handler for wikitext: WikitextContentHandler
User: cache miss for user 3068
User: loading options for user 3068 from database.
User: logged in from session
MediaHandler::getHandler: no handler found for application/msword.
User::getBlockedStatus: checking...
User: loading options for user 3068 from override cache.
Connected to database 0 at localhost
MessageCache::load: Loading en... got from global cache
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct
WikiPage::doDeleteArticleReal

DatabaseBase::query: Writes done: INSERT INTO `mw_archive` (ar_namespace,ar_title,ar_comment,ar_user,ar_user_text,ar_timestamp,ar_minor_edit,ar_rev_id,ar_parent_id,ar_text_id,ar_text,ar_flags,ar_len,ar_page_id,ar_deleted,ar_sha1,ar_content_model,ar_content_format) SELECT page_namespace,page_title,rev_comment,rev_user,rev_user_text,rev_timestamp,rev_minor_edit,rev_id,rev_parent_id,rev_text_id,'X' AND (page_id = rev_page) 
DatabaseBase::query: Writes done: DELETE FROM `mw_page` WHERE page_id = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_revision` WHERE rev_page = 'X'
DatabaseBase::query: Writes done: INSERT INTO `mw_logging` (log_id,log_type,log_action,log_timestamp,log_user,log_user_text,log_namespace,log_title,log_page,log_comment,log_params) VALUES (NULL,'X')
No bloom filter store 'main'; using EmptyBloomCache.DatabaseBase::query: Writes done: DELETE FROM `mw_page_restrictions` WHERE pr_page = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_pagelinks` WHERE pl_from = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_imagelinks` WHERE il_from = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_categorylinks` WHERE cl_from = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_templatelinks` WHERE tl_from = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_externallinks` WHERE el_from = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_langlinks` WHERE ll_from = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_iwlinks` WHERE iwl_from = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_redirect` WHERE rd_from = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_page_props` WHERE pp_page = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_recentchanges` WHERE (rc_type != N) AND rc_namespace = 'X'
DatabaseBase::query: Writes done: DELETE FROM `mw_recentchanges` WHERE (rc_type != N) AND rc_cur_id = 'X'
BacklinkCache::queryLinks: got results from DB
BacklinkCache::queryLinks: got results from DB
BacklinkCache::queryLinks: got results from DB
DatabaseBase::query: Writes done: DELETE FROM `mw_titlekey` WHERE tk_page = 'X'
DatabaseBase::query: Writes done: INSERT INTO `mw_filearchive` (fa_storage_group,fa_storage_key,fa_deleted_user,fa_deleted_timestamp,fa_deleted_reason,fa_deleted,fa_name,fa_archive_name,fa_size,fa_width,fa_height,fa_metadata,fa_bits,fa_media_type,fa_major_mime,fa_minor_mime,fa_description,fa_user,fa_user_text,fa_timestamp,fa_sha1) SELECT 'X' 
DatabaseBase::query: Writes done: INSERT INTO `mw_filearchive` (fa_storage_group,fa_storage_key,fa_deleted_user,fa_deleted_timestamp,fa_deleted_reason,fa_deleted,fa_name,fa_archive_name,fa_size,fa_width,fa_height,fa_metadata,fa_bits,fa_media_type,fa_major_mime,fa_minor_mime,fa_description,fa_user,fa_user_text,fa_timestamp,fa_sha1) SELECT 'X') 

FileBackendStore::getFileStat: File mwstore://local-backend/local-public/Correspondence.docx does not exist.
FileBackendStore::getFileStat: File mwstore://local-backend/local-deleted/ravoo34jq7wb44u1gmgzqxzm91dpypj.docx does not exist.
FileBackendStore::getFileStat: File mwstore://local-backend/local-deleted/q04k00i4o0cwcvtavk33e4qe1jqq3ji.docx does not exist.
FileBackendStore::getFileStat: File mwstore://local-backend/local-deleted/9u6gi9hc1c5r484eyhh5o6wtlohhgom.docx does not exist.
FileBackendStore::getFileStat: File mwstore://local-backend/local-deleted/mw554up2dctvoqum3wh9zsosqrn5zad.docx does not exist.

[FSFileBackend] rename(G:\WebRoot\Wiki/images/archive/20110128215148!Correspondence.docx,G:\WebRoot\Wiki/images/deleted/ravoo34jq7wb44u1gmgzqxzm91dpypj.docx): Access is denied. (code: 5)

[FileOperation] MoveFileOp failed (batch #7557bsgq5jy8dyvjqt2w3n2pom39l1j): {"src":"mwstore://local-backend/local-public/archive/20110128215148!Correspondence.docx","dst":"mwstore://local-backend/local-deleted/ravoo34jq7wb44u1gmgzqxzm91dpypj.docx","overwriteSame":true,"dstExists":false,"failedAction":"attempt"}
[FileOperation] MoveFileOp failed (batch #7557bsgq5jy8dyvjqt2w3n2pom39l1j): {"src":"mwstore://local-backend/local-public/archive/20110204152112!Correspondence.docx","dst":"mwstore://local-backend/local-deleted/q04k00i4o0cwcvtavk33e4qe1jqq3ji.docx","overwriteSame":true,"dstExists":false,"failedAction":"attempt_aborted"}
[FileOperation] MoveFileOp failed (batch #7557bsgq5jy8dyvjqt2w3n2pom39l1j): {"src":"mwstore://local-backend/local-public/archive/20110217185827!Correspondence.docx","dst":"mwstore://local-backend/local-deleted/9u6gi9hc1c5r484eyhh5o6wtlohhgom.docx","overwriteSame":true,"dstExists":false,"failedAction":"attempt_aborted"}
[FileOperation] MoveFileOp failed (batch #7557bsgq5jy8dyvjqt2w3n2pom39l1j): {"src":"mwstore://local-backend/local-public/archive/20131002183024Correspondence.docx","dst":"mwstore://local-backend/local-deleted/mw554up2dctvoqum3wh9zsosqrn5zad.docx","overwriteSame":true,"dstExists":false,"failedAction":"attempt_aborted"}

FSFileBackend::getFileListInternal() given directory does not exist: 'G:\WebRoot\Wiki/images/thumb/Correspondence.docx'
LocalFile::purgeThumbList: array ()
[squid] SquidUpdate::purge: /images/Correspondence.docx
BacklinkCache::partition: got from full result cache
FSFileBackend::getFileListInternal() given directory does not exist: 'G:\WebRoot\Wiki/images/thumb/archive/20110128215148!Correspondence.docx'
LocalFile::purgeThumbList: array ()
FSFileBackend::getFileListInternal() given directory does not exist: 'G:\WebRoot\Wiki/images/thumb/archive/20110204152112!Correspondence.docx'
LocalFile::purgeThumbList: array ()
FSFileBackend::getFileListInternal() given directory does not exist: 'G:\WebRoot\Wiki/images/thumb/archive/20110217185827!Correspondence.docx'
LocalFile::purgeThumbList: array ()
FSFileBackend::getFileListInternal() given directory does not exist: 'G:\WebRoot\Wiki/images/thumb/archive/20131002183024!Correspondence.docx'
LocalFile::purgeThumbList: array ()

[warning] FileDeleteForm::doDelete: No transaction to rollback, something got out of sync! [Called from DatabaseBase::rollback in G:\WebRoot\Wiki\includes\db\Database.php at line 3617]

Title::getRestrictionTypes: applicable restrictions to [[File:Correspondence.docx]] are {create,upload}
Title::getRestrictionTypes: applicable restrictions to [[File:Correspondence.docx]] are {create,upload}
Title::getRestrictionTypes: applicable restrictions to [[File:Correspondence.docx]] are {create,upload}

OutputPage::sendCacheControl: private caching;  **
LoadBalancer::reuseConnection: this connection was not opened as a foreign connection
[runJobs] Running 10 job(s) via '/index.php?title=Special%3ARunJobs&tasks=jobs&maxjobs=10&sigexpiry=1442502850&signature=160eb45ec94e12b14e4d86f24272556d35eebd53'

Thanks all-

KC Kchurch05 (talk) 18:39, 17 September 2015 (UTC)

The key operation here is:
rename(G:\WebRoot\Wiki/images/archive/20110128215148!Correspondence.docx,G:\WebRoot\Wiki/images/deleted/ravoo34jq7wb44u1gmgzqxzm91dpypj.docx): Access is denied. (code: 5)
Even if upload directory has right permissions, check those 2 files specifically. Well, the first file, and the folder containing the second (which still doesn't exist because it wasn't moved). Even if folder permissions are correct, sometimes the file is created with specific permissions that don't inherit permissions from parent folder. The solution is usually to replace ACL to all files in the folder (that's an option from the folder itself) Ciencia Al Poder (talk) 09:43, 18 September 2015 (UTC)
Thank you! I had to go in and change the permissions to Full Control (it was on read/write/execute) on all iterations of the files (there were at least four) before it let me delete the entire thing. Kchurch05 (talk) 19:39, 21 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

No styles after setup

I was able to run through setup with no issues, but the page loads with no styling (on the host or any other workstation with any browser). The FAQ references the .htaccess file, but there isn't one in the root directory and there are several located elsewhere. Can anybody point me in the right direction?

Thanks,! Storm311 (talk) 22:23, 17 September 2015 (UTC)

So that rewrite rule is located in the web.config and it looks correct. My host is set to the FQDN rather than localhost as well. I'm not sure what is causing the missing CSS though. Storm311 (talk) 22:52, 17 September 2015 (UTC)
Check out Manual:Errors_and_symptoms#The wiki appears without styles applied and images are missing Ciencia Al Poder (talk) 09:35, 18 September 2015 (UTC)
I did, and it points to a .htaccess file (there is not one in the root), but the web.config does contain the script that should be located there. Storm311 (talk) 14:01, 18 September 2015 (UTC)
It actually identifies several sources of problems, including how to debug them, not only htaccess, Please try all the options and tell us the results. Ciencia Al Poder (talk) 19:39, 18 September 2015 (UTC)

Unable to upload images

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


Hi all,

I tried to upload images using Upload file page, but I got the error: Could not create directory "mwstore://local-backend/local-public/4/40".

I'm using Ubuntu 14.04.3 LTS, and I have change the images folder with www-data user as follow:

drwxrwxrwx  2 www-data www-data   4096 Sep 18 14:42 images/

However I still couldn't upload any images, please help, thanks. 220.241.135.125 (talk) 07:47, 18 September 2015 (UTC)

damn.. i'm too stupid...
I deleted those config about Disable file lock manager in LocalSetting.php then everythings fine...
sorry and please delete my post, thanks. 220.241.135.125 (talk) 07:56, 18 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can you please let me know how can I optimise my search option in MediaWiki?

Ex- If i am misspelling it's not suggesting me right word or related words? 15.203.137.73 (talk) 12:24, 18 September 2015 (UTC)

Maybe you should file a feature request at phabricator for search suggestions to give you some suggestions even if you haven't spelt it correct. Paladox (talk) 15:56, 18 September 2015 (UTC)

Connecting to Phabricator failed (login procedure 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.


Hi,

I wanted to add a bug to the Extension CategoryTree.

To do so, I created a mediaWiki account and then wanted to connect to Phabricator. During the connection process (please state your user and e-mail) I messed up my email spelling for Phabricator. Phabricator now wants me to confirm the registration e-mail, but this mail was sent to the wrong account...

Revoking the connection from mediawiki and re-establishing it always takes me to the "confirm your mail adress first" page - so i am stuck simply wanting to post an issue :(

Is there a way around this process, so that I can stop the registration process in Phabricator and start it over?

Would be glad if someone could help...

Cheers,

ebbmo Ebbmo (talk) 13:29, 18 September 2015 (UTC)

I've created T113144 for you Ciencia Al Poder (talk) 13:34, 19 September 2015 (UTC)
Hi Ciencia,
I have tried to go to your task (again), but failed as the issue persists (Phabricator wants me to confirm my mail, which I never got due to the wrong mail address)
Has there been an update to the task or could you let them know that I am waiting?
Thanks & regards,
ebbmo Ebbmo (talk) 06:43, 28 September 2015 (UTC)
No response :(
I've bumped it again in case it went unnoticed. Ciencia Al Poder (talk) 09:27, 28 September 2015 (UTC)
Thanks. My account got reset and I could now register successfully.
Cheers mate!!! Ebbmo (talk) 11:53, 30 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Installation issues

I am facing problem in the installation of mediawiki on windows 8.1

Warning: require_once(C:\xampp\htdocs\mediawiki\mw-config/../includes/PHPVersionCheck.php): failed to open stream: No such file or directory in C:\xampp\htdocs\mediawiki\mw-config\index.php on line 25

Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\mediawiki\mw-config/../includes/PHPVersionCheck.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\mediawiki\mw-config\index.php on line 25

This is the message displayed on the localhost.

Mediawiki: 1.25.2

MySQL: 5.6.26

PHP: 5.6.12 Shrutika719 (talk) 15:54, 18 September 2015 (UTC)

Does C:\xampp\htdocs\mediawiki\includes\PHPVersionCheck.php exist? Ciencia Al Poder (talk) 11:46, 19 September 2015 (UTC)

When will MediaWiki have an check for update Special Page

Hi when is mediawiki getting a special page that allows to check for updates. Paladox (talk) 15:55, 18 September 2015 (UTC)

Email instead username

Hello,

Maybe, someone faced with such challenge.

Every user in MediaWiki logging by username and password. And email address is optional. Does exist any way to replace username by email address?

I.e. users can log in only by email address and password. ZelChief (talk) 08:02, 19 September 2015 (UTC)

There's a first step in doing this in T30085 Ciencia Al Poder (talk) 13:02, 19 September 2015 (UTC)

MW doesn't use "-strip" for Imagemagick ?

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


Why does MW (1.25.1 here) doesn't use "-strip" for generating thumbs with Imagemagick? It removes the meta data. Subfader (talk) 09:43, 19 September 2015 (UTC)

See the corresponding bug report that you filed... AKlapper (WMF) (talk) 17:50, 20 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Atricle title

My article title is Gerard garret, but should be Gerard Garrett. How do I change it? Gigerjv (talk) 04:35, 20 September 2015 (UTC)

See Help:Moving a page Ciencia Al Poder (talk) 10:32, 20 September 2015 (UTC)

The confirmation message sent by my installation (latest stable version) is malformed. The confirmation link doesn't include the domain:

<quote>

Um zu bestätigen, dass dieses Benutzerkonto wirklich dir gehört, und um die E-Mail-Features bei vpedia zu reaktivieren, öffne diesen Link in deinem Browser:

index.php?title=Special:ConfirmEmail/af0e2bda978a0fae3ba66169aaf0dd0c

Falls das Konto *nicht* dir gehört, folge diesem Link,...

</quote>

What went wrong? $wgServer and $wgCanonicalServer are set properly.

Confusing.. Strike 65 (talk) 12:50, 20 September 2015 (UTC)

Is this a known bug? What is the right setting to correct that? Strike 65 (talk) 08:14, 21 September 2015 (UTC)

API to get revision and page id from title?

What API query (json) can I use to receive the article and current revision ID from a title string? Subfader (talk) 19:42, 20 September 2015 (UTC)

I guess action=query&prop=revisions will do. Subfader (talk) 20:03, 20 September 2015 (UTC)
prop=info should be sufficient. See API:Info Ciencia Al Poder (talk) 09:24, 21 September 2015 (UTC)

Language inconsistency at "Create account" - de-formal

Some weeks ago, my wiki (www.liturgica-notata.uni-goettingen.de) was upgraded from 1.19 to 1.23.10. After testing some of the functionalities, I discovered that there is an inconsistency on the page "Benutzerkonto anlegen" (Create accout). I use de-formal, and most of the text fits this (for example "bitten wir Sie, die folgende Frage zu beantworten"), but on several places this is not the case ("Gib unten deine Informationen ein", "Gib deinen Benutzernamen ein", Gib dein Passwort ein", "Gib deine E-Mail-Adresse ein" und "Liturgica notata wird von Menschen wie dir geschaffen"). One of the system messages concerned seems to be "createacct-benefit-heading"; I will try to change that manually, but I think that should be provided by the software in the right language-version, and I can't see at a glance which system messages will be concerned also. LiturgicaNotata (talk) 07:04, 21 September 2015 (UTC)

I don't know if I've understood correctly, but if you want to correct the interface message for all MediaWiki installations, you can do that on http://translatewiki.net/ Ciencia Al Poder (talk) 09:42, 22 September 2015 (UTC)
What Ciencia says is right.
However, I have just checked that on a version 1.25 wiki and at least there the default translation on page MediaWiki:Createacct-benefit-heading/de-formal is correct.
Does translatewiki.net provide support for different branches? I think it does not, right? 88.130.105.9 (talk) 22:41, 22 September 2015 (UTC)
See de, de-formal, and qqx. Shirayuki (talk) 01:52, 23 September 2015 (UTC)
It doesn't, but you would have to confirm with @Siebrand or @Nikerabbit MarkAHershberger(talk) 01:58, 23 September 2015 (UTC)
If translatewiki.net does not support different versions, then a new version of the 1.23 branch, which contains the latest translations, would solve the issue. If translations are not updated in older branches, then the solution is as easy as upgrading. In 1.25, the problem is solved. 88.130.120.102 (talk) 16:54, 23 September 2015 (UTC)
*sigh* Upgading is not that easy, at least not with my wiki, since it is hosted by the university computing center, and maintaining the wikis is not their top priority, it seems. I notified them I think in April or March that 1.19 will only be supported till May, and they managed to do the upgrade to 1.23 in September or so. I think they will stay with 1.23 as long as possible because that is a long term support release.
I was not sure if there was something mixed up in the upgrading process, some system messages taken from de, some from de-formal. But if you say some system messages are just not translated, then I will have to translate them myself. Is there an easy way to find out which system message produces which part of the page (link: http://liturgica-notata.wiki.gwdg.de/index.php?title=Spezial:Anmelden&returnto=Hauptseite&type=signup)? I have just looked into the source code, but there all the text on screen looks also like normal text in the html output. But perhaps your eyes see hints for the system messages where my eyes don't... LiturgicaNotata (talk) 08:54, 24 September 2015 (UTC)
Yes, see Help:System message#Finding messages and documentation Ciencia Al Poder (talk) 09:23, 24 September 2015 (UTC)
Dear Ciencia Al Poder, thank you very much, that helped me find the messages I needed. I changed those and some more I found at first glance at the page Spezial:MediaWiki-Systemnachrichten. I will add a list of all the messages I changed, in case that helps someone to prepare a translation for all users in the next update for 1.23. I tried the link "Übersetzen" (Translate) on the special page, but to me it wasn't clear what to do next, so I'll leave it that way. The changed messages are
Changeemail-password‎;
Changeemail-throttled‎
Changepassword-throttled‎;
Confirmrecreate-noreason‎
Createacct-another-realname-tip‎;
Createacct-imgcaptcha-ph‎;
Anonpreviewwarning‎;
Userlogin-noaccount‎;
createacct-join
userlogin-yourname-ph
createacct-yourpassword-ph
createacct-yourpasswordagain-ph
createacct-email-ph LiturgicaNotata (talk) 07:28, 8 October 2015 (UTC)
And just found and translated some more: Userrights-removed-self‎;
Userrights-conflict‎;
Usermaildisabledtext‎;
Userlogin-yourpassword-ph‎Userlogin-noaccount‎. LiturgicaNotata (talk) 07:41, 8 October 2015 (UTC)
Best you can do is to review those messages on http://translatewiki.net/ to see if they're updated and translate them there if they aren't. Translation updates aren't included in updates AFAIK Ciencia Al Poder (talk) 09:05, 8 October 2015 (UTC)

Duplicate User Groups

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've been searching for a solution to this issue but can't seem to find one.

In my local settings, I've granted the Admin group (among others) the ability to edit with the "Edit" and "Edit Form" options while I have taken away the "Edit" right from other groups. Technically, everything is working fine, but the issue is that there are now 2 Administrators groups.

Both the groups are spelled exactly the same with the same capitalization. If I click on the red link (because a page doesn't exist for it), they both go to the same link to be created. Yet, somehow, they are still completely different groups and I would have to add myself to both of them to get the new permissions I've set.

Why would this be happening? How can I add permissions to the original "Administrators" group, or will I just have to go ahead and add myself and others to the duplicate group (which I would change the name of if I had no choice)? Kirabook (talk) 14:34, 21 September 2015 (UTC)

are you sure you spelled them exactly the same, even same case, in $wgGroupPermissions? Ciencia Al Poder (talk) 09:35, 22 September 2015 (UTC)
Absolutely. I figured maybe I did somehow misspelled something, so I even copy and pasted "Administrators" from the wiki itself and pasted it in the proper place. It still displays as a different group.
A link to show the duplicates is below.
http://i.imgur.com/E1F9i9D.png
This is an example of what I have written in the local settings (I've tried upper case and lower case, administrator with an "S" and without an "S". The result is the same, duplicate groups)
$wgGroupPermissions['Administrators']['skipcaptcha'] = true;
I feel like I'm missing something small and insignificant that would fix this issue in a jiffy, but none of my ideas have pulled through so far. Kirabook (talk) 12:14, 22 September 2015 (UTC)
the "standard" administrator user group is called "sysop", not "administrator", so you basically have 2 different groups (sysop, administrator) with the same name. See the link "list of members" where does it point to, since it contains the internal name of the group.
Also, I'd say group names should be all lowercase Ciencia Al Poder (talk) 18:53, 22 September 2015 (UTC)
Ciencia is right. Here you can see the correct names for the predefined usergroups: Manual:User_rights#List_of_groups.
You should now adjust the spelling of the group names in $wgGroupPermissions accordingly. This will remove the groups from the special page, which you linked in the image.
If you have users in the groups with the wrong name, e.g. in the "Administrators" group, then you should still do a second thing, that is fix their group membership. The easiest solution here might be to use the maintenance script migrateUserGroup.php to fix the wrong group names in the database. 88.130.105.9 (talk) 22:32, 22 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is it possible to have an image with a width of 100% in wiki markup?

According documentation: Help:Images.

Any help appreciated. Larivact (talk) 16:12, 21 September 2015 (UTC)

Updated page to be less of an ad, when will Wiki review it?

Dear Sir or Madam, I updated a new page. How do I get someone to review it, and hopefully remove the "this is written like an ad" header? Eurexpert (talk) 09:31, 22 September 2015 (UTC)
If you refer to some page on some wiki installation out there (like some Wikipedia) you need to ask on that wiki installation... :) Malyacko (talk) 07:22, 23 September 2015 (UTC)
That depends on which wiki you're talking about. Krenair (talk contribs) 12:15, 22 September 2015 (UTC)

php Version not correct?

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


I just installed the media wiki on my Webspace.

After the installation i get the following error:

MediaWiki 1.25 internal error 
MediaWiki 1.25 requires at least PHP version 5.3.3, you are using PHP 5.4.45-0+deb7u1. Installing some external dependencies (e.g. via composer) is also required.
Supported PHP versions 
Please consider upgrading your copy of PHP. PHP versions less than 5.3.0 are no longer supported by the PHP Group and will not receive security or bugfix updates.
If for some reason you are unable to upgrade your PHP version, you will need to download an older version of MediaWiki from our website. See our compatibility page for details of which versions are compatible with prior versions of PHP.
External dependencies 
MediaWiki now also has some external dependencies that need to be installed via composer or from a separate git repo. Please see mediawiki.org for help on installing the required components.

Can somebody give me a hint how to solve this? Netdeus01 (talk) 10:00, 22 September 2015 (UTC)

What MediaWiki version do you have? Please check, if you've a vendor/autoload.php file. Can you run composer update? Florianschmidtwelzow (talk) 10:14, 22 September 2015 (UTC)
I installed the newest version (1.25) Netdeus01 (talk) 10:34, 22 September 2015 (UTC)
I have no access to the composer
But the php version I have is much higher then the one which is required Netdeus01 (talk) 12:19, 22 September 2015 (UTC)
There is a bug about the php version message: T102094 MarkAHershberger(talk) 01:55, 23 September 2015 (UTC)
thanks a lot - that solved the problem Netdeus01 (talk) 12:52, 23 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

class 'twisted.web.error.Error' : 500 MediaWiki exception

we have "class 'twisted.web.error.Error' : 500 MediaWiki exception" and some doc missing while creating documents using WikiDoc.

Any suggestion how to correct this issue ? Madhu (talk) 10:42, 22 September 2015 (UTC)

What is the exception exactly? Look at your web server logs. Krenair (talk contribs) 12:16, 22 September 2015 (UTC)
In Apache access logs I have some entry like "Twisted PageGetter". Madhu (talk) 10:20, 23 September 2015 (UTC)
On web server logs no errors. This error is on Wikidoc Dashboard. Madhu (talk) 09:52, 23 September 2015 (UTC)

Escaping before inserting into database

Hello,

I am using the database wrapper functions used in MediaWiki (Manual:Database access).

In the manual, it says "We provide a query() function for raw SQL, but the wrapper functions like select() and insert() are usually more convenient. They can take care of things like table prefixes and escaping for you under some circumstances".

My question is, what do they mean by "under some circumstances"? When will my data be escaped when inserting into the database, and when won't it? Thanks :] 146.175.202.30 (talk) 11:10, 22 September 2015 (UTC)

Infobox tables - linebreak handling

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


I need to understand why the appearance of these two Infobox tables in MediaWiki is different:

<table class="infobox">

<tr><th>name</th><td>

123

</td></tr>

</table>

<table class ="infobox">

<tr><th>name</th><td>123

</td></tr>

</table>

I could not find how css handles linebreaks.

At the same time regular tables do not differ:

<table>

<tr><th>name</th><td>

123

</td></tr>

</table>

<table>

<tr><th>name</th><td>123

</td></tr>

</table>

Why is that? Игорь Филиппов (talk) 17:48, 22 September 2015 (UTC)

B.3.1 Line breaks
SGML (see [ISO8879], section 7.6.1) specifies that a line break immediately following a start tag must be ignored, as must a line break immediately before an end tag. This applies to all HTML elements without exception.
The following two HTML examples must be rendered identically:
<P>Thomas is watching TV.</P>
<P>
Thomas is watching TV.
</P>
So must the following two examples:
<A>My favorite Website</A>
<A>
My favorite Website
</A>
http://www.w3.org/TR/html401/appendix/notes.html#notes-line-breaks Игорь Филиппов (talk) 19:50, 22 September 2015 (UTC)
Interesting. The difference seems to be an interaction between two things. First, although it allows some html markup, wikitext is not html, and thus does not necessarily respect the w3 rules. In particular, when you have linebreaks around text, the text is wrapped in a paragraph (<p></p>). In a normal table that does not change things, but an "infobox" class table uses "vertical-align:top" on cells...this shifts the header cell text up, and the contents of the next cell too, but the paragraph break shifts the text back.
You can achieve the same effect outside of infobox templates with:
<table>
<tr><th style="vertical-align:top">name</th><td>
123
</td></tr>
</table> Clump (talk) 22:27, 22 September 2015 (UTC)
Thanks a lot.
My question is if there was a way to override it by changing some parameters in css file.
Anyway do you consider such default appearance is correct? Игорь Филиппов (talk) 08:02, 23 September 2015 (UTC)
Well, the generated html is correct for what the wikitext specifies, and the result seems like correct behaviour given the CSS then applied. The alignment variation is due to the infobox CSS assuming that the use of new paragraph constructions in cells is consistent. You could make sure the variation in vertical alignment doesn't happen in a few ways:
1. Use a template to construct your infobox class tables in a consistent way. If you specify cell content with named parameters, whitespace before and after the argument value is discarded, so you will not get the new paragraph wrappers.
2. Specifically include style="vertical-align:middle;" in your <th> and <td> elements (or wikitext equivalents) to override the way the the infobox table formats things.
3. Find the CSS applied to infoboxes wherever that is specified (Mediawiki:Common.css or Mediawiki:Vector.css or MediaWiki:Gadget-site.css), and either delete the .infobox td, .infobox th { vertical-align: top; } or change it to .infobox td, .infobox th { vertical-align: middle; }
Option 3 will affect all cells of all infoboxes, and maybe that's not desirable either. Clump (talk) 14:33, 23 September 2015 (UTC)
Thank you again.
What do you think on such code for Mediawiki:Common.css:
table.infobox td p {
margin: 0;
}
?
It works in my case. Игорь Филиппов (talk) 21:33, 23 September 2015 (UTC)
Sure; that seems better actually, in keeping the top alignment of columns. Clump (talk) 02:56, 24 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hundreds of bot registrations every hour

Hi, I am fairly new to mediawiki and definitely not a hacker. I have had my wiki installed for a few months, and all of a sudden I started getting between 1-15 registrations every minute. Some of these were able to edit and add pages, so I had to lock everything down. Users now have to register with a CAPTCHA, confirm their email address and add themselves to the editor group in order to edit. I didn't really want to do it that way but it was the only way to stop the spam. However, there are still hundreds of registrations every hour and I had to turn off email notifications because they send me a 'Mail undelivered notice' every time. The bot seems to be bypassing the registration process completely, and they aren't able to spam the site but it's really not functional to have so many fake users. There's so many I can't even weed through them. Any advice for this? Thanks! Nicolerpm (talk) 00:02, 23 September 2015 (UTC)

Which exact MediaWiki version is this about?
In general, Manual:Combating spam and I wonder if API:Account creation in combination with API:Restricting API usage could be also relevant here. Malyacko (talk) 07:21, 23 September 2015 (UTC)
It is version 1.25.2, I believe that's the latest version. I've read the Combating spam article and it seems as though the only viable option that I haven't done already might be to restrict a block of IP addresses, however, I don't currently have a way to see the new user's IP addresses as far as I'm aware. Right now the new user doesn't generate a user page which would indicate their IP. I'm guessing that might be a dead end anyway because I doubt that they would be predictable enough to block, but I think I would have to get an extension like CheckUser? Please correct me if I'm wrong.
The API: Account creation article could be helpful. I'm not really sure where to start though. It seems like Nocookiesfornew would be an error code that would be stopping the creation of new accounts.
I now have 1500 new users since yesterday. I keep restoring from a backup to clear it out. Is there a fast way to clear out all the users? Nicolerpm (talk) 15:31, 23 September 2015 (UTC)
If the backup, which you have, contains the whole database (e.g. as a database dump), then it might in fact be easiest to just use the backup from yesterday then.
What you should restrict is the possibility to create new user accounts: Depending on what usecase you use MediaWiki for, take this option away so that unregistered users can no longer create user accounts themselves. Or set up some kind of restriction during user creation (like a captcha, which actually does its job). 88.130.120.102 (talk) 16:51, 23 September 2015 (UTC)
It would be highly inconvenient to have to manually create user accounts for the purpose of this wiki, which is to be accessed but university students and other groups. I am using QuestyCaptcha for registration which is asking a question that only a human can answer. This bot is bypassing even that. I am going to go to my host and see what they can do for me too. Nicolerpm (talk) 17:34, 23 September 2015 (UTC)
I'm wondering if you are you sure that QuestyCaptcha actually works correctly on your installation. Malyacko (talk) 06:48, 24 September 2015 (UTC)
Also, be sure that, in case you upgraded, you haven't left the old installation accessible from somewhere else, which might be accessed by the bots instead of your new installation. That would not be the first time something like this happens. Ciencia Al Poder (talk) 09:38, 24 September 2015 (UTC)

MW Front Page is categorized automatically?

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.


Whenever i make a new category, front page is added to this automatically. For example i make Category:Test and go to front page and there's "Category: Test" on the bottom. If I look at the wikitext source there's no "[Category:Test]" written. I'm also using VisualEditor. Any thoughts what could cause this action? MW version is 1.25.1. 81.22.162.228 (talk) 08:34, 23 September 2015 (UTC)

Do you have installed any extension that might do this? or an extension tag on the main page that displays newly created pages/categories that might be including them also on the main page? Ciencia Al Poder (talk) 09:49, 23 September 2015 (UTC)
We have Extension:News. I commented it out and now the issue is gone. May have to find another extension or see if there's a way to fix the issue. Thank you for your help! 81.22.162.228 (talk) 10:13, 23 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how to add modified by <username> on all pages ?

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


We are using MediaWiki 1.25.2 and I have searched the documentation but cannot find anyway to add the username onto the footer

For example at present we see. "This page was last modified on 23 September 2015, at 10:57."

and would like "This page was last modified by Fred Blogs on 23 September 2015, at 10:57"

Does anyone know if this is achievable and if so how? Dbfxtrin (talk) 10:50, 23 September 2015 (UTC)

I think you can achieve that with Manual:$wgMaxCredits Ciencia Al Poder (talk) 09:45, 24 September 2015 (UTC)
Hey Ciencia
Most appreciated. Exactly what I needed. Dbfxtrin (talk) 16:37, 29 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

http://www.htmlpedia.org/wiki/Main_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.


A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script Query: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('htmlpediawiki:messages:en:lock','˴2��\0','20150923121355') Function: SqlBagOStuff::set Error: 1142 INSERT command denied to user 'htmlpediawiki'@'10.0.65.188' for table 'objectcache' (mysql5-9.90) 213.91.166.18 (talk) 12:19, 23 September 2015 (UTC)

Are you the owner of that domain? Run the update.php script.
If you just want to report a the problem, you'll have to contact the owner. Archive.org has a dump of it that may contain a clue. MarkAHershberger(talk) 14:32, 23 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

SMW extensions couldn't be upgraded/installed to the latest upgraded WIKI 1.25.2

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


HI,

I have upgraded to MediaWiki: 1.25.2 from the older version 1.21.2.

Server and PHP version specifications used for this upgrade are PHP: 5.3.3 (apache2handler) and MySQL: 5.1.71

The 'SemanticBundle' extension available under LINK 'Get extensions' in mediawiki.org does not possess the required folder '/param-processor' for WIKI 1.25.2 though its imported inside one of file 'SemanticBundleSettings.sample.php' in the same extension.

Also, I got the below warning message while installing the extension 'SemanticMediaWiki' as its dependent on 'SemanticBundle' extension.

Warning: 
require(.../extensions/SemanticMediaWiki/includes/src/MediaWiki/Jobs/UpdateJob.php): failed to open stream: No such file or directory in  .../includes/AutoLoader.php on line 90
Fatal error: require(): Failed opening required '.../extensions/SemanticMediaWiki/includes/src/MediaWiki/Jobs/UpdateJob.php' (include_path='...:.../includes:.../languages:.:/usr/share/pear:/usr/share/php') in /data/www/html/wiki/includes/AutoLoader.php on line 90

As the '/src' folder was misplaced inside the extension. After availed the '/src' folder I got below FATAL ERROR.

Fatal error: Interface 'Serializers\Serializer' not found 
in .../extensions/SemanticMediaWiki/includes/serializer/Serializers/QueryResultSerializer.php on line 30

Could some one please help in find How could I get the full fledged error free extensions for 'SemanticBundle' as well as 'SemanticMediaWiki' for WIKI version 1.25.2?

Thanks in Adv.

Sanjay Sanjay (talk) 12:54, 23 September 2015 (UTC)

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

Cannot upload files in a certain laptop

Hi My company uses wiki to share project documents. I'm just one of the users access to company wiki web site and I cannot upload any file from my laptop. But I can upload the same file from the other laptops with my user ID. I tried uploading a file from Chrom and IE both, the result is the same. From Chrom, I see the error page with the message code 'ERR_ACCESS_DENIED', from IE turns to the page with a message something like 'cannot display web page'. The most weird thing is that I can upload any file which size is under about 500kb. But this is only happening in my laptop. I can uplaod any file under 10MB with my ID from other laptops. So I think problem doesn't occurs from my company's wiki set-up, but from my laptop. My IT team operating wiki couldn't find a reason for this.

Would you please guide me how to check and solve this issue? Veronica Jeong (talk) 23:06, 23 September 2015 (UTC)

Well, the server is rejecting the upload data, so this is something that needs to be looked at the server. Maybe they have custom access restrictions based on IP addresses or something like that. Only the server logs may tell you what's happening. Ciencia Al Poder (talk) 09:48, 24 September 2015 (UTC)

What page is for being translation administrators?

Hi, I'm E.Z.O.

I'd like to be translation administrators to make translation work easier. however I wasn't able to find page for being translation administrators. What page is such one?

P.S. that question is not about MediaWiki but about MediaWiki.org. I know that asking about MediaWiki.org is incorrect here. however I wasn't able to find page to ask about MediaWiki.org. so I did that here. What page is one to do that? E.Z.O. (talk) 07:27, 24 September 2015 (UTC)

For things about mediawiki.org, use Project:Current issues Ciencia Al Poder (talk) 09:35, 24 September 2015 (UTC)

Hide information in templates

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


I have a template, but when I want to include the template and do not pass any parameter, do not show me some information. For example, wikipedia, when you include Infobox_person template, if you do not send some of the data does not show the table row Voignar (talk) 08:03, 24 September 2015 (UTC)

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

mediawiki-1.25.2 update.php 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.


Dear Fine Mediawiki People,

I am trying to upgrade mediawiki 1.25.2 from 1.16.2. I copied the old LocalSettings.php

I am at the step to run `php update.php` but it will not connect to the database! I get the following output

bash-3.00# php maintenance/update.php
MediaWiki 1.25.2 Updater

Your composer.lock file is up to date with current dependencies! DB connection error: No database connection

Debug logging shows nothing more and no action in postgres logs. Any idea what the problem is? If I run up the wiki it works and has a database connection but errors because of a missing column, i presume which should be added by running the update.

OS: Solaris 10

PHP 5.3.6

PGVER=8.4.4

My Database settings

# Database settings
$wgDBtype           = "postgres";
$wgDBserver         = "localhost";
$wgDBname           = "wikidb";
$wgDBuser           = "wikiuser";
$wgDBpassword       = "*******";

# Postgres specific settings
$wgDBport           = "5432";
$wgDBmwschema       = "mediawiki";
$wgDBts2schema      = "public";

I also tried unpacking the mediawiki files on a centos box and running the update on the database remotely but still have the same problem. Also putting db server details that dont exist did nothing.

Many Thanks in advance!

Tom 195.169.141.54 (talk) 08:24, 24 September 2015 (UTC)

the problem may be that the command line version of php use a different php.ini than the web, and it's missing the driver of the database.
You can also try the upgrade script from the web (accessing /mw-config/ as explained on Manual:Upgrading) Ciencia Al Poder (talk) 09:34, 24 September 2015 (UTC)
The different ini files is my problem and also helped with my next problem! Thank you kindly! 195.169.141.54 (talk) 10:37, 24 September 2015 (UTC)
Had the same error:
DB connection error: No database connection
The cause was that I had a PostgreSQL DB, but needed to install php5-pgsql on my Debian 8 (Jessie) system:
apt-get install php5-pgsql Albert25 (talk) 19:32, 12 December 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Create checkbox in usercreate

HI,

How can i add a button type checkbox in file templates/Usercreate.php and when users submit the form execute a query to add this option in the database ?

thank you 171.16.208.4 (talk) 09:50, 24 September 2015 (UTC)

Which actual underlying problem would you like to solve (instead of the implementation proposal that you wrote down)? Malyacko (talk) 07:36, 25 September 2015 (UTC)

i want to edit the php file that creates "bodytext" which is written in skin

i want to add div and other html codes in bodytext by going to core of mediawiki... what file i have to edit to achive this??? thank you in advance... help plz Androidsusmit (talk) 12:03, 24 September 2015 (UTC)

Hacking the skin is bullshit. Use the right hook and edit LocalSettings.php! 88.130.78.149 (talk) 00:30, 25 September 2015 (UTC)

zend_mm_heap corrupted

v1.25.2

When editing and saving pages a web browser says there is a connection problem

apache error logs show zend_mm_heap corrupted and child pid 23765 exit signal Segmentation fault (11)

When reloading the page the edit was actually successful.

I tried some of the google suggestions but nothing is helping. Any idea?

PHP 5.3.6 195.169.141.54 (talk) 13:25, 24 September 2015 (UTC)

http://stackoverflow.com/questions/2247977/what-does-zend-mm-heap-corrupted-mean Malyacko (talk) 07:33, 25 September 2015 (UTC)

Images are not displayed

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


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

Images are not displayed

I have Images in this Form:

[ [ File:Image_Name. jpg ] ]

But i see only a Link with this Image_Name, not the picture

What is wrong ? Takata1 (talk) 13:57, 24 September 2015 (UTC)

maybe it's the space between the dot and the jpg ? Sylverve (talk) 20:46, 24 September 2015 (UTC)
No, i have set the space so that the code will be displayed here Takata1 (talk) 11:26, 28 September 2015 (UTC)

In search of a search extension

Hello there!

I was wondering if there was an extension tht would give me a sitewide return, but unlike the one in the package, rather one that would have a slightly more controlled content size.

When I do a standard search, I only get the first few words of each results, but I would need a result that returns a prequalified parameter, like, instead of getting, as one of the results "the fox ate the chicke.........." I would get "the fox ate the chicken that escaped from the farm" because the editor put that whole sentence in between <parameters></>.

Or at least a result page that would have a minimum number of words, like say 30

I will be administrating a wiki that is in a dictionary form and whole sentences are needed as a search return.

Could anyone help please?

I've search the extensions pages, but I have neither found it or maybe because I don't know the jargon...I'm very new to wikis

Many thanks Sylverve (talk) 17:42, 24 September 2015 (UTC)

Have you checked https://www.mediawiki.org/wiki/Help:CirrusSearch ? Malyacko (talk) 07:31, 25 September 2015 (UTC)
Thank you Malyacko
This extension seems very clever and extensive itself, with so many features and possibilities, but I cannot see how they will help me either twiking the result page to show longer quotes, or obliging the search to group words through an <element> Sylverve (talk) 20:12, 25 September 2015 (UTC)

Pywikibot

Hi! I am Tulsi Bhagat from newiki. I operates Tulsibot using windows. I'm helpless, wondering here and there in search of knowledge about Pywikibot. At last, I've found Project:Support desk. I'm looking for script which helps in updating statistics for eg. no. of population, no. of VDC, total no. of edits done by users in a page of wikipedia. Can anyone help me for this?  Tulsi 24x7 05:50, 25 September 2015 (UTC)

See mw:Manual:Pywikibot for contact info. Malyacko (talk) 07:29, 25 September 2015 (UTC)

Enable all namespaces for VisualEditor

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


Hi

Is it possible to enable VisualEditor for all namespaces? Like Category? I found this configuratoin option but not sure how to use it:

Each configuration option is shown without the $wgVisualEditor prefix for brevity.
Namespaces = array_merge(
	$wgContentNamespaces,
	array( NS_USER )
) 81.22.162.228 (talk) 10:57, 25 September 2015 (UTC)
Here is the answer if someone is struggling with this. Add namespaces between () in VisualEditor.php.:
// Namespaces to enable VisualEditor in
$wgVisualEditorNamespaces = array_merge( $wgContentNamespaces, array( NS_USER, NS_CATEGORY ) );

81.22.162.228 (talk) 10:07, 28 September 2015 (UTC)

Hi,
it's never a good idea to change files in mediawiki core or extension files itself. It should work, if you add
$wgVisualEditorNamespaces = array_merge(
$wgContentNamespaces,
array( NS_USER )
);
in your LocalSettings,php directly after the require_once line. Florianschmidtwelzow (talk) 10:29, 28 September 2015 (UTC)
I have been trying this and it doesn't work. There's no VisualEditor option in the "help" namespaces.
I added the following line after the require_once line in the LocalSettings.php:
$wgVisualEditorNamespaces = array_merge( $wgContentNamespaces, array( NS_USER, NS_HILFE, NS_HELP, NS_BENUTZER ) );
Since the wiki is in German I tried adding the namespaces in German and English.
Any ideas? Matt Wieland (talk) 11:42, 8 January 2016 (UTC)
Did you find a solution?
I'm trying to enable the editor on ":Portal" pages like https://en.wikipedia.org/wiki/Wikipedia:Portal
I guess it's disabled on some pages for security reasons, like CSS is on the login page. Even though I can't really see security issues in this case. HerrTaschenbier (talk) 14:30, 28 June 2017 (UTC)
@Matt Wieland
$wgVisualEditorAvailableNamespaces = [
    NS_MAIN => true,
    NS_USER => true,
NS_HELP => true,
    102 => true,
    "_merge_strategy" => "array_plus"
]; Beatlicker (talk) 11:18, 2 August 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upgrading from Mediawiki 1.15.1

I am currently in the process of upgrading an old mediawiki site on a shared webhost that I don't have direct access to the servers. I also have never touched mediawiki before.

Want to validate the steps I have to see if there are any additional steps I should do or missing

  1. Make copy of wiki site
  2. rename wiki site folder site to site-1.15.1
  3. make backup of mysql database using phpmyadmin
  4. create folder called site
  5. copy files from downloaded copy of mediawiki-1.25.2 into site folder
  6. copy over LocalSettings.php along with any images used for site
  7. copy over .htaccess file
  8. go to site.com/site/mw-config/ to upgrade site
  9. Test and validate

My rollback for this is going to be restore the backup using phpmyadmin and then rename the site-1.15.1 folder back to site.

Are there any issues with this that I might run into? Should the LocalSettings.php file be compatible? 216.252.194.205 (talk) 17:32, 25 September 2015 (UTC)

Yes, looks good.
What you are possibly missing is:
- Does the wiki use extensions? Check the folder extensions/ for files and folders and the file LocalSettings.php for according include/require statements. Extensions need to be updated as well.
- If the wiki uses special skins (check the skins/ folder), then these will need an update as well.
Depending on the size of your database and the speed of the server, you might get a timeout during the database upgrade (your step 8). If that happens, you have to consider the database to be broken. You then have to delete the database, restore it from backup and upgrade it again. Running update.php on the shell (instead of using the web updater) will prevent that problem.
Apart from that your steps should be complete. See also Upgrade for a complete tutorial.
In case of errors it is always a good idea to check the PHP error log or to activate error display inside the wiki pages so that you see, what is going wrong. See how to debug for more information! 88.130.95.138 (talk) 00:51, 26 September 2015 (UTC)
Thank you. Hopefully everything goes smoothly. 70.121.140.248 (talk) 13:25, 26 September 2015 (UTC)

Tutorial on Font Awesome implementation without an extension

I wrote a short tutorial on this topic on my user-page User:Tabultor. Is there a regular category where tutorials should be placed? Would this tutorial be accepted? Tabultor (talk) 01:40, 26 September 2015 (UTC)

Requesting a new password

I have provided an email address to have a request for a new password sent, but am not receiving any notification or link to that email address. 121.220.35.236 (talk) 02:19, 26 September 2015 (UTC)

Left menu twicking help

I've been looking for the last 3 hours.

Could someone help me on finding a way to twick the left menu of the vector skin please?

That's the links below the wiki's main logo, the blue left column

Many thanks Sylverve (talk) 23:15, 26 September 2015 (UTC)

If you meant tweaking, see Manual:Interface/Sidebar Malyacko (talk) 11:11, 27 September 2015 (UTC)
Thank you so very much Malyacko, I really appreciate! :) Sylverve (talk) 11:48, 27 September 2015 (UTC)
See Manual:Interface/Sidebar Ciencia Al Poder (talk) 11:54, 27 September 2015 (UTC)

Lost password and no e-mail address associated with account

How can I recover my password. My username is "Smitse". 70.234.252.237 (talk) 02:12, 27 September 2015 (UTC)

Go to the login page, there's an option to get a new password to your email. That, of course, requires you to have a confirmed email address on the wiki. Ciencia Al Poder (talk) 10:14, 27 September 2015 (UTC)

Prevent newlines from closing lists

Consider the following wikitext:

*<div>A
B</div>

My intended HTML markup would be the following:

<ul><li><div>A
B</div></li></ul>

But instead I get the following:

<ul><li><div>A</div></li></ul>
B

The result is the same if instead of a <div> I use a <span>, <blockquote>, <pre> or any other markup I tried. It looks as if the parser gives a lot of priority to the list items. Isn't there a way to prevent the newline from closing the list items? For technical reasons I want the content of my list items to span several lines, while keeping the proper HTML markup. For example, the following would NOT be a solution, because even though the output would appear right, the markup wouldn't be:

*A
:B

Any help would be appreciated, I've almost given up by now. If you want a live example you can visit http://wikidialectics.org/Wikidialectics:Sandbox Sophivorus (talk) 07:48, 27 September 2015 (UTC)

Unfortunately, wiki code is made for simple syntax. If you need more complex syntax you'll need to use HTML for the list (<ul><li>...) like the markup you expect. Ciencia Al Poder (talk) 10:13, 27 September 2015 (UTC)

Hi ,

I need to add page link at the left side , like links under tools.

Is there a way to do so ?

Thanks

Raghda 105.197.215.29 (talk) 08:25, 27 September 2015 (UTC)

See Manual:Interface/Sidebar Ciencia Al Poder (talk) 10:10, 27 September 2015 (UTC)

"Category:Pages where expansion depth is exceeded"

What's wrong with pages in Category:Pages where expansion depth is exceeded and how can I fix it?

It's generated in Parser.php so I guess I reach a parser limitation? Raising Manual:$wgExpensiveParserFunctionLimit from 200 to 300 now. Subfader (talk) 13:21, 27 September 2015 (UTC)

Maintenance script to fefresh all pages like empty edit?

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


A template of mine adds pages to a category. I need to refresh thousands of pages as if I save them manually (empty edit).

Is there a maintenance script to do the trick?

I tried refreshLinks.php, rebuildall.php, purgeParserCache.php. Subfader (talk) 14:36, 27 September 2015 (UTC)

Maybe purgeList.php with the --purge option, which updates the page_touched timestamp Ciencia Al Poder (talk) 09:36, 28 September 2015 (UTC)
That script echoes nothing. Seems to be Squid only. Subfader (talk) 19:17, 28 September 2015 (UTC)
Looking at the code, it calls $title->invalidateCache();, which updates page_touched for that page, which should force it to be reparsed the next time it's viewed Ciencia Al Poder (talk) 20:35, 28 September 2015 (UTC)
Hmh ok, then it just the script just takes very long (cancelled after ~10 minutes).
But I need to refresh them all at once: Atm the category stats are wrong for the category added by the template. Subfader (talk) 19:46, 29 September 2015 (UTC)
Oh, I haven't though about this before, but if he made the change, the refresh should be queued on the Manual:Job queue, so executing runJobs.php should fix it by refreshing only the pages that need to be updated. If not, something must be wrong here. Ciencia Al Poder (talk) 09:54, 30 September 2015 (UTC)
Nothing help. Luckily I can run Extension:ReplaceText going over the age back and forth. Subfader (talk) 19:41, 30 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Pictures: template to switch picture on click

I would like a template that switches a picture on a text click.

For example with file A.jpg and B.jpg, I want that when you click a specific text (say "SWITCH!") the A.jpg that was shown switches to B.jpg. And when you click again, it switches back to A.jpg (and eventually the text to click could change) 78.209.121.35 (talk) 16:04, 27 September 2015 (UTC)

Only with javascript Subfader (talk) 17:41, 27 September 2015 (UTC)

MW 1.18 Lockdown extension

Hi,

I have a MW 1.18 extension and I will not be able to upgrade it currently. I would like to restrict users and anonymous from viewing the Recent Changes page of my MW 1.18. I came across the Lockdown extension but this is for MW 1.19+. Please do let me know, if there is any suggestions

Many Thanks. 1.39.63.233 (talk) 17:40, 27 September 2015 (UTC)

Please do consider upgrading. 1.18 is a horrible old unmaintained version which is full of security issues nowadays. Malyacko (talk) 11:08, 28 September 2015 (UTC)

How do I add a new tab on the navigation bar?

Title is pretty much self-explanatory.
If I'm not being clear, then something like this: http://i.imgur.com/AhqGiky.png
the new tab I would want to create will use external link.
I tried searching for the same question, they had solutions, but most of them didn't work and outdated. 72.219.238.198 (talk) 21:01, 27 September 2015 (UTC)
MediaWiki has a javascript function built in for this. See ResourceLoader/Modules#addPortletLink. -- [[User:Edokter]] {{talk}} 20:49, 28 September 2015 (UTC)
That adds it to the sidebar not the tab... Stargy (talk) 01:38, 29 September 2015 (UTC)
I asked someone else who finally gave me the code for this (javascript), this is what I added in MediaWiki:Common.js:
Add a custom tab after "Discussion"
var ul = document.querySelector(#p-namespaces ul");//finding the list
var newLi = document.createElement("li");// creating a list item
newLi.innerHTML = '<span><a href="[insert external link]" title="[insert title]">[tab name]</a></span>';
ul.appendChild(newLi);//adding list item to list
Add a custom tab after "View history"
var ul = document.querySelector(#p-views ul");//finding the list
var newLi = document.createElement("li");// creating a list item
newLi.innerHTML = '<span><a href="[insert external link]" title="[insert title]">[tab name]</a></span>';
ul.appendChild(newLi);//adding list item to list 72.219.238.198 (talk) 22:51, 27 September 2015 (UTC)
Hello there
Would you know where I could find this JS you edited please, I just can;t seem to find it :(
Thank you 92.15.242.136 (talk) 23:12, 3 October 2015 (UTC)
it's http://yoursitename.com/index.php?title=MediaWiki:Common.js
of course, only site owner should be able to edit it. Stargy (talk) 01:09, 4 October 2015 (UTC)
Thank you Stargy, I appreciate.
I followed the link on my wiki (I own both wiki and site), and copied and pasted your code on that page but all I get is a copy of the text, no action on the menu has taken place.
I feel so inadequate here with wiki language, I know css and html, but wiki stuff is real new to me and instructions here are so jargonic.
Thank you though 92.15.242.136 (talk) 19:09, 4 October 2015 (UTC)
If you're the wiki operator and can install extensions, you could also use a server side method. Create a new extension (e.g. using this Manual) and add a hook listener for the SkinTemplateNavigation hook. As a hook handler you could use the following code to add a new tab after the discussion (or to be more precise: after the last tabe of a page) tab:
public static function onSkinTemplateNavigation( SkinTemplate &$sktemplate, array &$links ) {
    $links['namespaces'][] = array(
        'class' => 'test', // a css class, if you want
        'text' => 'Testtab', // That's the text visible to the user, you might want to use a message key, instead of a hardcoded text
        'href' => 'test', // That's the link the tab will redirect to, when clicked
    );
}
Florianschmidtwelzow (talk) 05:43, 28 September 2015 (UTC)

can i talk with a person please

can i talk with a person please 94.2.114.149 (talk) 02:07, 28 September 2015 (UTC)

For what reason? You aren't being specific with why you want to talk with a person. 72.219.238.198 (talk) 03:33, 28 September 2015 (UTC)

Help adding map

I have added an osm map to my page but cannot get the coordinates to show the correct map.

I wish it to take the coordinates from the lat/lng I have stated on the template.

how do I get this to work?

http://gmdesign.org.uk/wiki/index.php?title=C26_%28North_Ayrshire%29

the map its showing is not the one it should be. Gmdesignuk (talk) 05:15, 28 September 2015 (UTC)

You could probably do that easily with Extension:Widgets and adding a widget with the embed code for OSM, giving lat and lon as variables Ciencia Al Poder (talk) 09:39, 28 September 2015 (UTC)
did you look at my page and source code?
http://gmdesign.org.uk/wiki/index.php?title=C26_%28North_Ayrshire%29 Gmdesignuk (talk) 22:30, 28 September 2015 (UTC)
No. I guess I misunderstood the question :)
So you want to make a reference of a parameter used on a template on the same page? That's not possible.
First, you would need to say from which one of the templates used on the page get the parameter (and you can have the same template multiple times!). And that would be very unreliable. Ciencia Al Poder (talk) 09:20, 29 September 2015 (UTC)
other wikis have maps that use map references on their page to display maps so it is possible.
but i just cannot figure it out myself 86.28.140.107 (talk) 16:59, 30 September 2015 (UTC)
the map code could be placed on the master template it does not need to be placed on the same page as the coordinates 86.28.140.107 (talk) 17:01, 30 September 2015 (UTC)

Base category

Hi all, is there a concept of a base category all pages belong to? I ask because some tools like catscan require a category for performing a search. Aschroet (talk) 08:04, 28 September 2015 (UTC)

No. But if you want to search all categories, why would you need catscan to begin with ? —TheDJ (Not WMF) (talkcontribs) 14:21, 29 September 2015 (UTC)
If i have several other constraints which are not based on categories but on templates or namespace etc. How can i determine the pages in this case? Aschroet (talk) 20:01, 29 September 2015 (UTC)

$wgUserEmailUseReplyTo works not for "Email me a copy of my message"

Hi I use $wgUserEmailUseReply Manual:$wgUserEmailUseReplyTo in my configuration and it works for user to user emails.

There is $wgPasswordSender in the from: field and the users Email-Adress in the reply-to as should be.

But

When the user activates

Email me a copy of my message

this mail has the users email-Adress in the from: field instead of $wgPasswordSender as expected.

I'd like to have the $wgPasswordSender the from: field in both cases. How to do this? 92.79.145.134 (talk) 09:07, 28 September 2015 (UTC)

Cannot activate account

I am having difficulty using code blocks. I have tried to register in the forums. I have not received several activation emails so my forum registration is incomplete. I have checked spam and they are not there. I have checked my email address and it is receiving emails. I cannot find any way to email the forum administrators as i am not registered, to ask them to look into the situation. There are no email links on the code blocks webpage. This appears to be the only option. Any help appreciated. Stephanos, stephanos@writeme.com 82.19.196.39 (talk) 09:32, 28 September 2015 (UTC)

What exact "forum" do you refer to? What is the "code blocks webpage" you refer to? Malyacko (talk) 11:07, 28 September 2015 (UTC)

Using generator=categorymembers&gcmtitle=Category provides only 10 results, not complete list

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


Mediawiki version: 24.2

Hi,


  When I use this API(http://en.samarkandtour.org/api.php?action=query&prop=revisions&rvprop=content&format=json&generator=categorymembers&gcmtitle=Category:Hotel) to get all pages sorted by category title, now  32 of total 42 pages are missing.   Because, though really there are total 42 pages like http://en.samarkandtour.org/index.php/Category:Hotel, only 10 pages are returned by the API.

  Even though I retry it since I have run rebuildall.php for maintenance, there is no difference.

Thanks,

JJ Comseong (talk) 09:34, 28 September 2015 (UTC)

hi JJ, look here: API:Query#Generators and continuation Aschroet (talk) 16:57, 28 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Recreate mediawiki database with an existing LocalSettings.php

Due to corruption I would like to re-create mediawiki using CLI instead of the web interface. Is there a mean? Yoonghm (talk) 02:49, 29 September 2015 (UTC)

What does "corruption" mean? Why do you think that it's relevant whether you use a CLI or a web interface to install? Please share your underlying assumptions and more information first. Malyacko (talk) 07:01, 29 September 2015 (UTC)
Partially installed extension and debugging causes error in accessing the wikipedia database. I would like to "re-initialize" the database using an existing LocalSettings.php, instead of deleting the LocalSettings.php and access http://localhost/w/index.php . Yoonghm (talk) 16:48, 29 September 2015 (UTC)
So there is no "corruption" but an error, and you have not told us the full and exact error message yet. Malyacko (talk) 07:40, 30 September 2015 (UTC)
Have you lost your LocalSettings.php file?
Or is the database broken?
If the database is broken, what exactly is the problem with it? What is it that is not working?
What database is that? You wrote it would be "wikipedia". Do you have a Wikipedia clone? Or was that a typing error and you mean something else?
Please answer these questions! 88.130.107.89 (talk) 13:24, 1 October 2015 (UTC)

#time ParserFunction

In Wikidata, time values with precision year are stored in the format yyyy-00-00T00:00:00Z. The #time parserfunction seems not to be able to interpret this value. For {{#time:c|2006-00-00T00:00:00Z}} it returns 2005-11-30T00:00:00+00:00. Is there a way to fix this problem? Pasleim (talk) 07:20, 29 September 2015 (UTC)

Not easily. PHP simply doesn't consider that a valid date time. And #time is directly mapped onto that function. You will therefor have to resort to parsing the string with lua or something. —TheDJ (Not WMF) (talkcontribs) 14:18, 29 September 2015 (UTC)

Вадим

С дуру вляпался в систему Windows 10, теперь никак не могу вернуться в систему Widows 7. В системе 10 я не копенгаген, так как мне уже 80 лет и осилить её не могу. Помогите восстановиться в 7. моя электронная почта <email removed to protect the user> 79.111.28.70 (talk) 11:57, 29 September 2015 (UTC)

This is a support place for a software called "MediaWiki". We do not provide support for problems with the "Microsoft Windows" software here, sorry. Malyacko (talk) 07:39, 30 September 2015 (UTC)
If you have a problem with Windows 10, a good place to ask is here:
http://tenforums.com/
In this forum, you should describe, what problem you are having! 88.130.107.89 (talk) 13:27, 1 October 2015 (UTC)

ERR_CONNECTION_RESET

Hi,

I migrated a mediawiki solution from Windows to Debian (and from MediaWiki 1.16 to MediaWiki 1.25)

The application works but i'm not able to edit or save a page which exceed certain limits. If i write too many characters, i get an ERR_CONNECTION_RESET error in Chrome and the same with Firefox. I increased memory cache in PHP.ini but it doesn't do anything. I tried to check Apache log but even in Debug mode, nothing appears.

i use PHP 5.4. Do you have any idea? What should I check?

Thanks for your help. Pikar60 (talk) 12:53, 29 September 2015 (UTC)

A connection reset is very weird, because it's not a failure at the HTTP level, but at the TCP level.
This is usually caused by a PHP bug, that causes the PHP engine to crash badly, usually a segmentation fault. Look at the server's error log (usually at /var/log/apache2/error.log in Debian) for more information.
If the problem were memory, you'd still see an error message of "Allowed memory size of XX bytes exhausted", or just a blank page.
If the problem is segmentation fault, that's usually hard to debug and can be caused by a bug in PHP or a PHP extension (like a PHP opcode cache/acceleator). Ciencia Al Poder (talk) 20:21, 30 September 2015 (UTC)
Hello,
Thanks for you answer. I change the HTTP LogLevel to debug. Now, i can see these errors occur when I have a connexion reset.
[info] [client 192.168.0.22] Request body read timeout
[debug] mod_deflate.c(700): [client 192.168.0.22] Zlib: Compressed 313 to 229 : URL /index.php, referer: http://wiki.url.com/index.php?title=MediaWiki:Common.js&action=submit
But these errors doesn't appear at each connexion reset :/
I increased values in /etc/apache2/mods-enabled/reqtimeout.conf it doesn't change anything
I don't have opcode installed. I have exactly the same configuration files (apache2 and php.ini) on both my Test server and Production server.
Test server works correctly but it is installed in a different network.
It doesn't have a cache accelerator installed on the server. (like opcode)
When we have a connexion reset a TCPDump shows these kind of info.
[TCP Suprious Retransmission]
[TCP Dup ACK]
[TCP Retransmission]
My network admin tells it's an issue from the server.
For info :
PHP Version in production server : 5.4.45-0+deb7u1 (apache2filter)
PHP Version in test server : 5.4.39-0+deb7u2 (apache2handler)
Do you think, it can change something? Pikar60 (talk) 10:25, 1 October 2015 (UTC)
This is interesting: [info] [client 192.168.0.22] Request body read timeout. So the server sees like the client times-out...
Maybe the problem is not PHP/apache, but the network. Something between your machine and the server is losing or mangling packets. Or maybe the server's NIC is buggy. If it were a segfault, it will be seen as such in the logs.
Try the tcpdump also on the server and compare results. That may be the key. Ciencia Al Poder (talk) 20:31, 1 October 2015 (UTC)

Translate extension 500 error

Hi, I created a new page in my wiki and went to mark it for translation, the page displays but when I press the "mark this version for translation" button it gives me a 500 error. Looking on the server all I get is "End of script output before headers: index.php"

Turning on debugging I do get errors on the mark for translation page (26 of this)

  • [error-json] {"id":"a0878d8a","type":"ErrorException","file":"/home/sites/bearingnet.net/public_html/help/includes/cache/CacheDependency.php","line":197,"message":"PHP Warning: filemtime(): stat failed for /home/sites/bearingnet.net/public_html/help/resources/lib/oojs-ui/i18n/en-gb.json","suppressed":true,"url":"/index.php?title=Special:PageTranslation&target=Wanted","backtrace":[{"function":"handleError","class":"MWExceptionHandler","type":"::","args":["integer","string","string","integer","array"]},{"file":"/home/sites/bearingnet.net/public_html/help/includes/cache/CacheDependency.php","line":197,"function":"filemtime","args":["string"]},{"file":"/home/sites/bearingnet.net/public_html/help/includes/cache/LocalisationCache.php","line":416,"function":"isExpired","class":"FileDependency","type":"->","args":[]},{"file":"/home/sites/bearingnet.net/public_html/help/includes/cache/LocalisationCache.php","line":447,"function":"isExpired","class":"LocalisationCache","type":"->","args":["string"]},{"file":"/home/sites/bearingnet.net/public_html/help/includes/cache/LocalisationCache.php","line":323,"function":"initLanguage","class":"LocalisationCache","type":"->","args":["string"]},{"file":"/home/sites/bearingnet.net/public_html/help/includes/cache/LocalisationCache.php","line":260,"function":"loadItem","class":"LocalisationCache","type":"->","args":["string","string"]},{"file":"/home/sites/bearingnet.net/public_html/help/languages/Language.php","line":4358,"function":"getItem","class":"LocalisationCache","type":"->","args":["string","string"]},{"file":"/home/sites/bearingnet.net/public_html/help/languages/Language.php","line":208,"function":"getFallbacksFor","class":"Language","type":"::","args":["string"]},{"file":"/home/sites/bearingnet.net/public_html/help/languages/Language.php","line":167,"function":"newFromCode","class":"Language","type":"::","args":["string"]},{"file":"/home/sites/bearingnet.net/public_html/help/includes/Setup.php","line":611,"function":"factory","class":"Language","type":"::","args":["string"]},{"file":"/home/sites/bearingnet.net/public_html/help/includes/WebStart.php","line":138,"args":["string"],"function":"require_once"},{"file":"/home/sites/bearingnet.net/public_html/help/index.php","line":38,"args":["string"],"function":"require"}]}

If you need more info let me know. But I am stuck with this one ¬.¬

I also tried creating another new page with minimal text and get the same problem Leepbn (talk) 14:01, 29 September 2015 (UTC)

The error PHP Warning: filemtime(): stat failed for ... doesn't seem to be the cause. It may indicate a missing file but doesn't seem to be required at all. It may have a fallback to en.json.
The error End of script output before headers seems to be typical when PHP is executed as a CGI script. You should turn on the display of PHP errors, see Manual:How to debug. I don't know, but I think that executing PHP as a CGI script makes find error messages harder Ciencia Al Poder (talk) 20:15, 30 September 2015 (UTC)

how can I add in $wgDBservers the credentials (account name and password) to connect to the host server where the WIKI database is?

If WIKI web site and the WIKI data base are located on the different servers, in configuration file of settings how can I add the credentials of account (account name and password) to $wgDBservers to connect to the host server where the WIKI database is? Alexfilimonov (talk) 18:13, 29 September 2015 (UTC)

Which website (address welcome) made you think that an "database on a different server" setup is supported? Malyacko (talk) 07:32, 30 September 2015 (UTC)
Manual:$wgDBservers explains it.
Note that if you're using a single database server, you better use $wgDBserver with $wgDBuser and $wgDBpassword Ciencia Al Poder (talk) 20:03, 30 September 2015 (UTC)

Why a Colon Before Category: Links?

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


Hey there, why must the be a colon before Category: links? Oscitare (talk) 19:57, 29 September 2015 (UTC)

Because without it you'd be adding the page to the category, rather than just referring to the category. Clump (talk) 03:07, 30 September 2015 (UTC)
And for the part "why a colon and not another sign":
Because the developers think that a normal page name does not start with a colon. That makes the colon a perfect character to give it a special meaning, in this case: Create a link to the category, but do not add the page to the category itself. 88.130.107.89 (talk) 13:30, 1 October 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Random "File not found" error

Set $wgCacheEpoch when you change your URL scheme

I installed mediaWiki in a folder under my Apache home - lets assume the folder name was enciclopedie and I was accesing it at http://123.123.123.123/enciclopedie/. After testing and deciding that this is what I need, I made a different folder - carteamuntilor.ro - and I moved the wiki files from folder enciclopedie to the folder carteamuntilor.ro, keeping the same database (MySQL on localhost). I am now accessing the mediaWiki instance at www.carteamuntilor.ro (domain and DNS entries are configured at my registrar). The problem that I'm having is that randomly some links are not working properly because instead of pointing to

www.carteamuntilor.ro/index.php?title=some_title

they are pointing to

www.carteamuntilor.ro/enciclopedie/index.php?title=some_title

If I go to editing the page with the wrong links and just save it without any modification, links are changing to the correct URL, but it might occur again later with no apparent reason. I have no ideea how to fix that.

You can see an example of this issue here. See the wrong links in Munți section (containing the folder enciclopedie in the URL) while everything else has the correct URL. If you click on a wrong link it will generate a 'File not found' error. Sorin.sfirlogea (talk) 20:39, 29 September 2015 (UTC)

What is your $wgScriptPath set to? Also, have you checked your Apache configuration? Malyacko (talk) 07:36, 30 September 2015 (UTC)
$wgScriptPath = ""
Can't see anything wrong with Apache configuration:
<VirtualHost *:80>
DocumentRoot /var/www/html/carteamuntilor.ro
ServerName carteamuntilor.ro
ServerAlias www.carteamuntilor.ro
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/carteamuntilor.ro
<Directory /var/www/html/carteamuntilor.ro>
AllowOverride FileInfo AuthConfig
Allow from all
Options Indexes FollowSymLinks
</Directory>
</VirtualHost> Sorin.sfirlogea (talk) 14:50, 30 September 2015 (UTC)
This happens because pages are cached in the parser cache, with the previous URL scheme. This is fixed itself whenever someone edits that page (even a null edit).
I think you can use $wgCacheEpoch to force this cache to expire. Ciencia Al Poder (talk) 19:49, 30 September 2015 (UTC)
I introduced the $wgCacheEpoch in LocalSettings.php and the problem seems to be solved. Let's hope that is for good. Thanks, Ciencia! Sorin.sfirlogea (talk) 20:44, 30 September 2015 (UTC)
Coming back with this topic, unfortunately. Latest evolutions:
  • still got the problem, randomly, although $wgCacheEpoch is in place
  • what I noticed is that I just need to open LocalSettings.php file for editing, change nothing, just save it and the problem is fixed
But the issue appears again, later. Sorin.sfirlogea (talk) 10:48, 10 October 2015 (UTC)

Help with multiple Wiki structure

I'm building a videogame community website that will also include Wikis for several games. The website should have one users database which will be used on all Wikis as well as the other areas of the website (discussion forum, etc.). I'm planning to use Mediawiki as the main framework behind this website, as the Wiki aspect of the website will be one of the main features.

I have no prior experience with Mediawiki, but after looking around I've found several helpful pages on this topic. Mainly: Manual:Shared database and Manual:Wiki family.

I have come to the conclusion that I will have to use the following structure for my website:

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

Main Wiki (Will serve as the core of the website, includes the main database for all registered users and additional website features, also includes links to all the Sub Wikis)

- Sub Wiki1 (Contains Wiki for a specific game)

- Sub Wiki2

- Sub Wiki3

The folder structure will be like this:

DomainName.com <- Main WIki

Domainname.com/Sub_Wiki1 <- Sub Wiki1

Domainname.com/Sub_Wiki2 <- Sub Wiki2

Etc.

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

Basically, I want the user to log in once and have access to all Wikis located on the website without having to create additional accounts on the Sub Wikis.

1. Is this the correct way to build a website with a structure like this?

2. Will following the instructions on these pages allow users to log in to the Main Wiki and use the same login session on all of the Sub Wikis?

3. Upon editing a page on one of the Sub Wikis, will that event be shown on the profile of the user (Located only on the Main Wiki)? Same question for all other user events on the Sub Wikis.

I really want to make sure I'm heading in the right direction in building this website. I wouldn't want to find out later in the process that my whole foundation is bad and needs to be rebuilt from the start.

Thank you for reading. 92.110.165.206 (talk) 05:18, 30 September 2015 (UTC)

Could you elaborate why you want to set up several wiki instances instead of just one wiki which would be way easier? I have not seen any argumentation for that yet in your posting. :) Malyacko (talk) 07:29, 30 September 2015 (UTC)
Hey Malyacko, thank you for your reply.
I want users to be able to search the invidual Wikis without having results from the other Wikis showing up. Also, the games are quite similar and will contain similar page categories. (for example: Equipment category) If there was just one Wiki, then this category would quickly get cluttered with Equipment from several games, which is what I want to avoid. As far as I can tell, this is the best option to achieve that.
Do you think there is a better way to do this? 92.110.165.206 (talk) 11:05, 30 September 2015 (UTC)

Flow Extension and VisualEditor issue

I get this error when I'm trying to use VisualEditor in Flow conversations:

[9149bd06] Exception Caught: Conversion from 'html' to 'wikitext' was requested, but core's Parser only supports 'wikitext' to 'html' conversion.

VisualEditor is working on other sites normally.

I have these lines in my LocalSettings.php:

$wgVisualEditorParsoidURL = 'http://localhost:8000';

$wgVisualEditorParsoidForwardCookies = true;

$wgSessionsInObjectCache = true;

$wgFlowContentFormat = 'html'; $wgFlowEditorList = array( 'visualeditor', 'none' );


81.22.162.228 (talk) 06:24, 30 September 2015 (UTC)

Parsoid/Debugging Malyacko (talk) 07:24, 30 September 2015 (UTC)
Parsoid is debugging html to wikitext normally. Dont know what to do, seriously. 81.22.162.228 (talk) 06:38, 1 October 2015 (UTC)
Well, the error message says "core's Parser only supports 'wikitext' to 'html' conversion." I might be wrong but that sounds like it's not using Parsoid at all but the old MediaWiki core parser? Malyacko (talk) 08:50, 1 October 2015 (UTC)
Yes, that's true. But how i configure it to use Parsoid? VisualEditor is working without problems on other pages. 81.22.162.228 (talk) 09:09, 1 October 2015 (UTC)
If i add this $wgFlowParsoidURL = 'http://localhost:8000'; (which is exactly the same address as $wgVisualEditorParsoidURL = 'http://localhost:8000';) Flow gives [3d590fb2] Exception Caught: Failed contacting Parsoid 81.22.162.228 (talk) 12:21, 1 October 2015 (UTC)
Well, probably because Parsoid is simply not running? To get a better stacktrace for the exception: How to debug. Malyacko (talk) 08:36, 2 October 2015 (UTC)
I've checked. Parsoid is running. The service is active and I can access it from server http://localhost:8000 81.22.162.228 (talk) 11:32, 2 October 2015 (UTC)

$wgSecureLogin not working on 1.19.22

Hi! I'm still using 1.19.22 and wanted to secure my login process through https. I set $wgSecureLogin to true and $wgServer to a protokoll relative urls as adviced. But the only thing changed is a checkbox appearing beyond the login form to set if the user wants to stay on https after login. But neither is a user redirected to https for the login form, nor is the form itself posted to https. The URL of my wiki is cedegawiki.net. Bachsau (talk) 08:25, 30 September 2015 (UTC)

Version 1.19 is ancient software which has security issues. Support ended in May 2015. I am not sure how much you can actually "secure your login process" if you run such software versions. Please upgrade to a secure and supported system. Malyacko (talk) 08:48, 1 October 2015 (UTC)

Intermittent database connection errors

My website every 5-20 clicks gives me a database connection error. I've enabled logging and get.

Sorry! This website is experiencing Technical Difficulties.

Try waiting a Few minutes and reloading.

(Can not touch the database server: Unknown MySQL server host 'dbmaster' (0) (dbmaster))

Backtrace:

# 0 /var/www/artistwiki/includes/db/LoadBalancer.php(754): DatabaseBase-> reportConnectionError ('Unknown error (...')
# 1 /var/www/artistwiki/includes/db/LoadBalancer.php(477): LoadBalancer-> reportConnectionError ()
# 2 /var/www/artistwiki/includes/GlobalFunctions.php(3662): LoadBalancer-> getConnection (-1, Array, false)
# 3 /var/www/artistwiki/includes/cache/LocalisationCache.php(1159): wfGetDB (-1)
# 4 /var/www/artistwiki/includes/cache/LocalisationCache.php(404): LCStoreDB-> get ('gb-en', 'deps')
# 5 /var/www/artistwiki/includes/cache/LocalisationCache.php(450): LocalisationCache-> isExpired ('en-gb')
# 6 /var/www/artistwiki/includes/cache/LocalisationCache.php(326): LocalisationCache-> initLanguage ('en-gb')
# 7 /var/www/artistwiki/includes/cache/LocalisationCache.php(260): LocalisationCache-> loadItem ('en-gb', 'fallback')
# 8 /var/www/artistwiki/languages/Language.php(4151): LocalisationCache-> getItem ('en-gb', 'fallback')
# 9 /var/www/artistwiki/languages/Language.php(237): Language :: getFallbacksFor ('gb-in')
/var/www/artistwiki/languages/Language.php(196 # 10): Language :: newFromCode ('en-gb')
/var/www/artistwiki/includes/Setup.php(546 # 11): Language :: factory ('gb-in')
/var/www/artistwiki/includes/WebStart.php(156 # 12): require_once ('/ var / www / artist ...')
/var/www/artistwiki/index.php(43 # 13): require ('/ var / www / artist ...')
# 14 {main}
Does anyone know why this could be happening?

2A00:1068:0:204:758D:C129:518E:85FD (talk) 15:17, 30 September 2015 (UTC)

Unknown MySQL server host 'dbmaster' is the key error message here. That looks like a DNS problem. The DNS of the server seems to be failing to resolve that host name intermittently (maybe it's overwhelmed by many requests?). Try using an IP address instead at least to discard other problems. Ciencia Al Poder (talk) 19:42, 30 September 2015 (UTC)

Очень плохая статья!

  • Очень плохая статья, с использованием ненормативной лексики: https://en.wikipedia.org/wiki/Obama_chmo!, https://en.wikipedia.org/wiki/Putin_khuilo! . Очень прошу Вас разобраться и повлиять на разместивших статью. Данная статья дискредитирует имя "Wiki"! Ведь "Wiki" не в коем случае не занимается политикой, потому что так оно и есть?!
  • Machine translation in English version:
  • Very poor article, with the use of profanity: https://en.wikipedia.org/wiki/Obama_chmo! , https://en.wikipedia.org/wiki/Putin_khuilo! . I beg You to understand and influence distributed the article. This article discredits the name "Wiki"! Because "Wiki" is not in any way engaged in politics, because the way it is?! Timurer (talk) 20:37, 30 September 2015 (UTC)
Discussing content of English Wikipedia articles needs to happen on English Wikipedia (like the discussion page of an article), not here on mediawiki.org which is for software related discussions. Malyacko (talk) 08:44, 1 October 2015 (UTC)

Texture Cache? - Point clouds from textured models

Hi,

I am using CC to produce dense point clouds from textured models. My texture size is 8192 x 8192, however these are reduced down when importing into CC

"[OpenGL] Image is too big to fit in texture cache! Reducing it to (4096 x 4096) for display!"

How can I change the texture cache to allow higher resolution textures?

Dom. 138.130.65.90 (talk) 21:04, 30 September 2015 (UTC)

What is "CC"? Are you sure your question is related to MediaWiki? Malyacko (talk) 08:42, 1 October 2015 (UTC)

How do we keep out "the unwanted" stuff?

http://wiki.wild-wrangler.com/view/Special:RecentChanges

Here we see false Users being created every day. And when I try to see Recent Changes, all I see is user creation logs. How do I keep from seeing that & how do we prevent them from creating spam user accounts? ~ Jeydo (talk) 23:48, 30 September 2015 (UTC)

Manual:Combating spam Malyacko (talk) 08:41, 1 October 2015 (UTC)
Category:Support desk archives Category:Support desk archives using deprecated source tags Category:Support desk archives with syntax highlighting errors