Jump to content

Project:Support desk/Flow/2014/04

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

How to add wikitext into a skin

How can I add wikitext into my skin file?
I tried the following but it didn't work:

global $wgOut;
$wgOut->parse( $wikitext );

Stefahn (talk) 14:57, 1 April 2014 (UTC)

You possibly can. Where in PHP do you want to add the wikitext? Are you using a skin-related hook? Or are you inside a skin file like Vector.php (or in the according file of your own skin maybe)? 88.130.101.135 15:13, 1 April 2014 (UTC)
I'm inside Vector.php. Thanks. Stefahn (talk) 18:07, 1 April 2014 (UTC)
In the template file you can put HTML. If you want to put wikitext there, then you would have to have this wikitext rendered afterwards; meaning you would basically have to render two parts of your skin: The text from the according wiki page and your wikitext from the skin file. That is not good.
If it only is one certain text, you could register it as a language label - that would then also make the text translatable.
If the text should always appear at one fixed place inside/directly above or directly below the actual page content, then I would try with one of the skin hooks - in some of them you can use wikitext. 88.130.101.135 20:57, 1 April 2014 (UTC)
Thanks for your helpful advice!
I could solve it by adding the plain HTML code. It was the SMW info box - I thought I had tested this before and it didn't work by adding the HTML code, but now it did. Stefahn (talk) 09:49, 2 April 2014 (UTC)

AD and SSO extensions

Hello guys. I have a question for anyone willing. I'm getting a bit confused with all of the different extensions for both SSO and AD/LDAP integration, so I wanted to get some advice:

MediaWiki: Newest version, running on Windows 2008 R2 on WAMP

What I would like to do is authenticate users with my AD environment. When they access my Wiki, I would like them to be auto-authenticated with their current login credentials. I would also like the ability to restrict certain pages from individuals or groups to keep certain company information close hold to a specific set of users. I've seen about a million different extensions, so could anyone suggest the ones that would best meet these needs? I'd appreciate it! 66.86.64.254 (talk) 03:02, 2 April 2014 (UTC)

404 Error on Short URL

Hi,

I just installed Mediawiki on shared hosting Linux Plan. After that I went to http://shorturls.redwerks.org/ to create short url for the wiki. I created the .htaccess file and also made changes in the LocalSetting.php. But now I am getting 404 error on the short url generated for the wiki. Please help. Kindly tell what I have done wrong.

The .htaccess file looks like this

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

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?view/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/view/thumb.php?f=$1&width=$2 [L,QSA,B]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?view/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/view/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]

101.59.106.91 (talk) 07:25, 2 April 2014 (UTC)

Your rewrite rules are meaningless without knowing the directory structure of your webserver. Basically, where is MediaWiki relative to the document root.
404 errors are logged in the apache error_log, so you can look inside that log file and see what path it's trying to send to the client (which didn't found).
Posting an example of such errors (from the log) here would also help. Ciencia Al Poder (talk) 09:26, 2 April 2014 (UTC)
Thanks for the reply. All the mediawiki files are located inside public_html/view folder. The URL would be like mydomain.com/view for the media wiki. After using short url it is generating url like mydomain.com/view/wiki/Main_Page
The error I am getting in browser is “Not Found
The requested URL /view/wiki/Main_Page was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.”
I tried to find error details in the Error Log of cPanel but nothing was mentioned there. I am not sure where else would be the error logs. 101.56.212.203 10:39, 2 April 2014 (UTC)
Hi,
Sorry for another reply but I found the error log. Hope this is what you were looking for.
[Wed Apr 02 10:40:58 2014] [error] [client 101.56.212.203] File does not exist: /home/careeing/public_html/404.shtml
[Wed Apr 02 10:40:58 2014] [error] [client 101.56.212.203] Negotiation: discovered file(s) matching request: /home/careeing/public_html/view/wiki (None could be negotiated).
[Wed Apr 02 10:40:51 2014] [error] [client 101.56.212.203] File does not exist: /home/careeing/public_html/404.shtml
[Wed Apr 02 10:40:51 2014] [error] [client 101.56.212.203] Negotiation: discovered file(s) matching request: /home/careeing/public_html/view/wiki (None could be negotiated).
[Wed Apr 02 10:37:47 2014] [error] [client 101.56.212.203] File does not exist: /home/careeing/public_html/404.shtml
[Wed Apr 02 10:37:47 2014] [error] [client 101.56.212.203] File does not exist: /home/careeing/public_html/favicon.ico
[Wed Apr 02 10:37:46 2014] [error] [client 101.56.212.203] File does not exist: /home/careeing/public_html/404.shtml
[Wed Apr 02 10:37:46 2014] [error] [client 101.56.212.203] Negotiation: discovered file(s) matching request: /home/careeing/public_html/view/wiki (None could be negotiated).
[Wed Apr 02 10:34:14 2014] [error] [client 101.56.212.203] File does not exist: /home/careeing/public_html/404.shtml
[Wed Apr 02 10:34:14 2014] [error] [client 101.56.212.203] File does not exist: /home/careeing/public_html/favicon.ico
[Wed Apr 02 10:34:13 2014] [error] [client 101.56.212.203] File does not exist: /home/careeing/public_html/404.shtml
[Wed Apr 02 10:34:13 2014] [error] [client 101.56.212.203] Negotiation: discovered file(s) matching request: /home/careeing/public_html/view/wiki (None could be negotiated).
101.56.212.203 10:42, 2 April 2014 (UTC)
Can somebody help with the problem? 123.239.194.179 15:42, 2 April 2014 (UTC)
Your RewriteRules seems fine, the problem is apparently Option MultiViews. See [1] and [2] Ciencia Al Poder (talk) 19:34, 2 April 2014 (UTC)

no content in pages

i have a mediawiki on my localhost. everything s right, but i can't see content inside of a page (status = read). when i change the stat to "edit" the content is inside of the editor and i can read it, but not when i change to "read".

can anybody help me? 88.67.29.118 (talk) 08:12, 2 April 2014 (UTC)

See Manual:Errors and symptoms#All pages have no content, but when editing a page the wiki text is there. It's caused by a PCRE upgrade.
This error is fixed in latest 1.22 releases, but apparently it hasn't been backported to 1.19 and 1.21 yet. You coould apply the patch for your version until a new release is made which would include this fix. You can look for the patch for your version here: [3] Ciencia Al Poder (talk) 09:31, 2 April 2014 (UTC)
The fix is now also available for MediaWiki 1.19 with MediaWiki 1.19.15. 88.130.66.63 23:45, 2 April 2014 (UTC)

Problem with templates & spacer

Hey

I have a problem with my template, when i created one i get a space at the top so that everything is shot down a bit wich i dont want and dont know why it happens. Also as seen in the image i added i also get a ' where the name should be, anyone know how to fix these 2 things ?

Image: http://111.imagebam.com/download/fxliBcaSu04H7iFvdZ-qdA/31839/318389487/asdads.jpg

"template"

<noinclude>
Syntax:
<pre>
{{Högskolainfo
|namn=

|bild=[[Bild:frage.jpg|150px|center|namn på föreningeb]]
|grundatår=
|grundatplats=
|skola=
|ordförande = 
|Lärarkår =
|Admin. Personal =
|Studerande = 
|Säte =
|Medlemskap =
}}

Högskolainfo


78.70.66.111 (talk) 11:36, 2 April 2014 (UTC)

The space at the top is there because it's inside the template (there's a space between </noinclude> and <includeonly>.
The "'" may be because you haven't specified the namn parameter Ciencia Al Poder (talk) 09:42, 3 April 2014 (UTC)
How can i make it the space go away? i checke the the template and tried removing the space but it wont go away :/ 78.70.66.111 10:30, 3 April 2014 (UTC)

Try this:

<noinclude>
Syntax:
<pre>
{{Högskolainfo
|namn=
|bild=[[Bild:frage.jpg|150px|center|namn på föreningeb]]</nowiki>
|grundatår=
|grundatplats=
|skola=
|ordförande = 
|Lärarkår =
|Admin. Personal =
|Studerande = 
|Säte =
|Medlemskap =
}}
</pre>
[[Kategori:Mallar|Högskolainfo]]
</noinclude><includeonly>
{| border="1" cellpadding="4" style="border-collapse: collapse; border: 1px solid #aaaaaa; background-color: #f9f9f9; margin-bottom: 0.5em; margin-left: 1em; padding: .2em; float: right; clear: right; width: 20em; font-size: 95%;"
|+ style="font-size: larger;" | '''{{{namn}}}'''
|-
| colspan=2 align=center| {{{bild|}}}
|-
| '''Grundat:'''
| {{{grundatår|}}}
|-
| '''Grundat:'''
| {{{grundatplats|}}}
|-
| '''Skola:'''
| {{{skola|}}}
|-
| '''Lärarkår:'''
| {{{Lärarkår|}}}
|-
| '''Admin. personal:'''
| {{{Admin. personal|}}}
|-
| '''Studerande:'''
| {{{Studerande|}}}
|-
| '''Säte:'''
| {{{Säte|}}}
|-
| '''Medlemskap:'''
| {{{Medlemskap|}}}
|-
|}
</includeonly>

Ciencia Al Poder (talk) 17:07, 4 April 2014 (UTC)

It's an issue with using <includeonly> in conjunction with <noinclude>, which recognizes the immediate (or the last) newline in <includeonly> as a legit, intended breakline in output.
Eg, if the template has the following:
<noinclude>
DON'T INCLUDE
</noinclude>
<includeonly>
INCLUDE
</includeonly>
<noinclude>
DON'T INCLUDE
</noinclude>
Including it will produce "INCLUDE" text with space on top and bottom. To fix it, remove the newline inside <includeonly>, eg:
<noinclude>
DON'T INCLUDE
</noinclude>
<includeonly>INCLUDE</includeonly>
<noinclude>
DON'T INCLUDE
</noinclude>
In OP's case, he should remove the first newline in <includeonly>
...
[[Kategori:Mallar|Högskolainfo]]
</noinclude>
<includeonly>{| border="1" cellpadding="4" style="border-collapse: collapse; border: 1px solid #aaaaaa; background-color: #f9f9f9;
...
Again, it's only an issue if you have <includeonly> directly preceded and/or followed by <noinclude>. Fereal (talk) 19:46, 5 April 2014 (UTC)

[RESOLVED] Spelling error in desc of a gadget

When I go to user preferences on this site (https://www.mediawiki.org/wiki/) and then Gadgets, the first one is called "Site: General utilities needed by this wikis's templates and portals." Shouldn't that be "wiki's" rather than "wikis's"? Nurg (talk) 00:31, 3 April 2014 (UTC)

Somebody with sufficient rights could edit https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-site&action=edit or you could bring it up on the related Discussion/Talk page. AKlapper (WMF) (talk) 10:08, 3 April 2014 (UTC)
You can for example ask User:Krinkle; he put this text there.
Btw: Since a wiki is no person, it should be needed by templates and portals of this wiki. or maybe even better
''Site'': General utilities needed by the templates and portals in this wiki. 88.130.98.250 12:05, 3 April 2014 (UTC)
Yes Done Bawolff (talk) 20:40, 4 April 2014 (UTC)

Upgrade Wiki from 1.18 to 1.22.4

after upgrading from 1.18 to 1.22.4 I recieve an errore notice, opening my site: "Warning: require_once() [function.require-once]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in /home/dorotinf/public_html/wikigenia/includes/GlobalFunctions.php on line 2300

Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$' in /home/dorotinf/public_html/wikigenia/includes/GlobalFunctions.php on line 2300" Can anyone help resolve? Noham100 (talk) 10:58, 3 April 2014 (UTC)

Hi!
> We selected 'UTC' for 'UTC/0.0/no DST' instead in /home/dorotinf/public_html/wikigenia/includes/GlobalFunctions.php on line 2300
Please do not modify MediaWiki core files. Undo your changes and the syntax error will be gone.
To fix the timezone problem, set $wgLocaltimezone to a value, which fits your location. E.g.
$wgLocaltimezone = 'UTC';
date_default_timezone_set($wgLocaltimezone);
See, if the line date_default_timezone_set($wgLocaltimezone); is needed; I am not sure right now. 88.130.98.250 12:02, 3 April 2014 (UTC)
After checking includes/Setup.php, I think that you do not need the line date_default_timezone_set($wgLocaltimezone);. Should you still get this timezone notice, you have most probably misspelled the timezone identifier. 88.130.98.250 14:18, 3 April 2014 (UTC)
Where do I find the file includes/setup.php? Noham100 (talk) 17:34, 3 April 2014 (UTC)
Bellow is the Timezone function in Localsettings.php:
 #Set Default Timezone
$wgLocaltimezone = "America/Los_Angeles";
$oldtz = getenv("TZ");
putenv("TZ=$wgLocaltimezone");
 # Versions before 1.7.0 used $wgLocalTZoffset as hours.
 # After 1.7.0 offset as minutes
$wgLocalTZoffset = date("Z") / 60;
putenv("TZ=$oldtz");
$wgLocaltimezone = "Asia/Jerusalem";
You think I have to delete this function? Doesn't it adapt the time to the reigion I live in? Noham100 (talk) 17:35, 3 April 2014 (UTC)
Thanks, but I didn't make any changes.
I made the upgrade by extracting the ZIP file I downloaded from MediaWiki, and used the original adapted files from the previous revision.
LocalSettings.php for example.
how can I run the site and debug the exact location where it crushes? Noham100 (talk) 17:29, 3 April 2014 (UTC)
Two things:
  • Your above error looks like the file includes/GlobalFunctions.php has been changed on or around line 2300. This is the place where MediaWiki currently crashes. Core files should not be modified. Undo any changes you did.
  • It is enough to set $wgLocaltimezone once. Just remove all the lines you posted above.
Then set
$wgLocaltimezone = 'Asia/Jerusalem';
$wgLocalTZoffset = date("Z") / 60;
It is important to set $wgLocaltimezone first and then to use the date() function. For a list of possible time zone identifiers see http://en.wikipedia.org/wiki/List_of_zoneinfo_time_zones 88.130.98.250 21:32, 3 April 2014 (UTC)
As explained in Manual:Upgrading, you should not unpack the new installation over the old one. You should unpack on an empty folder, and then copy the needed files (like LocalSettings.php, images... as explained there) to the new installation. Ciencia Al Poder (talk) 10:18, 5 April 2014 (UTC)
What you say is right; strange errors can happen if you don't put the new files in a new folder (meaing: if you still have files from old MediaWiki versions in the folder). But I am not sure, if this is the problem here... 88.130.85.15 11:00, 5 April 2014 (UTC)
Yes, the timezone thing shouldn't be caused by this, but the "Parse error" is strange since that line doesn't contain anything special to cause this error, and may be caused by an incompete upload of those files. Ciencia Al Poder (talk) 12:44, 5 April 2014 (UTC)
That is possible, but since he wrote "We selected 'UTC' for 'UTC/0.0/no DST' instead in /home/dorotinf/public_html/wikigenia/includes/GlobalFunctions.php on line 2300", my guess still is that he modified this place of the file (maybe to "fix" the timezone error and that a syntax error was added at that point). 88.130.85.15 21:55, 5 April 2014 (UTC)
Thanks for your asitance. The problem was that after upgrading MediaWiki you have sync LocalSettings with all updated extensions. Noham100 (talk) 17:18, 15 April 2014 (UTC)

Sanitizer.php not uploading

I'm a bit confused by this, and I apologize if it might be a GoDaddy/Filezilla question more than a Mediawiki question.

I've uploaded the entire package to a folder in my godaddy Linux shared hosting account, with PHP 5.4.x / MySQL 5. I get the entry page popping up, telling me to set up my wiki, then the next page gives me the following error:

Fatal error: require(): Failed opening required '/wiki/includes/Sanitizer.php'

And the thing is, it's right. I didn't get any errors from Filezilla, but Sanitizer.php did not upload with the rest of the files. Not only that, but I can't upload it on its own -- no errors, and I can see that it uploads, then it's immediately deleted.

Any ideas why this might be happening? I've tried renaming the file, uploading it to different locations on the server, etc, but still can't get it to stick -- I see it appear on the server side file list, then it disappears. 50.148.162.61 (talk) 17:44, 3 April 2014 (UTC)

Interesting issue. I know that FileZilla sometimes displays files in folders, which are in fact not or no longer there. I can e.g. see that when I have different tabs open in FileZilla, which both show the same folder on my local PC. When I then delete a file in one of these tabs and then change to the other, this file is still displayed although it does no longer exist. Maybe that is the kind of problem you are facing as well? Meaning: Maybe the file never really exists on the server?
FileZila has a log, which you can view with one of the toolbar buttons. There FileZilla logs any uploads and also their results. What does the log show for an upload of this file?
Does GoDaddy offer another option to upload files? Do they e.g. have a webuploader you can try? 88.130.65.73 22:19, 3 April 2014 (UTC)

[RESOLVED] $wgMinimalPasswordLength

There is quite an interesting question about changing this setting at this spot. It will be nice to know the exact behaviour of MW here. Cheers [[kgh]] (talk) 19:32, 3 April 2014 (UTC)

I have answered there. 88.130.65.73 22:13, 3 April 2014 (UTC)

Missing interface messages

We're aware of the missing interface messages. Forcing a sync of localization files will almost certainly fix the problem, but since this is the second time this week that this has happened, I'd like to ask your indulgence as we engineers poke around a little bit longer and try to figure out the underlying cause of the failure. Sorry for the inconvenience. --Ori.livneh (talk) 03:21, 4 <april> 2014 (UTC)

Chad fixed this by reverting to 1.23wmf20. Waiting on the localisation team to fix it. Andrew Garrett (talk) 04:38, 4 April 2014 (UTC)
@Ori.livneh and Werdna: Um, why was 1.23wmf21 deployed? πr2 (tc) 03:15, 5 April 2014 (UTC)
Werdna reverted to MW 1.23wmf20. Testwikidata and test2wiki were also reverted, but testwiki will remain 1.23wmf21. Further information: wikitech:Incident_documentation/20140403-Deploy, gerrit:124046, IRC log 2014-04-04 for #wikimedia-operations, IRC log 2014-04-05 for #wikimedia-operations (starting around [02:48:23] when Jdforrester reported it), wikitech:Special:Diff/108612/108722. Thank you to everyone involved. πr2 (tc) 04:05, 5 April 2014 (UTC)

Special groups edit pages belong to them&change default mail content

MediaWiki 1.22.4 PHP 5.4.26 (apache2handler) MySQL 5.5.36

Hi~Now my wiki lets all users except "sysop" unable to edit pages. However, now the requirement changed: let special group like:group A ,can edit the page belong to that group. What should I do now?

And the other question is that is it possible to change the content of mail which is sent to users who monitor some pages? And which file should I edit?

Any help will help me!! Thanks~ Rachel1208 (talk) 08:12, 4 April 2014 (UTC)

I do not understand what "belong" means when referred to pages. Maybe you're looking for page protection with custom restriction levels.
To change default email messages, go to "Special:AllMessages?prefix=enotif" on your wiki and create custom messages that you want to overwrite. Ricordisamoa 00:50, 12 April 2014 (UTC)
Hello!Thank you for your kind reply!
I am sorry the first question was not clear. And I;d like to restate it:
Now,my users are divided into several groups like sysop, groupA,groupB, and no one has the rights to edit pages except sysop according to my BOSS requirements.
However, he now requires that members in groupA can only edit the page “Department A”, meanwhile, the page “company A" can only be edited by sysop and menbers in groupA. And the same to groupB which can only edit the page:“Department B".
I have tried to protect the page "Department A", however, it showed that that page can only be edited by sysop or autoconfiremed users or all users...There were no other groups that I established before, like groupA.
I hope the new description will not confuse you :)
Thanks! Rachel1208 (talk) 07:59, 17 April 2014 (UTC)
Use $wgRestrictionLevels:
// add 2 additional protection levels
array_push($wgRestrictionLevels, 'groupA', 'groupB');
// give the "groupA" permission to users in the "groupA" group
$wgGroupPermissions['groupA']['groupA'] = true;
// give the "groupB" permission to users in the "groupB" group
$wgGroupPermissions['groupB']['groupB'] = true;
// give the "groupA" and "groupB" permissions to sysops (needed so sysops can apply this protection levels to pages)
$wgGroupPermissions['sysop']['groupA'] = true;
$wgGroupPermissions['sysop']['groupB'] = true;
Then, you should be able to protect "Department A", "company A" and "Department B". Ricordisamoa 09:42, 17 April 2014 (UTC)
Oh~~yes! That is exactly what I want!
Thx thx and thx!!! Rachel1208 (talk) 06:23, 21 April 2014 (UTC)
Sorry to bother you again, Samoa. I have to say I met a new problem..
Because I want to let users input their email address when they do registration, I tried to use the same way to change the content of "createacct-email-ph"and"createacct-email-optional" as you told me, and then I thought the registration interface would have changes at the same time.
However, the content was still the custom message.. :( Rachel1208 (talk) 08:15, 22 April 2014 (UTC)
Hi Rachel,
go to the page, on which you see the wrong texts. Then add to the URL ?uselang=qqx or &uselang=qqx, if there already are parameters. You will see the name of the system messages, which MediaWiki is using on the page. Now pick that message, which you want to change, let's say it would be called "logintext" and then go to the wiki page MediaWiki:Logintext. Being a wiki admin, you can edit this text to the text you want. You can edit languages by adding them to the URL, e.g. you can edit the German text by modifying MediaWiki:Logintext/de. 88.130.112.50 09:53, 22 April 2014 (UTC)
Hi~thank you for your help firstly.
However, I have to say it didn't work. When I changed the text of for example,
"createacct-email-ph" as admin, even it had been changed successfully, there was no change on the registration page where "createacct-email-ph" was used... Rachel1208 (talk) 03:34, 23 April 2014 (UTC)
Try purging all affected messages and pages, and running rebuildLocalisationCache.php. Ricordisamoa 23:16, 23 April 2014 (UTC)
Sorry, but it did not work..
And I found a strange thing, when I click the "special page" and click "creat account" as admin, the content was changed; when I click "creat account" as a unregistered user, the content has no change.
I was really confused...
And would you mind to tell me in which file are these messages called? For example, I want to replace "createacct-email-optional" with "createacct-email-required" on the creat account
page.
Sincerely thank you for your reply Rachel1208 (talk) 06:48, 24 April 2014 (UTC)
You should not edit source files directly, instead try setting $wgEmailConfirmToEdit to true. Ricordisamoa 09:57, 24 April 2014 (UTC)
Rachel1208 (talk) 02:17, 22 April 2014 (UTC)
114.66.4.212 08:09, 22 April 2014 (UTC)

[RESOLVED] error at git.wikimedia.org

hi I get this error when going to git.Wikimedia.org

Request: GET http://git.wikimedia.org/summary/mediawiki%2Fextensions%2FBetaFeatures, from 10.64.0.172 via cp1044 cp1044 ([10.64.0.172]:80), Varnish XID 593382850 Forwarded for: 2.223.43.229, 10.64.0.172 Error: 503, Service Unavailable at Fri, 04 Apr 2014 14:54:50 GMT 2.223.43.229 (talk) 15:02, 4 April 2014 (UTC)

Confirmed; the git server is curently not available. 88.130.65.73 16:09, 4 April 2014 (UTC)
Ok. 176.26.98.212 16:10, 4 April 2014 (UTC)
Works for me (now anyways). Bawolff (talk) 20:34, 4 April 2014 (UTC)
Yes, is working again. 88.130.65.73 21:47, 4 April 2014 (UTC)

Duplicate article name in Category page

Hi, i imported few thousand article to my mediawiki site. At the time of importing the articles all the article had a common category. then i replaced that category with a new one. i used 'pywikibot replace.py' to replace the category. now the problem is the previous category shows that it has has pages but it is not. and some cases it shows duplicate page names. I used the Manual:rebuildall.php but it did not solve the issues. what might be the reason of this and what is the solution? Nasir Khan Saikattalk 16:18, 4 April 2014 (UTC)

Is your wiki publicly accessible so we can take a look? Ciencia Al Poder (talk) 18:43, 4 April 2014 (UTC)
+1 to do you have a link. - duplicate page names in a category sounds super weird and should not be possible
Also, are you using file cache? Bawolff (talk) 20:32, 4 April 2014 (UTC)
The wiki is publicly available but it is not publicly editable. Another thing is the language is not English. That is why i did not mentioned the link earlier.
The Category 'Banglapedia' (http://bn.banglapedia.org/index.php?title=Category:Banglapedia https://www.dropbox.com/sh/txzcb6zdw461xde/JhhIB-58Pc/banglapedia%20issue/list.jpg ) should not list any article as i replaced this with the category 'বাংলাপিডিয়া'
http://bn.banglapedia.org/index.php?title=special:AllPages&from=A page lists all the pages and if you check the following image you can see the duplicate. I marked one duplicate name on the page but there are others too. https://www.dropbox.com/sh/txzcb6zdw461xde/Exe6ponqPd/banglapedia%20issue/list%20duplicate%20names.jpg
The marked article is http://bn.banglapedia.org/index.php?title=%E0%A6%85%E0%A6%A8%E0%A7%8D%E0%A6%A4%E0%A7%8D%E0%A6%AF%E0%A7%87%E0%A6%B7%E0%A7%8D%E0%A6%9F%E0%A6%BF%E0%A6%95%E0%A7%8D%E0%A6%B0%E0%A6%BF%E0%A6%AF%E0%A6%BC%E0%A6%BE
Page view: https://www.dropbox.com/sh/txzcb6zdw461xde/JqTGzc3x84/banglapedia%20issue/page%20view.jpg
Source: https://www.dropbox.com/sh/txzcb6zdw461xde/bvUWvZ00l7/banglapedia%20issue/page_edit%20mode.jpg Nasir Khan Saikattalk 08:55, 6 April 2014 (UTC)
This is really strange. And for some reason, on Category:Banglapedia, I've entered on page "অ-নবায়নযোগ্য শক্তি" but the title on the page is "অ-নবায়নযোগ্য শক্তি" instead. Doing CTRL+F and finding the title on the other page does not find it, so there are different characters.
Furthermore:
  • API:Categorymembers of বিষয়শ্রেণী:Banglapedia: [4]
    • The original page appears at the first position as <cm pageid="2601" ns="0" title="অ-নবায়নযোগ্য শক্তি" />
  • API:Categorymembers of বিষয়শ্রেণী:বাংলাপিডিয়া: [5]
    • The page that has a very similar title (transparently redirected from the first) appears at the second position as <cm pageid="11646" ns="0" title="অ-নবায়নযোগ্য শক্তি" /> (different Page ID)
Doing API:Revisions for those pages I get 1 revision (as if both pages were the same): [6]
But, doing API:Revisions for those page ID's I get 2 revisions, one with the first category, and other with the second: [7]
At the bottom of the content (and in the revision comment of one of them) it mentions that it was imported. How did you import those pages? Ciencia Al Poder (talk) 17:28, 6 April 2014 (UTC)
I found the page "অ-নবায়নযোগ্য শক্তি" in both category by CTRL+F. I am not sure why you missed it. the page id might be different but they have the same content. You can update any of the page and you will find the reflection on both pages.
I used "MwImporter" (http://www.donationcoder.com/Software/Mouser/mwimporter/index.html) to import the contents. I imported almost all the contents at the same time and due to some issues some pages were not imported and i imported those (about 1500 pages) last week directly via Mediawiki API.
how this issue can be resolved? Nasir Khan Saikattalk 17:46, 6 April 2014 (UTC)
Its the difference between combining characters ('BENGALI LETTER YA' (U+09AF) followed by 'BENGALI SIGN NUKTA' (U+09BC)), and precomposed characters ( Just 'BENGALI LETTER YYA' (U+09DF)).
MediaWiki expects all text to be in unicode Normal form C (NFC). Which means U+09DF is the proper encoding. Everything is supposed to be converted to this on save. Some import tools may import things incorrectly.
You can fix this by running the command cleanupTitles.php. Its also possible to clean up specific titles via the api (e.g. commons:MediaWiki:Invisible_characters_unveiled.js), but I would reccomend the maintenance script Bawolff (talk) 20:17, 6 April 2014 (UTC)
I used the cleanupTitles.php but it did not solved my issue. but it creates a list of sub pages under the page 'Broken (http://bn.banglapedia.org/index.php?title=Broken)'. any other ways to resolve? Nasir Khan Saikattalk 05:06, 9 April 2014 (UTC)

Tools to migrate from Twiki to MediaWiki

I am looking for tools that will let me move content from my Twiki to my MediaWiki. Any suggestions anyone? Rimille (talk) 00:04, 5 April 2014 (UTC)

There is a converter written 3 years ago at https://github.com/rmcastil/Twiki-to-Mediawiki.
There have been no major database changes in the last 3 years so chances are that script still works with current versions of MediaWiki. Otherwise I would install an older version of MediaWiki (e.g. 1.15 or what was current at that time) and do a normal upgrade afterwards. 88.130.98.43 00:40, 5 April 2014 (UTC)

[RESOLVED] problem at mediawiki main page

mediawiki main page looks weird because on the bas it has & this in them and some doint even say anything. 94.197.122.79 (talk) 12:29, 5 April 2014 (UTC)

What do you mean with "it has & this in them"? The main page looks fine. 88.130.85.15 12:42, 5 April 2014 (UTC)
oh they have fixed the problem now. but it look like they did not upload the messages right for the main page but it worked for other pages. but is now fixed. 94.197.122.79 14:03, 5 April 2014 (UTC)
Probably caused by #Missing interface messages Ciencia Al Poder (talk) 14:15, 5 April 2014 (UTC)

Update toolserver wiki to latest mediawiki

Hi why not update https://wiki.toolserver.org/view/Special:Version this to Mediawiki version 1.23. 86.135.250.172 (talk) 16:55, 5 April 2014 (UTC)

The right place to bring this up would be in a BUGREPORT Ciencia Al Poder (talk) 09:51, 7 April 2014 (UTC)
The Toolserver is going to be shut down soon: m:Future of Toolserver. Ricordisamoa 22:07, 8 April 2014 (UTC)

Search output mirrors search input regarding capitals

The search function delivers articles with the article title that was put in the search input box as search term. However, in the mediawiki that I use, the article title is exactly mirrored in the search output regarding capitals. Example: I search for «breakfast» (no capitals in the search term). The result correctly is the article «breakfast», but the article waas written and saved as «Breakfast». The output (article title displayed) mirrors the search input and alters the article tile concerning capitals. Another example: I use for «BREAKfast» and again, the correct article appears but this time the title has changed to «BREAKfast», which was «breakfas»t before and should read «Breakfast».

Any ideas to to chnage this straneg behavior? 91.0.138.116 (talk) 18:07, 5 April 2014 (UTC)

Hi, I am very much a newbie, I am doing a course that involves setting up a Google site and inserting images that comply to copyright laws, I would really appreciate it if someone could check to see if I have it right https://sites.google.com/site/kiwikatskorner/ Kiwikat (talk) 01:31, 7 April 2014 (UTC)

Please see https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia AKlapper (WMF) (talk) 09:26, 7 April 2014 (UTC)

Copying articles Wikipedia

Just let many other people, I have been trying to copy certain articles from Wikipedia to my own wiki. So far this has been on disaster after another. I only recently learned about the template system behind Wiki and export function.

Whatever I try to do, it always ends with an error or something not working, so you can imagine I'm getting a bit desperate now, as I just don't know how to get this working.. I have been trying to copy 1 certain page about a band to my own wiki (bacause I want to have the original layout), tried copying the source, tried copying templates, but in the end it still looks messed up! Hope something is able to help me with this. 80.56.90.149 (talk) 10:29, 7 April 2014 (UTC)

Please provide specific steps to reproduce and specific info about the problems that you're facing. "something not working" is too vague to help. AKlapper (WMF) (talk) 13:12, 7 April 2014 (UTC)
I have tried to copy the source text/code from a Wikipedia article and paste it into the same article on my site. You can then see it's missing templates. I've downloaded the Template: xml file and uploaded them on my site. The layout still isn't working properly.
I have tried to add 2 extensions, Scribunto and ParserFunctions, in the hope that things would get better. Unfortunately adding those to the LocalSettings.php will only produce errors within the article of giving me database erros when looking up an article (this mostly happen with ParserFunctions). It just seems like copying an article and uploading templates isn't enough. 80.56.90.149 15:04, 7 April 2014 (UTC)
You have to import Lua modules too. Ricordisamoa 09:09, 17 April 2014 (UTC)

[RESOLVED]Transfering site from text/html template to Mediawiki template <blockquote> and <em> not working on Mediawiki.

Hi,

I have two wiki sites and woud like to transfer articles from old one to new. Then appears problem with formatink.

Old page content type: content="text/html; charset=UTF-8"

New page content type: content="MediaWiki 1.19.5-1"

And this is code of my article:

Outside quote

quoted black word grey word grey word grey word black word grey word

Old site article looks: http://s23.postimg.org/t10ogt3pn/wiki1.png

And new: http://s4.postimg.org/g1nzff9sd/wiki2.png

So, my questioon: Its there a easy options for quoting and shadowing words? Gray Goo (talk) 14:00, 7 April 2014 (UTC)

blockquote and em works on MediaWiki (as you can see in your own post)
The differencies between both wikis may be to having different wiki code, or have different CSS rules applied. Ciencia Al Poder (talk) 09:36, 8 April 2014 (UTC)
Great top know that.
So, where i can finf files with wiki code and how identify it's THAT file?
I find LocalSettings.php file for new wiki and it have many extension apllyed. Maybe its enought to turn off some of them?
Thx for answer anyway! Gray Goo (talk) 12:11, 8 April 2014 (UTC)
For different wiki code, just edit both pages and compare what do you have in both edit textareas.
For different CSS, that may be custom CSS on the wiki. You may look at Manual:Interface/Stylesheets to see what pages are usually modified for that. Ciencia Al Poder (talk) 09:48, 9 April 2014 (UTC)
Okay, problem solved!
I edited both MediaWiki:Common.css pages, find intresting for me part of code and simpy copy from old page to new.
It works excelent.
Thx for your help Cienca!
Topic may be closed. Gray Goo (talk) 11:38, 10 April 2014 (UTC)

Mediawiki is not working in Private mode

Hi All, I am trying to setup internal mediawiki for office use, when I make it as Private wiki I get HTTP 500 error, when I make it open wiki it just works fine, I want to setup a private wiki with LDAP authentication, I can work on LDAP part later, but I think I have to get the wiki working in private mode first. I am using, Mediawiki 1.22 IIS 7.5 PHP 5.4 MYSql 5.5 Balaji22219 (talk) 05:36, 8 April 2014 (UTC)

Are you sure you are even capable of setting up the LDAP auth, 'cause pretty much everyone with a slight idea in web dev knows that the 500 code is a generic server error and you should be looking on the server logs instead of just throwing the code on support forums and expecting people to know what the problem is. Fereal (talk) 09:20, 8 April 2014 (UTC)
Please look at the IIS error logs to see what's going on. Maybe you made a typo when editing LocalSettings.php? Look at Manual:How to debug Ciencia Al Poder (talk) 09:30, 8 April 2014 (UTC)

New Installation, "Admin" user not found

Hello. I am a very non-technical user and have searched for solutions to this problem (which I admit is probably embarrassingly simple). But I haven't been able to find a solution, so I come to you.

I am installing a MediaWiki (version 1.21.3) using SimpleScripts hosted by NetFirms. The MySQL database version is 5.5.32. The PHP version is unknown to me; I looked but could not find. The location of my install is "http://www.fncompliance.ca/wiki/"

While setting up an install, I ask SimpleScripts to generate a random admin password for me. The install proceeds without error. Once complete, I am given an admin login and password. When I try and login, however, I get the following, "There is no user by the name "admin"."

I've tried uninstalling and reinstalling several times, but to no avail. Any guidance would be most appreciated. I apologize in advance for my general noobiness and lack of relevant skills/knowledge. 174.6.78.243 (talk) 19:12, 8 April 2014 (UTC)

The admin account was created under the name of "Firstname Lastname" [8]. Try logging in with it. Ciencia Al Poder (talk) 09:51, 9 April 2014 (UTC)

Loading a page progressively

When you visit an external site like this (at ScienceDirect), you see that the paper is loaded progressively. Initially it just shows an abstract. Then, as you scroll down, it loads the next sections, one by one. I reckon such feature could be useful to some Wikimedia projects with large articles (Wikipedia, Wikisource, at least). Is there an extension which does this? Gryllida 00:04, 9 April 2014 (UTC)

Well, there are many technical considerations that prevents an easy implementation, such as the fact that an entire page's source is a single entry in the DB, and that there should be a proper fallback if the user's Javascript is disabled. Even if it were possible, such an effort is not worth it to save a few - at most - kilobytes of text.
Is this a readability issue or an "I have a slow connection that I can't quickly load the article" issue? If it's the former - it could be simulated by hiding the text, but only after loading the entire article. Fereal (talk) 20:33, 9 April 2014 (UTC)
Such system could be build into Extension:MobileFrontend, which hides sections by default. Ricordisamoa 00:31, 12 April 2014 (UTC)

Search / Datbase error

When I try to search / create something within my Wiki, I get "A database query error has occurred. This may indicate a bug in the software." What could be done to fix this? 80.56.90.149 (talk) 10:23, 9 April 2014 (UTC)

And now I got the following error as well when trying to search something:
Notice: Uncommitted DB writes (transaction from DatabaseBase::query (LCStore_DB::get)) 80.56.90.149 10:32, 9 April 2014 (UTC)
Put
$wgShowSQLErrors = true;
in your LocalSettings.php, then reproduce the error to show the actual query error.

Maybe you did something and forgot to run maintenance/update.php? Fereal (talk) 10:47, 9 April 2014 (UTC)

Query:
SELECT page_id,page_namespace,page_title FROM `xxxxxx_page`,`xxxxxx_searchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+xxxxxxxx ' IN BOOLEAN MODE) ) AND page_namespace = '0' LIMIT 20
Function: SearchMySQL::searchInternal
Error: 1146 Table 'xxx_xxxxxxx_xxxxxx.xxxxxx_searchindex' doesn't exist (localhost) 80.56.90.149 11:15, 9 April 2014 (UTC)
Well it says the searchindex table, which is a core table, is missing. It should have been created when you ran the installer.
You should provide more details, eg. is this a fresh install, what your specs (MW, database version, etc). Fereal (talk) 19:38, 9 April 2014 (UTC)
I've updated from 1.18 to the latest version of 1.22 (MySQL 5.5.33-31.1-log, PHP 5.3.27). I also didn't understand why that specific table wasnt there.
The rest seems to be working fine. 80.56.90.149 21:50, 9 April 2014 (UTC)

[RESOLVED] Mediawiki not recognizing localsettings changes

Hi Everyone,

I was looking at the wiki I had set up a few weeks ago and noticed the account creation link was available. I thought I had forgotten to change the settings so I looked in the php file and the line was there and set correctly as $wgGroupPermissions['*']['createaccount'] = false;

I tried changing it to true to see if for some reason it got reversed to no avail. The next thing I did was change the sitename in the php file to see if the wiki changes that and it did not either. I'm starting to think it has stopped reading the php itself but I don't know where to go next. Any help would be appreciated. 38.113.137.146 (talk) 14:17, 9 April 2014 (UTC)

Maybe you're not modifying the actual file being used, maybe you're in a dupe directory? Try renaming LocalSettings.php and see if it prompts an install. Fereal (talk) 20:21, 9 April 2014 (UTC)
Awesome idea and that was it. It got moved and the original location kept as a backup. That explains a lot. Thank you so much Fereal! 38.113.137.146 20:45, 10 April 2014 (UTC)
Ok your welcome. I had the same problem and when I updated to the latest update to localisation update it worked. 86.173.54.255 09:47, 11 April 2014 (UTC)
Delete this top comment please 86.173.54.255 09:48, 11 April 2014 (UTC)

Mediawiki Missing Down Arrow to Delete Pages

I am currently running MediaWiki 1.22.5 / PHP 5.3.24 (cgi-fcgi)/ MySQL 5.1.70-community. The icon to delete pages is missing. The button still works if you hover over it. The down arrow icon itself is missing. This happened a few months ago when I upgraded to 1.22.3. It is still missing. Jayman54P (talk) 17:00, 9 April 2014 (UTC)

What are steps to reproduce the problem (click by click)? Which skin do you use? AKlapper (WMF) (talk) 12:11, 10 April 2014 (UTC)

Hi,

We just upgraded to MW 1.22.5. PHP 5.3.24, MySQL 5.1.7

In the Sidebar menu, we have an entry that looks like this when editing:

    • minutes|Minutes

This entry makes a link like this "$1 minutes" and a url like this "http://mydomain.org/wiki/index.php?title=$1_minutes".

We would like this: "http://mydomain.org/wiki/index.php?title=Minutes".

What am I doing wrong?

Thx Glct (talk) 18:32, 9 April 2014 (UTC)

This is the expected behavior, since "minutes" is an interface message: see Manual:Interface/Sidebar#Links.
Thus, create the page "MediaWiki:Sidebar-minutes" on your wiki with content "Minutes", then use
** sidebar-minutes|sidebar-minutes

Use different messages if you want to translate the link text but not the target. Ricordisamoa 20:02, 9 April 2014 (UTC)

Thanks. It worked. Glct (talk) 20:11, 9 April 2014 (UTC)

How to create a new user right what doesn't do anything / is just for show?

I would like to add a emeritus right so when sysops or other step down from their position, they can be moved into say sysop-emeritus which would say:

  • Retired Sysop (sysop-emeritus)

How would one do this? ThyGrimOfDeath (talk) 18:58, 9 April 2014 (UTC)

Hi, just add the following:
$wgGroupPermissions['sysop-emeritus']['sysop-emeritus'] = true;
If you want you can also add a description for the group and its permission. Add a group name in MediaWiki:Group-sysop-emeritus (plural) and MediaWiki:Group-sysop-emeritus-member (singular) and a description of the permission in MediaWiki:Right-sysop-emeritus. Tim (SVG) 19:42, 9 April 2014 (UTC)

Pages with same name but different context

Hi all,

I'm currently starting a wiki on some local towns and cities. I want to have pages like "churches", "famous buildings", "town hall", etc. for each of the cities I want to describe. In a hierarchical structure it would look like this:

townA

- churches

- famous buildings

townB

- churches

- famous buildings

I'm not sure how to do this. Would I use a prefix like that: townA_church townB_church to describe the churches for each town? Or is there a better approach? In the end it should be possible to embed in each town page something like a footer that contains all the pages only belonging to that town like that:

townA

- content: some general information

- footer: townA_church, townA_famousBuildings


townB

- content: some general information

- footer: townB_church, townB_famousBuildings

Thanks in advance Deepzeafish (talk) 19:48, 9 April 2014 (UTC)

The most direct way to create hierarchies is to use Help:Subpages.
You will be naming the pages Town A/Churches, Town A/Famous Buildings, Town B/Churches etc.
As for displaying all subpages for the town, you can use Extension:SubPageList. Fereal (talk) 20:15, 9 April 2014 (UTC)

I just added my own Navigation to the sitebar, but for some reason it isn't showing the way it should. The formatting was done right

Instead of being centered and having the header in grey with the arrow pointed done, everthing seem to be aligned left, without showing the header. When you hit refresh you see the correct style for split second and then changes agan to what I described above. Anyone any clue what's going on? 80.56.90.149 (talk) 21:54, 9 April 2014 (UTC)

Steps to reproduce welcome. AKlapper (WMF) (talk) 11:48, 11 April 2014 (UTC)
I went to Mediawiki:Sidebar
* navigation
    • mainpage|mainpage-description
    • recentchanges-url|recentchanges
    • randompage-url|randompage
    • helppage|help
  • SEARCH
  • TOOLBOX
  • LANGUAGES
Added my own items in the same format about Navigation
<wikieditor-toolbar-tool-file-pre>http://oi61.tinypic.com/118lso7.jpg]] Twilightning 19:10, 11 April 2014 (UTC)
I went to Mediawiki:Sidebar
* navigation
    • mainpage|mainpage-description
    • recentchanges-url|recentchanges
    • randompage-url|randompage
    • helppage|help
  • SEARCH
  • TOOLBOX
  • LANGUAGES
Added my own items in the same format about Navigation
Screenshot: http://oi61.tinypic.com/118lso7.jpg]]
When you refresh, for a split second you see the correct layout
Screenshot 2: http://oi61.tinypic.com/2dliypd.jpg 83.87.47.73 21:36, 11 April 2014 (UTC)
Where does the "table of contents" section comes from? Are you using some sort of extension or script for adding that?
A link to your wiki, if it's publicly viewable, would help. Ciencia Al Poder (talk) 18:56, 13 April 2014 (UTC)
Just like * navigation, * Table of Contents is the header of the upper menu. Twilightning 11:31, 14 April 2014 (UTC)
I ask because "Table of Contents" doesn't appear in your MediaWiki:Sidebar, looks like you have an extension to generate that. Ciencia Al Poder (talk) 09:18, 15 April 2014 (UTC)

Fatal error: Unsupported operand types

Hi guys, just having a few issues with my wiki.

   CentOS
   MediaWiki 1.20.2
   PHP 5.3.23
   PCRE version 8.33

I'm getting a blank page so I enabled error logging. I was attempting to get Scribunto to work [9] but now receiving this error..

Fatal error: Unsupported operand types in /mywiki/languages/Language.php on line 389

I've searched the web and the support threads and not much info on this error. I found a little info here [10]. I get the same error when running the maintenance rebuildFileCache.php. But can run update.php fine. I've disabled caching, checked file permissions, with no luck.

I've made no changes to Language.php or added any extra namespaces (as Language.php line 389 refers to namespaces).

Thanks Ausrpdesigns (talk) 12:16, 10 April 2014 (UTC)

On that line there's apparently this statement:
$this->namespaceNames = $wgExtraNamespaces + $this->namespaceNames + $validNamespaces;
Check if you've modified Manual:$wgExtraNamespaces, and see if it has a valid syntax (it should be an array, not an object, etc) Ciencia Al Poder (talk) 09:36, 11 April 2014 (UTC)
Its strange I have made no changes to my nameSpaces, As stated - 'I've made no changes to Language.php or added any extra namespaces'. Thanks Ausrpdesigns (talk) 01:23, 14 April 2014 (UTC)
Unrelated, but note that 1.20.2 is an ancient and unsupported MediaWiki version. Newer supported versions have fixed security issues that your version does not include (except for when 1.20.2 is the package patched and shipped by your Linux distribution). AKlapper (WMF) (talk) 11:50, 11 April 2014 (UTC)
I know this error has been dealt with already - here on th Support Desk and maybe also in the bugtracker. Please use Google to get the solution! 88.130.100.20 14:23, 11 April 2014 (UTC)
Are you sure? I would like to see the link if possible? The pages I did find were unrelated to my error so I posted here. Ausrpdesigns (talk) 01:24, 14 April 2014 (UTC)
Yepp. Most likely one of the arguments ends up being NULL, which breaks the sum. 88.130.121.172 11:37, 14 April 2014 (UTC)
Wasn't any of them (I did read them before posting BTW). I commented out Scribunto and resolved the issue.. I've installed latest MW version, hopefully Scribunto works on this one..
Thanks Ausrpdesigns (talk) 11:06, 15 April 2014 (UTC)
try updating to mediawiki 1.22 and updating your scribunto extension and see if that fixes the issue. 86.173.52.65 13:56, 15 April 2014 (UTC)

Can anybody think of a reason why HTTPS links would not be rendered as links? All instances of HTTPS links across my entire wiki (including pages in the Special namespace [i.e. Special:Version]) are rendered as if surrounded by <nowiki> tags.

Ex.)

    HTTP renders properly
    FTP renders properly
    [https://example.com HTTPS renders exactly like this] 132.3.45.78 (talk) 12:20, 10 April 2014 (UTC)
I may be that you are using an older version that does not support https links. Please post your MediaWiki, PHP, and MySQL (or other database) versions as shown on your Special:Version page. Allen4names (talk) 16:37, 10 April 2014 (UTC)
Mediawiki: 1.22.2
PHP: 5.4.24
MySQL: 5.6.15 132.3.53.81 19:34, 14 April 2014 (UTC)

Can anybody think of a reason why HTTPS links would not be rendered as links? All instances of HTTPS links across my entire wiki (including pages in the Special namespace [i.e. Special:Version]) are rendered as if surrounded by <nowiki> tags.

Ex.)

    HTTP renders properly
    FTP renders properly
    [https://example.com HTTPS renders exactly like this]

I've tried adding the following to my LocalSettings.php file (though it is my understanding that HTTPS is a supported URL protocol by default):

    $wgUrlProtocols[] = 'https';

No luck. 132.3.45.82 (talk) 12:32, 10 April 2014 (UTC)

Update script and MwEmbedSupport not working

I attempt to run the update.php script using the browser method, but I see a blank white screen with:

Fatal error: Class 'MwEmbedResourceManager' not found in [main directory]/extensions/MwEmbedSupport/MwEmbedSupport.php on line 58

Using Mediawiki 1.20.4 and the latest version of MwEmbedSupport. PHP version 5.3.28, MySQL 5.5.33-31.1. Update script at [11] Shuvuuia (talk) 20:13, 10 April 2014 (UTC)

Hi please update to Mediawiki 1.21 and the issue has been fixed with a simple update to Extension:LocalisationUpdate. But I think the update to it that will fix the problem you have will only work with 1.23 which is currently being tested and going to be released near to the end of may. 86.173.54.255 22:23, 10 April 2014 (UTC)

Add support for images in MySQL.

Hi please add support for uploading images to MySQL instead of saving them on your website. It would be for those people who doint have a server that has a lot of memory but MySQL does and for those who have sahred host which your host would limit your memory usage please. 86.173.54.255 (talk) 22:21, 10 April 2014 (UTC)

You should request that in a BUGREPORT.
I don't see your point in memory usage. Having files stored in filesystem consume storage (disk), but not memory (RAM). Also, having files stored in filesystem allow having CDN, although database with replication can also be used for this, but will require the MediaWiki engine on the CDN to retrieve the contents from the database. Ciencia Al Poder (talk) 09:46, 11 April 2014 (UTC)
Uploading images into a MySQL database table is a bad idea. Better invest a few Euros and get a hoster with conditions really appropriate for your needs. 88.130.100.20 14:21, 11 April 2014 (UTC)

Example of code to import xml into wiki using api import

I spent a lot of time and can not figure out the right code to import wiki text into wiki. (Previously I exported this wiki text from wiki.) I try to use Ajax POST request with xhr.setRequestHeader('Content-Type', 'multipart/form-data; ... and get errors like the following

"<error code="badupload_xml" info="File upload param xml is not a file upload; be sure to use multipart/form-data for your POST and include a filename in the Content-Disposition header."/>". <?xml version="1.0"?><api><error code="help" info="" xml:space="preserve">

Unfortunatelly, explanations in https://www.mediawiki.org/wiki/API:Import are very vague for me. Please, could somebody give ANY working PHP (and/or Ajax) code that uses mediawiki api "import function". Thanks in advance. Roman (t3531350@yahoo.com) Igorbeaz (talk) 08:44, 11 April 2014 (UTC)

multipart/form-data content-type is a special way of sending content through HTTP.
By sending normal content and just setting a Content-Type: multipart/form-data header doesn't make your data to be automagically converted to multipart/form-data. Just like renaming a BMP file to have .jpg extension doesn't make it a JPG image.
I don't know what are you using for posting your data. You mention PHP. If you're using curl, the key may be using curl_setopt(), using an array for CURLOPT_POSTFIELDS and not just appending text to it. Ciencia Al Poder (talk) 09:40, 12 August 2014 (UTC)

[RESOLVED] database error

hi i get this error A database query error has occurred. This may indicate a bug in the software. in mediawiki version 1.23 wmf 22. my website is at http://simple-random-wikisaur.tk i have deleted the mysql database and tryed it again and still getting it when trying to edit a page. i am the owner of the site. and i can only edit if i am loged in even though it worked before using an ip please help. 94.197.122.92 (talk) 12:59, 11 April 2014 (UTC)

nether mind the error is in the extension globalblock 94.197.122.92 13:01, 11 April 2014 (UTC)

[RESOLVED] webpage formatting wrong on external browser

Hi, I just installed mediawiki yesterday using XAMPP for a WAMP setup on a Win7 box. Everything is working locally on that machine, I can view the wiki normally and edit and the webpage formatting looks correct. When I connected from another PC on the LAN the wiki didnt look the same as far as formatting. Everything was plain text and unformatted. Any ideas? 204.83.191.12 (talk) 13:14, 11 April 2014 (UTC)

bump 204.83.191.12 19:19, 11 April 2014 (UTC)
Usually $wgServer is set incorrectly in that case. 88.130.92.246 14:18, 12 April 2014 (UTC)
$wgServer is set to localhost.
My config right now is I have a PC running the server on the same LAN as another PC I'm trying to access it from. 1.1.1.1(server), 1.1.1.2(client) accessing mediawiki on the server machine at localhost/wiki/index.php/MainPage looks and works fine. From the client, I type in 1.1.1.1/wiki/index.php/MainPage and it finds the page but the content is displayed without wiki formatting. I cant see how to attach a screenshot here.
Jon 204.83.191.12 15:41, 14 April 2014 (UTC)
"Usually $wgServer is set incorrectly in that case."
Thanks for the tip, I was having the same problem and this worked for me.
In my server, my MediaWiki's LocalSettings.php file had, by default:
$wgServer = "http://localhost";
My server's local address was 192.168.1.120, therefore I changed the proper line in the LocalSettings.php file to:
$wgServer = "http://192.168.1.120";
Et voilà! The formating now works ok, in both the server and the client :-) 178.166.48.217 18:27, 14 April 2014 (UTC)

centralauth bug

hi there seems to be a bug in centralauth because when you have the same username on both wikis because you have to. to be able to use the wikis because it uses the installer to create the account my wikis both have different databse one called paladox_en and paladox_pt-br they both have the same user called paladox_admin for control of the database. if I remove the pt-br databse from localsetting confiugation in centralauth the en database works if I add it again it does not work but it works on pt-br. please fix the issue with it detecting multiple accounts. I have mediawiki 1.23 wmf 22 and websites are http://pt-br.random-wikisaur.tk and http://en.random-wikisaur.tk 94.197.122.92 (talk) 15:39, 11 April 2014 (UTC)

I am sorry, but can you speak understandably? First of all: Stop using the word "because"! 88.130.92.246 14:12, 12 April 2014 (UTC)

mediawiki sitenotice help

after backing up my databse and then deleting it and then recreating it. mediawiki site notice does not work. please help. 94.2.131.148 (talk) 16:51, 11 April 2014 (UTC)

Is your wiki public? If so, can you post its address? Thanks. Ricordisamoa 09:20, 12 April 2014 (UTC)
Hi I fixed it I tried changing the cach to memcaching but it did not work so I changed back to the default and it worked. 86.173.52.65 18:12, 13 April 2014 (UTC)

database help

hi I get this error when trying to create the tables and setup the wiki

Setting up database... done Creating tables... A database query error has occurred. This may indicate a bug in the software. Query: CREATE TABLE `user` ( user_id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, user_name varchar(255) binary NOT NULL default , user_real_name varchar(255) binary NOT NULL default , user_password tinyblob NOT NULL, user_newpassword tinyblob NOT NULL, user_newpass_time binary(14), user_email tinytext NOT NULL, user_touched binary(14) NOT NULL default , user_token binary(32) NOT NULL default , user_email_authenticated binary(14), user_email_token binary(32), user_email_token_expires binary(14), user_registration binary(14), user_editcount int, user_password_expires varbinary(14) DEFAULT NULL ) ENGINE=InnoDB, DEFAULT CHARSET=binary

Function: DatabaseBase::sourceFile( /home/paladox/public_html/en/maintenance/tables.sql ) Error: 1005 Can't create table 'paladox_en.user' (errno: 121) (localhost)

Backtrace:

  1. 0 /home/paladox/public_html/en/includes/db/Database.php(1123): DatabaseBase->reportQueryError('Can't create ta...', 1005, 'CREATE TABLE `u...', 'DatabaseBase::s...', false)
  2. 1 /home/paladox/public_html/en/includes/db/Database.php(3858): DatabaseBase->query('CREATE TABLE `u...', 'DatabaseBase::s...')
  3. 2 /home/paladox/public_html/en/includes/db/Database.php(3772): DatabaseBase->sourceStream(Resource id #85, false, false, 'DatabaseBase::s...', false)
  4. 3 /home/paladox/public_html/en/includes/installer/DatabaseInstaller.php(187): DatabaseBase->sourceFile('/home/paladox/p...')
  5. 4 [internal function]: DatabaseInstaller->createTables(Object(MysqlInstaller))
  6. 5 /home/paladox/public_html/en/includes/installer/Installer.php(1533): call_user_func(Array, Object(MysqlInstaller))
  7. 6 /home/paladox/public_html/en/includes/installer/WebInstallerPage.php(1336): Installer->performInstallation(Array, Array)
  8. 7 /home/paladox/public_html/en/includes/installer/WebInstaller.php(283): WebInstaller_Install->execute()
  9. 8 /home/paladox/public_html/en/mw-config/index.php(63): WebInstaller->execute(Array)
  10. 9 /home/paladox/public_html/en/mw-config/index.php(31): wfInstallerMain()
  11. 10 {main}

Notice: Uncommitted DB writes (transaction from DatabaseInstaller::createTables). in /home/paladox/public_html/en/includes/db/Database.php on line 4147 94.2.131.148 (talk) 17:17, 11 April 2014 (UTC)

I run Mediawiki 1.23 Wmf 22. 86.173.52.65 18:12, 13 April 2014 (UTC)
And wiki is at http://en.random-wikisaur.tk. I have just used the backup I did before deleting it and tried creating new tables and refresh the wiki. To fix some issues with centralauth. 86.173.52.65 18:14, 13 April 2014 (UTC)
That error means the table already exists. But still, MediaWiki failed to properly detect if the table structure was present. Maybe you removed some tables while others were still around? Ciencia Al Poder (talk) 19:51, 13 April 2014 (UTC)
oh ok. but I deleted the tables and tried redoing the setup and create the tables like you would if you have just started to install the wiki. 86.173.52.65 13:58, 15 April 2014 (UTC)
oh ok. but I deleted the tables and tried redoing the setup and create the tables like you would if you have just started to install the wiki. 86.173.52.65 13:59, 15 April 2014 (UTC)
So... you solved the issue by creating the tables manually/with the tables.sql script? Ciencia Al Poder (talk) 09:27, 16 April 2014 (UTC)
Well no but I will try to do that at a later date but thanks. 86.173.52.65 09:14, 17 April 2014 (UTC)
No. You should either:
  • Instal on a new and clean database (MediaWiki installer can create the database for you, and this is recommended)
  • Import a full backup of the old database if your intention was to restore it. Ciencia Al Poder (talk) 09:29, 17 April 2014 (UTC)
um I would create the tables again and then I would use the back up and import the tables. 86.173.52.65 17:08, 17 April 2014 (UTC)
It does not make sense to create the tables first and then overwrite them when importing the backup of the database. Also, the database import may fail if tables already exist, depending if it deletes the tables before importing them or if it tries to import the data on the existing table structure. Ciencia Al Poder (talk) 20:02, 17 April 2014 (UTC)
Ok I have used the table.sql script and I will delete the page table and import it. it seems there is a bug in table.sql because it should be working. 86.173.52.65 11:49, 20 April 2014 (UTC)
I also get this error now
Setting up database... done
Creating tables...
A database query error has occurred. This may indicate a bug in the software.
Query:
CREATE TABLE `user` ( user_id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, user_name varchar(255) binary NOT NULL default , user_real_name varchar(255) binary NOT NULL default , user_password tinyblob NOT NULL, user_newpassword tinyblob NOT NULL, user_newpass_time binary(14), user_email tinytext NOT NULL, user_touched binary(14) NOT NULL default , user_token binary(32) NOT NULL default , user_email_authenticated binary(14), user_email_token binary(32), user_email_token_expires binary(14), user_registration binary(14), user_editcount int, user_password_expires varbinary(14) DEFAULT NULL ) ENGINE=InnoDB, DEFAULT CHARSET=binary
Function: DatabaseBase::sourceFile( /home/paladox/public_html/en/maintenance/tables.sql )
Error: 1005 Can't create table 'paladox_en.user' (errno: 121) (localhost)
Backtrace:
  1. 0 /home/paladox/public_html/en/includes/db/Database.php(1123): DatabaseBase->reportQueryError('Can't create ta...', 1005, 'CREATE TABLE `u...', 'DatabaseBase::s...', false)
  2. 1 /home/paladox/public_html/en/includes/db/Database.php(3858): DatabaseBase->query('CREATE TABLE `u...', 'DatabaseBase::s...')
  3. 2 /home/paladox/public_html/en/includes/db/Database.php(3772): DatabaseBase->sourceStream(Resource id #85, false, false, 'DatabaseBase::s...', false)
  4. 3 /home/paladox/public_html/en/includes/installer/DatabaseInstaller.php(187): DatabaseBase->sourceFile('/home/paladox/p...')
  5. 4 [internal function]: DatabaseInstaller->createTables(Object(MysqlInstaller))
  6. 5 /home/paladox/public_html/en/includes/installer/Installer.php(1533): call_user_func(Array, Object(MysqlInstaller))
  7. 6 /home/paladox/public_html/en/includes/installer/WebInstallerPage.php(1336): Installer->performInstallation(Array, Array)
  8. 7 /home/paladox/public_html/en/includes/installer/WebInstaller.php(283): WebInstaller_Install->execute()
  9. 8 /home/paladox/public_html/en/mw-config/index.php(63): WebInstaller->execute(Array)
  10. 9 /home/paladox/public_html/en/mw-config/index.php(31): wfInstallerMain()
  11. 10 {main}
Notice: Uncommitted DB writes (transaction from DatabaseInstaller::createTables). in /home/paladox/public_html/en/includes/db/Database.php on line 4147 86.173.52.65 11:49, 20 April 2014 (UTC)
Well, this is going to nowhere.
You're having the same error. It's like you haven't learned anything from our explanations. Ciencia Al Poder (talk) 17:03, 20 April 2014 (UTC)
Yes I do what you said to do. But there seams to be bug in table.sql when using the web updater. 86.173.52.65 18:39, 20 April 2014 (UTC)

Is it possible to group user groups into a user right?

Lets say I have 3 user groups:

  • Sysop
  • CheckUser
  • Staff

Is it possible to group the permissions in the CheckUser and Systop groups into a user right in the Staff group? Resinderate (talk) 17:31, 11 April 2014 (UTC)

A user group is a collection of rights.
You can create a user group (Staff) that combines the user rights of CheckUser and Sysop, so an user being in the Staff group can perform the same actions as a user in the CheckUser and Sysop groups. Ciencia Al Poder (talk) 18:53, 13 April 2014 (UTC)
Except there becomes a problem when a user group's rights takes up a large portion of the screen with duplicate rights.
Hence why I was asking if you could combine right group into a right, so then you only have a few lines. Even if you need to make an extension to do it. Resinderate (talk) 22:53, 14 April 2014 (UTC)
No, you can't. It's usually desirable to have all rights listed in a single place rather than having to jump to other groups to see the effective rigths of that group. Ciencia Al Poder (talk) 09:20, 15 April 2014 (UTC)
A link to Manual:$wgGroupPermissions seems appropriate for this question. Maybe this page - especially the sections "Details" and "Custom user groups" - help you. 88.130.121.172 10:34, 15 April 2014 (UTC)
Try this (LocalSettings.php):
$wgGroupPermissions['Staff'] = array_merge($wgGroupPermissions['sysop'], $wgGroupPermissions['checkuser']);
Ricordisamoa 13:21, 17 April 2014 (UTC)

How does commons handle multilanguages on 1 wiki?

I'm having a bit of a hard time trying to work out how commons handles several languages on 1 wiki and not having several wikis for it (eg: en.commons.wikimedia.org, es.commons.wikimedia.org).

Would anyone mind explaining how it works? TheJackal8 (talk) 18:15, 11 April 2014 (UTC)

Look at Template:Filedesc and what it says about the "int:" prefix. It points to Commons:Localization which should have a lot more info for you. MarkAHershberger(talk) 18:42, 11 April 2014 (UTC)

Will an Array solve my problem?

within several pages, there are around five codes. I need to keep track of those codes, and display them together in one place. The codes could be used on multiple pages. If I was straight coding this, it would seem I would create an array, add the code values to that array from each page during page creation (ignoring duplicates). Then create a page that simply prints to the screen, all stored codes from the array.

being super unfamiliar with wikitext - I have no idea if this will work in theory. before I spend hours trying to figure out how to build and array and populate it - can someone just give me a "yes that will work", or a "no try again". Thanks! 65.42.26.190 (talk) 20:26, 11 April 2014 (UTC)

What are the "codes" you are speaking about? To me what you want sounds like a job for templates: Create a template with the stuff xou need and include it in the pages where you want it. Should you in fact want a list of pages, you might want to check categories. 88.130.92.246 14:16, 12 April 2014 (UTC)

Error: invalid magic word 'babel'

Hi everyone,

I am getting the following message in the installation process of mw1.22.5 and I don't know why. Maybe you can help me?

[a007e48f] /mediawiki-1.22.5/mw-config/index.php?page=Options Exception from line 316 of /users/claretpedia/www/mediawiki-1.22.5/includes/MagicWord.php: Error: invalid magic word 'babel'

Backtrace:

#0 /users/claretpedia/www/mediawiki-1.22.5/includes/MagicWord.php(239): MagicWord->load(string)
#1 /users/claretpedia/www/mediawiki-1.22.5/includes/parser/Parser.php(4982): MagicWord::get(string)
#2 /users/claretpedia/www/mediawiki-1.22.5/extensions/Babel/BabelStatic.class.php(22): Parser->setFunctionHook(string, array)
#3 [internal function]: BabelStatic::onParserFirstCallInit(Parser)
#4 /users/claretpedia/www/mediawiki-1.22.5/includes/Hooks.php(199): call_user_func_array(string, array)
#5 /users/claretpedia/www/mediawiki-1.22.5/includes/GlobalFunctions.php(3877): Hooks::run(string, array)
#6 /users/claretpedia/www/mediawiki-1.22.5/includes/parser/Parser.php(275): wfRunHooks(string, array)
#7 /users/claretpedia/www/mediawiki-1.22.5/includes/parser/Parser.php(287): Parser->firstCallInit()
#8 /users/claretpedia/www/mediawiki-1.22.5/includes/parser/Parser.php(4823): Parser->clearState()
#9 /users/claretpedia/www/mediawiki-1.22.5/includes/parser/Parser.php(367): Parser->startParse(Title, ParserOptions, integer, boolean)
#10 /users/claretpedia/www/mediawiki-1.22.5/includes/installer/Installer.php(608): Parser->parse(string, Title, ParserOptions, boolean)
#11 /users/claretpedia/www/mediawiki-1.22.5/includes/installer/WebInstallerOutput.php(315): Installer->parse(string, boolean)
#12 /users/claretpedia/www/mediawiki-1.22.5/includes/installer/WebInstallerOutput.php(102): WebInstallerOutput->outputFooter()
#13 /users/claretpedia/www/mediawiki-1.22.5/includes/installer/WebInstaller.php(406): WebInstallerOutput->output()
#14 /users/claretpedia/www/mediawiki-1.22.5/includes/installer/WebInstaller.php(311): WebInstaller->finish()
#15 /users/claretpedia/www/mediawiki-1.22.5/mw-config/index.php(61): WebInstaller->execute(array)
#16 /users/claretpedia/www/mediawiki-1.22.5/mw-config/index.php(29): wfInstallerMain()
#17 {main}

79.212.171.3 (talk) 15:01, 12 April 2014 (UTC)

Does https://www.mail-archive.com/mediawiki-i18n@lists.wikimedia.org/msg00600.html help? AKlapper (WMF) (talk) 13:04, 13 April 2014 (UTC)
Try updating to the latest version of localisation update because it has fixed a problem with extension when trying to use the web updater. 86.173.52.65 18:10, 13 April 2014 (UTC)
@IP: It didn't help, too. So bad. Der Buckesfelder (talk) 15:27, 15 April 2014 (UTC)
No it didn't help. Der Buckesfelder (talk) 15:26, 15 April 2014 (UTC)
Try php rebuildLocalisationCache.php --force Ciencia Al Poder (talk) 09:51, 16 April 2014 (UTC)
I don't have a ssh access. Der Buckesfelder - Talk - Valuation - E-mail 05:24, 17 April 2014 (UTC)
I think the update localisation update is only avalible from 1.23 or higher. 86.173.52.65 09:07, 17 April 2014 (UTC)

how to use fullurl with spaces?

How do I make this link work: name with spaces.jpg upload image

[{{fullurl:Special:Upload|?wpDestFile={{{name|some name with spaces.jpg}}}}} upload image]

84.111.101.105 (talk) 21:16, 12 April 2014 (UTC)

upload image
[{{fullurl:Special:Upload|?wpDestFile={{{name|some%20name%20with%20spaces.jpg}}}}} upload image]

or since MediaWiki internally replaces spaces with underscores: upload image

[{{fullurl:Special:Upload|?wpDestFile={{{name|some_name_with_spaces.jpg}}}}} upload image]

88.130.92.246 23:07, 12 April 2014 (UTC)

Sorry, I was hoping for something that would work with whatever value that is passed, the default text was only to illustrate the problem. 84.111.101.105 05:42, 13 April 2014 (UTC)
[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{name}}}}}}} upload image]
Ricordisamoa 10:26, 13 April 2014 (UTC)
Thank you. Solved. 84.111.101.105 13:11, 13 April 2014 (UTC)

[RESOLVED] Problem with strange additions on wiki after upgrade

Hi,

I upgraded from version 1.20.2 to version 1.22.5. PHP: version 5.5.9-1ubuntu4 and MySQL 5.5.35-1ubuntu1. NOW I have strange additional text to my web pages. See www.DynaZu.com for an example. NOTE: Namespaces, Views, Search, Personal Tools are all strange additions. Any insight as to what is causing this and how to correct this, would be greatly appreciated.

Thanks! Joel Parke 67.190.48.99 (talk) 03:34, 13 April 2014 (UTC)

Hi!
What you are speaking about are menu elements, which should be there, but which should not be visible. Where on the page and when do you see these additions? When I visit your page, I do not see them. Maybe you have a caching issue; try emptying your caches, especially your browser cache! 88.130.92.246 07:39, 13 April 2014 (UTC)
Thanks so MUCH! Yes, when I cleared the cache, all is as it should be! What a silly problem, thanks for this insight, I would have spent a number of days attempting to correct a non existent problem. From now on, I will clear the cache first! 67.190.48.99 19:28, 13 April 2014 (UTC)
ALSO, I am running on Ubuntu 14.04 which makes any problems more suspect - hence the confusion. Note however that 14.04 looks to be one of the best releases in my memory. 67.190.48.99 19:30, 13 April 2014 (UTC)
After changes to websites, you should always make sure to empty caches. Especially when you develop these websites. 88.130.121.172 11:32, 14 April 2014 (UTC)

Login als Administrator

Wie kann ich mich als Administrator anmelden, damit ich den Upload von Bildern für die Benutzer frei geben kann?

Ich habe soeben Mediawiki auf meiner Synology-Diskstation installiert und möchte dieses als Familien Wiki nutzen.

Kann mir Jemand in bitte verständlicher Anwender-Sprache weiter helfen?

Vielen Dank Tatuetata (talk) 12:17, 13 April 2014 (UTC)

After logging in with your admin account, see Manual:Configuration_settings#Uploads how to configure uploads. AKlapper (WMF) (talk) 13:07, 13 April 2014 (UTC)
Thanks, but how can I log in as Administrator? Tatuetata (talk) 16:38, 13 April 2014 (UTC)
The link Manual:Configuration_settings#Uploads leads you to some configuration variables. Those variables must be set correctly in the file LocalSettings.php.
This here maybe is a better, because more complete checklist of things to take care of for upload to work: Manual:Configuring_file_uploads 88.130.72.218 17:17, 13 April 2014 (UTC)
You log in as admin the same way as you log in as any other user, just with a username (and password) that is an admin. You defined an admin username and password when you installed and configured the wiki. AKlapper (WMF) (talk) 10:05, 14 April 2014 (UTC)
That's right. But note that you do not need to log in as an administrator in order to enable uploads. Uploads are enabled for all or for some users, but that happens solely in LocalSettings.php. You cannot configure that with your wiki administrator account. 88.130.121.172 11:41, 14 April 2014 (UTC)

Login problem

I've recently changed ISPs, so my e-mail address has changed. I've forgotten my login ID, so I'm stuck. I can provide what I think was my login name and password in private, along with my former and current email addresses. Is there some way to contact Wiki privately? Thanx. 75.176.182.117 (talk) 18:02, 13 April 2014 (UTC)

Does your request has to do with your MediaWiki/Wikimedia user account? Or with your personal private wiki or another wiki not hosted by the Wikimedia Foundation? Ciencia Al Poder (talk) 19:03, 13 April 2014 (UTC)
Go to "Special:PasswordReset" on that wiki (Special:PasswordReset for this site). Ricordisamoa 13:11, 17 April 2014 (UTC)

Hi,
I try to use languages fr (site language), en and de. After installing MLEB 2014.03 (however, babel is commented out as I get stuck with the error invalid magic word babel, access to web updater only) I made some tries then followed http://www.mediawiki.org/wiki/Help:Extension:Translate/Unstructured_element_translation.
Now, my customized sidebar content is always English for fr and en, and works correct only for de.
The translations (as far as i could see) seem to be correctly done. If I remember correctly, it was OK as long as I did no English translation. However, once I started to translate to English, the Special:Translate made all default terms to the English translations and when I switch to the site default language (fr) I also have the English terms for my customized items.
Any idea? 90.4.192.27 (talk) 07:53, 14 April 2014 (UTC)

How to reset all session tokens?

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


As described in this post: http://lists.wikimedia.org/pipermail/wikitech-l/2014-April/075801.html Friscogonewild (talk) 22:49, 14 April 2014 (UTC)

Since Greg writes that his change will actually "log everyone out", it sounds to me like this would be based on the value of Manual:User_table#user_token, so that you would have to change this value, but I am not sure about that. However, I do not see another token, which MediaWiki holds for a user account and the value of user_token is responsible for permanent login. 88.130.121.172 10:38, 15 April 2014 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

[RESOLVED] Can't access Special:SpecialPages and Special:Upload

Server spec OS: Windows Server 2003 R2 X64 PHP Version: 5.3.10 MediaWiki Version: 1.22.5

Error description On a newly installed Media Wiki, I can't access either Special:SpecialPages and Special:Upload. If I try to access those pages my browser will just display a browser error like "The connection was interrupted". If i Install the Media Wiki on a local machine with Windows 7 and WAMP everything works fine. If I try to copy a sub-page of Special:SpecialPages from the local machine to the live web server it will display the page correctly.

PHP errors [15-Apr-2014 12:47:50 UTC] PHP Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (260): C:\zpanel\hostdata\SITE\public_html\SUB_DOMAIN/skins/vector/data:image/png;base64,iVB...AAElFTkSuQmCC in C:\zpanel\hostdata\SITE\public_html\SUB_DOMAIN\includes\libs\CSSMin.php on line 76

[15-Apr-2014 11:12:15 UTC] PHP Warning: is_executable(): open_basedir restriction in effect. File(/usr/bin/php) is not within the allowed path(s): (c:/zpanel/hostdata/SITE/public_html/SUB_DOMAIN;c:/windows/temp) in C:\zpanel\hostdata\SITE\public_html\SUB_DOMAIN\includes\Wiki.php on line 655

LocalSettings.php
# This file was automatically generated by the MediaWiki 1.22.5
# 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:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings

# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
	exit;
}

## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename = "SITE";

## 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:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "";
$wgScriptExtension = ".php";

## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://SUB_DOMAIN";

## 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             = "$wgStylePath/common/images/wiki.png";

## UPO means: this is also a user preference option

$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "apache@DOMAIN";
$wgPasswordSender = "apache@DOMAIN";

$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "";
$wgDBuser = "";
$wgDBpassword = "";

# MySQL specific settings
$wgDBprefix = "wiki_";

# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;

## 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 = "";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'cologneblue', 'monobook', 'vector':
$wgDefaultSkin = "vector";

## 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 = "";
$wgRightsIcon = "";

# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "";


# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
require_once "$IP\\extensions\\Cite\\Cite.php";
require_once "$IP\\extensions\\Gadgets\\Gadgets.php";
require_once "$IP\\extensions\\ImageMap\\ImageMap.php";
require_once "$IP\\extensions\\InputBox\\InputBox.php";
require_once "$IP\\extensions\\Interwiki\\Interwiki.php";
require_once "$IP\\extensions\\LocalisationUpdate\\LocalisationUpdate.php";
require_once "$IP\\extensions\\ParserFunctions\\ParserFunctions.php";
require_once "$IP\\extensions\\Poem\\Poem.php";
require_once "$IP\\extensions\\Renameuser\\Renameuser.php";
require_once "$IP\\extensions\\SyntaxHighlight_GeSHi\\SyntaxHighlight_GeSHi.php";
require_once "$IP\\extensions\\WikiEditor\\WikiEditor.php";


# End of automatically generated settings.
# Add more configuration options below.

# Disable anonymous editing
$wgGroupPermissions['*']['edit'] = false;
 
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;

Actions i've tried So based on the errors and my LocalSettings.php file, i've tried the following:

  1. Removed all extensions
  2. Disable Oben basepath in my Webhosting CP and waited for the Daemon to run
  3. Tried the 1.23 Alpha version of includes/libs/CSSMin.php file
  4. Tried removing file_exists from line 76 of includes/libs/CSSMin.php file

Anyone got any idea to resolve this issue ? Arnada (talk) 14:04, 15 April 2014 (UTC)

The problem in CSSMin.php is fixed in master branch. I though it was backported. bug 60960.
You may try to apply the changes made there https://gerrit.wikimedia.org/r/#/c/115895/5
The problem with PHP Warning: is_executable(): open_basedir restriction in effect it's because of Manual:Job queue#Changes introduced in MediaWiki 1.22. Set $wgPhpCli = false; in LocalSettings.php, because it's broken in 1.22
Do you run the wiki on a IIS or WAMP on the server? What do you mean by If I try to copy a sub-page of Special:SpecialPages from the local machine to the live web server it will display the page correctly? Ciencia Al Poder (talk) 09:44, 16 April 2014 (UTC)
Thanks for your reply Ciencia, unfortunately the above didn't solve my issues but I decided to upgrade my PHP to the latest 5.3 release and whola, I can now access both Special:SpecialPages and Special:Uploads.
Once again Ciencia, thank you :) Arnada (talk) 19:28, 24 April 2014 (UTC)

Update one table cell from another table cell

Guys,

Is it possible to update a table cell and then have this automatically update another table cell on a different page?

Scenario:

On Page A I have Table 1 and I change the cell colour of the table from Green to Red. I want this change to automatically change the cell colour of Table 2 on Page B to match.

I know this question exceeds the capabilities of MediaWiki, but I have to ask anyway. I just want to have explored all options before giving up.

Thanks

Matt 46.17.161.8 (talk) 15:05, 15 April 2014 (UTC)

If you want to be showing the same content in the cells of the table on both A and B, then if that content is derived from a template, and the template or the call driving it (or more specifically the parameters fed to it i.e. the e.g. colour) is changed, then both table cells will account for the change the same way.
Easier, but possibly not suitable (depending on the specifics) would be to transclude the cell or entire table from one source, thus the transclusion on both A and B will be identical.
In other words: Templates FTW! \o/  fredgandt 17:43, 16 April 2014 (UTC)

php rebuildLocalisationCache.php --force

Hello, where I have to write the following code?

php rebuildLocalisationCache.php --force

Der Buckesfelder - Talk - Valuation - E-mail 15:57, 15 April 2014 (UTC)

That is shell code; when you have SSH access to your server, you can type this line in on the shell like so:
cd path/to/the/wiki
cd maintenance/
php rebuildLocalisationCache.php --force
What this command does can be seen on the according manual page: Manual:rebuildLocalisationCache.php.
A requirement for this code to work is that PHP is available under the command "php"; depending on the server setup it might also be available under "php5", "php53" or "php54". 88.130.77.163 16:21, 15 April 2014 (UTC)
Thanks a lot! Der Buckesfelder - Talk - Valuation - E-mail 22:28, 15 April 2014 (UTC)

Css code help

Hi can I have some help to change these css codes

.mp_header {
 width: 100%;
 clear: both;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png');
 background-color: #008FCC;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -moz-linear-gradient(top, #000, #f9f9f9, #ddd);
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-gradient(linear,
            left top, left bottom, from(#ddd), to(#000));
 filter: progid:DXImageTransform.Microsoft.Gradient(
            StartColorStr='#008FCC', EndColorStr='#f9f9f9', GradientType=0);
 padding: 1px 10px 1px 10px;
 color: #000;
 border: none;
 margin-bottom:0px;
}

I need to change it where it say moz to support what it does on WebKit because when visiting this http://simple-random-wikisaur.tk on chrome it has a black background on the header but when visiting http://simple-random-wikisaur.tk on internet explorer it has a blue colour header. Please help so that every browser will show the black header please. Thanks 86.173.52.65 (talk) 18:03, 15 April 2014 (UTC)

To use the gradient defined for WebKit:
.mp_header {
 width: 100%;
 clear: both;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png');
 background-color: #333;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -moz-linear-gradient(top, #ddd, #000);
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-gradient(linear,
            left top, left bottom, from(#ddd), to(#000));
 filter: progid:DXImageTransform.Microsoft.Gradient(
            StartColorStr='#ddd', EndColorStr='#000', GradientType=0);
 padding: 1px 10px 1px 10px;
 color: #000;
 border: none;
 margin-bottom:0px;
}
The gradient fallbacks to a dark gray. Ricordisamoa 08:40, 17 April 2014 (UTC)
Thank you. 86.173.52.65 09:06, 17 April 2014 (UTC)

How to change Footer, skin Vector, wiki 1.22.5

I'm sorry, I use a translator. I want to change the standard references, add new ones. And write a tex, in the place where the text of the license. License not required. I could not find anything, but what I found did not help. = \ 178.187.77.163 (talk) 18:16, 15 April 2014 (UTC)

See Manual:Footer. Ricordisamoa 08:29, 17 April 2014 (UTC)

Cleaning logs

Hello, please tell me how to clear all logs action viki.Ili possible to change the period (dates) display logs, for example to show the changes only for the year / month? My Wiki: http://wiki.league17.ru/ EvangelionI (talk) 21:23, 15 April 2014 (UTC)

please help me 212.66.36.178 21:22, 16 April 2014 (UTC)
Which logs exactly? AKlapper (WMF) (talk) 09:57, 17 April 2014 (UTC)
Deletion log and pravokstranits EvangelionI (talk) 13:57, 17 April 2014 (UTC)
What is pravokstranits? AKlapper (WMF) (talk) 06:25, 18 April 2014 (UTC)
Sorry for the bad translation. To clear the deletions and corrections. EvangelionI (talk) 13:58, 17 April 2014 (UTC)
please help me =( EvangelionI (talk) 20:09, 21 April 2014 (UTC)
Hi!
The stuff you see in the logs mostly comes from the database table logging. When you remove an entry there, it will no longer show up in the logs. I have tried something like that while combatting spam and I did not have problems afterwards (apart from the log entries being gone, which is what I wanted).
However, note that directly modifying the database is not supported by MediaWiki. Deleting rows will permanently remove them and removing the wrong data can break your wiki. 88.130.112.50 09:48, 22 April 2014 (UTC)

[RESOLVED] Fix This Bug:

A 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 "RecentChange::save". Database returned error "1054: Unknown column 'rc_moved_to_ns' in 'field list' (localhost)". In Correct (talk) 03:22, 16 April 2014 (UTC)
Hi!
This is a known problem. Currently the best fix available is to add the missing column by hand. This should work using the ALTER TABLE command provided here:
http://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/04#c-88.130.77.175-2013-04-16T20%3A01%3A00.000Z-64.214.53.2-2013-04-16T18%3A48%3A00.000Z
Afterwards you should PURGE the recentchanges table and then run the maintenance script rebuildrecentchanges.php. This should make sure that you do not have corrupt entries in the table. 88.130.77.163 07:11, 16 April 2014 (UTC)
Hello. I am back now. The problem began when I decided to continue building my website. It worked fine until I uploaded a logo. When I saved localsettings.php a PHP Is Outdated error occurred. I then decided to downgrade from 1.21 to 1.16 which was the most recent one that supports PHP 2.7
I kept the same database and I was able to log in but I encountered the error I copied and pasted in the first post I made yesterday. I could not save any of my edits.
After contacting HostGator again (which is the cause of the PHP issue), they said that there is a code required to use PHP 3 which was then entered into .htaccess
Since PHP 3 seems to be working now, I decided to upgrade (or switch back to) MediaWiki 1.21
The extraction occurred successfully and I encountered the "set up the Wiki" link message.
During the Set Up process, it said "The tables are outdated. Click here to fix them." It almost looked like a command line interface. Sorry, but I can't remember anything else.
But that problem seems to be fixed now. The "Congratulations!" page appeared. I do not see any Database Error messages. And I am able to save my edits.
You can mark this as solved now. I will open up another topic again if the issue occurs. In Correct (talk) 19:22, 16 April 2014 (UTC)

[RESOLVED] Hiding toolbox except for admin and bureaucrat

In skins/Vector.php I can hide toolbox from logged out thus:

if ( $wgUser->isLoggedIn() ) {
				case 'TOOLBOX':
                                   if ( $wgUser->isLoggedIn() ) {
					$this->renderPortal( 'tb', $this->getToolbox(), 'toolbox', 'SkinTemplateToolboxEnd' );
                   }

but User::isSysop() and similar are deprecated.

How would I use the recommended $user->isAllowed to specify the admin and bureaucrat group? I have not managed to find this, sorry.


Maybe you can use this:
$wgUser->getGroups()

It will give you an array of all groups in which the current user is member. Wgkderdicke (talk) 08:12, 16 April 2014 (UTC)

Hi!
You can go through the file includes/User.php to see, which methods are available for the user object. If there should be no method, which returns, if the user is an admin, then maybe you can work with the method getEffectiveGroups() somehow like so:
if ( in_array( 'sysop', $this->getUser()->getEffectiveGroups() ) {
// code to show toolbox
}
Maybe you still have to adjust that somehow, like using $wgUser instead of $this->getUser and maybe by checking for _both_ groups, but I guess you get the basic idea. 88.130.77.163 08:36, 16 April 2014 (UTC)
Thanks for the response. I also had a reply here http://stackoverflow.com/questions/23100952/media-wiki-hiding-toolbox-except-for-admin-and-bureaucrat which suggested using IsAllowed but creating the required right and the permissions for it. This looks hopeful, but I'll post back which method works for me if I use it (I may want to enable users e-mailing each other in which case the toolbox needs to be visible for standard users. 94.196.238.197 20:26, 16 April 2014 (UTC)
http://stackoverflow.com/questions/23100952/media-wiki-hiding-toolbox-except-for-admin-and-bureaucrat works fine for me. Thanks for the replies. 94.196.236.212 20:09, 18 April 2014 (UTC)

[RESOLVED] how to get the username, who created the article

hello there

{{REVISIONUSER}} gives you the user who modified the article last and {{REVISIONTIMESTAMP}} shows the last modification's timestamp. Is there any magic words to display the user, who created the article and the time/date of creation?

regards and thank you for your help in advance 185.31.48.30 (talk) 08:13, 16 April 2014 (UTC)

any ideas? 185.31.48.30 11:27, 16 April 2014 (UTC)
Ok, I have managed to display Creation date using semantic wiki's Creation date property but still looking for a way to display the username, who created the article. 185.31.48.30 14:59, 16 April 2014 (UTC)
could anyone reply please? :) 185.31.48.30 09:39, 17 April 2014 (UTC)
Yes, I can reply, but I still don't know. ;-)
A list of all supported magic words is available at Help:Magic_words#Variables. If it's not in there, then I suppose there is no magic word for that. 88.130.125.213 10:03, 17 April 2014 (UTC)
Thank you. Is there any other way to do that? 185.31.48.30 11:34, 17 April 2014 (UTC)
Yes, maybe from inside PHP or maybe using the API. But on wiki page from inside the wiki text - none that I know of. 88.130.125.213 12:33, 17 April 2014 (UTC)
Have you tried Extension:PageCreator? (found by search creator in the search box) - I have not tried nor looked at the source... Christian75 (talk) 12:57, 17 April 2014 (UTC)
Found a better solution:
https://github.com/SemanticMediaWiki/SemanticExtraSpecialProperties/blob/master/CONFIGURATION.md
Its caled SemanticExtraSpecialProperties. Lets you define special properties such as `_CUSER` which adds user that created the page.
Thanks! 185.31.48.179 15:26, 17 April 2014 (UTC)

[RESOLVED] role="presentation" table with equal column height

Hello,

I want to use role="presentation" in a table to create three boxes here in the same way as on this wikis main page. I want that the boxes all have the same height (like on this wikis main page). How can I do this?

MediaWiki: 1.22.5 (7266102)
PHP: 5.3.10-1ubuntu3.11 (apache2handler)
MySQL: 5.5.35-0ubuntu0.12.04.2

Thank you! Cantho (without account) 188.96.69.13 (talk) 10:33, 16 April 2014 (UTC)

To have all boxes the same height, the boxes need to be the table cells and not the divs. Apply the border style to the table cells instead of the divs. Ciencia Al Poder (talk) 09:33, 17 April 2014 (UTC)
That works, thank you! Cantho (without account) 188.96.69.13 16:39, 17 April 2014 (UTC)

I Am Trying To Change The Appearance Of My Wiki:

Here is the code I have in MediaWiki:Common.css

Is there an easier way? Should I upgrade MediaWiki? I am trying to make all the headers with white text and highlighted with a dark red bar.

But why isn't it working with the sidebar?!

See for yourself if I am confusing you. http://wiki.boingblogs.com/

/* CSS placed here will be applied to all skins */
 
h1 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h2 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h3 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h4 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
 
}
 
h5 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h6 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
 
}
 
h7 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h8 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h9 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h10 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h11 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h12 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
#p-navigation h5 { background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white; }
#p-tb         h5 { background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white; }
#p-search     h5 { background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white; }

In Correct (talk) 15:58, 16 April 2014 (UTC)

Sidebar uses h3 instead of h5.
In addition, sidebar has more specific styles applied to it, that will override your styles. You can see them with the developer tools of your browser (hit F12). You can try with this instead:
h1, h2, h3, h4, h5 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
#mw-panel.collapsible-nav .portal h3 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
#mw-panel.collapsible-nav .portal h3 a {
 color: white;
}
Ciencia Al Poder (talk) 09:45, 17 April 2014 (UTC)
You might want to start by explaining what the problem is you'd like to solve. AKlapper (WMF) (talk) 09:56, 17 April 2014 (UTC)
I also did not understand, which problem you currently have.
One note:
When you have one and the same CSS rule (the ones you posted all are the same, right?), then you can also combine them like so:
h1, h2, h3, #mw-panel.collapsible-nav .portal h3 {
background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
} 88.130.125.213 10:08, 17 April 2014 (UTC)
Sidebar uses h3 instead of h5.
This seems to work with my sidebar. It caused the white text to be highlighted in dark red. The other codes did not work.
You might want to start by explaining what the problem is you'd like to solve.
I want a theme for my Wiki. Mostly white background with a few areas that have white text highlighted in red. If possible, Are there theme extensions that I can install? Do I need to have the latest version of MediaWiki?
MediaWiki 1.21.1
PHP 5.3.28 (cgi-fcgi)
MySQL 5.5.33-31.1 In Correct (talk) 18:53, 17 April 2014 (UTC)
Well, last time I checked, the default skin of your wiki was Vector, not Monobook. Things are styled differently on both skins. You should use MediaWiki:Common.css for styles applied to the content of the wiki (the "common" part between skins).
There are no "themes" for MediaWiki (for a particular skins), but instead you can style it with CSS directly. Although that requires you some knowledge about CSS. Ciencia Al Poder (talk) 20:00, 17 April 2014 (UTC)

How To Fix The Logo:

http://wiki.boingblogs.com/ you can see that I made a logo and have successfully uploaded it ... to the wrong location. I have it on an external location but I want it to be in the same folder that the "Set The Logo To Your Own Image" is stored in. I can't find it! Currently I have MediaWiki 1.21 In Correct (talk) 19:25, 16 April 2014 (UTC)

Can you find your server config files? If you are running Apache on Ubuntu look in /etc/apache2 for file that end in .conf. Note that I was not able to reach your web site. Allen4names (talk) 19:55, 16 April 2014 (UTC)

[RESOLVED] people must provide their E-mail address with fixed suffix

HiRachel1208 (talk) This is the problem: I want that people must provide their E-mail address with fixed suffix like @gmail.com, and after confirmation, they can become users. Maybe to solve that problem, I need to change the login inerface and some other files. However, I don't know where to start.:( So I really need your helpRachel1208 (talk) Thank you for your kind replies! :) Rachel1208 (talk) 06:39, 17 April 2014 (UTC)

You can probably use the isValidEmailAddr hook to check if the email is from specific domains, and set $result to false if it doesn't match. Ciencia Al Poder (talk) 13:41, 18 April 2014 (UTC)
Firstly, thank you for your kind reply!
However, since I am a newcomer, the information that you provided to me as below is a bit difficult for me.
- - - - - - - - - - - - - -
Define function:
public static function onisValidEmailAddr( $addr, &$result ) { ... }
Attach hook:
$wgHooks['isValidEmailAddr'][] = 'MyExtensionHooks::onisValidEmailAddr';
Called from: Sanitizer.php
- - - - - - - - - - - - - -
Would you mind give me some details, like where should I define the function and the attach hook? What should I write in the function
public static function onisValidEmailAddr( $addr, &$result ) { ... }?
Thanks a lot!:) Rachel1208 (talk) 07:21, 21 April 2014 (UTC)
double post, sorry Ciencia Al Poder (talk) 10:15, 21 April 2014 (UTC)
Well, after a little test, I think the AbortNewAccount hook is better because it can provide an error message.
Simply put this in LocalSettings.php:
function onAbortNewAccount_emaildomain( $user, &$message ) {
    if ( preg_match( "/@gmail\.com/i", $user->getEmail() ) !== 1 ) {
        $message = "We only accept user registrations with email domain @gmail.com";
        return false;
    }
    return true;
}
$wgHooks['AbortNewAccount'][] = 'onAbortNewAccount_emaildomain';
There's also an extension for this Extension:CheckEmailAddress. Ciencia Al Poder (talk) 10:15, 21 April 2014 (UTC)
Awesome!
Thanks a lot!! Rachel1208 (talk) 06:52, 22 April 2014 (UTC)

Heartbleed bug

can you please let me know in which version of wiki we have fixed the Heartbleed bug.. 148.188.243.252 (talk) 07:23, 17 April 2014 (UTC)

MediaWiki does not have Heartbleed bug because it doesn't use any openssl component. Openssl components are part of the operating system, both the server and the client, if you're connecting through HTTPS Ciencia Al Poder (talk) 09:50, 17 April 2014 (UTC)
MediaWiki code itself was never affected. Also see https://blog.wikimedia.org/2014/04/10/wikimedias-response-to-the-heartbleed-security-vulnerability/ AKlapper (WMF) (talk) 09:55, 17 April 2014 (UTC)

Keep me logged in

Keep me logged in (for up to 30 days) says the en.wikipedia.org login page, but it never happens for me anymore, regardless of browser. It does not happen on Internet Explorer, Mozilla Firefox, Google Chrome, Opera, or Safari. Making sure cookies are turned on does not seem to help. In 2013 it worked fine. I am using Windows 7. Dthomsen8 (talk) 13:46, 17 April 2014 (UTC)

You should raise your problem there: Wikipedia:Village pump (technical)#Unable to remain logged-in, specifying since when you have the problem, and see if more people have that particular problem. May be worth to report a bug for that, too. Ciencia Al Poder (talk) 10:06, 18 April 2014 (UTC)

Lua error

I'm trying to recreate certain pages from Wikipedia. I've imported the necessary files, installed scribunto, etc. and now I'm at a point where I get the following Script Error:

Lua error: Cannot create process: proc_open is not available. Check PHP's "disable_functions" configuration directive.

When I make a test.php and look at the info I see the following:

disable_functions Local: system,exec,shell_exec,passthru,proc_open,proc_get_status,proc_nice,proc_terminate,dl,popen,pcntl_exec Master: system,exec,shell_exec,passthru,proc_open,proc_get_status,proc_nice,proc_terminate,dl,popen,pcntl_exec 80.56.90.149 (talk) 15:30, 17 April 2014 (UTC)

You should remove that function from the disable_functions directive.
If you don't have control over that (because you're on a "cheap" shared host), you should substitute the scribunto modules used on the templates by wikitext versions of them, for example, going to the template page on Wikipedia, looking at the template history and get the text before it was converted to a scribunto module. Ciencia Al Poder (talk) 10:10, 18 April 2014 (UTC)

Having major problems logging into a wiki for Star Conflict

Dear Mediawiki, I have been trying to make an account on a wiki that I believe is yours, http://wiki.star-conflict.com/index.php?title=Main_Page. The technical support links on it brought me to your admin sites. I've tried twice to make an account on this wiki because I want to contribute to it but it seems to instantly change my password. I've tried usernames Kiljaedenas and Kiljaeden in that order; the same day that I created the account Kiljaeden using a password I frequently use for online sites, when I discovered that I need to be in the emailverified group to make posts and went to set the email address to this one I'm using right now (which I didn't do upon account creation to try and avoid spam) it said my password was invalid. So now I don't have an email address set to do a password reset on either account and the password I thought I had set only an hour or so ago doesn't appear to work. Could you please help?

Daryl 207.102.139.81 (talk) 17:59, 17 April 2014 (UTC)

This site (www.mediawiki.org) is not affiliated with the star-conflict wiki. This is the wiki about MediaWiki, the software that runs the star-conflict wiki (and many other wikis!), but we do not host that wiki.
Our login is different. If you want to have a user account here you'll need to register again here. Ciencia Al Poder (talk) 10:13, 18 April 2014 (UTC)
Crap. So who do I contact to get my account fixed on that wiki? Their Contact Support links brought me here.
Please advise,
Daryl 207.102.139.81 20:16, 22 April 2014 (UTC)
You should contact an administrator of that wiki on their talk page there. See http://wiki.star-conflict.com/index.php?title=Special:ListUsers/sysop for a list of administrators on that wiki. GeorgeBarnick (talk) 20:30, 23 April 2014 (UTC)

Export old revision

Is it possible to export an older version of a certain wikipedia page with all the templates that belong to it? I know you can export the entire history of a page, but I can't import 36 MB, so I would prefer if I could import the latest revision before the page started to use LUA modules (+plus all pre-lue templates) 80.56.90.149 (talk) 13:43, 18 April 2014 (UTC)

No, that's not possible. You'd need to manually go to the page history on wikipedia, view the version before LUA, and edit it to get the source code to put on your wiki. Ciencia Al Poder (talk) 18:11, 19 April 2014 (UTC)

How can I fix the "Help with logging in"?

http://ww3.sinaimg.cn/large/728a1733jw1efkqnspxeaj20hs0arq3g.jpg

All wiki's language version show following word. How to fix it?

<userlogin-helplink2>  ??? Deletedaccount4567435 (talk) 04:13, 19 April 2014 (UTC)

You could create MediaWiki:userlogin-helplink2 in your wiki. Anyway, that seems a bug. What MediaWiki version are you using? Ciencia Al Poder (talk) 18:14, 19 April 2014 (UTC)
It is gone after upgrade to 1.22.6. However, now every language version shows english words at that location. Hope it will be fixed at 1.22.7. Zoglun (talk) 02:11, 30 May 2014 (UTC)
Indeed, it's now in English for all languages.
It's fixed in 1.23rc but not in 1.22.7 Ciencia Al Poder (talk) 15:28, 1 June 2014 (UTC)

About change translated message in sandbox heading

I translated messages of sandbox heading to Korean at Sandbox page but I can't change these. 아라는 다 알아 (talk) 05:59, 19 April 2014 (UTC)

header template seems protected, and it is not prepared for translations. Revicomplaint? 06:44, 19 April 2014 (UTC)

[RESOLVED] Importing from one mediawiki to another - help

I have exactly 2 hours of experience with my new mediawiki installation :-)

Here's the problem. I am exported selected pages (via Special:Export to xml) from a mediawiki site that has some sort of forum extension. I can't tell which forum extension it is using. The export seems to work fine.

Upon import to my mediawiki site (which has no sort of forum extension), the pages all import fine -- but when I view them all I see are entries like this:

Template:ForumNewPost Template:ForumReplyPost Template:ForumReplyPost Template:ForumReplyPost Template:ForumReplyPost

If I go to the revision history of the page, I can click on the timestamp and I get the actual page rendered with all the text (and it is actually formatted pretty well!)

Question: How do I get the main link for the discussion page to show up with the actual discussion, not with those "Template" references?

Thanks... 69.112.86.179 (talk) 16:54, 19 April 2014 (UTC)

Well, at first look it seems that you should also import Template:ForumNewPost and Template:ForumReplyPost from the original wiki.
Also, if it uses a forum extension, and the messages are stored in it's own page (internally), each forum thread will be split with each message in a different page. That's the job of the forum extension, and you won't be able to emulate that, unless you manually create pages for each thread and transclude the contents of each message there. Ciencia Al Poder (talk) 18:50, 19 April 2014 (UTC)
Thanks very much; I think I did subsequently import the templates but didn't realize that I had to edit/save the previously imported pages to get them to associate. They display fine now, and further page imports seem to work fine now with no need to do the edit/save routine.
Thanks! 69.112.86.179 23:32, 19 April 2014 (UTC)
Yes, pages get imported in the order they're stored in the import XML. Maybe the pages were there before the templates, and when templates were imported they didn't purge the pages.
Note that if those templates were used on a lot of pages, those pages weren't purged automatically, and the purge should be delayed in the Manual:Job queue. Assuming that's what happened, running Manual:runJobs.php should have been fixed this, otherwise that would be a bug. Ciencia Al Poder (talk) 16:43, 20 April 2014 (UTC)

centralauth help

hi can I have some help with centralauth please if I use this

$wgCentralAuthDatabase = 'name of databse';

do I keep the databse name the same for all wikis or do I change it for the different wikis 86.173.52.65 (talk) 18:46, 19 April 2014 (UTC)

Central auth help

Hi can someone help with centralauth I have done all the setup and I have migrated my account to the centralauth auth table but on the other wiki it won't let me log on to that global account instead saying it doesent esist but when trying to create an local account of that username it says this account is global you cannot create it. Please help. 86.173.52.65 (talk) 23:06, 19 April 2014 (UTC)

hi how can I setup centralauth so that I can create one account on one wiki and use the account on the other wiki. I have migrated my account to centralauth but it is not working on the other wiki I have the extension confirm account and I run mediawiki 1.23 my websites are http://en.random-wikisaur.tk and http://pt-br.random-wikisaur.tk 86.173.52.65 12:42, 20 April 2014 (UTC)
it is confirmaccount causing the problem. please fix it to support centralauth please. and how can I enable confirmaccount to being able to use centralauth. 86.173.52.65 14:10, 20 April 2014 (UTC)

centralauth error

hi I get this erro when login out of using central auth

Fatal error: Call to a member function getFullUrl() on a non-object in /home/paladox/public_html/en/extensions/CentralAuth/CentralAuthHooks.php on line 647 86.173.52.65 (talk) 12:54, 20 April 2014 (UTC)

add simple english

hi why not create messages for simple English like

MessagesSimple.php simple.json

in simple.json

it would be like. please go to http://simple-random-wikisaur.tk/index.php/Simple.json 86.173.52.65 (talk) 16:31, 20 April 2014 (UTC)

Which problem do you try to solve? AKlapper (WMF) (talk) 04:31, 21 April 2014 (UTC)
Nothing does thought I'll ask for simple English to be added to mediawiki 86.173.55.186 11:01, 21 April 2014 (UTC)
Those requests should go to bugzilla Ciencia Al Poder (talk) 09:48, 22 April 2014 (UTC)
...only after the user has managed to clarify what specifically is wanted and where. Bugzilla link: bugzilla.wikimedia.org/enter_bug.cgi?product=MediaWiki&format=guided AKlapper (WMF) (talk) 09:52, 22 April 2014 (UTC)

Inserting the same text in multiple Articles

Anyone that can explain wow I do this? I don't want to link. I want it to be an Article that cannot be opened alone (well, edit purpose is ok or even a must). It's intended to be included by other pages only. Like in edit mode of a page you point the cursor and include a comand that points to that text. IN normal mode the text appears and you can't tell that this text is inlcuded.

Like you in php use the include() function and echo out the same text.

Thanks. Muuucho (talk) 08:58, 21 April 2014 (UTC)

You can insert the same text in multiple articles using Templates. You create the template witht the text, and then put that template on all the pages you want to display that text. Ciencia Al Poder (talk) 09:44, 22 April 2014 (UTC)

Site "experiencing technical difficulties"-help

Im hoping someone can help. We built a wiki for our website ( http://wiki.dnapolicyinitiative.org/ ) as an educational resource. Last week, the whole thing disappeared and the only thing that shows up is a white page with black text that says the site is experiencing technical difficulties, just wait and reload-except nothing changes. Were not very sophisticated and Im not certain whether its mediawiki or php. Im not sure if its related but the wiki home page kept getting spammed no matter what we did so we changed the setting so only the administrator could update it though every other page of the wiki remained open access. Your help is much appreciated, were currently without an important educational resource for our nonprofits project. Thanks Jeremy Ogrenize (talk) 17:32, 21 April 2014 (UTC)

It says "Can't contact the database server" so first thing I'd make sure is if the database server is running (as you said that it worked before I assume that configuration did not change). And that depends on your setup and your host. AKlapper (WMF) (talk) 01:37, 22 April 2014 (UTC)
The complete message, which I see right now is
Can't contact the database server: Access denied for user 'bla'@'ip-address'
with some values for username and host. Check that the username and host are correct and then check that the password is right. You can verify this data by using it to log into MySQL from the shell. 88.130.112.50 09:58, 22 April 2014 (UTC)

[RESOLVED] AND OR statement for parserfunctions?

Hello. I'm managing a wiki and I'm trying to fix a template in which a column of the table won't appear unless -x- is filled out. It works fine... but it is more complicated than that.

It goes like this basically: -if --money-- is filled out, then show header: header --money-- --stuff-- --stuff-- --etc--

So, if the user fills out the --money-- option on a form for example, then it will work fine. The header will appear as planned and all is well. BUT, if the user doesn't fill out the --money-- option on the form and instead skips and fills out --stuff--, then the column won't appear even though I need it to.

Is it possible to have a statement that says if --money-- OR --stuff-- is filled out, then show header?


MediaWiki 1.22.0 PHP 5.3.13 (cgi-fcgi) MySQL 5.5.32-log 141.165.165.123 (talk) 04:09, 22 April 2014 (UTC)

{{#if: {{{money|}}}{{{stuff|}}} | show header | show nothing }} Ciencia Al Poder (talk) 09:50, 22 April 2014 (UTC)
Funnily enough I tried this already but it didn't work, now it does. I suppose I must have made a small error somewhere. Ha.
Thanks! 141.165.165.123 11:46, 22 April 2014 (UTC)

Correct path in MediaWiki Version 1.19.

I have a big problem with my MediaWiki (www.sfb-higher-invariants.de).

The login is connected via a Single-Sign-On of the University of Regensburg. By logging in, there is a redirect to a specific site. After a correct login there is another redirect back to the Wiki. When not being logged in, the Wiki is on the server www-cgi. After logging into it the server changes (to a secure server).

My Problem: If I set the $wgScriptPaht to www-cgi image uploads are working and the css is loaded. But the redirect to the secure server does not work properly. If I set no path, the redirect works, but the other two things fail. The secure server is https.

Where do I get the path, which the Wiki sets automatically? And how can I work around this mess?

Thanks, Michael

PS: There is no other way for the sign in because of security reasons of the university... :( 79.208.179.250 (talk) 10:13, 22 April 2014 (UTC)

If the only change in the URL scheme is that one uses http: and the other uses https:, edit $wgServer and set it to be protocol-relative (eg: //your-server.org) Ciencia Al Poder (talk) 09:37, 23 April 2014 (UTC)

Is linking in the sitemap on a webpage that uses Wikimedia-contents enough?

Hello,

i am working on a tourist webpage where i want to use WikiMedia-contents in PopUps on a map. Thus to the fact that there will be hundreds of seperate PopUps, my question is if i have to post the name of the creator and attribution parties, a copyright notice, a license notice, a disclaimer notice, and a link to the material directly in every PopUp or if it is enough to post the credits in the sitemap on the page.

It would be awesome if you could help me! Thanks, Manuel 193.174.83.97 (talk) 10:16, 22 April 2014 (UTC)

I cannot provide real advice about legal matters, but I think that just a link to the article history and one to the license (currently Creative Commons BY-SA 3.0 for Wikipedia, may be different for other projects) should be fine.
Anyway, an extended form of the attribution (details about the license, etc.) could be placed in the page footer.
But if you only include very small portions of text that do not exceed the threshold of originality, attribution is not required. Ricordisamoa 21:45, 23 April 2014 (UTC)

Why is the ATOM feed more up to date then the RSS feed?

  • MediaWiki: 1.22.5
  • PHP: 5.3.10
  • MySQL: 5.5

Sorry, no URL here since the installation is not publicly accessible.

I've noticed that on my installation the ATOM feed of the recent changes page [1] is always more up to date then the RSS2 version [2]. I've checked the source feed and found out that both feeds have different generation times:

  • ATOM: <updated>2014-04-22T14:08:50Z</updated>
  • RSS2: <lastBuildDate>Tue, 22 Apr 2014 08:20:25 GMT</lastBuildDate>

So to me this looks like some sort of caching problem. I've tried calling action=purge on Special:Recentchanges, but that didn't help. Do you have any ideas how to get the RSS feed as up to date as the ATOM feed?

P.S.: I've recently updated my installation from MediaWiki 1.16.5. I didn't noticed this issue in this old version, by the way...

[1]: index.php?title=Special:Recentchanges&feed=atom

[2]: index.php?title=Special:Recentchanges&feed=rss 77.76.229.129 (talk) 14:35, 22 April 2014 (UTC)

API Question - Create/Editing page

Hello,

I am having some trouble with the API and my MediaWIKI website.

My goal is to create a Perl script for my college capstone class that allows the user to create a new page on the wiki when they are giving input to the script. I won't go into detail as to why they have to create a new page, the page just has to be created when the user is running this specific Perl script and instead of just telling them as an instruction on the script, it would be nice if when they give input through the script so I can programmatically create the page.

Anyways, here is what I have so far: - I got my API token by going to my API link: api.php?action=tokens

Here is the code I'm currently using for the script:

my $browser = new LWP::UserAgent();
$browser->agent('Mozilla/5.0');
$browser->default_header('Accept-Encoding' => scalar HTTP::Message::decodable());
$browser->default_header('Accept-Language' => "no, en");
$browser->default_header('Content_Type' => 'application/x-www-form-urlencoded');
my $api_url = "http://<mywebsite>/api.php";
my $request = HTTP::Request->new(POST => $api_url);
$request->header('Accept-Encoding' => scalar HTTP::Message::decodable());
$request->header('Accept-Language' => "no, en");
$request->header('Content_Type' => 'application/x-www-form-urlencoded');

# Add our data.
# This token is required for edit requests - must also be added last.
my $api_edit_token = "6bde13537ae386fd6a72a232bd03cbbf+\\";
my $content_title = "Speech:TestingAPIWithPerlAPI";
my $content_text = "This is my second time trying our the Perl API.";
my $post_data = 'action=edit&format=json&title='. $content_title .'&text='. $content_text .'&token=' . $api_edit_token;

$request->content($post_data);

# Fire away.
my $response = $browser->request($request);
if ($response->is_success) {
    my $message = $response->decoded_content;
    print "Received reply:\n$message\n";
}
else {
    print "HTTP POST error code: ", $response->code, "\n";
    print "HTTP POST error message: ", $response->message, "\n";
}

Now this runs perfectly fine, however I keep getting the same error over and over: {"error":{"code":"badtoken","info":"Invalid token"}}

Obviously I'm making sure that my token is correct and up to date as I keep checking the token api link. Before the POST request is actually made, I print out the request as a string:

action=edit&format=json&title=Speech:TestingAPIWithPerlAPI&text=This is my second time trying our the Perl API.&token=6bde13537ae386fd6a72a232bd03cbbf+\

Everything seems fine there!

Anyone run into this? I have a feeling it has to do with the urlencoding of the +\ in the token... thanks! 75.68.66.120 (talk) 15:33, 22 April 2014 (UTC)

The token can be different for every page, and will be different for every user.
You should retrieve the token for that page first, and then post the content with that token, as explained in API:Edit#Token.
If you're logging in with that script, be sure to receive and send also the cookies! Ciencia Al Poder (talk) 09:42, 23 April 2014 (UTC)
w:Wikipedia:Creating a bot#Perl has some information about several Perl frameworks that can ease the entire process. Ricordisamoa 01:46, 30 April 2014 (UTC)

need help removing mediawiki page

Hi there is an old page that pops up on google search results. can someone tell me how I can remove this page or how to figure out who the webmaster is who can remove this page or stop it form apearing in google search resutls. thank you

http://2009.igem.org/Team:Michigan/Nasir_Fakhri 2601:0:4200:5CE:AD7F:C07F:F3DC:7211 (talk) 16:26, 22 April 2014 (UTC)

Hi!
The guys from iGEM only use MediaWiki to run their site - it is not associated with Wikipedia or so.
Here is a list of the administrators of their site: http://2009.igem.org/wiki/index.php?title=Special%3AListUsers&username=&group=bureaucrat&limit=50
Here I found some contact addresses: http://igem.org/Contact
Meagan Lizarazo and Vinoo Selvarajah are those admins I mentioned above - they are the ones who will be able to help you. 88.130.112.50 17:02, 22 April 2014 (UTC)

Adding an Edit with Form Button

Hello.

So, here is the deal. I have a mediawiki skin, which is great, but there's just one problem that I'm looking to resolve. I hope I can resolve it/get help here?

  • please excuse some of the mess around, I'm in the process of overhauling the content*

http://creawiki.net/index.php?title=Zabis
http://pastebin.com/4Hn7S7MF (line 450 and onward is the PHP for the Edit button and so on)

In this theme, most of the page options are pulled into a drop down menu, only the edit button is outside of it. Unfortunately, the "Edit with Form" option is also pulled into the dropdown. I've spent weeks trying to figure out how to create a duplicate "Edit" button, except make it "Edit with form" which leads to the form for that page. I can't for the life of me figure it out, this is also because PHP is not my strong suit.

How can I adjust the PHP to not pull the "Edit with Form" into the Page dropdown, and if that's not possible, how can I just duplicate that Edit button, but customize it to fight the Edit with Form situation?


MediaWiki 1.22.0
PHP 5.3.13 (cgi-fcgi)
MySQL 5.5.32-log
Kirabook (talk) 17:52, 22 April 2014 (UTC)

refreshlinks.php and runjobs.php hang

  • MediaWiki version: 1.22.5
  • PHP version: 5.5.3
  • Database: MySQL 5.6.15

I've been experiencing a problem with these two maintenance scripts where they hang upon execution. The problem seems to be refreshLinks jobs; they won't run from the command line, but they run just fine out of the normal per-page view job queue. runJobs.php just hangs when it gets to such a job, and refreshLinks.php stops after displaying "100" after "Refreshing links table" (very nearly identical to the problem here: Manual_talk:RefreshLinks.php#Script_stops_processing_data). In both cases, the PHP command line shows no CPU usage, and MySQL shows that the connection has gone to sleep. I've tried disabling all extensions on the wiki, thinking that might be the issue, but that doesn't have any effect. Given the large volume of jobs this particular wiki has, I've been forced to raise $wgJobRunRate to keep up -- but that's less than optimal as it impacts page load time. Thoughts? 69.174.87.60 (talk) 19:46, 22 April 2014 (UTC)

Downgrading to PHP 5.3.28 fixed this issue. 69.174.87.60 20:58, 24 April 2014 (UTC)
it is then a bug please can you post the bug at http://bugzilla.Wikimedia.org/ 86.135.248.229 22:54, 24 April 2014 (UTC)
"runJobs.php just hangs" - at which stage? Does it provide any output? Seconding the previous commenter, this would be really welcome as a bug report in Bugzilla to make developers aware of it. Thanks! AKlapper (WMF) (talk) 06:36, 25 April 2014 (UTC)

Restore a broken wiki

Hello I was really looking for some help if any one is kind enough. The office's web-server was badly damaged after a aircon failed and it over heated. While I have installed a new server, I have also been able to get most of the old server functioning again, at least to grab documents and files from it. Well everything except the media wiki. I can access the files and folders and I have been able to use mysqlworkbench to export the database.

I have now setup a new server and installed mediawiki software and that is fine and running. However I would like restore the database and documents. As you would expect poor planing and backup hasnt helped the situation the old broken wiki stored documents and procedures that no exist no where else. Also of course the person who setup the old wiki has long since left the company and I have no ide really what im doing. Im like a monkey with a stick.

Here are some important details if it helps - the old mediawiki was version 1.17, the new installed media wiki is 1.22. The OS is Suse Linux Enterprise Server on both old and new. Both php & mysql seem to be operational on old server and definitely working on the new server. I have the wiki folder from the old server and also as mentioned I have the mwiki.sql database backup of around 40mbs

Would anyone be kind enough give me, a lowly windows admin, a simple walk through of the steps I can take to try to recover this server - many thanks 167.30.48.6 (talk) 07:38, 23 April 2014 (UTC)

Hi!
What you in fact are doing are a combined server move and upgrade.
If you have the following, you will be able to restore (=move) the wiki: The files from the old wiki. What you must have are the contents of the folders images/. If you use a modified skin (= not one of the default skins), then you will need these files from inside the folder skins/. If you use extensions, you will need these extensions from inside the folder extensions/. Note that MediaWiki 1.22 already does provide some extensions by default; do not overwrite these extensions. Most likely you will have to download newer versions of the other extensions you use; you find them here on mediawiki.org. And you need to copy over the file LocalSettings.php and adjust the database name, user and password and possibly the value of $wgServer.
Now you know, which files from the old installation you need. In a first step I would copy these files of the old wiki into the new installation. Then put the database into the MySQL server. Make sure to keep the DB backup.
After that you will have to run the PHP script maintenance/update.php from the shell. This script will update your database to be compatible with the new MediaWiki version. If this step fails (which I would say is likely) you will still need the backup to restore the DB again.
If all this worked, you should have a working wiki with version 1.22.5.
However, for such a bigger update, expect PHP errors to happen. You will find them in the error log of PHP - solve them before you run your new wiki. 88.130.73.135 09:16, 23 April 2014 (UTC)
Thank you so much for your advice. I do have all the files/folders you have mentioned. I will be attempting this today. 167.30.48.6 00:08, 24 April 2014 (UTC)

[RESOLVED] Users can not define e mail in their settings

Users can not define e mail in their settings. There is no input field to save a e mail. How can I change this?

MediaWiki 1.21.2 PHP 5.3.27 (cgi-fcgi) MySQL 5.1.48 80.147.104.61 (talk) 07:40, 23 April 2014 (UTC)

Set $wgEnableEmail to true. Ciencia Al Poder (talk) 09:44, 23 April 2014 (UTC)

MediaWiki 1.22.5 RunJobs.php runs an endless loop through 2 pages

ex.

2014-04-23 13:37:19 SMW\UpdateJob Cisco_ACNS STARTING
2014-04-23 13:37:21 SMW\UpdateJob Cisco_ACNS t=2214 good
2014-04-23 13:37:21 SMW\UpdateJob Cisco_ACNS STARTING
2014-04-23 13:37:24 SMW\UpdateJob Cisco_ACNS t=2180 good
2014-04-23 13:37:24 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) STARTING
2014-04-23 13:37:26 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) t=2119 good
2014-04-23 13:37:26 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) STARTING
2014-04-23 13:37:28 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) t=2118 good
2014-04-23 13:37:28 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) STARTING
2014-04-23 13:37:30 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) t=2087 good
2014-04-23 13:37:30 SMW\UpdateJob Cisco_ACNS STARTING
2014-04-23 13:37:32 SMW\UpdateJob Cisco_ACNS t=2134 good
2014-04-23 13:37:32 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) STARTING
2014-04-23 13:37:34 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) t=2123 good
2014-04-23 13:37:34 SMW\UpdateJob Cisco_ACNS STARTING
2014-04-23 13:37:36 SMW\UpdateJob Cisco_ACNS t=2147 good
2014-04-23 13:37:36 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) STARTING
2014-04-23 13:37:39 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) t=2155 good
2014-04-23 13:37:39 SMW\UpdateJob Cisco_ACNS STARTING
2014-04-23 13:37:42 SMW\UpdateJob Cisco_ACNS t=3147 good
2014-04-23 13:37:42 SMW\UpdateJob Cisco_ACNS STARTING
2014-04-23 13:37:44 SMW\UpdateJob Cisco_ACNS t=2128 good
2014-04-23 13:37:44 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) STARTING
2014-04-23 13:37:46 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) t=2057 good
2014-04-23 13:37:46 SMW\UpdateJob Cisco_ACNS STARTING
2014-04-23 13:37:48 SMW\UpdateJob Cisco_ACNS t=2100 good
2014-04-23 13:37:48 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) STARTING
2014-04-23 13:37:50 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) t=2139 good
2014-04-23 13:37:50 SMW\UpdateJob Cisco_ACNS STARTING
2014-04-23 13:37:52 SMW\UpdateJob Cisco_ACNS t=2182 good
2014-04-23 13:37:52 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) STARTING
2014-04-23 13:37:55 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) t=2279 good
2014-04-23 13:37:55 SMW\UpdateJob Cisco_ACNS STARTING
2014-04-23 13:37:57 SMW\UpdateJob Cisco_ACNS t=2212 good
2014-04-23 13:37:57 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) STARTING
2014-04-23 13:37:59 SMW\UpdateJob Cisco_Wide_Area_Application_Engine_(WAE) t=2115 good


this continues on and on and keeps adding additional jobs to the queue 148.177.1.217 (talk) 13:39, 23 April 2014 (UTC)

That does seem to be a problem with the SMW job, which is creating a new job recursively. I'd ping the SMW people about this, or file a bug report. Ciencia Al Poder (talk) 09:24, 24 April 2014 (UTC)

Joomla! integration

Dear Member,

I like to integrate MediaWiki 1.22.5 with Joomla! 3.2.3

What about AuthJoomla? It is no longer maintained. Is it recommendable to use?

How should I proceed with this project?

Thank you for your answer.

Hansie Hansie (talk) 17:23, 23 April 2014 (UTC)

You could try using AuthJoomla. Just because it isn't maintained doesn't mean it isn't going to work. It may not work however, but it's worth trying. GeorgeBarnick (talk) 17:28, 23 April 2014 (UTC)
hi I have found a newer version that supports mediawiki 1.20 and joomla 2.5 or higher it is now avalible at Extension:AuthJoomla2. 94.197.122.88 11:04, 26 April 2014 (UTC)

[RESOLVED] Norwegian Infobox script error

I have a problem with Norwegian Infoboks biografi (=Infobox person?) which I have imported from the Norwegian Wikipedia for a genealogy project. The error can be seen on my web place: OlePedia

I get Skriptfeil (= Scripterror) on the page and klicking says Skriptfeil: Ingen slik modul (=Scripterror: no such module).In wiew source, under Maler som brukes på denne siden (=Templates used on this page), Module (with e) is requested and shown in red as being nonexistent. However, they are imported from the Norwegian Wikipedia as Modul (without e). I have found reference to Module in the Norwegian part of Scribunto.i18n.php and changed it to Modul, but the script error is still there. I guess that the problem is in the language somewhere, but as you can see, the project is in the beginning, I am new to the wikisystem, I am stuck and would be very grateful for an answer.

I am running:

  • Mediawiki 1.22.5
  • PHO 5.4.26 (cgi-fcgi)
  • MySQL 5.6.17
  • Lua 5.1.4

and have installed among other extensions:

What it means is you have not create the module page meaning like model:infobox like that. So you would need to create the module page. 90.195.251.112 16:03, 24 April 2014 (UTC)
I have the correct requested module, for instance Modul:WikidataCommonscat downloaded from the Norwegian Wikipedia www.no.wikipedia.org. The problem is that my Norwegian wikipedian website is requesting the Module:WikidataCommonscat like it is named in English as you can see on my website www.hattebol.no in the source of the main page. OlePedia (talk) 17:35, 24 April 2014 (UTC)
Easy find the template that is requesting to use that and change the name or do a redirect to the module you want it to be named. I am not sure if you can do redirects in modules. But you need to create all the modules it requires for that message to go. 90.195.251.112 18:21, 24 April 2014 (UTC)
Mal:Infoboks biografi tries to invoke Modul:WikidataCommonscat and Modul:WikidataBilde, which do not exist. Import them. If you used a different name for them, edit the template, for example changing "{{#invoke:WikidataCommonscat" to "{{#invoke:KategoriKjønn".
However, your Lua module is using the mw.wikibase library, which may need some configuration to work correctly. Ricordisamoa 01:28, 28 April 2014 (UTC)
That's right thank you!
The modules were missing. Importing them however, didn't help. They were imported and saved as Modul (without e) and Mediawiki asked for Module (with e). That was because I had imported Infobox person from an english wikipedia which had written Module into my sites namespace. Following Manual:Importing Wikipedia infoboxes tutorial i entered into my Localsettings.php:
  • $wgExtraNamespaces[828]="Modul";
  • $wgExtraNamespaces[829]="Moduldiskusjon";
which made the script error disappear. OlePedia (talk) 18:56, 28 April 2014 (UTC)
It should still work. But if you used the word module in different languages and our it on a English site it would not work. 86.135.251.50 20:05, 28 April 2014 (UTC)
You know you can change the language of the site to language code no. 86.135.251.50 20:06, 28 April 2014 (UTC)
You know you can change the language of the site to language code no. 86.135.251.50 20:06, 28 April 2014 (UTC)
You know you can change the language of the site to language code no. 86.135.251.50 20:06, 28 April 2014 (UTC)
The language code was changed from no to nb 86.135.251.50 20:11, 28 April 2014 (UTC)
And please update the messages because it seems that the messenges from a previous Mediawiki install are still there but where removed. 86.135.251.50 21:11, 28 April 2014 (UTC)

Must Create Infobox!

I am trying to do this by myself but now I am going to tell you what I have done so far. Perhaps you can tell me what I still need to do.

I am attempting to import Template:Infobox Company from Wikipedia.

I have the extensions installed and I have entered the codes into LocalSettings.php I also copied everything from Wikipedia's MediaWiki:Common.css and MediaWiki:Common.js into mine.

My wiki:

http://wiki.boingblogs.com/

the test page:

http://wiki.boingblogs.com/index.php?title=INFOBOX_TEST_PAGE In Correct (talk) 05:09, 24 April 2014 (UTC)

Did you follow https://www.mediawiki.org/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial ? AKlapper (WMF) (talk) 06:36, 24 April 2014 (UTC)
I have read it. I have read many articles, I even looked here
https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2011/02#h-Infobox_not_working-2011-02-21T03%3A49%3A00.000Z
but the tutorial https://www.mediawiki.org/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial but I did not understand how to use Special:Export and Special:Import. I successfully exported the source of a page into an .xml file which was renamed. That tutorial is a draft. There were very little instructions how to import it into my MediaWiki. I thought the renamed file would cause problems so instead
I created new Wiki Pages. (Template:Infobox for example) and then I copied the source from Wikipedia's Template:Infobox, and continued to do the same thing for Template:Infobox/doc and any pages I created to fix Red Links I found.
here is the test page:
http://wiki.boingblogs.com/index.php?title=INFOBOX_TEST_PAGE
It says Script Error: No Such Module.
http://wiki.boingblogs.com/index.php?title=Template:Infobox
Same Thing.
http://wiki.boingblogs.com/index.php?title=Template:Infobox_company
Also same errors.
You can just look at my Special:Version and Mediawiki:Common.css and Mediawiki:Common.js yourself, but you can't view localsettings.php so I will post what I added to it later. In Correct (talk) 20:07, 24 April 2014 (UTC)
https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/06#h-%5BRESOLVED%5D_invoke_infobox_error_in_mediawiki_%28template_copied_from_Wikipedia%29-2013-06-06T10%3A24%3A00.000Z
Can somebody tell me what Lua is? And do I have it installed? If so, do I have it installed correctly? In Correct (talk) 21:49, 24 April 2014 (UTC)
lua is another cripting program. the extension that uses lua is scribunto. please change your database password and your upgrade code. 86.135.248.229 22:49, 24 April 2014 (UTC)
What is an upgrade code? In Correct (talk) 23:22, 24 April 2014 (UTC)
I think he means run update.php...? I don't know what he means to be honest. GeorgeBarnick (talk) 23:39, 24 April 2014 (UTC)
I created every template this suggested
http://www.etcwiki.org/wiki/How_to_install_template_infobox_in_mediawiki
And STILL no Infoboxes.
Now I am going to check if Scribunto is installed correctly of if is damaged. In Correct (talk) 02:37, 25 April 2014 (UTC)
https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/06#h-InfoBox_--_problems_installing_Scribunto-2013-06-11T11%3A07%3A00.000Z
https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/07#h-Fatal_exception_of_type_ScribuntoException-2013-07-23T09%3A06%3A00.000Z
I have found these two pages and I believe that Scribunto is installed correctly.
I keep getting "Script Error: No Such Module" errors.
I began creating modules.
This is unacceptable. There must be an extension that completes this automatically, instead of spending hours and hours manually creating hundreds of Templates and Modules. Not only that, but also this should be included with all the other available extensions during the "Set Up Your Wiki". In Correct (talk) 03:25, 25 April 2014 (UTC)
If anybody could read this, here is the Infobox I am trying to use:
{{infobox | bodyclass = vcard | bodystyle = {{{bodystyle|}}} | titleclass = fn org | title = {{{name|{{{company_name|<includeonly>{{PAGENAME}}</includeonly>}}}}}} | imageclass = logo | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|{{{company_logo|}}}}}}|size={{{logo_size|}}}|sizedefault=frameless|alt={{{logo_alt|{{{alt|}}}}}}}} | caption = {{{logo_caption|{{{caption|}}}}}} | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=300px|alt={{{image_alt|}}}}} | caption2 = {{{image_caption|}}} | label1 = {{nowrap|[[Doing business as|Trading name]]}} | data1 = {{{trading_name|}}} | label2 = Native name | data2 = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>|}} | label3 = [[Romanization|Romanized]] name | data3 = {{{romanized_name|}}} | label4 = Formerly called | class4 = nickname | data4 = {{{former_name|}}} | label5 = {{#if:{{{defunct|}}}|[[Types of business entity|Former type]]|[[Types of business entity|Type]]}} | class5 = category | data5 = {{{type|{{{company_type|}}}}}} | label6 = [[Ticker symbol|Traded as]] | data6 = {{{traded_as|}}} | label7 = [[International Securities Identification Number|ISIN]] | data7 = {{#if:{{{ISIN|}}}|[http://toolserver.org/~magnus/isin.php?language=de&isin={{{ISIN}}} {{{ISIN}}}]}} | label8 = Industry | class8 = category | data8 = {{{industry|}}} | label9 = Genre | class9 = category | data9 = {{{genre|}}} | label10 = Fate | data10 = {{{fate|}}} | label11 = Predecessor(s) | data11 = {{{predecessor|{{{Predecessor|}}}}}} | label12 = Successor(s) | data12 = {{{successor|}}} | label13 = Founded | data13 = {{{foundation|}}} | label14 = Founder(s) | class14 = agent | data14 = {{{founder|}}} | label15 = Defunct | data15 = {{{defunct|{{{dissolved|}}}}}} | label16 = Headquarters | class16 = {{#if:{{{location|}}}|label|adr}} | data16 = {{#if:{{{location|}}}|{{{location}}} }} {{comma separated entries |1= {{#if: {{{location_city|}}}|<span class="locality">{{{location_city}}}</span>}} |2= {{#if: {{{location_country|}}}|<span class="country-name">{{{location_country}}}</span>}} }} | label17 = Number of locations | data17 = {{{locations|}}} | label18 = Area served | data18 = {{{area_served|}}} | label19 = Key people | class19 = agent | data19 = {{{key_people|}}} | label20 = Products | data20 = {{{products|}}} | label21 = Brands | data21 = {{{brands|}}} | label22 = Production output | data22 = {{{production|}}} | label23 = Services | class23 = category | data23 = {{{services|}}} | label24 = Revenue | data24 = {{{revenue|}}} | label25 = [[Earnings before interest and taxes|Operating income]] | data25 = {{{operating_income|}}} | label26 = {{#ifeq:{{{intl|}}}|yes|[[Net income|Profit]]|[[Net income]]}} | data26 = {{{net_income|}}} | label27 = [[Assets under management|AUM]] | data27 = {{{aum|}}} | label28 = [[Asset|Total assets]] | data28 = {{{assets|}}} | label29 = [[Equity (finance)|Total equity]] | data29 = {{{equity|}}} | label30 = Owner(s) | data30 = {{{owner|}}} | label31 = Members | data31 = {{{members|}}} | label32 = Employees | data32 = {{{num_employees|}}} | label33 = [[Parent company|Parent]] | data33 = {{{parent|}}} | label34 = [[Division (business)|Divisions]] | data34 = {{{divisions|}}} | label35 = [[Subsidiary|Subsidiaries]] | data35 = {{{subsid|}}} | label36 = Website | data36 = {{{homepage|{{{website|}}}}}} | below = {{#if:{{{footnotes|}}}|'''References:''' {{{footnotes}}} }} }}<noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude>
I read whenever the code says "Invoke", it is trying to load a module, and the Script Error: No Such Module, means it is trying to load a module that does not exist.
Are there any other terms in the code that is causing any Script Errors?? In Correct (talk) 03:30, 25 April 2014 (UTC)
Then one of your templates has the invoke script for going to a module page if you find the module it is asking to create and create it. If you go on to the page where it is showing that message and click edit on the page and scroll down it should show you the module you need to create. 90.195.251.112 07:12, 25 April 2014 (UTC)

Error creating thumbnail: Unable to save thumbnail to destination

Hello,

I've read through previous threads concerning this issue and find that I am *still* unable to resolve it.

Here is the version information for the system I am running:

MediaWiki 1.19.15
PHP 5.2.5 (apache2handler)
MySQL 5.0.51a

Until recently, I was able to upload images no problem. Thumbnails appeared beautifully (after resolving a easier to fix bug). For some reason, now when I upload an image I receive the following error "Error creating thumbnail: Unable to save thumbnail to destination"

My research shows that this is a common issue for a variety of reasons for others, but it seems beyond my capacity to diagnose and resolve for myself. I'm about 8 months into this self taught MediaWiki adventure. I cannot recall if I changed some setting somewhere. (Too many late nights!) Here is what I know:

  • Images files and thumbnails for previous uploads are still visible
  • What I believe to be the relevant directories (/images, /thumbs, /temp) are readable, writable, and executable (777)
  • LocalSettings.php seems to be properly configured

Apologies in advance if I'm not posting in the proper area. Any guidance would be most welcome.

Thanks. Etravelslight (talk) 07:27, 24 April 2014 (UTC)

Well, that may be too obvious, but in case it has been overlooked: do you have enough free space on the server to upload files? Becasue if nothing has been changed and it was working before, that's the first reason it comes to my mind. That, or a disk quota imposed by your host.
If not, set a debug log as explained in Manual:How to debug when performing an upload, and disable the log again after the test, and look at any relevant info when the error happens to see if there's more information about the cause. Ciencia Al Poder (talk) 09:30, 24 April 2014 (UTC)
I appreciate the suggestion (It's a good one!) and double checked the disk space for the site. There appears to be plenty of room. I'll try the debug next. Any other suggestions are welcome. Thanks so much. Etravelslight (talk) 16:46, 25 April 2014 (UTC)
Did you find anything yet? If you turn on the display of all errors, what do you see? MarkAHershberger(talk) 22:44, 27 April 2014 (UTC)

i hate pipes

they always create problems! OK, I know how to escape pipes but how about if my users don't? I have a form using a template through which users create pages that are basically tables. In this form, there is a field where users copy&paste some text (can be code, can be an e-mail message, can be anything) that usually contains some special characters such as [, ], | etc. I managed to escape all characters using a couple of solutions (changing input type to "code", using #replaceset parserfunction to change characters into their HTML equivalents, etc) but pipe is a big trouble. Cannot include it even in a regular expression - it breaks it because wiki thinks that I am either trying to add something into the table or adding a parameter after it. I cannot ask my users to manually delete all pipes from their input. Any ideas how to solve this? 185.31.48.30 (talk) 09:34, 24 April 2014 (UTC)

Usually you create a template called "Template:!" which helps to escape pipe charaters in tables. Such template contains only the pipe. In the original text the pipe has to be replaced by {{!}}.
You may take a look at that template in this wiki: Template:!. And here you find some further information. Wgkderdicke (talk) 14:51, 24 April 2014 (UTC)
Wgkderdicke (talk) 14:52, 24 April 2014 (UTC)

This file did not pass file verification

Hello all,

(I already discovered that a lot is written about upload problems but still I can't figure it out.)
I've been trying a lot to solve the problem but it doesn't go away.
Problem: "File verification did not pass" failure.
When: Every file I try to upload. Using the standard upload and also using MSUpload

Any help will be highly appreciated..!!

Wiki platform: Synology Ds213+
DSM version 5.0-4458, Update 2
MediaWiki 1.22.5
PHP 5.5.9 (fpm-fcgi)
MariaDB 5.5.34-MariaDB
Added content in Localsettings.php:

$wgEnableUploads = true;
$wgFileExtensions = array( 'bmp', 'doc', 'docx', 'flac', 'gif', 'ico', 'jpeg','jpg', 'mp3', 'mpp', 'odg', 'odp', 'ods', 'odt', 'ogg', 'pdf', 'png', 'ppt',
'pptx', 'ps', 'rtf', 'svg', 'swf', 'tif', 'tiff', 'xls', 'xlsx', 'xml', 'txt');
$wgGroupPermissions['*']['upload'] = true;
$wgLoadFileinfoExtension = true;
$wgAllowJavaUploads = true;
$wgVerifyMimeType = True;
$wgStrictFileExtensions = True;
$wgCheckFileExtensions = True;
$wgMSU_ShowAutoKat = false;
$wgMSU_CheckedAutoKat = false;
$wgMSU_debug = false;
$wgMSU_ImgParams = '400px';
$wgMSU_UseDragDrop = true;
require_once "$IP/extensions/MsUpload/msupload.php"; Snowman628 (talk) 10:54, 24 April 2014 (UTC)

Hacked page, unable to delete

There is a page that was hacked in order to post malicious content about a certain United Nations executive. I used WhoIs to find the MediaWiki owner and contacted him. He said that page was put up under their MediaWiki without their approval, but they can't seem to delete it for some reason. Can someone at MediaWiki please help us take down the hacked page? Thanks. The URL is http://wiki.originlab.com/~originla/wiki2/index.php?title=Learn_More_About_The_Lawsuit_Against_Grupo_Mayan_And_Daniel_Chavez_Moran Edyang~mediawikiwiki (talk) 15:27, 24 April 2014 (UTC)

Hi!
To me the page you linked to looks like it has just normally been created by some user. The MediaWiki owner might want to block this user to prevent him from doing further edits.
You can log in as a MediaWiki admin to delete a page through the normal editing interface (the delete button is located next to "Edit" and "History"). Even better might be this: You can permanently delete a page in MediaWiki by using the maintenance script nukePage.php. This allows you to permanently and irrecoverably delete a page. 88.130.100.33 15:35, 24 April 2014 (UTC)
Thanks, I will pass this on to them and see, appreciate it. Edyang (talk) 16:24, 24 April 2014 (UTC)
Hi,
For some reason the page is not possible to delete in its entirety. The IT team managed to remove the content, but the title and the page itself remains. It may be because this page was created from a hacked Mediawiki account? Can someone please advise as to why this page is not possible to be deleted, and if there's an administrator who can permanently delete it? Thank you in advance! Edyang (talk) 22:06, 26 April 2014 (UTC)
What you say does not seem to be correct (anymore): User Emma has deleted the page two days ago. You surely can still call that URL with the browser, but that has nothing to do with the fact that there was a page under this name: You can call any URL, whether a page with this name existed or not. The server also sends back the correct result: Error 404, no page here.
Currently the page content cannot be seen by anyone except by wiki admins, who can restore it should they want to. If what you want is to permanently remove it from your database, you first have to restore the page again. Then you can permanently delete the page in MediaWiki by using the maintenance script nukePage.php. This allows you to permanently and irrecoverably delete the page from the database. Note however that people will still be able to call its URL and the server will still send back an error 404. Basically that is what you already have right now. 88.130.115.215 23:12, 26 April 2014 (UTC)
Thank you for the explanation. Basically we need to remove the page so that it is not indexed by Google, and does not show up in the search engine results page. If we use the nukePage.php script to permanently remove it, since the URL is still callable, will the meta title tag still be indexed by Google? Thanks again. Edyang (talk) 17:38, 27 April 2014 (UTC)
Once the page is deleted, if you access that page, the server will return a HTTP 404 response, although you'll still see the normal MediaWiki interface to recreate it.
Search engines should not index those pages, and those pages will eventually drop from the search results. I think you can remove a page from Google results if you have a google webmasters tool account [12] Ciencia Al Poder (talk) 18:45, 27 April 2014 (UTC)
Hi please update Mediawiki 1.12 to 1.19 or higher and please upgrade your MySQL to support 1.19 and please update php 5.2 to 5.3 if you want to upgrade to Mediawiki 1.22 86.135.251.50 18:52, 27 April 2014 (UTC)
Your page currently is deleted and returns a 404 error. Google will notice and will update its index accordingly. When you use the nukePage.php script, MediaWiki will still output exactly the same - the only difference is that you will be unable to restore the spam later (and I think you do not want to restore it). However, for Google the page still returns a 404 error.
As Ciencia said, you can use Google Webmaster tools in order to make Google re-index the page faster. I don't know, if that really changes anything - on the next indexing, Google will update its index anyway.
The idea to update MediaWiki is really what you should do! Yur MediaWiki version is really old and has tons of known security holes. If you do not update, it is only a matter of time until you will be hacked again. You will have to update MySQL to 5.0 or newer first. Then you can update MediaWiki to 1.19.
If you also update PHP to PHP 5.3 or newer, then you will be able to update MediaWiki to version 1.22. 88.130.82.69 21:59, 27 April 2014 (UTC)

[RESOLVED] Update jquery

Hi why not update jquery to version 2.0 or higher. It will only work on ie 9 or higher but then have version1.9 file and if it detects an older browser ie8 or lower it will use that. It says version 2 works faster on ie 9. The link is http://jquery.com/ . 90.195.251.112 (talk) 15:59, 24 April 2014 (UTC)

Instead of 1.9 it is 1.11.0 90.195.251.112 16:09, 24 April 2014 (UTC)
jquery needs to be updated hasent been updated since 2012. 86.135.248.229 22:55, 24 April 2014 (UTC)
Can you check, if jQuery has been updated in the master branch in Git?
If it has not been updated, please open an issue in bugzilla! 88.130.100.33 22:55, 24 April 2014 (UTC)
No, it does not "need to be updated" if you don't have really good reasons why to do so (I refer to the word "need" here). Upgrading it will break stuff, see bugzilla:44740 and bugzilla:47076. If you want to help, testing MediaWiki with a newer jQuery version and providing patches which fix those problems with newer jQuery versions is very welcome! AKlapper (WMF) (talk) 06:33, 25 April 2014 (UTC)
There is now a plugin in for upgrading from older releases to newer ones. 90.195.251.112 07:01, 25 April 2014 (UTC)
Here's the plugin in links https://github.com/jquery/jquery-migrate/#readme 90.195.251.112 07:09, 25 April 2014 (UTC)
hi I downloaded the jquary I tried it with mediawiki I just replaced 1.8.3 with 1.11.0 I removed jquary.js and downloaded the new one and move it to resorce /lib/ and I tried it on the web installer and it fixes some things like when opening help it doesent put the blue box across screen it puts it to how much space it nees. 94.197.122.87 12:56, 25 April 2014 (UTC)
The new jQuery version definitely fixes "some things", but it also breaks "some things". Fixing them is what we are concerned about. 88.130.89.88 13:12, 25 April 2014 (UTC)
ok I have tried it and it worked without any thing braking. 90.195.251.112 14:46, 25 April 2014 (UTC)
You can open an issue in bugzilla (and/or have a look at the existing issues, which André pointed you to) and see, if these problems are there with jQuery 1.11. I am pretty sure, that something will break - given the list of changes - also in the APIs - it is nearly impossible that everything continues working.
However, just discussing stuff here won't get the update into the MediaWiki core. The right process is to have an issue in bugzilla and to push your changes to Gerrit for review. That will definitely help you get this issue tackled. :-) 88.130.89.88 14:59, 25 April 2014 (UTC)
ok 90.195.251.112 16:27, 25 April 2014 (UTC)
If nothing broke I'd love to see a list of things that you tested. ;) AKlapper (WMF) (talk) 17:16, 26 April 2014 (UTC)
I tested it on the web installer. but I think it broke javascript on the wiki. but by installing 2.1 it fixed everything but it drops support for ie8 or lower 86.173.55.226 18:18, 26 April 2014 (UTC)
If you only tested the web installer then I'd say you tested 1% of MediaWiki's functionality, leaving the other 99% unclear. AKlapper (WMF) (talk) 19:28, 26 April 2014 (UTC)
See http://www.mail-archive.com/wikitech-l@lists.wikimedia.org/msg75735.html Krinkle (talk) 15:41, 10 May 2014 (UTC)

Search for Largest Pages?

Is there way way to search for the Largest pages either By Word count or Data Size? Qops1981 (talk) 19:57, 24 April 2014 (UTC)

Special:LongPages Ricordisamoa 20:08, 24 April 2014 (UTC)
Does this include User Pages too? Qops1981 (talk) 21:31, 24 April 2014 (UTC)
no, only main space. You can do something like:
SELECT page_namespace, page_title, page_len FROM page ORDER BY page_len DESC LIMIT 10; Christian75 (talk) 08:36, 25 April 2014 (UTC)

Insert a table

In the Edit Page there is button for inserting a table, as in addvanced just above. I'm looking for the file in which it is defined, and where is it's icon located? I looked in the HTML page and the address is: src="http://upload.wikimedia.org/wikipedia/he/6/60/Button_insert_table.png" (and for some reason it isn't found). Where as all other buttons address is located in the Skins file: src="/skins/common/images/button_nowiki.png". So I'd like to change the address to the file Skins as all other buttons. Can anyone help? Noham100 (talk) 04:11, 25 April 2014 (UTC)

Try Extension:WikiEditor, especially http://git.wikimedia.org/tree/mediawiki%2Fextensions%2FWikiEditor.git/HEAD/modules%2Fimages AKlapper (WMF) (talk) 06:54, 25 April 2014 (UTC)
You are correct, as for the location of the icon's image, but where can I find the location of the file in which the image is called for. My problem is that the exsisting address is: src="http://upload.wikimedia.org/wikipedia/he/6/60/Button_insert_table.png" and not: src="/extentions/Wikieditor/modules/images/toolbar/insert_button_table.png".
I whant to correct the existing address so that the icon will be shown on the web. Noham100 (talk) 09:34, 26 April 2014 (UTC)
hi do you mean this button http://upload.wikimedia.org/wikipedia/commons/6/60/Button_insert_table.png. 86.173.55.226 16:17, 26 April 2014 (UTC)
I do Noham100 (talk) 07:42, 27 April 2014 (UTC)
You (or a sysop on your wiki) could have customized the button in the page "MediaWiki:Common.css" on your wiki. Try to search that page for the wrong address. Ricordisamoa 22:10, 28 April 2014 (UTC)
commom.php doesn't exist any more in rev 1.22.
I looked allover the place and couldn't find the file where the address for those addresses exsists. could you direct me where i could find them? Noham100 (talk) 18:53, 1 May 2014 (UTC)
When saying address I mean the string calling for the button's icon. I coudn't find none of the lines reffering to all of the buttons. Noham100 (talk) 06:22, 2 May 2014 (UTC)
if you go onto your wiki and type in the search bar this mediawiki:common.css that should let you customize your wiki. 94.197.122.75 13:04, 2 May 2014 (UTC)
the page would not be created but you create it as long as your an admin. 94.197.122.75 13:05, 2 May 2014 (UTC)
The page common.css doesn't exist, and I couldn't find nanywhere the page where you can see for example the line:
"/skins/common/images/button_sig.png"
or
"http://upload.wikimedia.org/wikipedia/he/6/60/Button_insert_table.png"
Which I'd like to change. Do you know where it would be? Noham100 (talk) 15:21, 3 May 2014 (UTC)
Common.css is not created on your wiki it is store in your database when created. So if you go to Mediawiki:common.css in your wiki and create if your an admin. But I doint know how to do css coding. 86.135.251.50 19:26, 3 May 2014 (UTC)
Oh it is not in skins it's messages are created some wear but it says this page does not esist you just go to Mediawiki:common.css on your wiki like http://en.wikipedia.org/wiki/MediaWiki:common.css 86.135.251.50 19:28, 3 May 2014 (UTC)

Wordwrap in email notifications

$body = wordwrap( $body, 72 );
$body = wordwrap( strtr( $body, $postTransformKeys ), 72 );

First time implemented in 2005 https://github.com/wikimedia/mediawiki-core/commit/25c2891ceb5da61f9cda8bef0e017fe169faec55#diff-2b0526d8f9a57469c6b27246054dfceaR323 and still exists https://github.com/wikimedia/mediawiki-core/blob/master/includes/UserMailer.php#L792

Why is this needed? 2nd 15:01, 25 April 2014 (UTC)

Technically it is not necessary to break the body text after 72 signs; main reason for breaking lines after around 70 characters anyway, is improved readability. Some say, 50-60 characters (including spaces) would be ideal, others say 72 would be perfect; it depends.
Without breaking the lines, they would get too long making it hard for the reader to focus on the text. Long lines make it difficult to get an idea of where the line starts and ends. Furthermore it can be difficult to continue with the correct line after a linebreak in large blocks of text. If the lines are too short, the reader will have to travel back to the beginning of the next line too often. Also do people tend to start reading the next line before they finished the previous one so having the danger to miss important words. 88.130.89.88 16:08, 25 April 2014 (UTC)
This site uses widescreen design, wikipedia uses widescreen design, but in email notifications it's "hard to read". Are you serious? 2nd 05:54, 26 April 2014 (UTC)
Absolutely, complete books have been written about typography - these numbers are established knowledge.
Ideal line lengths are for books 50-60 signs and for newspapers even only 30-40 signs. Around 32 signs is what most people can read in one go, without their eyes jumping. For websites the problem just is that, when you don't use a fixed width, you cannot predict, how many signs you can show in one line for a given visitor. This situation - for the line length - is not ideal, but what do you want to do? You could set a fixed line length here as well (would technically most likely be a width for the main div container), but you would then throw away lots of space. Many other sites, especially newspaper sites, use a fixed width anyway. However, they usually do not only display one column, but have their stuff in multiple columns, with something like a comment at the right and further links below and in the text they have many pictures and maybe videos so that they use the space available anyway. However, content structures in an encyclopedia are different from those in a newspaper. Wikipedia is not a newspaper site. 88.130.72.138 09:59, 26 April 2014 (UTC)
I can't remember any other CMS that uses this ability in email notifications. I think this needed like configuration option, turned off by default. 2nd 10:34, 26 April 2014 (UTC)
I thought you would be confused by the fact that the MediaWiki websites do not use a fixed width. That e-mails are broken after a certain number of characters is pretty standard; such features are available in more or less all e-mail clients and also in many webmail programs. 88.130.72.138 10:45, 26 April 2014 (UTC)

[RESOLVED] changing text colour and mediawiki common css help

hi please can I have some help to change the text colour on web browser that doint use webkit. my website is here http://en.random-wikisaur.tk . if you view it in internet explorer the background is darker and the text is black so you carnt really see it please can I have some help to change the colour to be able to see it. if viewed on google chrome the background is lighter black and you can see the text. please help me. 94.197.122.91 (talk) 13:25, 26 April 2014 (UTC)

When I view your site with Firefox (which is non-WebKit), I see the Vector skin (which you have set as default). All looks good.
I think you are speaking about the image, which you have on your Main Page, directly on screen when you open the page, where it says "Welcome to Random Wikisaur...".
In Firefox the top-part of this image has some kind of color gradient going to white. This gradient is set for .mp_header:
.mp_header {
background-image: url("//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png"), -moz-linear-gradient(center top , #DDDDDD, #000000);
}
IE (I tested with IE11) does not display this gradient. I guess that IE does not support the syntax you used. If I remember correctly, you can make IE show gradients by using a prefixed property like -ms-linear-gradient or one of the filters, which it offers. You will find the solution here: http://stackoverflow.com/questions/213750/gradient-colors-in-internet-explorer 88.130.72.138 14:10, 26 April 2014 (UTC)
so if I do something like this
background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -moz-linear-gradient(top, #ddd, #000);
background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -ms-linear-gradient(top, #ddd, #000);
or how would I do it to get it to work on internet explorer. 86.173.55.226 15:42, 26 April 2014 (UTC)
Give it a try! 88.130.72.138 15:53, 26 April 2014 (UTC)
ok it has worked thankyou for helping 86.173.55.226 16:09, 26 April 2014 (UTC)

text help

hi when you go to http://en.random-wikisaur.tk and you see the main page it shows the text is going onto the line it is not in between the line and it is on it how can I fix it. 86.173.55.226 (talk) 16:10, 26 April 2014 (UTC)

Which text? Which line? Viewing your page, all I see is a server error... 88.130.72.138 16:49, 26 April 2014 (UTC)
if you try it now it would show but all words now show on the line instead of center. 86.173.55.226 18:19, 26 April 2014 (UTC)
No idea, what you are talking about.
It may sound superfluous as obvious, but I'll mention it anyway: We cannot see into your head! Just because it makes sense to you does not mean we would understand it. 88.130.115.215 18:54, 26 April 2014 (UTC)
oh ok. please visit http://en.random-wikisaur.tk and when you are on the main page if you Today's featured article. it should be in the center of that box not on the line but there was a code change in mediawiki and so now it is on the line. 86.173.55.226 19:06, 26 April 2014 (UTC)
oh ok. please visit http://en.random-wikisaur.tk and when you are on the main page if you Today's featured article. it should be in the center of that box not on the line but there was a code change in mediawiki and so now it is on the line. 86.173.55.226 19:07, 26 April 2014 (UTC)
If I mean what you meant, you can fix this by applying the following CSS:
.regiontable ~ table div > div + div > div {
    line-height: 16px;
}
Ricordisamoa 01:24, 30 April 2014 (UTC)
Thankyou. 176.250.151.36 17:54, 30 April 2014 (UTC)

[RESOLVED] Can't upload picture / old edit options

Hello,

I've installed your wiki on this site but i'm not able to enable file upload.

LocalSettings.php was edited: $wgEnableUploads = true;

My server run with php 5.x

But when logged I only see this ugly edit area and no upload button. 81.13.195.145 (talk) 16:30, 26 April 2014 (UTC)

Hi!
You are using PP 5.3, which is fine.
The upload function is not inside the editor toolbar, but it is in the page menu; when you click it, it will open as a complete wiki page. I think - when you are logged in - it is in the menu on the left-hand side, where you also have links to "Accueil", "Portail de la guilde" or a link to the Recent Changes. 88.130.72.138 16:52, 26 April 2014 (UTC)
Haaaa tank you, this part is resolved.
How can i Get the same text editor as this website? Because I only got the ugly one.
When searching into the extensions it said by default this editor is included in new versions. 81.13.195.145 16:55, 26 April 2014 (UTC)
I think you mean WikiEditor. It is correct that WikiEditor by default is included, but it is not activated (at least not in your wiki currently). ;-)
Follow the steps on Extension:WikiEditor to activate and configure the extension! 88.130.72.138 17:32, 26 April 2014 (UTC)
Tank you :) 81.13.195.145 17:37, 26 April 2014 (UTC)

[RESOLVED] changing who access User rights management

hi how can I temporaly change what type of user can access this special page User rights management and change things for user. reson I am asking because I was using a backup I did before but it deleted me as an admin and all the other things you get when you set up the wiki. so I need to make myself an admin. just needs to change the setting to let a user account do it. 86.173.55.226 (talk) 18:51, 26 April 2014 (UTC)

You can do that by setting $wgGroupPermissions['*']['userrights'] = true; in LocalSettings.php.
And if you do not immediately set that back, people will be able to happily vandalize your wiki - don't say you wouldn't have been warned. 88.130.115.215 18:56, 26 April 2014 (UTC)
hi thankyou for your help. 86.173.55.226 19:03, 26 April 2014 (UTC)

[RESOLVED] Bad or Invalid Token in Extension with API

I've been trying all day, and get nothing but invalid token. I'm trying to make a simple extension that moves a page on my site, but whether using curl or FauxRequest, I always get bad token response. Tried urlencoding, not encoding, escaping, no +/, etc, doesn't matter.

Code looks like this currently, with param1/2/3 coming from the parser function I'm creating.

  global $wgRequest;
  $token = $wgRequest->getSessionData( 'wsEditToken' );
  $params = new FauxRequest( 
       array(
           'action'    => 'move',
           'from'      => $param1,
           'to'        => $param2,
           'format'    => 'php',
           'reason'    => $param3,
           'token'     => $token)

);

  $api = new ApiMain( $params, true);
  $api->execute();
  $data = & $api->getResultData();

Am I missing something in the code, or could I have a setting wrong somewhere?

Any help would be hugely appreciated! 173.173.102.166 (talk) 22:34, 26 April 2014 (UTC)

Someone on the mailing list helped me with using the below code instead.
$oldTitle = Title::newFromText( $param1 );
$newTitle = Title::newFromText( $param2 );
$oldTitle->moveTo( $newTitle, true, $param3, true );
50.97.94.34 20:56, 28 April 2014 (UTC)

Automated Page Creations?

Is there a extension/API that will allow me to automate page creations? I need a way to take a huge text document then automate the page creation process.

Using latest PhP, MySQL and MediaWiki. 75.67.93.81 (talk) 22:53, 27 April 2014 (UTC)

You could use a bot. Ricordisamoa 00:26, 28 April 2014 (UTC)
A bot is one way to do it, but exactly what are you trying to accomplish? What is the source of the page's content? MarkAHershberger(talk) 02:29, 28 April 2014 (UTC)

[RESOLVED] Skin:Refreshed JS help

I've installed Refreshed on my wiki, but whenever I try and click on the 'tools' or the user tab, they don't 'appear' like they should. Link to my wiki MediaWiki 1.22.5 PHP 5.3.24 (apache2handler) MySQL 5.1.69 LK901 (talk) 11:51, 28 April 2014 (UTC)

You have some JS errors on your site. You should address those before trying to figure out why "tools" doesn't appear. You might find that fixing the JS errors fixes the tools. MarkAHershberger(talk) 19:42, 28 April 2014 (UTC)
I'll try fixing that. LK901 (talk) 08:59, 29 April 2014 (UTC)
Something on your (presumably, free) web host provider is inserting HTML syntax for advertisement in a non-HTML file (namely the javascript loader). This breaks the syntax making it impossible for the browser to interpret the program correctly.
http://starbricks.oo3.co/mediawiki-1.22.5/load.php?debug=false&lang=en&modules=site&only=scripts&skin=refreshed&*
importScriptURL('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'+'&action=raw&ctype=text/javascript');;mw.loader.state({"site":"ready"});
/* cache key: u186640576_wiki:resourceloader:filter:minify-js:7:36b68c42cfb386dfba8f9f8b14b8dac0 */<a rel="nofollow" href="http://www.neq3.com?footer_utpp_xxl" title="Get Free Web Hosting" class="neq3-input-big2 neq3-button2">
<span>Free Web Hosting</span></a><a data="Head over to NEQ3 Forums and get 20 posts to remove ads"><img src="http://images.neq3.com/images/closeboxre.png"></a>
<style>@import url('http://neq3.com/style.css');</style>
Please contact your hosting provider for assistance, or switch to one that isn't broken. Krinkle (talk) 15:25, 10 May 2014 (UTC)
Thanks,
I've switched to another host because I was starting to get annoyed :P LK901 (talk) 16:57, 21 May 2014 (UTC)

Listing pages with no category

Hi all,

how to go through all the mediawiki pages creates and report if any of them are non-categorized along with the last contributor's name (This will automate a reminder to send an email to remind to categorize that page) ?

Thanks,

Alex 212.35.114.12 (talk) 13:28, 28 April 2014 (UTC)

You could look at [[Special:UncategorizedPages]] and then pull the last contributor for each page. This shouldn't be to hard to write using a bot. MarkAHershberger(talk) 19:39, 28 April 2014 (UTC)
Code sample for Pywikibot/core:
# -*- coding: utf-8  -*-
import pywikibot
# site configuration goes here, example:
# site = pywikibot.Site('yourlang', 'yourfamily')
for page in site.uncategorizedpages(total=5): # goes on 5 uncategorized pages
    if page.isIpEdit() is False: # check that the last contributor is registered
        user = pywikibot.User(site, page.userName())
        user.sendMail(u'The page "{}" is uncategorized'.format(page.title()), u'Please add a category to it.')
Ricordisamoa 21:59, 28 April 2014 (UTC)

Two errors - Fatal error: Class 'ParserHook' & Notice: Uncommitted DB writes

MediaWiki 1.22.3 PHP 5.4.26 (cgi-fcgi) MySQL 5.5.33-31.1


Whenever I try to save a page I get the following error.

Notice: Uncommitted DB writes (transaction from DatabaseBase:: query (SMWStore::updateData))). in wiki/includes/db/Database.php on line 3944

Reading on the web lead me to believe I need to 'update my wiki' via mw-config/ however, trying to do this tosses this error out after selecting my language.

Fatal error: Class 'ParserHook' not found in wiki/extensions/SemanticMediaWiki/includes/parserhooks/SMW_SMWDoc.php on line 15

This is my first wiki install and I'm at a loss for what's wrong. http://semantic-mediawiki.org/ seems to be down at the moment so I can't get help there.

Site URL http://wiki.3dwickedworks.com/index.php?title=Main_Page - some article pages feature NSFW images though the main page is safe. SenthelRose (talk) 19:17, 28 April 2014 (UTC)

See [0].
[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/259 MWJames (talk) 19:31, 28 April 2014 (UTC)
It could be that you need to update semantic Mediawiki and it's extension. It may fix the problem not sure. 176.250.151.36 15:08, 29 April 2014 (UTC)

Clean Content

I currently require to display the content for a section as simple text with only Links . Without Categories , Images , References , Tables etc..

Currently calling http://en.wikipedia.org/w/api.php?action=query&prop=revisions&format=json&rvprop=content&rvsection=0&titles=XYZ

I can manually parse and remove the contents between {{{ ... }}} (Categories) and [[File: ... ]] (Images) and <ref>...</ref> (References) and keep [[ .. ]] ( Links ) .

I would like to know if I can directly get cleaned content via the API ? Also are there any other cases apart from the above that I may have to consider to remove ?

Thanks . 42.104.1.225 (talk) 02:39, 29 April 2014 (UTC)

You might also want to consider links in citations that are found in <ref> tags.
The api's api query for the extlinks property may have what you need. MarkAHershberger(talk) 12:51, 29 April 2014 (UTC)
Appreciate the reply . I took reference tags into consideration .
However I just discover another element 180.151.149.115 13:02, 30 April 2014 (UTC)

send email to another user

Hello, where is the button "send an email to a wikiuser"?

The function is enabled in LocalSettings.php ($wgEnableUserEmail) an in the personal user-settings too.

Thanks, Matthias 193.174.160.34 (talk) 08:41, 29 April 2014 (UTC)

On user pages. Nemo 09:46, 29 April 2014 (UTC)
...and if this user has named an e-mail adress in his account. Wgkderdicke (talk) 10:49, 29 April 2014 (UTC)
You can also go to "Special:EmailUser" on your wiki. Ricordisamoa 01:12, 30 April 2014 (UTC)
!!! Special:EmailUser !!!
Thanks! 193.174.160.41 09:40, 8 May 2014 (UTC)

[RESOLVED] Update Wiki pages with C#

Hi,

Has anyone ever tried updating a Wiki site using WebRequest/WebResponse/WebClient in C#? I didn't get too far yet for testing, facing some security issues, but I was wondering if I'm on the right track at all. Here is how I imagine a login could work with C# (again, due to security issues which I am confident to solve, I could not test this yet):

string loginUrl = "http://mytestwiki/api.php?action=login";

using (var webClient = new WebClient())
{
    var data = new NameValueCollection();
    data["lgname"] = "user";
    data["lgpassword"] = "password";
    byte[] response = webClient.UploadValues(loginUrl, data);
}

Assume the function itself would work properly, what exactly would I get back in my response? Can I retrieve all the required information from it? (cookie, token, ...) 81.223.203.162 (talk) 13:08, 29 April 2014 (UTC)

You may want to use a third-party framework such as the ones listed at w:Wikipedia:Creating a bot#Microsoft .NET. DotNetWikiBot has a built-in login feature. Ricordisamoa 01:10, 30 April 2014 (UTC)
Thanks a lot, that looks very much like what I wanted to have just almost finished already :) 81.223.203.162 17:18, 5 May 2014 (UTC)

Is it possible to manipulate revision table to attribute changes to another user ?

Hi, I use a bridge to phpBB for authentication. As a result, if a phpBB account is renamed, a new user is created in the wiki, at first login. So, I'd like to change all revisions of the old user to the new user_id and new username. Is this possible by simply changing rev_user_text and rev_user or are there any relations that I have to think about? Are this values for example part of any checksum that wouldn't be valid after the change?

Basically, can I run: UPDATE `wiki_revisions` SET `rev_user`='new id', `rev_user_text`='new name' WHERE `rev_user`='old id' or will this cause problems, I'm not aware of? Heinrich krebs (talk) 14:28, 29 April 2014 (UTC)

Yes, something like this is possible, but it is not as easy as you might think. It is not only changing a number in the revision table - far more stuff has to be done. From my experience the best way to do this is with Extension:UserMerge. 88.130.83.67 15:26, 29 April 2014 (UTC)
Thank you for the tip.. Heinrich krebs (talk) 06:53, 6 May 2014 (UTC)

block email-function for one user

Moin. Is it possible to block the email function for a spezial user?

I have a "viewSpezialSites" user. This user is for a group of persons who should only be able to view some spezial Sites. So I dont want to enable approximately 20 persons to register an email for this wiki user.

Thanks 193.174.160.41 (talk) 06:55, 30 April 2014 (UTC)

I don't understand the body of your message, but if your question is what in summary yes, it's possible. Create a group whice revokes the emailconfirmed implicit permission, or other email permissions, and add the user to the group. See Manual:User rights. Nemo 06:30, 1 May 2014 (UTC)
That's what I want.
The right "emailconfirmed" is obsolete (http://www.mediawiki.org/wiki/Manual:User_rights#List_of_permissions).??
I want somethink like this:
$wgGroupPermissions['noEmail']['blockemail'] = false; 193.174.160.41 09:38, 8 May 2014 (UTC)

problems with oci8 using Oracle 11g

I have many problems related to BLOB data type: /usr/local/apache2/htdocs/wiki/includes/db/DatabaseOracle.php(1146) : Warning - strpos() expects parameter 1 to be string, object given /usr/local/apache2/htdocs/wiki/includes/db/DatabaseOracle.php(1142) : Warning - strpos() expects parameter 1 to be string, object given /usr/local/apache2/htdocs/wiki/includes/db/DatabaseOracle.php(1142) : Warning - substr() expects parameter 1 to be string, object given I fixed these errors with this code:

       public function removeIdentifierQuotes( $s ) {
               if ( is_object ( $s ) ) {
                       return $s;
               }
               else {
                       return strpos( $s, '/*Q*/' ) === false ? $s : substr( $s, 5 );
               }
       }
       public function isQuotedIdentifier( $s ) {
               if ( is_object ( $s ) ) {
                       return false;
               }
               else {
                       return strpos( $s, '/*Q*/' ) !== false;
               }
       }

Another error during config was: INSERT INTO /*Q*/WIKI_INTERWIKI (iw_prefix,iw_url,iw_local,iw_api,iw_wikiid) VALUES (:iw_prefix, :iw_url, :iw_local, NULL, NULL) Error: 1400 ORA-01400: cannot insert NULL into ("WIKI"."WIKI_INTERWIKI"."IW_API")

To solve that, I Changed INTERWIKI table definition:

SQL> desc WIKI_INTERWIKI ;

Name                                      Null?    Type
----------------------------------------- -------- ----------------------------
IW_PREFIX                                 NOT NULL VARCHAR2(32)
IW_URL                                    NOT NULL VARCHAR2(127)
IW_API                                    NOT NULL BLOB
IW_WIKIID                                          VARCHAR2(64)
IW_LOCAL                                  NOT NULL CHAR(1)
IW_TRANS                                  NOT NULL CHAR(1)

columns IW_API, IW_LOCAL and IW_TRANS now accepting null values

After both changes made, the configuration ran OK without warnings

Basic operation is OK

Problem cannot solve:

string(425) "UPDATE /*Q*/WIKI_IMAGE SET img_size = :img_size, img_width = :img_width, img_height = :img_height, img_bits = :img_bits, img_media_type = :img_media_type, img_major_mime = :img_major_mime, img_minor_mime = :img_minor_mime, img_timestamp = :img_timestamp, img_description = :img_description, img_user = :img_user, img_user_text = :img_user_text, img_metadata = :img_metadata, img_sha1 = :img_sha1 WHERE img_name = 'Debug.png'"

Warning: OCI-Lob::writetemporary() expects parameter 1 to be string, object given in /usr/local/apache2/htdocs/wiki/includes/db/DatabaseOracle.php on line 1327

message during uploaded file delete or replace operation

                               if ( $col_type == 'BLOB' ) {
                                       $lob[$col]->writeTemporary( $val );
                                       oci_bind_by_name( $stmt, ":$col", $lob[$col], - 1, SQLT_BLOB );
                               } else {
                                       $lob[$col]->writeTemporary( $val ); <<<<<< problem with thic call
                                       oci_bind_by_name( $stmt, ":$col", $lob[$col], - 1, OCI_B_CLOB );
                               }

The value of $val is an object (BLOB) with this value

object(Blob)#188 (1) { ["mData":"Blob":private]=> string(168) "a:6:{s:10:"frameCount";i:0;s:9:"loopCount";i:1;s:8:"duration";d:0;s:8:"bitDepth";i:8;s:9:"colorType";s:10:"truecolour";s:8:"metadata";a:1:{s:15:"_MW_PNG_VERSION";i:1;}}" }

About environment

DB: Oracle 11g (11.1.0.7.0) OS: Red Hat Enterprise Linux Server release 5 (Tikanga) httpd-2.2.27 php-5.3.28 (configure --with-apxs2=/usr/local/apache2/bin/apxs --with-oci8=/opt/oracle/product/oracle/11.1.0/db)

Please help !!

regards, Haroldo 200.75.11.138 (talk) 14:10, 30 April 2014 (UTC)

Media Wiki version is 1.22.5 200.75.11.138 14:23, 30 April 2014 (UTC)
Oracle support is somewhat fragile in recent versions of MediaWiki. Try an older version of MediaWiki, and file a BUGREPORT Ciencia Al Poder (talk) 09:36, 6 May 2014 (UTC)
Thanks for your answer!! 200.75.11.138 19:39, 6 May 2014 (UTC)
For the records, filed as bugzilla:64970 AKlapper (WMF) (talk) 14:39, 7 May 2014 (UTC)
Hi Haroldo
I have had the exactly same problem as your installation.
After I did the modicications to the INTERWIKI table and also changed the two functions removeIdentifierQuotes and isQuotedIdentifier I have more success with the installation.
Now I receive the below log message:
Install
Setting up database... done
Creating database user... done
Creating tables... done
Populating default interwiki table... done
Initializing statistics... done
Generating secret keys... done
Creating administrator user account... done
Creating main page with default content...
Warning: oci_fetch_all(): ORA-01002: fetch out of sequence in C:\Apache2.2\htdocs\wiki\includes\db\DatabaseOracle.php on line 60
done
Do you have any idea of what could cause this error ??
Best regards
Roebel Statjer (talk) 10:26, 21 May 2014 (UTC)
Hi Roebel, I suggest to reinitialize wiki schema and start again from the beginning. ORA-01002 is caused by logic error or caused by lost connection to db. Check connection while setup is running. Hope this help.
Regards, Haroldo 200.75.11.138 21:00, 2 June 2014 (UTC)

Resizing the boxes on my main page

Hi my main page has a problem because I have not created any of the templates that I have ask it to use. Resulting in the boxes being smaller and making the page look horrible. I would like to ask for some help to change some codes so that it resizes correctly. My website is at http://en.random-wikisaur.tk and Mediawiki version 1.24 Wmf 2. 176.250.151.36 (talk) 18:36, 30 April 2014 (UTC)

because my main page boxes do not resize and make it smaller and bigger please can I have some help. 86.173.55.194 13:22, 5 May 2014 (UTC)

Embedded Query Forms

I embedded a query form at the following link: https://www.milsuite.mil/wiki/USARCENT_G8

The special query has replaced my original title page. My title page should read "USARCENT G8"

How do I fix it? 155.213.224.59 (talk) 19:20, 30 April 2014 (UTC)

Hi what Mediawiki version are you running. Because you can move your title page and keep your query form where it is. 86.135.251.50 21:24, 30 April 2014 (UTC)

[RESOLVED]'Hiding' links?

This might be a silly question, and so on, but I thought I'd ASK at least... Is there a way to make a page a part of a category, but to hide this fact on the page?

We have about 100 pages that all should have an image, different for each. However, about 30 lack images at the moment, and more pages are coming up faster than the images are shot. Is there any way to make these 30 part of a category, so they're easier to find as the images get taken, without the page having a link screaming "we're lazy bastards that can't be bothered getting around to taking these pictures!" at the bottom?

It isn't that important, per se, but it would make things easier and nicer. 85.229.58.206 (talk) 21:33, 30 April 2014 (UTC)

Hi!
Yes, that is possible, just place the __HIDDENCAT__ magic word on the category page that you wish to be hidden. Wikipedia also uses this magic word, but wrapped in a template: Template:Hidden_category. 88.130.106.61 00:52, 1 May 2014 (UTC)
That is just PERFECT. Thank you very VERY much for this. :) 85.229.58.206 02:04, 1 May 2014 (UTC)