Jump to content

Project:Support desk/Flow/2011/09

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

Hello, I want get on a link through authorization on a page specified in link. How i can do this? I try modify img_auth.php, but not successful. I use MediaWiki 1.15.2, PHP 5.2.10 and MySQL 5.0.77. Thanks for the answer. 94.124.169.139 (talk) 07:52, 1 September 2011 (UTC)

Hello, I created a templates page for table. If I enter two different words in a table field, then both words will appear as a single link instead of two independent links. Is it possible to create separated links in a table field?

E.g. test1, test2 are shown as a single link like

<a href="/index.php?title=test1,_test2&amp;action=edit&amp;redlink=1" class="new" title="test1, test2">test1, test2</a>

Instead of

<a href="/index.php?title=test1&amp;action=edit&amp;redlink=1" class="new" title="test1">test1</a> <a href="/index.php?title=test2&amp;action=edit&amp;redlink=1" class="new" title="test2">test2</a>


Vorlage:Table-template

| [[{{{1}}}|{{{2}}}]] || {{{3}}} || {{{4}}} || {{{5}}} || {{#if {{{6}}}|[[{{{6}}}]]|}} || {{#if {{{7}}}|[[{{{7}}}]]|}} || 
{{{8}}} || {{{9}}}
|-
  • After the #if must be a colon (#if:), this could not be displayed.

Thank you very much for your help! Felix user (talk) 08:29, 1 September 2011 (UTC)

Sure, just change [[{{{1}}}|{{{2}}}]] to [[{{{1}}}]] [[{{{2}}}]]. (Note: the links will still be shown in the same table field.)
Here comes the explanation: {{{1}}} basically means "take the first parameter after the template name and insert it here", {{{2}}} means "take the second parameter..." and so on. In your code it would mean that the template produced [[first parameter|second parameter]] which is wiki syntax for "link the first expression, but display the second expression". The updated code I posted will produce two different links like this: [[first parameter]] [[second parameter]].
Did this solve your problem? jonkerz 02:22, 3 September 2011 (UTC)
Hi jonkerz hi community,
Thank you for your quick response and for your help.
If you apply your solution proposal to the fields 1 and 2 in the Vorlage:Table-template then you are correct.
However, I need it for the field 6 in the Vorlage:Table-template.
See: {{#if {{{6}}}|[[{{{6}}}]]|}}
Their solution is based on the field 6, partially correct, it creates a second link that will be duplicated.
Is it possible to divide the content of field 6 into two different links? (See the following example)
E.g. test1, test2 the following link shows the current state, it should not be
<a href="/index.php?title=test1,_test2&action=edit&redlink=1" class="new" title="test1, test2">test1, test2</a>
It should be
<a href="/index.php?title=test1&action=edit&redlink=1" class="new" title="test1">test1</a>
<a href="/index.php?title=test2&action=edit&redlink=1" class="new" title="test2">test2</a>
Vorlage:Table-Vorlage
[[Category::]]
<!—field 1-->
Name:: <!—field 2-->
Beschreibung:: <!—field 3-->
Zustand:: <!—field 4-->
Methodendokument:: <!—field 5-->
Literatur::test1, test2 <!—field 6-->
Mitglieder:: <!—field 7-->
Infos:: <!—field 8-->
Sonstiges:: <!—field 9-->
Vorlage:Table-template
| [[{{{1}}}|{{{2}}}]] || {{{3}}} || {{{4}}} || {{{5}}} || {{#if {{{6}}}|[[{{{6}}}]]|}} || {{#if {{{7}}}|[[{{{7}}}]]|}} ||
{{{8}}} || {{{9}}}
|-
  • After the #if must be a colon (#if:), this could not be displayed.
Thank you very much for your help!
Best regards, Felix Felix user 07:16, 5 September 2011 (UTC)
Here is the solution:
For this you could use the #arraymap: function of Semantic Forms extension.
... || {{#if {{{6}}} | {{#arraymap:{{{6}}}|,|$$|$$|}} }} || ...
  • After the #if must be a colon (#if:), this could not be displayed.
Have a look at http://www.mediawiki.org/wiki/Extension:Semantic_Forms#Multiple_values_for_the_same_field Felix user 09:02, 5 September 2011 (UTC)
Ah, now I see what you mean. I thought you had problems with the more basic template syntax, hence the newbie friendly explaination ;)
I'm glad you found a solution. jonkerz 12:01, 5 September 2011 (UTC)

Multilang extension stopped working

After upgrading to MW 1.17 multilang extension stopped working. I tried also current trunk but it still print nothing.

This page (one of the many I have) was working with MW 1.16. It just do not print anything:

http://www.fountainpen.it/File:Swan-Eternal-1930-11-19.jpg 217.133.96.194 (talk) 17:02, 1 September 2011 (UTC)

How do I set preview size on image pages

Hello, I have failed to find any documentation on how to set the default image preview size on file pages. On my wiki it is now 1280px, but I'd rather have it 800px like on Wikimedia Commons. (I have a custom $wgThumbLimits setting, but I can't see how that would be related.)

MediaWiki 	1.16.1
PHP 	5.3.3-7+squeeze3 (apache2handler)
MySQL 	5.1.56-1

Best regards rotsee 10:24, 2 September 2011 (UTC)

Sorry, my bad. I had another max size set in my user preferences. I also found $wgImageLimits now, which seem to be the proper place for such settings. rotsee 12:03, 2 September 2011 (UTC)

Problem with displaying the category tree

The problem is that when you load the page, a category tree is displayed in expanded form.

But we need to when the page loads, a category tree was harvested.

MediaWiki 1.16.4 PHP 5.1.6 (cgi-fcgi) MySQL 5.0.77

code to display the category tree:

<categorytree style="float: right; clear: right; margin-left: 1ex; border: 1px solid gray;
 padding: 0.7ex; background-color: white;" mode="all" depth="10" 
hideroot="on" showcount="on">Главная страница</categorytree>


Extension in the LocalSettings.php file CategoryTree I connect like this:

$wgUseAjax = true;

  1. CategoryTree - дерево категорий

require_once("{$IP}/extensions/CategoryTree/CategoryTree.php");

  1. Максимум потомков (ветвей в ноде)

$wgCategoryTreeMaxChildren=1000;

  1. AJAX использовать?

$wgCategoryTreeDynamicTag=false;

$wgCategoryTreeDisableCache=true;

  1. Корневая категория, вместо "Root" - свою категорию.

$wgCategoryTreeSidebarRoot="Главная страница";

  1. Режим для AJAX

$wgCategoryTreeSidebarOptions['mode'] = 'all';

  1. $wgCategoryTreeMaxDepth = 200;

$wgCategoryTreeMaxDepth = array(CT_MODE_PAGES =>10 , CT_MODE_ALL =>10, CT_MODE_CATEGORIES =>10);


Tell me, what's the problem??? Esemernya (talk) 07:20, 3 September 2011 (UTC)

CrossCat extension

Hello,

I'm trying to implement some of the features requested in en:Wikipedia:Category_intersection in the extension Extension:CrossCat. The extension is under development, and I'm looking for volunteers to test it on MW1.17. It's safe (no direct database write or article autosave). Thank you. Juju2004 (talk) 13:21, 3 September 2011 (UTC)

Adding custom skin to MediaWiki v1.17.0

Is there a way for adding a custom skin for site wide use on v1.17.0 without hacking Resources.php as being suggested here? Looks like the changes to Resources.php will be wiped out during next upgrade. The way it is being suggested here just don't fit the conventional wisdom of not hacking the core files. 97.115.144.215 (talk) 16:28, 3 September 2011 (UTC)

That was nonsense added by a non-developer, I've fixed that instruction. Max Semenik 17:12, 3 September 2011 (UTC)
Thanks for the reply...I added to LocalSettings.php instead
$wgResourceModules['skins.foobar'] = array(
		'styles' => array( 'skins/foobar/screen.css' => array( 'media' => 'screen' )),
		'scripts' => 'skins/foobar/foobar.js',
		
	);
97.115.144.215 02:55, 4 September 2011 (UTC)

mdw_iwlinks' doesn't exist

http://boffwiki.bryjensen.com/index.php?title=Main_Page is the mediawiki. php5, and .sql.

So we transferred the wiki database and images files over from another server. Imported the old database, edited the LocalSettings.php and it all works fine,except when you go to edit a page or make a new one.

You get this: 

Database error 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 "LinksUpdate::getExistingInterwikis". Database returned error "1146: Table 'bryjense_wiki.mdw_iwlinks' doesn't exist (localhost)".

But if you go to the page you supposedly just made or edited by searching for it, it's there. Changes are made too. It's just giving that error. Now another odd thing is that the whole wiki shows up for most people who'd accessed the page, except one person. It's on and off for them.

I tried trouble shooting it from another thread here, and I can't figure out how to get update.php to execute. It gives me a 404 blah blah. I'm just using the web interface for my server.

And that mdw_iwlinks is not in my database. I went to a clean install twice after experiencing this program. Clean install works, no issues updating or adding a new page, but when I import the database from the other host (that worked perfectly fine, and this is the same hosting company) I get that error.

Help? Is there anyway to just import mdw_links or what? Sushicookie (talk) 16:49, 3 September 2011 (UTC)

Never mind all that, got that fixed... after hours of beating it into submission. However, that one person is still getting a very generic page when they visit the wiki. I have no idea what that would be. Sushicookie 17:47, 3 September 2011 (UTC)
So what is the answer? I have the exact problem. 24.112.58.3 02:40, 8 January 2015 (UTC)
What is the "exact same problem"? I see different problems here.
Please, open a new post describing exactly your problem instead of reviving an old thread. Ciencia Al Poder (talk) 11:10, 8 January 2015 (UTC)

Missing image files and upload errors

I had four image files come up missing a day or two after upload <example here>. All other files seem fine, why these four is a mystery to me. I am posting here in hopes someone recognizes the error statements, the only things happening on wiki before this problem, I installed some gadgets from en-Wikipedia, Drop-down_menus, lefteditlinks.js and edittop.js. When I re-uploded the missing files I got these error messages.

function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/every821/public_html/MyWiki/w/includes/media/Bitmap.php on line 362
< line 362= $src_image = call_user_func( $loader, $params['srcPath'] ); >

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/every821/public_html/MyWiki/w/includes/media/Bitmap.php on line 383
< line 383= imagesx( $src_image ), imagesy( $src_image ) ); >

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/every821/public_html/MyWiki/w/includes/media/Bitmap.php on line 390
< line 390= imagedestroy( $src_image ); >

Here is a screenshot of the errors [1] Mlpearc Public (Talk) 17:53, 3 September 2011 (UTC)

Additional panels in sidebar/Social buttons

Hello. It looks pretty much possible to place social buttons on top or bottom of the page, but they will look much more noticeable in the sidebar. Is it possible to make additional panel for them and place them here like on this pic? How?

Pics seem not to work here, here is a direct link. Beznogim (talk) 03:20, 4 September 2011 (UTC)

[RESOLVED] calendar type

hi,

i want to use Jalali Calendar in default for all users.

how can i do that? it is possible that per user set it in setting section but how can i set Jalali Calendar for all user ?


thanks in advance, 78.38.243.157 (talk) 03:52, 4 September 2011 (UTC)

All extensions which allow you to add a calendar to your wiki are collected in Category:Calendar extensions, but I don't know if any of them support Jalali calendars. If you have a Google account or if you can get one, you might be able to do it by adding http://code.google.com/p/jalali-gcal (a script) to your Google calendar. If that works, you can choose from a number of extensions that allow you to embed a Google calendar within your wiki (see Category:Calendar extensions).
Hope that helps. Cavila MW 1.17, MySQL 5.1.57, Php 5.2.17 07:56, 6 September 2011 (UTC)
If what you mean is not an actual calendar, but a time zone setting, then go to Manual:Timezone. Cavila MW 1.17, MySQL 5.1.57, Php 5.2.17 08:03, 6 September 2011 (UTC)
thanks for your reply
but it is not my problem.
mediawiki has jalali calendar . when i use "fa" langue, i can set it in my preferences in Date format. but i want to set it for all user. 31.57.47.8 17:24, 13 October 2011 (UTC)
Hi
I want it too.
but if I want to say what actually I want is that the default time and date of all wikis are gregorian and I want to change the default date and time to my country, Iran. Acc.hadad 17:52, 13 October 2011 (UTC)
For example see, this template doesn't show the time:
{{#time:xij xiF xiY}}

It should show this:
21 Ordibehesht 1405

Acc.hadad 08:31, 14 October 2011 (UTC)
Hi,
In the /languages/messages/MessagesFa.php file around line 204 just change the value of $defaultDateFormat from "dmy or mdy" to "persian".
Regards Loqman 21:46, 6 December 2011 (UTC)
You should not be editing /languages/messages/MessagesFa.php by hand. Editing core files breaks on upgrades and is not officially supported. Instead you should do something like add
$wgDefaultUserOptions['date'] = 'persian';
To the bottom of LocalSettings.php
See manual:$wgDefaultUserOptions for details. Bawolff 20:25, 7 December 2011 (UTC)
Hi dear friends
Thanks a lot
It helped me Acc.hadad 10:09, 9 December 2011 (UTC)

Hello.

I have a php file to export one of my mysql tables to Microsoft Excel, which I'd like to call whenever a user clicks on a specified link on one of my pages.

However, whenever someone currently clicks on the link, Internet Explorer attempts to download/save the .php file.

Any ideas? 194.98.70.14 (talk) 07:54, 5 September 2011 (UTC)

Wordpress queries and wikipedia

Hello,

I need to know how to implement a simple query in wordpress. Simple it should do the folliwng things: Get the tags of the post automatically and send query to wikipedia, in return it should display a summary of the wikipedia article (~100 words) per tag. Means if the tags are: Earth Moon

It should return both articles / summaries and display it under the post. If other tags are used on different posts, it should use them instead. Would be awesome if you could help me out. 85.22.30.152 (talk) 12:40, 5 September 2011 (UTC)

This is a MediaWiki site, not WordPress. For retrieving information from Wikipedia, see API or m:Dumps. Max Semenik 14:48, 5 September 2011 (UTC)
Yes, I know but I am talking about Wikipedia, which base is MediaWiki. So I don't see any problem with my question. 85.22.2.132 08:38, 7 September 2011 (UTC)
  • Use whatever method you know (or will learn) to get the information from WordPress (ask WordPress support)
  • Use MediaWiki's API on http://en.wikipedia.org/w/api.php to get information about it. Or if you want to just get the article, fetch URLs like: http://en.wikipedia.org/w/index.php?title=Email&action=render (render = just article without header/footer/sidebar etc.).
  • Then in PHP (getWikiIntroParagraph) extract the first one (or two) ‎<p>-tags. And with what you have left, use strip_tags() to get rid of other unwanted html code, and then you have an clear-text excerpt.:

Electronic mail, commonly called email or e-mail, is a method of exchanging digital messages from an author to one or more recipients. Modern email operates across the Internet or other computer networks.

Krinkle 01:18, 8 September 2011 (UTC)
Thanks, Krinkle.
If I have more than one tag in wordpress how can I solve this problem that not all of them should be included in an URL like this: http://en.wikipedia.org/w/index.php?title=Email&action=render
And instead of "Email" how do I need to include $tag for example? Like this?
http://en.wikipedia.org/w/index.php?title=.$tag.&action=render
Thanks a lot! 85.22.26.140 12:19, 12 September 2011 (UTC)
Well, assuming you have an array of tags that you fetched from WordPress (get_the_tags()), something like this:
function getWikiIntroParagraph( $title ) {
 $url = 'http://en.wikipedia.org/w/index.php?' . http_build_query(array( 'title' => $title, 'action' => 'raw' ));
 // Download $url and do your magic extraction
 return $intro;
}
$posttags = get_the_tags();
if ($posttags) {
  echo '<ul>';
  foreach($posttags as $tag) {
    echo '<li><strong>' . htmlspecialchars( $tag->name ) . '</strong>: ' . getWikiIntroParagraph( $tag->name ); 
  }
  echo '</ul>';
}
Krinkle 19:16, 12 September 2011 (UTC)
I have this right now
<?php
$posttags = get_the_tags();
if ($posttags) {
  foreach($posttags as $tag) {
    echo $tag->name . ' '; 
  }
}
function getWikiIntroParagraph( $title ) {
 $url = 'http://en.wikipedia.org/w/index.php?' . build_http_query(array( 'title' => $title, 'action' => 'raw' ));
 // Download $url and do your magic extraction
 return $intro;
}
 
$posttags = get_the_tags();
if ($posttags) {
  echo '<ul>';
  foreach($posttags as $tag) {
    echo '<li><strong>' . htmlspecialchars( $tag ) . '</strong>: ' . getWikiIntroParagraph( $tag->name ); 
  }
  echo '</ul>';
}
?>
But it says htmlspecialchars() expects parameter 1 to be string, object given on line 41 in single.php and Fatal error: Call to undefined function build_http_query() on 32, same file. Guess it's wrong what I did, isn't it? 79.245.201.143 21:24, 13 September 2011 (UTC)
@Krinkle
Can you give me details on the error for build http query? Solved the htmlspecialchars error wth some help but don't know much about PHP or anything else in programming to solve the build http query problem. Best! 79.245.201.143 18:14, 14 September 2011 (UTC)
I mistyped build_http_query for http_build_query. And $tag should be $tag-name, just like the others. See my updated example Krinkle 03:28, 17 September 2011 (UTC)
Thanks. Returns now just
    -Elements (e.g. Tag names) as a list without wikipedia excerpt. Any idea?
Now looks like this:
  • Tag1:
  • Tag2:
Now looks like this:
function getWikiIntroParagraph( $title ) {
 $url = 'http://en.wikipedia.org/w/index.php?' . http_build_query(array( 'title' => $title, 'action' => 'raw' )) . $tag . '&action=render';
 // Download $url and do your magic extraction
 return $intro;
}
 
$posttags = get_the_tags();
if ($posttags) {
  echo '<ul>';
  foreach($posttags as $tag) {
    echo '<li><strong>' . htmlspecialchars( $tag->name ) . '</strong>: ' . getWikiIntroParagraph( $tag->name ); 
  }
  echo '</ul>';
}
Didn't get any other result, just a list of the tag names without an excerpt. If I put $url instead of $url it shows the the url in plain text. Guess I need to define the $intro, right? Hav no idea how to do so. 85.22.20.4 09:59, 27 September 2011 (UTC)
I'm not going to write it for you. In the previous comments I explained how $intro would be defined (obviously it's not defined right now, that's up to you) where it reads " // Download $url and do your magic extraction".

Then in PHP (getWikiIntroParagraph) extract the first one (or two) ‎<p>-tags. And with what you have left, use strip_tags() to get rid of other unwanted html code, and then you have an clear-text excerpt.

Krinkle 17:03, 27 September 2011 (UTC)
I know, but I do need further explanation or better the parts I need to use for what is left to do. I am not into php so need to be pointed to each function or whatever I need to have, you know? I just know it is not defined but cannot think about a function or whatever to get what I want. Is $intro the only thing what's left? If so, what do I need to make run? If not, what else and what do I need? As I said I am not into php and need more info. Sorry.
//EDIT
I guess it's only $intro I need to define right now. Do I have to make it within function get WikiIntroParagraph or before / after that? As far as I understand this function extracts anything from the page. Do I have to use truncate to get a summary or is there something else I can use? 79.245.215.176 03:36, 28 September 2011 (UTC)
I have tried something but doesn't function. Do have any idea(s)?
http://pastebin.com/fkLBeViY 85.22.0.209 09:51, 30 September 2011 (UTC)

Wikipedia

Please, help to Kazakh Wikipedia, there doesn't work Mediawikis, for example kk:МедиаУики:Tagline kk:MediaWiki:Wikimedia-copyrightwarning. 178.88.28.51 (talk) 13:35, 5 September 2011 (UTC)

Doesn't work how? Seem to work for me, but some pages need to be purged for kk:MediaWiki:Tagline to take affect. Bawolff 23:42, 10 September 2011 (UTC)

Word Viewer Extension?

Is there an extension that can allow me to view word files on my wiki? I know there is a PDFHandler, but word files would be much more convenient for me. Thanks. 71.202.179.85 (talk) 23:09, 5 September 2011 (UTC)

Just see if there's anything in Category:Media handling extensions that suits your needs. Extension:Embed Document, Extension:AJAXDocumentViewer or Extension:Googledocviewer may be what you're looking for. Cavila MW 1.17, MySQL 5.1.57, Php 5.2.17 08:37, 11 September 2011 (UTC)

Mediawiki 1.17 Oracle DB errors "cannot insert NULL"

I'm trying to move our current Wiki from 1.15 on Mysql to 1.17 on Oracle. I'm seeing some database errors that are causing concern and I'm not having any luck searching with Google. I used dumbBackup.php --full to create my xmldump. I then installed a new 1.17 Wiki on a Linux host using php 5.3.3 with oci8.so. Next I'm importing the xml dump using importDump.php which seems to work fine. The Wiki comes up and I see my pages. However, when I try to run the rebuildrecentchanges.php or rebuildall.php I'm seeing the following error referencing "cannot insert NULL"

The last attempted database query was: "INSERT /* RebuildRecentchanges::rebuildRecentChangesTablePass1 */ INTO "SPWKRECENTCHANGES" (rc_timestamp,rc_cur_time,rc_user,rc_user_text,rc_namespace,rc_title,rc_comment,rc_minor,rc_bot,rc_new,rc_cur_id,rc_this_oldid,rc_last_oldid,rc_type,rc_deleted) SELECT rev_timestamp field0,rev_timestamp field1,rev_user field2,rev_user_text field3,page_namespace field4,page_title field5,rev_comment field6,rev_minor_edit field7,0 field8,page_is_new field9,page_id field10,rev_id field11,0 field12, (CASE WHEN page_is_new != 0 THEN 1 ELSE 0 END) field13,rev_deleted field14 FROM "SPWKPAGE","SPWKREVISION" WHERE (rev_timestamp > '09-06-2011 12:04:59.000000') AND (rev_page=page_id) ORDER BY rev_timestamp DESC" from within function "DatabaseOracle::doQuery". Database returned error "1400: ORA-01400: cannot insert NULL into ("MEDIAWK"."SPWKRECENTCHANGES"."RC_ID")"

I've also copied over my images directory, but no files appear when I view the file list off the Special Pages. I've enabled uploads, etc and I can upload new files just fine. However, when I try to delete my test upload (after the verification page) I see a similar Oracle error that is making me think this problem might be related to my first.

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 "DatabaseOracle::doQuery". Database returned error "1407: ORA-01407: cannot update ("MEDIAWK"."SPWKRECENTCHANGES"."RC_CUR_ID") to NULL".

Is anyone successfully using Oracle with 1.17? Jacksonwiki (talk) 17:43, 8 September 2011 (UTC)

yes,I am doing work with oracle only and it working fine. 59.90.74.221 11:25, 24 December 2011 (UTC)
im using iis with oracle and im stuck in Creating tables.
The last attempted database query was:
SET CONSTRAINTS ALL DEFERRED
Please help! Raymond.herrera24 (talk) 06:07, 4 May 2012 (UTC)

By mistake I reset the password.

I didnt not realize I am using mediawiki.org url. I thought I am using my localhost. I kept on attempting to login with my password for wikiadmin user. Obviously it didnt work. I clicked button get a email with my new password. Later I realized I am using mediawiki.org site. Thought of sharing this experiences. This may help others when they see continuous login failure. 192.189.128.12 (talk) 21:50, 8 September 2011 (UTC)

How to add text to several pages automatically ?

Hi, I looked in the help pages but couldn't find an answer.
I need to add text to several pages of our mediawiki automatically to add a licence.
Is there a extention to do that ?
The wiki is wiki.april.org. The versions :

  • MediaWiki: 1.12.0
  • PHP: 5.2.6-1+lenny13 (apache2handler)
  • MySQL: 5.0.51a-24+lenny5-log

Thanks for your help. Lionel Allorge (talk) 09:14, 9 September 2011 (UTC)

Installation no Language

I tried to install MediaWiki 1.17.0 if I want to do the setup the first step is choose the Language but this is all empty on my installation. I tried with firefox and IE. I connect with a cname blabla.dom.com to the wiki installation. Any solution? 77.59.199.231 (talk) 10:46, 9 September 2011 (UTC)

This means that the installer can't find language files. Make sure that directory languages in MediaWiki root is present, contains files and web server has permissions to read it. Max Semenik 21:26, 9 September 2011 (UTC)

Edit contents of Special:Booksources

Hello, I have failed to find out how to change the text in Special:Booksources. I have added a custom page at MediaWiki:Bokkällor (using MW in Swedish). In the docs it says: The page name "Meta:Book sources" is configured in the "MediaWiki" name space, and can itself be in any name space. It doesn't say what system meddage to use, but I have set booksources to MediaWiki:Bokkällor, without success.

Thanks for any help!

My Special:Booksources: http://säsongsmat.nu/ssm/Special:Bokkällor
MediaWiki 	1.16.1
PHP 	5.3.3-7+squeeze3 (apache2handler)
MySQL 	5.1.56-1 rotsee (talk) 19:54, 9 September 2011 (UTC)
Try editing [[Project:Book_sources]]. -Jlerner 14:54, 22 September 2011 (UTC) 14:54, 22 September 2011 (UTC)
Thank, you, I didn't get that the page had to be in the project NS! rotsee 21:21, 22 September 2011 (UTC)

Need help with adding Extension:ConfirmAccount.- Is it possible to use a cron job with Godaddy hosting for the update.php?

Resolved (At least for now.)

I'm working on adding the extension Confirm Account, and I've uploaded the files, and added the line to the local settings folder, but I'm having trouble with a line of code that I'm supposed to enter into the database.

I have MySQL, and I know the prefix that I add.

mysql -h DB_HOST  -u WIKIUSER -p  WIKIDB  <  ConfirmAccount.sql

This is the code that I am having trouble with.

What exactly am I supposed to substitute here? This isn't clear at all, and I've had a lot of trouble with a lot of directions here not being explicit, and a huge problem with a lack of explanation of whether or not things need to be substituted.

  1. Is WIKIDB the name of the database?
  2. Do I add the prefix in front of ConfirmAccount.sql?
  3. What do I put for WIKIUSER and where do I find it?
  4. What do I put for DB_HOST and where do I find it?
  5. Is there anything else I need to add?

I'm hosting with Go Daddy, for anyone who knows what that setup looks like. MediaWiki Website User (talk) 21:08, 9 September 2011 (UTC)

WIKIDB is the name of your database. WIKIUSER is the username you use for mysql. Both these should be able to be found in your LocalSettings.php file. For the DB prefix you have to open the confirmAccount.sql file in a text editor, and replace every occourance of /*_*/ with your db prefix.
Note, this is much easier to do with the update.php script instead of by hand... Bawolff 23:42, 9 September 2011 (UTC)
Thank you.
How do you "run the script?" MediaWiki Website User 00:38, 10 September 2011 (UTC)
See manual:update.php. Basically, if you have shell access, change into the maintinance sub-directory of your mediawiki install and run php update.php (Update.php is used both for upgrading mediawiki, and for extensions needing schema changes) Bawolff 01:20, 10 September 2011 (UTC)
I don't think I have shell access, or at least I don't know enough about it if I do.
It looks like that line is the only thing I need to add, so is that the only place where I need to substitute things?
What does DB_HOST change to? MediaWiki Website User 03:27, 10 September 2011 (UTC)
Thanks.
Is it possible to use a cron job for the update? I think I read something about using cron jobs when shell access is not available. MediaWiki Website User 19:27, 10 September 2011 (UTC)
I suppose you could use a cron job to do that (in the way you could use a cron job to essentially run any command). At the very least I do not see any reason for it not to work.
>I don't think I have shell access, or at least I don't know enough about it if I do.
>It looks like that line is the only thing I need to add, so is that the only place where I need to substitute things?
>What does DB_HOST change to?
In order to run the mysql command you have above, you need shell access, so if you can do that, then you do have shell access. If you don't have shell access, then you cannot run that command. (You can also use phpmyadmin to import the confirmAccount.sql file) DB_HOST is the server where your mysql server is located. In your LocalSettings.php file is the config setting $wgDBserver Bawolff 22:04, 10 September 2011 (UTC)
Thanks. MediaWiki Website User 03:21, 11 September 2011 (UTC)

Suggestions for ways to prevent new users from editing User Talk pages.

As a way of reducing spam, trolling, and vandalism, I'm looking for a way to prevent new users from editing user talk pages.

I have an idea for accomplishing this: I am thinking about creating a user group (for example, Frequent Users) and giving them the ability to edit user talk pages. Editing of user talk pages would be restricted from regular, new, users. When a new user has made a lot of contributions, and shown that they are interested in our website and being productive, they can be added to the user group that has the right to edit user talk pages.

I'm not totally sure on the exact set of instructions I would need to add for setting the user rights and user groups, so help and suggestions would be appreciated.

Would there be any way of allowing another user group (such as sysops) to add the Frequent User user group without having full user rights management?

If there's any better way of doing what I want to do (such as an extension), please let me know. MediaWiki Website User (talk) 06:09, 10 September 2011 (UTC)

See $wgNamespaceProtection. Also, you can restrict it without assigning groups (for example, based on edit count or account age) with AbuseFilter. Max Semenik 06:19, 10 September 2011 (UTC)

Email Confirmation Failure

As a sysop, the software is supposed to email me watched page notices, without going through the email cycle, according to:

E-Mail addresses of bureaucrats, developers or sysops become confirmed as they are entered, i.e. without the confirmation cycle. This behaviour can be configured (enabled as described or disabled) with switch $wgEmailConfirmationRequiredForAll. (Posted at: http://www.mediawiki.org/wiki/Extension:Email_notification#EConfirm:_E-mail_address_confirmation)

That switch does not exist in my LocalSettings.php file, so I assume my email should have been confirmed when it was entered.

But I am asked to click to confirm, and when I do, I get this error message: "Could not send confirmation mail. Check address for invalid characters. Mailer returned: mailer error"

The email address I have entered matches the address in the LocalSettings.php file.


MediaWiki 1.17wmf1 (r96617) PHP 5.2.4-2ubuntu5.12wm1 (apache2handler) MySQL 5.1.47-facebook-r3550-log


I installed the program March 9. That is how long I have been without email confirmation. A confirmation code was supposed to have been sent to me but I have never received it.

Thank you for your help! 173.18.193.221 (talk) 11:58, 10 September 2011 (UTC)

The documentation you're reading is the documentation for the old extension and not current email support and may be outdated. As it stands email confirmation is controlled by the $wgEmailAuthentication setting in your LocalSettings.php. It applies to all groups.
>But I am asked to click to confirm, and when I do, I get this error message: "Could not send confirmation mail. Check address for invalid characters. Mailer returned: mailer error"
Assuming your mailing address is valid, probably means that something is wrong with mail support in your OS. If using unix check to see if you can send mail using the command line mail program.
>The email address I have entered matches the address in the LocalSettings.php file.
You mean the emergency contact or password sender address? It really doesn't matter if they match...
>MediaWiki 1.17wmf1 (r96617) PHP 5.2.4-2ubuntu5.12wm1 (apache2handler) MySQL 5.1.47-facebook-r3550-log
Is that really the version you're using? Or is this a Wikimedia site? Or did you really compile your own php and mysql to use the version strings that Wikimedia uses.... Bawolff 22:36, 10 September 2011 (UTC)
Hi! Thanks for trying to figure it out. I have no idea what my version is. I don't remember how I stumbled on that info before; I can't find anywhere on my site that says in a way that gives me real confidence it is about my site, but today under "special pages", and "version" under that, I got a brand new opinion:
MediaWiki 1.12.0 PHP 5.2.9 (apache2handler) MySQL 5.0.32-Debian_7etch6
My OS is Windows 7 Home Premium.
My wiki webpage is found at http:\\talk.saltshaker.us/wiki It is hosted by myhosting.com.
The email addresses I tried: pilgrim (at) saltshaker.us which is an alias with the same host that the wiki has, and leach (at) iowatelecom.net. 173.18.193.221 01:13, 11 September 2011 (UTC)
>MediaWiki 1.12.0 PHP 5.2.9 (apache2handler) MySQL 5.0.32-Debian_7etch6
That's a much more believable version (The other one you gave is the version of this wiki, which is unlikely to be what you're using). It's also a fairly outdated version of MediaWiki (you should consider upgrading perhaps, but that's beside the point),
>My OS is Windows 7 Home Premium.
I meant your webserver's os (based on the version string given above its linux). What sounds most likely is there's something wrong with your host. If you have ssh access, you can test if the mail command works properly. If you don't know how to do that, your best bet is probably to ask your host - tell them that php's mail function is returning false (that's what "mailer error" means, that the mail function returned false). Bawolff 04:23, 11 September 2011 (UTC)

Short url-404 issue with other pages

Hi,

Short urls are working ONLY for homepage and articles. Any other pages, such as user page, My talk, Preferences.. Community Portal, Current Events, Recent Changes etc are returning 404error (object not found as XAMPP says).


I've installed 1.17 version on XAMPP, Windows machine.


MediaWiki is in a subdirectory (htdocs/wiki), htaccess is in root (htdocs/.htaccess) with the following code


RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*)$ ./wiki/index.php?title=$1 [PT,L,QSA]


and also aded these in LocalSettings.php

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


Hope someone will show some light. Thanks in advance. Almamun (talk) 19:42, 10 September 2011 (UTC)

When do I need to escape pipes with | template? (ParserFunctions)

Hello. Could someone explain when it is needed to replace | (pipes) with the {{!}} template in a ParserFunctions context?


For example, I noticed that this works properly: {{#if: {{{parametername|}}} | value if true | value if false}}
while this doesn't: {{#if: {{{parametername{{!}}}}} | value if true | value if false}} nor {{{parametername{{!}} }}} or even {{{parametername {{!}} }}}


Does the Mediawiki parser processes the deepest things first (in this example, {{{parametername|}}} and THEN the whole {{#if: }} function) so that it is NOT needed to escape pipes unless they're at the same “level” as the pipes used to separate #if test string, value if true and value if false? Thanks in advance. Moies (talk) 23:05, 10 September 2011 (UTC)

HELP! MediaWiki Internal Error after file upload? What should I do?

editted. problem solved. 220.255.2.144 (talk) 03:05, 11 September 2011 (UTC)

Are there any MediaWiki pages or anything that I can use to change the text that appears for each part of this form? I would like to give users help in knowing what they should provide on the form and what we are looking for. MediaWiki Website User (talk) 03:18, 11 September 2011 (UTC)

There are some MediWiki pages like this MediaWiki:Requestaccount-bio and MediaWiki:Requestaccount-bio-text. Mlpearc powwow 23:01, 16 September 2011 (UTC)
Is there any way, maybe in the folder for the extension, to change the name of the special page for requesting the account, along with link for account requests on the login page?
I want to change the link to say create account and for the special page to say something related to creation rather than requesting, as I feel that requesting an account might reduce potential registration. MediaWiki Website User 14:01, 23 September 2011 (UTC)

Strange digits appearing on wiki pages

Hi. On some pages i've strange digits on the top and "0" at the bottom of the pages. for example http://www.centersot.org/mediawiki/index.php/CentersotWiki:%D0%9F%D0%BE%D1%80%D1%82%D0%B0%D0%BB_%D1%81%D0%BE%D0%BE%D0%B1%D1%89%D0%B5%D1%81%D1%82%D0%B2%D0%B0 Here you can see "38d0" at the top and "0" at the bottom. Plz help. I modified vector skin, didn't change any code just layout. 109.201.78.133 (talk) 05:33, 11 September 2011 (UTC)

What if you disable AuthJoomla2 and any other extensions you may have installed? Do the "strange digits" go away then, or do they remain? Reach Out to the Truth 02:49, 13 September 2011 (UTC)
Yes, I tried to disable AuthJoomla2 but in vain. The problem doesn't disappear :(
When I open html code of these pages, I can see that upper "digit" appears before <!DOCTYPE html>
and "0" after the closing </html> tag. I think the problem is in some header function which outputs starting and ending tags but i can't figure out . plz give any hint. 109.201.78.133 07:48, 26 September 2011 (UTC)

Google Custom Search Engine in Mediawiki

I am using MediaWiki 1.17.0 PHP 5.2.17 (cgi-fcgi) MySQL 5.1.58-community-log

Wanted to integrate google customize search in my wiki. Tried this steps 1.generated code from google co-op 2.placed the code in extension folder by creating google-coop.php similarly as given in http://www.mediawiki.org/wiki/Extension:Google_Custom_Search_Engine 3. Where do I place <Googlecoop></Googlecoop> I am not getting this? and what should be next step.

Please help me... 82.22.79.168 (talk) 10:39, 11 September 2011 (UTC)

Adding Google Adsense to MediaWiki- How?

I would like to add Google Adsense ads to the top of the page, sort of like Wikkii wikis. I know I'm not supposed to be able to insert HTML into the pages, so is there any other way I can do this? Maybe with extensions or by modifying the skins? MediaWiki Website User (talk) 21:12, 11 September 2011 (UTC)

Take a look at Category:Advertising extensions and see if anything fits your needs or can be adapted to fit your needs. Reach Out to the Truth 02:36, 13 September 2011 (UTC)

Extension:SecurePoll How I can create a poll?

MediaWiki Version: 1.17.0

PHP Version: 5.3.6 (cgi-fcgi)

MySQL Version: 5.1.56-log

Website: http://ocioxtreme.skn1.com/wiki/index.php?title=P%C3%A1gina_principal (In Spanish)

Basically there is a mistake, I know how to create surveys with Extension:SecurePoll because I can not find an answer on the handling. If I could help, thanks.

PD: Excuse my English skills, do not use it often. Galahad (talk) 22:38, 11 September 2011 (UTC)

Have a look at the information here: wikitech:SecurePoll (although this is very WMF based and might not work on individual installs) Peachey88 05:11, 12 September 2011 (UTC)

MediaWiki 1.17.0 install failed

Setting up database... done
Creating tables... failed

Creating tables... failed
Error: Table creation failed with the following error: A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: http://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script Query: CREATE UNIQUE INDEX user_name ON `digimonmasters_wiki_user` (user_name)

Function: DatabaseBase::sourceFile( /var/www/web405/html/wiki/maintenance/tables.sql ) Error: 1142 INDEX command denied to user 'web405'@'localhost' for table 'digimonmasters_wiki_user' (localhost)

where is the problem, can anyone help? 88.66.12.231 (talk) 23:58, 11 September 2011 (UTC)

nobody can help ? 88.66.12.231 21:36, 12 September 2011 (UTC)
Your database user needs to have a number of different rights for the database. Grant those rights to it, or contact your system administrator or ISP if you can't. —Emufarmers(T|C) 05:16, 13 September 2011 (UTC)
Where do I find the right permissions to grant?
Thanks 166.56.172.195 20:36, 19 September 2011 (UTC)
The permission in this instance is INDEX. Upgrades also typically require CREATE when they're adding new tables, I think (and maybe ALTER).
If you have access to the root MySQL account, you don't need to fiddle around with the permissions, since you can just specify that you want to use the root account for the upgrade:
update.php --dbuser root --dbpass yourpasswordEmufarmers(T|C) 21:05, 20 September 2011 (UTC)

Template reference within an SVGtag.php inline SVG section isn't processed

I've got SVGtag.php installed, and my pages can render inline code like this:

<svgcode width="300" height="200" version="1.1"> <svg version="1.1" id="Layer_1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="300" height="200" viewBox="0 0 300 350"> <rect x="0.5" y="0.5" fill="#FFFFFF" stroke="#000000" width="250" height="1"/> </svg> </svgcode>

However, when I attempt to refer to a template within the <svgcode> block, no substitution takes place -- the reference remains unprocessed. Any ideas what I can do to force the parser to work inside an <svgcode> block? Jabowery (talk) 05:37, 12 September 2011 (UTC)

Images are not shown...

Hi all, I installed MediaWiki...nearly everthing works fine, also file uploads. But I have one problem...instead of the pics there are these small icons(broken file symbol) shown. I haven't found anything about this in the www :( Everthing works...like linking images etc. and they are also in my upload list....but they are still not shown!!!

Need some Help please!! :D

Cheers! 129.233.23.4 (talk) 07:10, 12 September 2011 (UTC)

Can we see your wiki? Max Semenik 17:01, 12 September 2011 (UTC)

Anfrage

Guten Tag. Ich betreibe seit März 2011 ein eigenes Wiki zum Thema Judentum namens Jewiki: www.jewiki.net. Es handelt sich um ein PrivatWiki, dessen alleiniger Inhaber ich bin. Gegründet habe ich es mit einem Partner, der für die Technik, Software, Verwaltung usw. zuständig war, aber zeitlich sehr in Anspruch genommen ist und womöglich bald aus dem Projekt aussteigen muss, weil er beruflich nach Russland geht. Ich würde mir wünschen, einen professionellen Partner an meiner Seite zu haben, der mich von Zeit zu Zeit beraten oder unterstützen kann in dem Masse, wie es benötigt wird. Das Projekt Jewiki ist natürlich defizitär und lebt nur von der Begeisterung seiner Macher – viel Geld ist da also kurzfristig nicht zu holen. Dennoch habe ich vor, das Projekt langfristig zu betreiben und zu entwickeln, und wenn der Erfolg auch nicht über Nacht kommt, so kann ja noch etwas daraus werden. Es wäre schön, wenn eine langfristige Zusammenarbeit mit einem festen Ansprechpartner, der die Entwicklung mit verfolgt und einigermassen auf dem Laufenden ist, möglich wäre und man sich per Zuruf verständigen kann, wenn Probleme auftreten. Von der technischen Seite habe ich nicht die grosse Ahnung, und von Zeit zu Zeit entsteht aber Handlungs- und Beratungsbedarf. Kennt hier irgendwer irgendjemanden, der gegen moderate Bezahlung das Projekt Jewiki begleiten und weiterentwickeln möchte? Vielen Dank!! -- Michael Kühntopf 16:27, 12 September 2011 (UTC)

Quick summary in English: Michael Kühntopf is running http://www.jewiki.net, a wiki about judaism. He's not a tech guy and looking for someone to help out with technical questions when they arise. -- Duesentrieb 17:13, 12 September 2011 (UTC)
Problem erledigt. Partner gefunden. Danke. -- Michael Kühntopf 09:29, 24 September 2011 (UTC)

Joining Confirmed Users

I've created a new account and have been working on a new extension page (SpatialWiki), but don't seem to have permissions to upload files (example images) to the extension page. From what I can tell my account will be "auto-confirmed" in 4 days? I already replied to the e-mail and it said my account was confirmed, but maybe this is un-related? Anyhow, just wondering if somebody can check on this and move me to the "confirmed users" group so I can upload files before 4 days from now? My username is cokrzys.

Thanks, Brian. Cokrzys (talk) 18:58, 12 September 2011 (UTC)

The configuration on this wiki doesn't appear to allow that, unfortunately. —Emufarmers(T|C) 05:13, 13 September 2011 (UTC)

SVN integration

I am thinking of using Mediawiki as the documentation system for software project.

With that in mind, I am wondering if there are any extensions that integrate Mediawiki with SVN in the sense that one can display and navigate through the SVN from within the Mediawiki environment.

I know about CodeReview, which has some relevance, but also has many features I'm not really interested in. Are there other existing examples of SVN and Mediawiki integration? Dragons flight (talk) 20:27, 12 September 2011 (UTC)

What features are you interested in ? Krinkle 03:09, 17 September 2011 (UTC)

Layout problem at the main page

Hello,

I have installed the MediaWiki on a new server and now I have the Problem, that the face of sidebar is a little smaller then the content in the middle of the page. But this problem is just at the mainpage... on every other page it is normal.

you can see it here: http://gehewikitest.gehe.de.celesiogroup.com/index.php/Hauptseite

Please help me!!

thanks 194.37.87.1 (talk) 12:16, 13 September 2011 (UTC)

WIKI 1.17 failed to connect to localhost database

76.191.40.2 (talk) 15:48, 13 September 2011 (UTC)

Improvement to the History pages

May I suggest a simple improvement to the History pages: the search form should allow one to filter out one's own contributions. This is helpful when one is busy editing a page repeatedly and one wants to spot other users' edits interspersed in this flow. Urhixidur 16:08, 13 September 2011 (UTC)

[RESOLVED] media wiki1.17.0 install gets stuck at create tables

Environment details:-

       * MediaWiki 1.17.0
       * PHP 5.3.5
       * Database MySQL 5.5

URL used:-http://localhost/orwfmt/mw-config/index.php?page=Install

When i click continue to install media wiki, it's getting stuck at create tables. Also all the tables are not getting created. Please find below screenshot. 202.67.5.250 (talk) 10:39, 14 September 2011 (UTC)

(This topic is from 2011 and only pops up here, because it just recently got edited. Setting it to resolved.) 88.130.78.97 21:23, 21 May 2015 (UTC)

subpage titles : change default display

Hi,
I have been looking for an answer to that question for a while, I hope I might find help here!
I would like to modify the default title display on my Wiki in order to avoid long page names created by the use of subpages. If a page's link is a/b/c/d/e, I would like the appearing title to be only "e". I know there is a code you can add on a single page to modify the page title display, but I do not want my users to have to insert this code every time they create a subpage (the less they code, the happier they are!). So I am looking for a parameter to change withing the general settings to modify the title display.
I'm sorry but I can not give infos about the version I'm using (I just became an admin, the previous one left without giving me any infos, so I have no idea what version we are using. He installed it in december, so I believe it's not an obsolete version).
Thank you for your help! Nouklea (talk) 20:59, 14 September 2011 (UTC)
See http://www.mediawiki.org/wiki/Manual:$wgRestrictDisplayTitle and http://www.mediawiki.org/wiki/Manual:$wgAllowDisplayTitle. You will need to have access to localsettings.php in the wiki folder to enable or disable those settings. Cavila MW 1.17, MySQL 5.1.57, Php 5.2.17 18:37, 15 September 2011 (UTC)
You can find the version by clicking 'Special pages' then under 'Wiki data and tools' click on version.
Regards Ron Barker 11:05, 16 September 2011 (UTC)
Thanks!
And so my settings is:
If I'm right, the commands indicated by Cavila, ie $wgRestrictDisplayTitle and $wgAllowDisplayTitle give the possibility to a user to modify, on a single page, the title display. What I am looking for is a way to change the display on all pages, to show only the last section of the name and avoid listing all the parents names in the page title.
Thanks for your help! Nouklea 13:29, 16 September 2011 (UTC)
I'm sorry, you're right about that.
Is there any good reason why those pages should be subpages? There are other, more common ways to make clear to you readers that certain pages are arranged hierarchically, e.g. through the use of categories and custom menus.
I don't know of any easy, site-wide solutions I'm afraid. An idea which may or may not work is to ensure that users add a template to subpages which includes the following line:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
(see further Help:Magic words for the two 'magic words' that are used here. Note that DISPLAYTITLE may not work with some skins.)
You can also have a look, if you haven't done so yet, at Extension:SubpageIndex and Category:Subpage extensions to see if there's anything which suits your needs. Cavila MW 1.17, MySQL 5.1.57, Php 5.2.17 18:46, 16 September 2011 (UTC)
I know this is 5 years old, but it keeps coming up in my search for how to do this. My solution was to edit the VectorTemplate.php skin. On line 117 (or wherever you can find the <h1> element with id="firstHeading" and class="firstHeading"):
$this->html('title')
was changed to:
echo $this->getSkin()->getTitle()->getSubpageText();
Hope this helps someone. Farinasa6 (talk) 00:49, 18 January 2017 (UTC)
I know this is 6 years old now, but you just have no idea how helpful you were.
Thanks a bunch, Farinasa6! Toomanynights (talk) 15:02, 27 April 2018 (UTC)
I know this is 6 years old, but exactly would a user have to do to change it within a page? I don't want to change all pages, just one particular subpage. 50.24.10.71 (talk) 21:46, 28 April 2018 (UTC)
I know this is 2 years old since you solved this but it broke again.
@Farinasa6
Hi Farinasa6, unfortunately your code tweak does not appear to be working with v1.31.1. Any chance you could have a look?
$this->html('title')
is now
$this->get( 'title' ) Latcheenz (talk) 02:31, 7 December 2018 (UTC)
I found $this->getSkin()->getTitle()->getSubpageText(); still returns the complete title with paths like $this->get( 'title' )
So I think we can shorten it like:
function getShortTitle(){
$pieces = explode("/", $this->get('title'));
return end($pieces);
}
Hawk914 (talk) 06:41, 1 June 2021 (UTC)
I found an easy way.
Just update the ${WIKI_INSTALL_DIR}/CURRENT/skins/Vector/includes/VectorTemplate.php file by adding the following line (line 117) :
...
		$out = $skin->getOutput();
		$out->setPageTitle(Title::newFromText($out->getTitle()->getSubpageText()));
		$title = $out->getTitle();
...
Jordan LE NUFF (talk) 13:53, 14 June 2021 (UTC)

<img> tag can not use an image from a folder in wiki root path

Hello,

I use mediawiki 1.17 on our Intranet. We integrated ckeditor 3.6 with a filemanager to insert picture. When I insert pictures, ckeditor insert an <img> tag with the source of the image. The folder of uploaded images is on folder /filemanager/userfiles/. The html tag inserted is : <img src="/filemanager/userfiles/image1.jpg" />. When I save the page, the image is not showed. If I change the source on my img tag to full path to access the image with domain name: <img src="http://www.domain.com/filemanager/userfiles/image1.jpg" /> it works. Can I do somethings to let mediawiki access the image with full path of the image ?

Thanks 96.20.100.62 (talk) 21:30, 14 September 2011 (UTC)

This problem still peresist. Any solutions? Lianxiangru (talk) 04:38, 3 March 2017 (UTC)

Infobox and create a category

Version

MediaWiki 1.17.0 PHP 5.2.12-nmm2 (cgi-fcgi) MySQL 4.1.22-nmm-1-log

Basic

A small Question with example (sorry for bad english) i have a infobox template like

{{Infobox room
Articelname= 
Color=
Doors=
}}

Colors and Doors a Main-Categories

Now input a User

{{Infobox room
Articlename= Myhome
Color=Red 
Doors=One

Question

How i make that the Infobox automatic

create Category:Red

under Category:Color

and list under new Category:Red: Articelname Myhome ?


[[Category:{{Color}}]]</pre> its not the full way :D

Thanks [[User:Bastor de|Bastor de]] ([[User talk:Bastor de|talk]]) 12:27, 15 September 2011 (UTC)
:Hi Bastor, 
:(1) It's best to use [[parser functions]] for what you're trying to achieve.
:In the template you can have something like:
:<syntaxhighlight lang='text'>{{#if:{{{Colour|}}}|[[Category:{{{Colour|}}}]]}}
</syntaxhighlight>
:(2) I don't think you can automatically make the new category (Category:Red in your example) a member of Category:Colour. You'll have to create the category manually if no such category exists and assign it to the appropriate category. 
:(3) Articles assigned to a category will be automatically listed there by page title. There are several ways to manipulate the display of article titles, but only up to a certain extent. 
:Hope that helps. [[User:Cavila|Cavila]] <sup>MW 1.17, MySQL 5.1.57, Php 5.2.17</sup> 19:32, 15 September 2011 (UTC)
::Thanks for Helps [[User:Bastor|Bastor]] 22:04, 16 September 2011 (UTC)

== Getting "Content Encoding Error" error page. ==

<br />OS: RHAT 5
<br />Apache: 2.2.15
<br />MediaWiki: 1.17.0
<br />PHP: 5.3.3
<br />Database: MySQL 5.1.52

Getting "Content Encoding Error" error page upon loading the main page.  Checking the log and noticed that the process ended normally. Would you please give me any suggestion that might cause this "Content Encoding Error" error page?  Many thanks for your help.

<p>====WIKI LOG=====</p>

<br />[root@wiki01 html]# tail -f /tmp/wiki.log
<br />session_set_cookie_params: "0", "/", "", "", "1"
<br />Unstubbing $wgMessageCache on call of $wgMessageCache::addMessages from wfExtensionAWCMultiFileUploader
<br />Use of MessageCache::addMessages is deprecated. [Called from call_user_func_array in (internal function)]
<br />LocalisationCache: using store LCStore_DB
<br />Use of SpecialPage::addPage is deprecated. [Called from wfExtensionAWCMultiFileUploader in /var/www/html/extensions/awc/multi_file_uploader/main.php at line 7]
Fully initialised
<br />Unstubbing $wgContLang on call of $wgContLang::getCode from MessageCache::get
<br />Connecting to localhost imagidoc...
<br />Connected to localhost imagidoc.
<br />MessageCache::load: Loading en... got from global cache
<br />Connecting to localhost imagidoc...
<br />Connected to localhost imagidoc.
<br />OutputPage::sendCacheControl: private caching; Thu, 15 Sep 2011 15:54:27 GMT **
<br />IP: 10.6.51.157
<br />Request ended normally
<br />session_set_cookie_params: "0", "/", "", "", "1"
<br />Unstubbing $wgMessageCache on call of $wgMessageCache::addMessages from wfExtensionAWCMultiFileUploader
<br />Use of MessageCache::addMessages is deprecated. [Called from call_user_func_array in (internal function)]
<br />LocalisationCache: using store LCStore_DB
<br />Use of SpecialPage::addPage is deprecated. [Called from wfExtensionAWCMultiFileUploader in /var/www/html/extensions/awc/multi_file_uploader/main.php at line 7]
<br />Fully initialised
<br />Unstubbing $wgContLang on call of $wgContLang::checkTitleEncoding from WebRequest::getGPCVal
<br />Connecting to localhost imagidoc...
<br />IP: 10.4.21.157
<br />Connected to localhost imagidoc.
<br />Title::getRestrictionTypes: applicable restriction types for Main Page are edit,moveUnstubbing $wgLang on call of $wgLang::getCode from ParserOptions::initialiseFromUser
<br />OutputPage::checkLastModified: CACHE DISABLED
<br />Connecting to localhost imagidoc...
<br />Connected to localhost imagidoc.
<br />MessageCache::load: Loading en... got from global cache
<br />Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::transform
<br />Article::view using parser cache: no
Class SkinMonobook not found; skipped loading
<br />DatabaseBase::query: Writes done: UPDATE  `page` SET page_touched = '20110915155427' WHERE page_id = '1536'
<br />Article::view: doing uncached parse
<br />Title::getRestrictionTypes: applicable restriction types for Main Page are edit,moveDatabaseBase::query: Writes done: DELETE FROM `objectcache` WHERE (exptime < '20110915155427')
<br />OutputPage::sendCacheControl: private caching;  **
<br />Request ended normally [[Special:Contributions/76.191.40.2|76.191.40.2]] ([[User talk:76.191.40.2|talk]]) 15:57, 15 September 2011 (UTC)

== WIKI 1.17.0: Preview - all text disappears ==

Hi,

I'm using IIS 7, PHP 5.3.8 and MySQL 5.5.16

When I edit a page and click "Show Preview", it works unless I 60 seconds has passed. After that amount of time, clicking "Show Preview" brings me to the edit box but all the text has been deleted (including updates and the original text)! So, when I did a few quick edits, it worked. When I tried to work longer on an article, the preview killed all my work.

Any ideas? I tried disabling wincache and switching $wgMainCacheType to CACHE_NONE but it hasn't helped... [[Special:Contributions/131.107.0.114|131.107.0.114]] ([[User talk:131.107.0.114|talk]]) 22:25, 15 September 2011 (UTC)
:Nevermind. This was a fluke due to migrating servers. [[Special:Contributions/131.107.0.114|131.107.0.114]] 16:39, 16 September 2011 (UTC)

== Double, Double ==

I have a weird little issue, I have a double posting of "Semantic MediaWiki" on my [http://www.everythingfoodanddrink.org/wiki/Special:Version version page] and at the same time I have a double posting of "Browse properties" in the [http://www.everythingfoodanddrink.org/wiki/Main_Page sidebar toolbox]. I've checked the obvious things I can think of, Semantic MediaWiki folder shows once in the extensions directory and the "include_once" shows once in LocalSettings.php

I hope this looks familiar to someone. [[w:User:Mlpearc|<font color="0000FF" ><b>'''Mlpearc Public'''</b></font>]] <small>([[User_talk:Mlpearc|<span style='font-family:;color:#0000FF'>'''Talk'''</span>]])</small> 01:52, 16 September 2011 (UTC)
:That's odd. I suppose you don't have a Semantic Bundle installation of SMW in addition to a regular one? [[User:Cavila|Cavila]] <sup>MW 1.17, MySQL 5.1.57, Php 5.2.17</sup> 18:56, 16 September 2011 (UTC)
::No, I've never installed a bundle of anything, <small>I was informed when I first started my wiki that bundles are not the best way to go :P</small> [[User:Mlpearc|<span style='font-family:;color:#800020'>'''Mlpearc'''</span>]] <small>[[User_talk:Mlpearc|<span style='font-family:;color:#CFB53B'>'''powwow'''</span>]]</small> 22:45, 16 September 2011 (UTC)

== Premature end of script headers update to 1.17 ==

Hi,

i updated from 1.16 to 1.17 with commandline and now i get this error:
error: cannot stat directory: (/[path]/wiki.phtml)
Premature end of script headers: php53-cgi
What can i do?
[[Special:Contributions/77.1.75.127|77.1.75.127]] 14:12, 16 September 2011 (UTC)
:Guys delete wiki.phtml! This makes an 500 error when you have shorten your URL to /wiki/Article!!!! [[Special:Contributions/77.1.75.127|77.1.75.127]] 17:01, 16 September 2011 (UTC)

== Uploads - Outlook Templates ==

Is it possible to enable MediaWiki to allow the upload of e-mail templates (.oft) files? I am creating a page that contains a table with the description of various e-mail templates. I want to include a link to an outlook template that will automatically open, thus giving the user easy access to said template. Is this possible? Just a quick note, we are using MediaWiki as a corporate wiki, hence why I am looking at using it for such a purpose. [[Special:Contributions/8.21.40.126|8.21.40.126]] ([[User talk:8.21.40.126|talk]]) 15:37, 16 September 2011 (UTC)
:I have this same question, was there an answer? [[Special:Contributions/65.47.224.18|65.47.224.18]] 19:13, 30 June 2012 (UTC)
:Edit your copy of [[Manual:LocalSettings.php|LocalSettings.php]] using [[Manual:$wgFileExtensions|$wgFileExtensions]]. [[User:Allen4names|Allen4names]] ([[User talk:Allen4names|talk]]) 07:17, 1 July 2012 (UTC)
::I'm with the same question...
::I already have put the .oft extension in the array of $wgFileExtensions,
::I also changed the $wgTrustedMediaFormats and in the Windows+IIS works fine.
::But now, I need use it in Linux+Apache, and when I upload this file type, occurrs an error "File extension does not match MIME type.".
::Can anyone help me with this case? 
::Thanks [[User:Crismagnabosco|Crismagnabosco]] ([[User talk:Crismagnabosco|talk]]) 21:23, 28 September 2012 (UTC)
:::Try using the command line <code>file "$fileName"</code> where <code>"$fileName"</code> is the name of the file whos MIME type is to be checked.
:::<syntaxhighlight lang="bash">
file FileName.oft
</syntaxhighlight>
:::This ''should'' let you know the correct extension to use for the file. Unfortunatly I do not know how to update MIME types in Linux. [[User:Allen4names|Allen4names]] ([[User talk:Allen4names|talk]]) 17:05, 30 September 2012 (UTC)

== Call to undefined function ctype_digit() ==

Hi,

May be all me as my first go at mediawiki installation.

Using Suse Studio created an installation with MySql , PHP and mediawiki based on suse 11.4 64 bit 

Created a MySql database and user with full rights to it.

Used the index.php script to set up the mediawiki, all ok no reported errors, saved the generated LocalSettings.php file and the restarted the server.

Now when looking at index.php get an internal server error 500.

Looking in the /ver/log/apache2/error_log file I have :

''[Fri Sep 16 15:17:03 2011] [notice] Apache/2.2.17 (Linux/SUSE) PHP/5.3.5 configured -- resuming normal operations''
[Fri Sep 16 15:18:03 2011] [error] [client 192.168.1.65] PHP Fatal error:  Call to undefined function ctype_digit() in /srv/www/htdocs/wiki/includes/libs/JavaScriptMinifier.php on line 487

If my understanding is right the JaveScripMinifier.php script is part of mediawiki?
Is there a library I’m am missing, have hunted around on net but cannot find this error talked about.

Sorry if this is a dumb question but Im a Hardware engineer, so not so good at the software ! 

David Hawkins [[Special:Contributions/86.181.202.87|86.181.202.87]] ([[User talk:86.181.202.87|talk]]) 15:57, 16 September 2011 (UTC)
:Soory all - Had installed most of the PHP5 5.3.5-4.14.1 Library but PHP5-ctype had slipped through the net [[Special:Contributions/86.181.202.87|86.181.202.87]] 16:27, 16 September 2011 (UTC)

== Forcing a download dialog box ==

Hi,

I'm new to MediaWiki and have spent time looking through lots of documentation and help online trying to figure this one out.

I'm trying to force a download dialog when an mp3 is clicked. Similar to http://apptools.com/phptools/force-download.php

Is there either an extension or an internal method in MediaWiki to send this Content Disposition information?

Thanks for any help!
Evan [[Special:Contributions/71.198.42.73|71.198.42.73]] ([[User talk:71.198.42.73|talk]]) 23:45, 16 September 2011 (UTC)

== Accessing MediaWiki on a Home Network under OSX ==

I've successfully install MediaWiki (1.17.0) on my MacBook Air (Snow Leopard). It works fine locally. However I cannot work out how to access it from other computers on my home network. My computer is visible to the other machines, and I can access my files from the other machines, but I can't see my wiki site.

What do I have to enable and where, and what should the URL be to access the wiki from other machines on the network. 

Regards
Paul [[Special:Contributions/206.188.159.219|206.188.159.219]] ([[User talk:206.188.159.219|talk]]) 14:08, 17 September 2011 (UTC)
:This is not related to MediaWiki specifically but I'm on OSX too, so here's how I did it.
:Assuming you have a web server running (either the default Apache that comes with OSX or something like MAMP), you can access this via http://localhost. On other machines this doesn't work since localhost is a magic pointer to the 'local' (current) machine, which, on the other computer, is not yours but the other.
:Go to System Preferences > Network. Then click on your protocol in the list on the left (Ethernet cable, AirPort wireless, etc. whatever the method is you are connected to your network). Then under "Status" you see an IP-adress that looks like "192.168.xx.xx".
:That's the address other machines in your network should use to access your 'localhost'. You can also use this IP-adres when on your own machine. [[User:Krinkle|Krinkle]] 15:44, 18 September 2011 (UTC)

== How to upload images to a remote serve? ==

My mediawiki is '''1.17''' and all my serves are linux.

For example, I have serve '''A''' and '''B''' now.

I want to put mediawiki on serve '''A'''.

Put images on serve '''B'''.

I try $wgSharedUploadPath. it can let wiki on serve '''A''' get images form serve '''B''', but can not upload image to serve '''B'''.

How should I config? [[User:Deletedaccount4567435|Deletedaccount4567435]] ([[User talk:Deletedaccount4567435|talk]]) 07:52, 18 September 2011 (UTC)

== How powerful is MediaWiki for the following listed uses...? ==

I am working on a collaborative project and our work will be mainly creating a lot of pages, with questions and answering them one by one. You can, for the purposes of understanding, say that we are making a Schhaumm's 3000 Solved Problems in... Series out of certain topics. (However, what we are aiming at is completely different.)

Anyways, the following are the tasks that I suppose will need to be done:

# 1) '''Importing scanned notes and their OCR''', each onto separate pages, on the wiki. (Will do this perhaps using macros and bots?)
# 2) '''Tagging and untagging''' different pages for the purposes of keeping a '''check on quality as well as task management'''.
# 3) '''Using autobots''' to make changes to articles, Discussion pages and User Talks, and to notify everyone of the change.
# 4) Tagging sections, again for the purposes of categories and task management : for example, tagging sections that need a diagram or the ones that require copyediting and so on.

I feel mediawiki is very powerful here. And I can definitely go ahead with mediawiki. However, what I want to know is, with all different sorts of wikihosts available that provide administrative functionalities, '''is mediawiki really the choice or can I manage my task with something else?'''

I should note the '''intense dependence on task management and division amongst contributors.''' [[User:Thewinster|Thewinster]] ([[User talk:Thewinster|talk]]) 00:51, 19 September 2011 (UTC)

== Unc links not working using extensions (UncPath and ParserFunctions) ==

Hey,

I added both the extensions above (first found ParserFunctions, that didnt work, then added UncPath) but I cant seem to open up Unc links.  When I click the links nothing appears to happen.  The links appear to be fine, and they display fine in the tooltip, and I can right click and select 'copy shortcut' (in Internet Explorer) and then paste it in a new window and the link opens up just fine.
I've tried using both IP address or server name with no effect.

Versions are (copied from Special:Versions):

MediaWiki 1.16.5
PHP 5.3.6 (apache2handler)
MySQL 5.1.58

This wiki is hosted on an intranet and is not externally accessible.  It runs on Fedora 14 with SELinux.  I access the wiki using Internet Explorer 9 (tried compatibility mode as well) and Firefox 6.0

I've added the following to my LocalSettings.php file for ParserFunctions:

require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
$wgPFEnableStringFunctions = true;
array_push($wgUrlProtocols, "file://");

And I then added the following for UncPath:

require_once("$IP/extensions/uncPath/uncPath.php");

Thanks for any assistance! :) [[Special:Contributions/66.46.165.194|66.46.165.194]] ([[User talk:66.46.165.194|talk]]) 19:53, 19 September 2011 (UTC)
:Anyone? [[Special:Contributions/66.46.165.194|66.46.165.194]] 19:30, 4 October 2011 (UTC)
:Browsers will generally not honor file:// links, since they're dangerous in the wild.  If you want to change this, consult the documentation for your browser. —[[User:Emufarmers|Emufarmers]]<sup>([[User talk:Emufarmers|T]]|[[Special:Contributions/Emufarmers|C]])</sup> 01:07, 5 October 2011 (UTC)
::Nuts.  :<  Well thank you both. [[Special:Contributions/70.249.80.26|70.249.80.26]] 03:05, 5 October 2011 (UTC)

== Wiki displaying wrong page. ==

Whenever you go to http://wiki.helionet.org/w/Main_Page, and then go to http://wiki.helionet.org/w/What_Does_HelioHost_Offer within a few seconds after, the main page is still diplayed. Clearing the cache "?action=purge" solves this problem, but It shouldn't happen in the first place. [[Special:Contributions/74.197.184.234|74.197.184.234]] ([[User talk:74.197.184.234|talk]]) 01:08, 20 September 2011 (UTC)
:Hello? Anyone here? [[Special:Contributions/74.197.184.234|74.197.184.234]] 23:52, 20 September 2011 (UTC)
::I tried to investigate, but I cannot reliably access the site. I don't know if that's a problem with the site or something on my end. [[User:Reach Out to the Truth|Reach Out to the Truth]] 00:21, 21 September 2011 (UTC)

== Multiple watchlists ==

I want to suggest an idea where the user can have multiple watch list. For example, "My templates", "Chess", "Requests" etc, so that the user can create separate watchlists for different types and topics of pages. --[[User:DixonD|DixonD]] 09:22, 20 September 2011 (UTC)

== How to attach files? ==

Hi There

I am completely new to MediaWIki so please excuse the stupid question.
I have searched through the Editor help and could not find the answer.

Can an article have a direct link to documents stored on a network file server.

eg: If I wrote and article that refernces a word document, I want a link to the actual word document on the network fileserver, is this possible or must all such documents be stores in the WIki Database?

If this is possible where can I find the reference on how to do this, as I could not find it under links etc section.

Thanks [[Special:Contributions/41.134.140.2|41.134.140.2]] ([[User talk:41.134.140.2|talk]]) 11:48, 20 September 2011 (UTC)
 [[User:Ron Barker|Ron Barker]] 14:41, 20 September 2011 (UTC)
:Have you ever got an answer, i am hoping I can do the same. [[User:Emadkamel|Emadkamel]] ([[User talk:Emadkamel|talk]]) 16:15, 28 March 2012 (UTC)
:It's a browser thang. Only IE has local links enabled by default. Real browsers have it disabled for security reasons. But they (Firefox and Chrome at least) also miss a reasonable setting to allow them for certain domains or network IPs like company networks. Solution: Use a template to create proper file:// links (e.g. <code>{{LocalLink|C:\\...|Link text}}</code>) and advise non-IE users to install these browser plugins: Firefox:  [https://addons.mozilla.org/de/firefox/addon/noscript/ No script] (2 settings to be set: ''allow all scritps'' (to diable No script) and ''allow local links'') / Chrome: [https://chrome.google.com/webstore/detail/jllpkdkcdjndhggodimiphkghogcpida Local links] (works right after installation). [[User:Subfader|Subfader]] ([[User talk:Subfader|talk]]) 20:36, 28 March 2012 (UTC)

== Possible to "tag" a block text or "list" all usages of a template ==

What I want to do is something like:

An article with the use of a template:
...{{quote|Who am I}}...

Another article with the use of a template:
...{{quote|MediaWiki rulezz}}...

Now I want to make a list of all quotes (and if possible a link to the article where the quote is placed)
* Whi am I (link to article1)
* MediaWiki rulezz (link to article2)


How can this be acomplished? [[Special:Contributions/193.173.253.178|193.173.253.178]] ([[User talk:193.173.253.178|talk]]) 13:22, 20 September 2011 (UTC)

== Getting "Content Encoding Error" error page. ==

<br />MediaWiki: 1.17.0
<br />PHP: 5.3.3
<br />Database: MySQL 5.1.52
<br />Apache: 2.2.15
<p>
I have been trying to migrate my existing Wiki with the following configuration to the one stated above but unsuccessful:
</p>
<br />MediaWiki: 1.12.0
<br />PHP: 5.2.5
<br />Database: MySQL 4.1.12
<br />Apache: 2.0.52
<p>
In fact, I was able to upgrade the MediaWiki from 1.12.0 to 1.17.0 on the old server, then follow the 'Migration' instruction exactly but ended up getting the 'Content Encoding Error' on the new server.  Can any Wiki expert out there please give me any suggestion you might have to get around this issue.  Your help is appreciated.
</p> [[Special:Contributions/76.191.40.2|76.191.40.2]] ([[User talk:76.191.40.2|talk]]) 14:37, 20 September 2011 (UTC)
:<p>Can any Wiki expert out there please give me any suggestion, solution to this "CONTENT ENCODING ERROR" issue? Is it a known Wiki bug? Basically, all I would like to do is to migrate an existing Wiki application from a server with RHAT4, Apache 2.0.52, PHP 5.2.5, MYSQL 4.1.12 and WIKI 1.17.0 to another server with RHAT5, Apache 2.2.15, PHP 5.3.3, MYSQL 5.1.52 and WIKI 1.17.0. </p>
:<p>Your help is appreciated. </p> [[User:Tthai01|Tthai01]] 15:07, 21 September 2011 (UTC)

== API: Get images of article without special wikipedia icons ==

When I query the images of an article I also get the special icons for things like disambiguation, licences (creative commons icon) etc. Is there a way to suppress or to identify these images? I can't use the image size. because the original image size of these icons is often very large. Is there maybe a way to get the size used for embedding the image in the article? [[Special:Contributions/80.121.6.134|80.121.6.134]] ([[User talk:80.121.6.134|talk]]) 18:08, 20 September 2011 (UTC)

== I can't create new items in Mediawiki ==

MediaWiki 	1.12.0 (r56)
PHP 	5.3.5-1ubuntu7.2 (apache2handler)
MySQL 	5.1.54-1ubuntu4

I have a problem with my mediawiki installation. When I try to edit a blank page (by clicking a recently created tag), the apache server returns the following message:Warning: '''Parameter 2 to Parser::parse() expected to be a reference, value given in /var/www/html/mediawiki/includes/StubObject.php on line 32 Fatal error: Call to a member function getText() on a non-object in /var/www/html/mediawiki/includes/OutputPage.php on line 487'''.

Sorry, but I can't publish any IP address because is a local installation.
Thank you [[User:Ojancano13|Ojancano13]] ([[User talk:Ojancano13|talk]]) 08:21, 21 September 2011 (UTC)
:Your have an ancient version of MediaWiki, incompatible with PHP 5.3. An upgrade should fix it. [[User:MaxSem|Max Semenik]] 10:17, 21 September 2011 (UTC)
::Thank you very much. Everything works allright. [[User:Ojancano13|Ojancano13]] 11:25, 23 September 2011 (UTC)

== How to enable tr & td tags in mediawiki? ==

Which extension do you need, or which variable do you need to change?
Thanks. [[User:אריה ה.|אריה ה.]] ([[User talk:אריה ה.|talk]]) 11:21, 21 September 2011 (UTC)
:See [[Help:Tables]]. Although you still can use the HTMl tags directly, e.g. <tt><table class="wikitable"><tr><td>foo</td><td>bar</td></tr></table></tt> produces <table class="wikitable"><tr><td>foo</td><td>bar</td></tr></table>
:However, it is recommended to use wiki syntax:
:<syntaxhighlight lang='text'>{|class="wikitable"
| foo || bar
|-
| baz || quux
|}
</syntaxhighlight>
:produces
:{| class="wikitable"
:| foo 
:| bar
:|-
:| baz 
:| quux
:|} [[User:MaxSem|Max Semenik]] 11:38, 21 September 2011 (UTC)
::I've got a copy of the Hebrew Wikipedia, and I managed to get most things working, but <tr><td> are still shown as is. How do I make MediaWiki "decipher" them? [[User:אריה ה.|אריה ה.]] 11:48, 21 September 2011 (UTC)
:::Both methods work without any additional changes. If you have nowiki tags around the table code, remove it. [[User:Reach Out to the Truth|Reach Out to the Truth]] 15:40, 21 September 2011 (UTC)

== Problem with image ==

Hello

I have just installed a new version (1.17) of mediawiki (before I had 1.16). Everything it's good, but I have a big problem with the image.

Because before the image was in directory images and thumb and everything work. Now I can't see image because the link is something like images/a/a1/my_image.jpg (before it was images/my_image.jpg). [[Special:Contributions/163.116.6.10|163.116.6.10]] ([[User talk:163.116.6.10|talk]]) 13:28, 21 September 2011 (UTC)
:<tt>[[Manual:$wgHashedUploadDirectory|$wgHashedUploadDirectory]] = false;</tt> [[User:MaxSem|Max Semenik]] 16:23, 21 September 2011 (UTC)

== Innstalling Extension:CreativeCommonsRdf -- get error message. ==

Hi
I have got an installation of mediawiki working and am now trying to install the Extension:CreativeCommonsRdf.

The installed versions are MediaWiki 1.17.0 , PHP 5.3.5(apache2handler) and MySQL 5.1.53-log as reported by Extension:CreativeCommonsRdf.

The version on CreativeCommonsRdf is that downloaded from http://www.mediawiki.org/wiki/Extension:CreativeCommonsRdf

When I edit the LocalSettings.php file to include the extension, and go to the index page of the wiki I get a blank page.
And the /var/log/apache2/error_log gets two new lines in it -

[Wed Sep 21 14:15:55 2011] [error] [client 192.168.1.67] PHP Notice:  Undefined variable: dir in /srv/www/htdocs/wiki/4, referer: http://mouse/wiki/index.php/The_Sargent_Collection
[Wed Sep 21 14:15:56 2011] [error] [client 192.168.1.67] PHP Fatal error:  Call to undefined method MediaWiki::getActiativeCommonsRdf.php on line 17, referer: http://mouse/wiki/index.php/The_Sargent_Collection

I have looked around and cannot see anything that matches this, but then know very little about PHP, so dont know what I need to look for.
What have I configured wrong ! 

Dave [[Special:Contributions/81.159.104.37|81.159.104.37]] ([[User talk:81.159.104.37|talk]]) 15:13, 21 September 2011 (UTC)

== Template:Infobox problem ==

I want to create a infobox on my wiki, so I imported Template:Infobox from local Wikipedia. I began to make infoboxes, but instead of getting a decent template, I got a bunch of disordered {{#if:}}s. Is there any template I should create manually? [[User:MaticKristan|MaticKristan]] ([[User talk:MaticKristan|talk]]) 15:44, 21 September 2011 (UTC)
:Wikipedia has the [[Extension:ParserFunctions]] extension installed which provides this <code>{{#if:}}</code> logic. You have to install that extension if you want to use templates directly from Wikipedia. [[User:Krinkle|Krinkle]] 21:22, 21 September 2011 (UTC)
::And how to align infobox to right?
::When I do this in my wiki, it align one below other:
::Infobox is aligned to the left and text is below it. How to change this? [[User:Aleksuu|Aleksuu]] 11:07, 23 September 2011 (UTC)

== Effects of changing the site name and meta namespace ==

If I change the name of my wiki, and the meta namespace to the new wiki name, will there be any adverse effects that I should be aware of?

Will it cause anything to get reset, or delete the articles currently in the meta namespace? [[User:MediaWiki Website User|MediaWiki Website User]] ([[User talk:MediaWiki Website User|talk]]) 23:05, 21 September 2011 (UTC)
:Pages are stored alongside their namespace number, so name doesn't factor into it. Pages in a renamed namespace will continue to exist and are accessible under the new name. You may want to add a namespace alias for the old name so existing links and bookmarks continue to function. [[User:Reach Out to the Truth|Reach Out to the Truth]] 03:20, 23 September 2011 (UTC)
::Thanks.  I just changed the name, and tested it on another wiki that didn't have any content on it yet.  Everything worked out fine.
::Thanks. [[User:MediaWiki Website User|MediaWiki Website User]] 13:55, 23 September 2011 (UTC)
::You need to run 
::<syntaxhighlight lang='text'>php $IP/maintenance/update.php
</syntaxhighlight>
::after changing these variables. $IP is the directory where your MediaWiki and LocalSettings.php are installed. [[User:Wikinaut|Wikinaut]] ([[User talk:Wikinaut|talk]]) 07:03, 24 January 2013 (UTC)

== Database error ==

I get this error when trying to delete a page:

<pre>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 "IndexPager::reallyDoQuery (LogPager)". Database returned error "1176: Key 'log_user_type_time' doesn't exist in table 'logging' (localhost)".</pre>

I use MediaWiki 1.17.0 and PHP 3.5.3. Anyone has any solutions? [[Special:Contributions/109.182.135.179|109.182.135.179]] ([[User talk:109.182.135.179|talk]]) 14:55, 22 September 2011 (UTC)

== uploading doc files  not "allowed" but doc is an allowed extension.. help? ==

mediaWiki v1.17.0
PHP 5.3.3
MySQL 5.0.77

wiki URL is not public accessable unfortunately.

relavent piece of LocalSettings.php:
<pre>$wgStrictFileExtensions = false; # i've tried setting this or not with same result.
$wgFileExtensions = array('png', 'gif', 'doc', 'docx', 'xls', 'xlsx', 'pdf', 'ppt', 'pptx', 'vsd', 'mpp', 'jpg', 'png');

$wgEnableUploads = true; # Enable uploads

now, I've also updated the includes/mime.types file to associate docx, pptx etc with the appropriate file type.

however, when I go to upload a .doc file I get: Files of the MIME type "application/msword" are not allowed to be uploaded.

When I go to upload a docx file I get: Files of the MIME type "application/x-opc+zip" are not allowed to be uploaded.

pdf and xls files are allowed to be uploaded..

I started a debug file but I don't really get anything useful out of it, for doc files it simply reports that it was able to identify that mime type.. log output:

User: loading options for user 2 from override cache.
Connecting to 10.4.128.58 eoswiki...
Connected to 10.4.128.58 eoswiki.
MessageCache::load: Loading en... got from global cache
User::isBlocked: enter
User::getBlockedStatus: checking...
IP: 10.128.1.142
Block::load: '10.128.1.142', '2', 1
File::getPropsFromPath: Getting file info for /tmp/phpI0xI27
MimeMagic::__construct: loading mime types from /var/www/html/mediawiki-1.17.0/includes/mime.types
MimeMagic::__construct: loading mime info from /var/www/html/mediawiki-1.17.0/includes/mime.info
MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpI0xI27 for magic numbers.
MimeMagic::doGuessMimeType: ZIP header present in /tmp/phpI0xI27
MimeMagic::detectZipType: detected a MS Office document with OPC trailer
MimeMagic::guessMimeType: guessed mime type of /tmp/phpI0xI27: application/msword
MimeMagic::improveTypeFromExtension: improved mime type for .doc: application/msword
MediaHandler::getHandler: no handler found for application/msword.
File::getPropsFromPath: /tmp/phpI0xI27 loaded, 50688 bytes, application/msword.
MacBinary::loadHeader: header bytes 0 and 74 not null


mime: <application/msword> extension: <doc>

UploadBase::verifyExtension: mime type application/msword matches extension doc, passing file
Class SkinVector not found; skipped loading
Title::getRestrictionTypes: applicable restriction types for Special:Upload are createDatabaseBase::query: Writes done: DELETE FROM `eosobjectcache` WHERE (exptime < '20110922173834')
OutputPage::sendCacheControl: private caching;  **
Request ended normally

Exsnafu (talk) 17:52, 22 September 2011 (UTC)

resolved this I think correctly by adding wgMimeTypeBlacklist to my LocalSettings.php without the msword, opc/zip mime types listed..
I understand the security implications.. I'm just wondering/wanting to confirm as I'm very new to mediawiki, is this the right way to go about it? Exsnafu 18:53, 22 September 2011 (UTC)

Join two files like href and img src in HTML by means of Wiki markup?

Hi!

I have an untypical question. It is possible to join two files (Media: and File:) in one link in the Wiki markup language?

For example:

[[Media:Python_Programming.pdf|[[File:Farm-Fresh_file_extension_pdf.png]]Python Programming]]
↑                                                                                           ↑
|--------------------------- one link to the pdf file with pdf icon ------------------------|

Of course, the above example does not work, but the same code as above in HTML language would look like this:

<a href="http://upload.wikimedia.org/wikipedia/commons/9/91/Python_Programming.pdf">
<img src="http://upload.wikimedia.org/wikipedia/commons/8/84/Farm-Fresh_file_extension_pdf.png" />Python Programming</a>

So far I have managed to do something like that code:

[[File:Farm-Fresh_file_extension_pdf.png|link={{filepath:Python_Programming.pdf}}]][[Media:Python_Programming.pdf|Python Programming]]

Which gives the following effect:

Python Programming

But unfortunately this is not a single link as the whole. (The PDF icon is one link and text is another link to the same location)

I will be grateful for some help or any hits.

Best regards,
--
Danny Danny373 (talk) 19:36, 22 September 2011 (UTC)

I don't think it gets better than what you're suggesting in the end. Two links with {{filepath:}} to generate an external link and feed it to the |link= parameter of the first link.
If you need this in many places you could create a template:
Template:PdfLink:
[[File:Farm-Fresh_file_extension_pdf.png|link={{filepath:{{{1|Example.png}}}}}]][[Media:{{{1|Example.png}}}|{{{2|{{{1|Example.png}}}}}}]]
And use {{PdfLink|Python_Programming.pdf|Python Programming}} to create:
Python Programming Krinkle 02:23, 23 September 2011 (UTC)
Krinkle, thank you for your help. Admittedly it isn't exactly what I expected, namely one link like in HTML:
<a href="http://upload.wikimedia.org/wikipedia/commons/9/91/Python_Programming.pdf">
<img src="http://upload.wikimedia.org/wikipedia/commons/8/84/Farm-Fresh_file_extension_pdf.png" />Python Programming</a>
But your solution is also cool. I've created a "PDFLink" template according to your idea, and it works great. Thanks! Danny373 09:13, 25 September 2011 (UTC)
If you want all pdf links on an entire wiki to have this icon, then you shouldn't put the icon in the wikitext. Instead use CSS in MediaWiki:Common.css of your wiki. That way you only have to do this:
*{{filepath:Python_Programming.pdf}}
*[{{filepath:Python_Programming.pdf}} Python Programming]
and get this:

Building Templates that Can Be Edited Uniquely

What I am interested in doing is building a template - let's call it "Product" - and then implementing it where its necessary across my wiki. I can do that. The issue is that when I go to "edit" a wiki-page that has the "Product" template, I am actually editing the template, not the page.

Any way around this? 63.240.52.205 (talk) 20:23, 22 September 2011 (UTC)

Are you using an edit link next to a section heading? If so, that edit link is for the page most likely to edit that section: the template. The section is not present in the article, thus us not editable via section. There's a magic word that you can add to the template to hide the section edit links, but I do not remember what it is. It also may be desirable to "substitute" the template which, unlike the default "transclusion", puts the actual content of the template into the article, thus allowing section editing to affect the article rather than template. Reach Out to the Truth 02:31, 23 September 2011 (UTC)

Is it possible to restrict user emails?

I run a wiki for a student theatre community and was wondering if it is possible to restrict new users to only those with .edu emails?

Thanks! 98.206.141.80 (talk) 07:05, 23 September 2011 (UTC)

partially parsed pages

mediawiki 1.17.0 mysql Ver 14.14 Distrib 5.5.8, for Linux (i686) using EditLine wrapper

PHP 5.3.5 (cli) (built: Jan  7 2011 10:03:34)

(from xampp package)

mediawiki installed on my home pc and wiktionary (en) dump imported. Even after a rebuildall.php, mw doesn't make the templates and partially makes internal links. As a short example (see the "title=Template:", "redlink=1" and the anchor for "Emotional"):

  • <a href="/sites/ln2home/garage/mediawiki-1.17.0/index.php?title=Template:Uncountable&amp;action=edit&amp;redlink=1" class="new" title="Template:Uncountable (page does not exist)">Template:Uncountable</a> <a href="/sites/ln2home/garage/mediawiki-1.17.0/index.php/Mental" title="Mental">Mental</a> or <a href="/sites/ln2home/garage/mediawiki-1.17.0/index.php?title=Emotional&amp;action=edit&amp;redlink=1" class="new" title="Emotional (page does not exist)">emotional</a> <a href="/sites/ln2home/garage/mediawiki-1.17.0/index.php/Aptitude" title="Aptitude">aptitude</a> or <a href="/sites/ln2home/garage/mediawiki-1.17.0/index.php/Skill" title="Skill">skill</a>. and it's even worst with the dutch wiktionary ! if somebody wants log files and whole page html code I've got: bnegro@ulb.ac.be 85.27.33.208 (talk) 09:39, 23 September 2011 (UTC)
    Wiktionary has $wgCapitalLinks set to false, which means the first letter of titles is case-sensitive. This will make pages seem not to exist when you import a Wiktionary dump but don't set $wgCapitalLinks to false. —Emufarmers(T|C) 20:23, 23 September 2011 (UTC)

    Cannot install MediaWiki, error 1146

    I was reinstalling my mediawiki. I reinstalled Xampp 1.7.7. and started fresh. However, after I try to initialize final step of mediawiki installation, I get this error:

    Error: Table creation failed with the following error: A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: http://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script 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_options blob 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
    ) ENGINE=InnoDB, DEFAULT CHARSET=binary
    
    Function: DatabaseBase::sourceFile( C:\xampp\htdocs\tolkienwikislovenija/maintenance/tables.sql ) Error: 1146 Table 'tolkienwikislovenija.user' doesn't exist (localhost)
    
    

    I created database with phpmyadmin and I'm sure I typed username and pw correctly. What's the problem? MaticKristan (talk) 19:44, 23 September 2011 (UTC)

    jquery draggable divs

    MediaWiki 1.17.0; PHP 5.2.10 (apache); MySQL 5.1.41-log.

    Can't make jquery draggable divs work. I added to Common.js this:

    jQuery(".c1").ready(
       function() 
       {
          jQuery(this).find('.c1').draggable();
       });
    

    Then I write on some page this:

    <div class="c1">
      lorem ipsum
      </div>
    

    But this div isn't draggable. What's wrong? Das steinerne Herz (talk) 21:18, 23 September 2011 (UTC)

    Page printouts that actually look like the screen pages (colour, font, navbars, etc.)

    This is really frustrating. I want to print some pages from our wiki, and I want the printed pages to look as they do on-screen, with the benefits of all the nice CSS settings designed to make the pages look pretty, and sophisticated, and cool. I want our logo printed top left (as it is on the screen), I want the tiny incidental footer text in Arial to stay tiny, and to stay in Arial. I want the navigation bars, and the background shadings, and the colours.

    I want the printout of a page to be just that - a printed copy of the webpage. I want a printout that I can show to someone and say: This is what our Wiki looks like, isn't it great?

    Unfortunately, what I get with MediaWiki when I try to print a page is a set of starkly minimalist, oversized, difficult-to-read black-on-white serifed text that looks like it's come from a website designed for a university math department in 1985, because someone, somewhere has decided that this is what printouts ought to look like. I can't seriously show these printouts to customers or colleagues, or pin them to a wall to give people info or show them progress on our Wiki project, because they look awful. Right now, if I want to hand someone a printed copy of info from the wiki, I have to copy-paste into a wordprocessor and reformat it by hand. I'm almost considering using Alt-PrintScreen to get a series of nasty low-res screenshots and manually piece them together with a bitmap editor (sigh).

    I do understand that there are situations where you might want to suppress link indicators, and menu bars, and formatting and colours and backgrounds, and I appreciate that the MediaWiki folk have probably put a great deal of work into supporting these clever conditional settings that deliberately make the printouts look different to what's on the screen. I just want to find out how to turn the dratted things off and go back to the old assumed WYSIWYG default behaviour, where the thing that came out of your printer looked something like the webpage that you were trying to print.

    So, does anyone know an easy way to disable the printer style overrides? I'd assumed that I could snip out the "print" CSS commands, or rename copies of the main CSS files as their "print-specific" counterparts, but either I'm doing something wrong, or there's some clever PHP in the background constantly overriding me, because nothing that I'm doing seems to be working (pouts). Perhaps there's a PrinterFriendly=off option somewhere? ErkDemon (talk) 22:00, 23 September 2011 (UTC)

    Making Sidebar work with Vector skin? / Wikitext in it

    So im making a skin based upon Vector...

    and in my sidebar i have:

       * Title Test
       ** Link Test
       *** Item Test
    


       So i have that,
    
       and this is what comes up
    

    http://ompldr.org/vYWhubQ/wiki.png


       and when i click on that link, i get:
    
       http://firefly.wikkii.com/INVALID-TITLE
    
       Not Found
    
       The requested URL /INVALID-TITLE was not found on this server.
    
       Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    


       any ideas why vector cant handle the sidebar?
    


       (Also while we're at it, how do you enable Wikicode in the sidebar using vector skin) 
    

    my wiki is http://firefly.wikkii.com/

    Thanks! 66.231.53.81 (talk) 00:33, 24 September 2011 (UTC)

    Having a problem with creation of New User's permissions

    I'm using an IPB forum database for the username and password for the creation of new accounts and I have creation of accounts disable there made on first login but when you login the user group you end up in is SYSOP I've searched hours trying to figure out how to force new users on login to be something other then SYSOP I would like them to be placed in the normal user groups how would I edit it so there automaticly placed within that group. http://www.existencero.com/wiki/index.php?title=Main_Page Any help would be GREATLY appreciated. 108.94.69.13 (talk) 21:47, 24 September 2011 (UTC)

    How do I configure MediaWiki to show more than one license at the bottom (for example, "Content is available under CC-BY-SA and GFDL")? And how do I create my own copyright notice (for example, "Text is available under the Creative Commons Attribution/Share-Alike License; additional terms may apply. See Terms of Use for details.") rather than the generic "Content is available under"...? 123.24.78.121 (talk) 00:49, 25 September 2011 (UTC)

    You can adjust this by editing MediaWiki:Copyright and tweaking some variables. —Emufarmers(T|C) 00:52, 28 September 2011 (UTC)

    How to setup help and infoboxes?

    I installed mediawiki for sites, and I'm trying to get it setup similarly to the wikipedia, I have a few question.

    • Help page seems to be empty. Do I need to add all help pages myself?
    • I added the stub template without a problem, copying it from the portuguese wikipedia. But I can't get the bio infobox to work, is there a guide somehwere that could help me with this? I copied "Info/doc", "Tab-sim" and "Info/Biografia" templates, but still the infobox doesn't show properly. What is the proper way of doing this to a out-of-the-box installation of mediawiki? 177.16.202.135 09:24, 25 September 2011 (UTC)
    it looks like the only problem with your infobox is "style", it's because the Wikipedia infobox use css classes, which you dont have, so either import the css settings or add them manually using the infobox css style variables (see it's documentation). Mor2 12:26, 25 September 2011 (UTC)
    Are those css part of the pages? Copying all the different bits that are part of the wikipedia will do it? Is there any way to do it automatically?
    thanks 177.16.202.135 02:33, 26 September 2011 (UTC)
    I meant either MediaWiki:Common.css (see the infobox related parts) or this w:Template:Infobox#Optional_CSS_styling. Mor2 12:51, 26 September 2011 (UTC)

    Server error, unexpected condition

    hi, I have recently noticed that our Special:UnusedFiles and Special:UncategorizedFiles returns the Server error, 500, unexpected condition. any ideas on how to fix that? Mor2 10:59, 25 September 2011 (UTC)

    we have a similar problem when trying to view the file list in [sorted by file size desc], I suspect that this problem might be the result of a corrupt file, any suggestions on how to fix or at least how to approach this problem Mor2 16:17, 25 September 2011 (UTC)

    Just in case anyone else encounter this problem, it was a corrupt file, one way to fix it is to go over the file list in batches hitting next until you get the 500 error, click back and see what is the last working file in the list, then use the list of pages and try to open manually the files in the next batch after the last working one, delete the one which dont load up and returns the 500 error. Hope it helps Mor2 03:10, 27 September 2011 (UTC)

    Two files, one name

    I'm trying to create a website for sharing documents, and organizing them online. I've been using mediawiki for a while, and everything has gone smoothly until I realized that it is very possible for people to upload two different files with the same name, and thus have one overlapping the other. Is there a way I can allow two different files to share the same name, but not have one take the place of the other? 76.15.222.6 (talk) 19:43, 25 September 2011 (UTC)

    Moving wiki & images from BitNami/Apache to mw/IIS

    Hi. I've successfully moved mediawiki articles from a BitNami WAMP stack ( mw v 1.17.0) to Win 2008R2 IIS (v 1.16.2 [unfortunately]) using the export and import special pages.

    However, I am unable to get images to appear. I have copied the /image folder and all subfolders and files, including .htacces I can upload new images and they appear in the /images hierachy as expected. Images are referenced by simple [[Image:image.ext]] syntax, no paths. I tried turning off $wgHashedUploadDirectory so now new files are placed in the /images root not subfolders, then copied a couple of old images to the /images folder, but they still don't appear in the articles.

    I read somewhere that mw maintains a table of image properties. Could this be why the images aren't appearing? I'm stumped! Any help would be much appreciated... thanks. Pete 24.20.75.221 (talk) 20:16, 25 September 2011 (UTC)

    I figured it out. There's a script in the maintenance folder, importImages.php, that has an "--missing" option in order to rebuild the table of active images based on the copied image files. Worked perfectly. I hope this helps someone else! 208.67.132.5 18:35, 26 September 2011 (UTC)
    Sorry, I meant "rebuildImages.php", not importImages.php. 208.67.132.5 18:38, 26 September 2011 (UTC)

    No "Email new password" in 1.17.0

    MediaWiki 1.17.0

    PHP       5.2.17 (cgi)
    MySQL     5.0.91-log
    

    "Email new password" does not appear anywhere. Dbooksta (talk) 13:39, 26 September 2011 (UTC)

    Can we have a link to your wiki? —Emufarmers(T|C) 00:44, 28 September 2011 (UTC)

    Lost password, no email. Reset?

    username: iantresman.
    I want to unify my MediaWiki account with my accounts on the other projects, but I have lost my password, and stupidly did not add my email address. No contributions were made under my account. What do I need to do to get the password reset, or the account deleted, so that I can start again? I believe it is possible to match my IP address with my contributions on Wikipedia. 93.97.21.214 (talk) 14:25, 26 September 2011 (UTC)

    You can make a request on Project:Requests. —Emufarmers(T|C) 00:43, 28 September 2011 (UTC)

    LIKE staements in database query select wrapper

    How do i this criterion to a WHERE clause in the select db wrapper LIKE %$_SESSION['wsUserName']%? Product Version MediaWiki 1.16.2 PHP 5.3.5 (apache2handler) MySQL 5.5.8 209.244.4.106 (talk) 20:21, 26 September 2011 (UTC)

    How to enable support for wiki markup in MediaWiki:Sidebar in skins other than monobook?

    I'm trying to do it in Vector, specificially,

    but noone seems to know.

    so are there any OTHER skins in which you can allow wiki markup in the sidebar???

    I have wed and thurs off and I'd like to redo my wiki in those 2 days... 66.231.53.81 (talk) 07:16, 27 September 2011 (UTC)

    The sidebar should work in Vector just like it does in Monobook. If not, please file a bug report as that is not supposed to happen. Krinkle 16:59, 27 September 2011 (UTC)
    They said "as it is a hack to the skin, it is not a bug, and this is not a support forum"
    All i wanna do is apply this -> Manual:Sidebar#Allow wiki markup .28PHP.29
    to ANY other skin.. but other skins dont have that code to replace! 66.231.53.81 00:42, 28 September 2011 (UTC)
    Being a hack, it's discouraged and unsupported. You're unlikely to get an answer here, but perhaps you'd have better luck asking at a different forum. Reach Out to the Truth 01:25, 28 September 2011 (UTC)

    I need a featured link on mediawiki.org.PLease quote me 1 month price for a text link on [email redacted] 121.245.21.22 (talk) 11:10, 27 September 2011 (UTC)

    Some things are not for sale. We're an noncommercial site. Max Semenik 11:19, 27 September 2011 (UTC)

    when click"Edit" after login, "Save as" will popup

    Hi all,

    I'm running a WIKI in my PC: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 MySQL client version: mysqlnd 5.0.7-dev - 091210 - $Revision: 304625 $

    when I login, and click "Edit" or "Create" in the page, "Save as" window will popup. but as a guest, I can Edit or Create page normally.

    Any advice? Many thanks! 58.34.179.95 (talk) 13:23, 27 September 2011 (UTC)

    Disable "use external editor" in your preferences. Max Semenik 13:26, 27 September 2011 (UTC)
    Thanks very much!
    It works! 58.34.179.95 14:17, 27 September 2011 (UTC)

    How to place some default text in editbox of my mediawiki website

    How to place some default text in editbox of my mediawiki website for new page.(not for existing one) Thanks. 146.162.240.242 (talk) 14:17, 27 September 2011 (UTC)

    No file by this name exists, but you can upload it

    I have seen this issue mentioned a few times but can't find anywhere a solution is provided.

    I can upload an image, the file is created on the server but the image does not link, and the description page reads "No file by this name exists, but you can upload it"

    example

    My file list

    https://machine1.newcovsoft.com/ross_wiki/index.php/Special:ListFiles

    https://machine1.newcovsoft.com/ross_wiki/index.php/File:Help_Me.png https://machine1.newcovsoft.com/ross_wiki/images/e/e5/Help_Me.png Trex005~mediawikiwiki (talk) 14:49, 27 September 2011 (UTC)

    Well, as it was over a day and I had heard nothing, I just set up a shared hosting server and popped it on there with a new domain. Works like a charm now. Trex005 20:36, 28 September 2011 (UTC)

    Development and production versions of wiki-article (MediaWiki CMS)

    Is it possible to realize few versions of wiki-article (using MediaWiki CMS) — development version and production version and simple way to switch versions? Flogrimm~mediawikiwiki (talk) 08:55, 28 September 2011 (UTC)

    2.0.1-beta SphinxSearch how do I know this is working? says its installed on special page version page

    193.203.70.55 (talk) 13:04, 28 September 2011 (UTC)
    

    Error on install: PHP 5.3.5-1ubuntu7.2 installed

    After clicking the "Please set up the wiki first." link on the first page I get this error: MediaWiki 1.9.6 Installation

       Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list.
    

    Checking environment...

    Please include all of the lines below when reporting installation problems.

       PHP 5.3.5-1ubuntu7.2 installed
    

    I can't provide a link to the server since it's on a LAN.

    Best regards /jari 194.68.64.2 (talk) 15:15, 28 September 2011 (UTC)

    MediaWiki 1.9.6 Installation
    Ahhhhhhh! That is an insanely old version of MediaWiki. We recommend you grab the latest stable version (1.17) and follow our Installation guide to set it up. Johnduhart 15:30, 28 September 2011 (UTC)

    I want my system manager to provide me with the possibility to have a sidebar with expandable/collapsable items. Exactly the type of sidebar which is implemented in this wiki. Ex: When I click Support, I can display sub items such as User help, technical manual, etc.

    I could not find a solution that I'm sure that's the right one to propose to my Sys Mgr. What I found is that MediaWik version should be 1.17 with the Vector extension installed. Am I right or is there another way to meet this goal ?

    Thanks, Philippe 87.90.78.241 (talk) 16:55, 28 September 2011 (UTC)

    That's right. —Emufarmers(T|C) 06:51, 29 September 2011 (UTC)
    Many thanks for the confirmation.
    Best regards
    Philippe 87.90.78.241 07:39, 29 September 2011 (UTC)
    I have the Vector extension installed and my MediaWiki version is beyond 1.7. The "Toolbox" section now uses the expandable arrow, but I'm not sure how to enable the expandable arrows in my Nav.
    Does anyone know how to do this?
    Product Version
    MediaWiki 1.18.2
    PHP 5.3.10 (cgi-fcgi)
    MySQL 5.1.26-rc-5.1.26rc-log 74.9.76.130 13:42, 29 March 2012 (UTC)

    Vector skin fails to style intermittently

    Hi folks,

    Please look at http://wiki.openhardware.org/index.php?title=Main_Page&useskin=vector

    This styles correctly on some days and not others. It's failing (with multiple users testing it) today.

    System is Debian 6.0.2

    PHP Version is 5.3.3-7+squeeze3 as distributed by Debian.

    Mediawiki version is 1.17.0

    Extensions are: AdminLinks Maps SemanticInternalObjects ApprovedRevs Nuke SemanticMaps ArrayExtension PageObjectModel SemanticMediaWiki CategoryTree ParserFunctions Cite README SemanticResultFormats ReplaceText SemanticTasks ConfirmEdit semantic-bundle SpamBlacklist DataTransfer SemanticCompoundQueries Validator SemanticDrilldown Widgets ExternalData SemanticForms Wikilog HeaderTabs SemanticFormsInputs

    My email is bruce at perens dot com.

    Thanks BrucePerens (talk) 04:03, 29 September 2011 (UTC)

    You have a similar problem that I'm working on. My system is ubuntu server 11.04 running just like your setup with slightly more extentions. My problem is that when I try to look up the pages it does not style intermittently however when I try it on my lan (same setting and everything) it works perfectly 100% of the time. So I used Yslow and it appears that the error is caused by a failure due to load.php. I am still not sure how to remedy it atm. W2zk 12:10, 3 October 2011 (UTC)

    Changing editor font in user settings doesn't work :(

    Hello everybody. I'm running a MW 1.17.0. When I change the editor font in the user settings, it doesn't have any effect. The font I see is always the same: Monotype. It's not a browser caching issue. Anybody know this problem? TomasRiker (talk) 07:13, 29 September 2011 (UTC)

    The preference named "Edit area font" sets the following CSS rule:
    textarea { font: serif; }
    Trying it on MediaWiki.org worked for me. I'm getting a serif font here now. Can you try this on MediaWiki.org and let us know if it worked for you ? Krinkle 15:49, 2 October 2011 (UTC)
    This CSS rule was just not output by my MediaWiki.
    And I found the reason why. It's a bug in OutputPage.php, line 2731. Look at it and see how it makes absolutely no sense. It actually led to three equal CSS links in my HTML document.
    The code block has to be changed to:
    // Add site, private and user styles
    // 'private' at present only contains user.options, so put that before 'user'
    // Any future private modules will likely have a similar user-specific character
    foreach ( array( 'site', 'private', 'user' ) as $group ) {
    $ret .= $this->makeResourceLoaderLink($sk, $styles[$group], 'styles');
    } TomasRiker 22:03, 2 October 2011 (UTC)

    Upgraded php version to 5.3.3, and mediawiki 1.10.0 stopped working

    Is there a safe way to get Media Wiki up and running again with my new version of php(5.3.3)/mysql? I would really like to retain all my information, and would ideally prefer to avoid a complete reinstall if possible.

    Or if i must reinstall, is there an easy process to avoid downtime?

    Thanks in advance for any help! 99.136.196.56 (talk) 15:55, 29 September 2011 (UTC)

    Such old versions of MediaWiki do not work with PHP 5.3. You will need to upgrade your installation. iAlex 16:00, 29 September 2011 (UTC)
    Ok, so I tried to upgrade, I was able to upgrade the files. And then while trying to run UPGRADE, i get this fatal error:
    === Fatal: PHP's PCRE module seems to be compiled without PCRE_UTF8 support. MediaWiki requires UTF-8 support to function correctly. ===
    However I know I have php5.3.3, so I was wondering what to do to continue to upgrade?
    Thanks! 99.136.196.56 18:26, 29 September 2011 (UTC)

    MediaWiki PHP version required

    I can't found a overview, that php version is requested for that mediawiki version.

    I have follow problem.

    I will try mediawiki at a XAMPP system to try new wiki addons aka securetools like capatcha or other.

    But in the new XAMPP is a php version build in, they have some bugs and i cant install mediawiki on it.

    And now i search a work solution, that mediawiki work on php version x.y

    Sorry my english is not the best, but i hope you understand that i mean. 88.77.203.34 16:29, 29 September 2011 (UTC)

    The required PHP version is listed on Installation and Download. —Emufarmers(T|C) 05:07, 30 September 2011 (UTC)

    Wikimedia Foundation "Answers"

    Hi. :) My apologies if this is not the best place. Philippe thought you guys would like to know about this, and I can't figure out how else to tell you. Please move it, if there's a better home.

    I just wanted to let you all know that the Wikimedia Foundation is testing a potential new communication system intended to provide a central address to which community members who need assistance from the Wikimedia Foundation or who have questions about the Foundation or its activities can reach out and find answers. This system is being unrolled on a trial basis to test its efficiency and usefulness to communities.

    What happens to your question will depend on what type of question it is. Many questions are general interest, and answers to these are being posted to wmf:Answers. Generally, at least to begin with, I will be writing these answers myself, although staff members have assisted with some questions already and I don't doubt will assist with more. Some issues will not be general interest, but may require attention from specific staff members or contractors. These will be forwarded to the appropriate parties. Questions that should be answered by community may be forwarded to the volunteer response team, unless we can point you to a more appropriate point of contact.

    I imagine most of you are familiar with how the Wikimedia Foundation works, but it's probably a good idea for me to note for those who are not familiar that the Wikimedia Foundation does not control content on any of its projects. They can't help with content disputes or unblock requests, and they are not the place to report general bugs or to request features (that would be Wikimedia's Bugzilla). The letters I've answered already have included primarily questions about finances and the Foundation's work. I've been asked to get feedback from staff on diverse subjects ranging from the amount of latitude permitted to a project in drafting their "Exemption Doctrine Policy" to whether or not groups seeking grants need tax exempt status first.

    If you have questions for or about the Wikimedia Foundation, you can address them to answerswikimedia.org. Please review wmf:Answers/Process for specific terms and more information. Mdennis (WMF) (talk) 18:56, 29 September 2011 (UTC)

    That looks neat, but it's not obvious to me how it would apply to this project. —Emufarmers(T|C) 05:01, 30 September 2011 (UTC)
    Meta-Wiki is a central place in the Wikimedia wikis communities. meta:Babel seems like a good place to post this. This wiki is more about the development of the MediaWiki software, not many community members come here. Krinkle 15:42, 2 October 2011 (UTC)

    Retrieving sysop account name

    After a DreamHost install of MediaWiki, I found I didn't get or I lost the sysop account name. I did record a password however. ?? Is there a way for me to retrieve the sysop account name?

    Product Version MediaWiki 1.16.4 PHP 5.2.17 (cgi-fcgi) MySQL 5.1.39-log 38.99.102.165 (talk) 22:15, 29 September 2011 (UTC)

    Go to Special:Listusers/sysop Max Semenik 03:50, 30 September 2011 (UTC)
    but i need to login for that.. how do i get it without the login? 65.160.159.4 22:16, 5 March 2012 (UTC)
    Try to dig for it in MySQL directly. Bináristalk 22:21, 5 March 2012 (UTC)

    List pages by hits

    I was wondering if there was a way that I could list the pages by hits, so I could see the pages I visit the most instead of the pages I edit the most. 24.222.97.42 (talk) 15:17, 30 September 2011 (UTC)

    Special:PopularPages (disabled on this wiki) shows you which pages are viewed the most (though not by you in particular). —Emufarmers(T|C) 04:14, 1 October 2011 (UTC)

    enhanced recent changes for user contributions?

    I am using enhanced recent changes for all recent changes of the wiki, is it possible to make enhanced recent changes for my user contributions?

    Maybe I can hide everyone elses edits on Special:RecentChanges? Bigbull (talk) 21:04, 30 September 2011 (UTC)