Project:Support desk/Archives/System/002

From mediawiki.org

(RESOLVED) Error while sorting ImageList

  • MediaWiki: 1.12.0
  • PHP: 5.2.5-0.dotdeb.0 (cgi-fcgi)
  • MySQL: 4.1.15-Debian_0.dotdeb.4-log
  • URL: Power Rangers Wiki

When i'm visiting Special:Imagelist and clicking on an column header to sort the imagelist, i get an error: Fatal error: Call to a member function getURL() on a non-object in /pr/w/includes/SpecialImagelist.php on line 119. The error might be since one or two releases already. I'm using the images also on another local wiki on the server.

—Serpen 09:29, 27 April 2008 (UTC)[reply]

There was a problem with an imagename with + within, after deleting image names with + in the filename the error disappeared. --Serpen 10:02, 11 May 2008 (UTC)[reply]

(RESOLVED) Prevent annon users from editing any page EXCEPT talk pages

I want to stop annon users from editing pages, simple enough I can do this:

$wgGroupPermissions['*' ]['edit'] = false;

BUT I still want them to be able to edit talk pages.--71.217.200.78 23:43, 27 April 2008 (UTC)[reply]

See Extension:EditTalkRight. Smaug 00:37, 28 April 2008 (UTC)[reply]
Ok I am using that extension and it's working but now I want to also allow them to edit [[Project:Help Desk]] as well. I asked the edit talk right extension author about this he had me email him then tried to sell me a custom extension for $20 when all thats needed is to modify the edit talk right extension to work if it's a talk page or this one specific page. Not a PHP scriptor myself I am not sure but I know its quite simeple so I definatley am not goin to spend $20. So if someone could tell me how to do this or perhaps point out an easier method to acomplish the same thing, that would be great, I am not against paying you for your work if you have to extend this extension but I do as that you charge a resonable amount. Thanks for your time.--71.221.196.127 02:20, 20 May 2008 (UTC)[reply]
Try Extension:EditSubpages. Or you could probably edit the extension you have, as well. You could use it as a PHP learning experience. Either way. Smaug 22:01, 20 May 2008 (UTC)[reply]

(RESOLVED) Making changes to LanguageGa.php

  • MediaWiki: 1.13alpha (r33926)
  • PHP: 5.2.5 (apache)
  • MySQL: 4.0.40-wikimedia-log
  • URL: VicĂ­fhoclĂłir

Not sure if this is the right place to ask, but...I’m an admin at the Irish Wiktionary and I’ve been doing some translation over at Betawiki. I’m interested in making a small addition to LanguageGa.php so that we can handle nouns after numbers more idiomatically. Something along the lines I’m thinking of seems to have been done already in LanguageCy.php - counting in Welsh works in a similar way.

My question is do I have to download everything and become a fully fledged developer to achieve this or is there and easier way (I have plenty to do already!) —☸ Moilleadóir ☎ 05:12, 29 April 2008 (UTC)

Well downloading MW won't help you change wiktionary's copy of LacguageGa.php. You need to find someone with access to it or be awarded access it yourself. Try bringing this issue up on the wikictionary site, I bet they have some sort of policy page, or check their irc channel (I would bet but do not know that they have one). While you're not supposed to talk about Wikipedia or Wiktionary on this site, if this is a change that you think should be applied to all wikis, like it seems it is, there is probably a page on mediawiki.org to bring up this issue, if you can't find one then go to MW's irc channel. Smaug 14:38, 29 April 2008 (UTC)[reply]

(RESOLVED) How can I get my wiki faster?

  • MediaWiki: 1.12.0
  • PHP: 5.2.5 (cgi)
  • MySQL: 5.0.51
  • URL: DJs-ONLY-Wiki

Hello, if someone of you may take a look on my wiki, you'll see, that it takes a time until it loads complete. So, what can I do to get this faster? Thanks for your help. Best Regards. Mirko. —91.3.107.148 10:13, 3 May 2008 (UTC)[reply]

See this link. Aaron 17:28, 3 May 2008 (UTC)[reply]

(RESOLVED) Parameters index.php

  • Wikipedia:FR & Commons

Hello,

I am writing a JavaScript code for use on the above projects; at one moment it does save a page, but that is hidden.
Is there a way (some parameter) to get a text-only version of the page after the submission? (to not load the image if it is an image description page, to save some bandwidth).

Thanks, François [Discussion] 21:35, 3 May 2008 (UTC)

Perhaps you could enabled editing via the API and using AJAX? Aaron 16:04, 5 May 2008 (UTC)[reply]
Unfortunately editing via the API is currently not allowed on the Wikimedia projects... (Also I wanted to not use AJAX) -- François [Discussion] 21:20, 30 May 2008 (UTC)

(RESOLVED) Edit Bar

I want to figure out how to get the well i'll call it the edit bar, I've seen it on wikimedia projects and its on here, its a bar below the buttons like save, ect. It has a drop down menu, and depending on what is selected in the drop down menu you have several links, clicking on one adds something to the text you are editing, usually it will dedfault to showing some common templates, or some wikicode. I want to know how to get that on my wiki, is it an extension or is it only in the mediawiki version 1.13alpha (r34147) the wikimedia projects seem to be running?--71.217.196.15 14:00, 4 May 2008 (UTC)[reply]

Any idea's? This wiki has it too. Right below the submit button.-71.221.196.127 22:56, 19 May 2008 (UTC)[reply]
You want to edit MediaWiki:Edittools after having installed Extension:CharInsert. Smaug 01:09, 20 May 2008 (UTC)[reply]
Awesome, you are a big help, thanks.--71.221.196.127 02:43, 20 May 2008 (UTC)[reply]

(OUTDATED) Problems with "umlaute"

  • MediaWiki: 1.12
  • PHP: Xampp 5.2.3
  • MySQL: Xampp 5.0.45

Hi, I have many Problems with german "umlaute" like ä ö ü. When I edit a new Page called Übersicht, in the Adressbar the Browser makes %C3%9Cbersicht with this word. When i then try to upload a Picture calles müll.jpg in the Adressbar I see http://127.0.0.1/mw/index.php/Bild:M%C3%BCll.jpg

the link is then not available with this error:

Error 404

127.0.0.1 05/04/08 18:01:47 Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.3

The Collation for the Database is utf8_unicode_ci.

Thats a very big Problem and I can not find a solution for this Problem. It would be very helpfull, if someone could help me

—87.154.139.187 16:11, 4 May 2008 (UTC)[reply]

(OUTDATED) Editing problems

  • MediaWiki: 1.11.0
  • PHP: 5.2.5 (apache2handler)
  • MySQL: 5.0.45-community-nt
  • URL: Internally Accessible at this point

Yesterday all was good, today

  • one user can edit anything - HTTP 500 Internal Server Error (in IE) (No Error just times out in Firefox)
  • one user can edit what he had been editing last week only
  • one user can edit nothing

Log in as the Admin user - it can't do anything either (to add to the above summary) Search a lot and no joy as yet. I tried editing the .htaccess files with - application/x-httpd-php5 .php

I think that is just happened - all was good last week and then suddenly this morning not. Subversion was upgraded on the same server, but no code was updated. The server is Windows 2003 R2,

—IRobert 08:11, 5 May 2008 (UTC)[reply]

(RESOLVED) How to use generator sitemap?

I use latest stable version (Mediawiki 1.12), and this pages says it have been google sitemap integrated Extension:Google Sitemap

But i still cant use that google sitemap function

How to use the google sitemap actually?

i cant open this file (its say 404 error) http://www.faq.web.id/w/Maintenance/generateSitemap.php

or this (its says No such special page) http://www.faq.web.id/wiki/Special:GoogleSitemap

I install mediawiki from dreamhost one click panel, and reference to this installation tutorial http://wiki.dreamhost.com/index.php/MediaWiki

Quote: If your wiki is install under a "www." subdomain

so i install it to www.yourdomain.com/w and the content results are www.yourdomain.com/wiki/Content_title

the installation is success here it is http://www.faq.web.id/wiki/

this is my root htaccess

Quote: RewriteEngine On

  1. uncomment this rule if you want Apache to redirect from www.mysite.com/ to www.mysite.com/wiki/Main_Page

RewriteRule ^$ /wiki/Main_Page [R]

  1. do the rewrite

RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]

please share your knowledge guys, if it need to re install i can do it too

--61.94.18.109 08:30, 7 May 2008 (UTC)[reply]

Try looking at Manual:Maintenance_scripts and then Manual:GenerateSitemap.php. Smaug 18:56, 7 May 2008 (UTC)[reply]

(RESOLVED) search function with less than 4 letters

  • MediaWiki: (Reported by your Wiki's Special:Version page)
  • PHP: 4
  • MySQL: 5.018

How can I use the search function with less than 4 letters like "ARM" or "1A" Is there a configuration file or what can I do?

Wrbrgds

Remo —195.82.74.220 09:45, 7 May 2008 (UTC)[reply]

You need to reconfigure mySQL (and rebuild a table). See http://www.mediawiki.org/wiki/Manual:$wgDBminWordLen but note that the PHP variable is only used for older versions of MySQL, but the documentation includes instructions for mySQL 5.
--216.204.206.146 18:00, 18 August 2008 (UTC)[reply]

(OUTDATED) How to remove special character in all url?

my wiki site is about question, so everybody will give question character "?" (without quotes) in they title (in they url automatic too), for example like this http://www.faq.web.id/wiki/What_is_your_name%3F

i think this is problem for all mediawiki owner....

so how to automatically remove all special character in the url after they create new page....

any hacks or extension, or setting will be help

—61.94.8.65 13:53, 9 May 2008 (UTC)[reply]

(RESOLVED) How I should modify MediaWiki engine to prevent HTML tags replacement?

  • MediaWiki: 1.12
  • PHP: 5.2.5
  • MySQL: 5.1.23

Hello! I use MediaWiki 1.12 (with MySQL) 5.1.23 and want to change it. I wish some pages don't clear from html tags, i. e. <form>, <input>. So I need to find the way how I can do it. I suppose that there is no way to do it without modification of mediawiki itself. In particular hooks seem to be useless. Is there anybody who can hint me where I should modify output of an article to prevent such replacement (for example): <form> tag to "&_lt;form&_gt;" (symbol "_" is special)?

P. S. Sorry for my poor English. :)

—89.254.232.70 20:47, 11 May 2008 (UTC)[reply]

al_artem@mail.ru

Try $wgRawHTML. Read the warning on that page too, though. Smaug 21:46, 11 May 2008 (UTC)[reply]

Thanks for your advice! But I wouldn't enable raw HTML for all pages. It should be done for a set of pages (articles) that are protected against editing. I shortly describe what I need.

  1. I have a link at my Main Page to the Special Page (article).
  2. At this Special Page should be placed some forms (i. e., <form>...</form>). I need to keep tags <form> (and some others) only for this page.
  3. Some of these tags produce submit button that lead a user to creation of new article.

Thus, can you hint me a way I should go to solve my problem? At this moment I trend to use $wgRawHtml = true only for my Special Page. In such way I don't reduce mediawiki's security. Or maybe I should read about such things as API, extentions, hooks?

What exactly are you trying to do? Perhaps there is a built in way to do it without using html forms. Smaug 20:57, 12 May 2008 (UTC)[reply]

Ok, I'll try to describe my problem in detail.

  1. There is a link to the Special Page at my Main Page.
  2. At the Special Page should be a form (at least it will contain a drop-down list). User will do its choice and press submit button.
  3. After this some additional actions will be implemented. A user will not notice them and will be redirected to a creation of a new article.

So, now I'm tending to the next solution.

  1. I examine two approach.
  • Using Simple Forms extention (or even $wgRawHtml = true) I'll create the Special Page with a required form.
  • Also I think about writing my own extention which will parse <phpcode></phpcode> tags and use eval function for its content. In this way I hope that I'll be able to create my form dynamically. In other words I hope to use php code to retrieve data from some DB and fill elements of my form with it.
  1. By pressing submit button unknown.php script will be called.
  2. It will implement some additional actions and then will redirect a user to index.php script to create a new article.

Should you advice me more rational method to solve my problem? Thanks for you help anyway! :)

If you feel up to writing an extension that is what I reccomend. If this is just a single special page, however, you should make an extension that adds a special page, not an extension that adds a parser hook. Good luck. Smaug 13:52, 13 May 2008 (UTC)[reply]

Actually I need a set of special pages. Thus I should use an extension that adds a parser hook. Thanks once again!

(OUTDATED) Guide to Google Sitemap

  • Mediawiki 1.12
Please create complete official guide to use automatic google sitemap

I still dont understand how to use google sitemap in mediawiki 1.12 (latest stable version)

i try with 2 new installation mediawiki

the first installation

i dont know what instruction that i use with this installation, i use few instruction to have sitemaps, i have this two sitemap (and its automatically growing each time new page created in the wiki)

http://www.faq.web.id/w/sitemap.xml.php

and today i have this file again automatically (1 day created after above sitemap)

http://www.faq.web.id/w/sitemap.xml

the second installation

i try all instruction like in first installation above, but i dont have any sitemap

http://www.lirik.web.id/w/sitemap.xml.php

or

http://www.lirik.web.id/w/sitemap.xml

but i can use ssh command to generatesitemap.php and produce this 2 sitemaps (but we need manually to generate, and its created in maintanance folder)

http://www.lirik.web.id/sitemap-index-lirikweb2-wiki_.xml

http://www.lirik.web.id/sitemap-lirikweb2-wiki_-NS_0-0.xml.gz

this wiki sitemaps makes me crazy, i think someone need to create correct tutorial to use this sitemap in mwusers.com or mediawiki.org (automatically sitemaps is good like in my first installation above)

if i dont know how to use this with the correct way, i will remove all my installation and install again and again

this is all instruction that i follow, but its need to compile what is working for Mediawiki 1.12 and not completed instruction

http://forum.dreamhosters.com/3rdparty/95681-Mediawiki-and-generateSitemap.php.htm (working for my second installation)

(RESOLVED) What determines the change in the versions? What determines if the document goes from 1.0 to 1.1 or 1.0 to 2.0?

—192.85.50.1 21:00, 12 May 2008 (UTC)[reply]

Generally convention. Different types of documents may increment in different ways. Is there some specific document or type of document you were wondering about? Smaug 00:35, 13 May 2008 (UTC)[reply]

(OUTDATED) Domain Transfer Question

Hi Harry,

I have a small technical question for you. I cannot seem to find any documentation on this topic, but perhaps you can point me in the right direction. I had mediawiki installed all normally. I had to change the url for whatever reasons. When i transferred the domain, all of the text stayed, but none of the images work. Not the uploaded images, not the logo etc.

What am I missing?

- User:BenParsons - 20:58, 12 May 2008

Hi Ben.
I've moved your question here, because that way you'll probably get a better answer.
Strange that both the uploaded images and the wiki logo would break. They're two different types of images.
So what was involved in the change? did you have to move files and database onto a new server? or did you just register a different domain name for your hosting?
What's the URL of your wiki? Can we take a look at it? Do any of the skin images load at all, e.g. do you see the grey book pages background?.
For uploaded images, you're presumably seeing a broken image error now, so right-click on this and go 'properties'. What is the 'Address (URL)' if the broken image? I wonder if that is still saying your old domain name.
—Harry Wood 15:28, 13 May 2008 (UTC)[reply]

(OUTDATED) Problem with upgrading from 1.9.3 to 1.12

I've upgraded from 1.9 to 1.12. I have a couple glaring issues:

  1. Instead of the edit link in subsections of pages, I get the following:
  '<editsection-bracket>'

This persists even after reverting to the 1.9 codebase, so it appears to be DB related as I did NOT revert to the older DB

  1. My authentication no longer works. Here is a snippet of my LocalSettings.php related to the auth (sanitized)
require_once( 'extensions/LdapAuthentication.php' );
$wgAuth = new LdapAuthenticationPlugin();

global $wgLDAPUpdateLDAP, $wgLDAPWriterDN, $wgLDAPWriterPassword;

$wgLDAPDomainNames = array( "MYCOMPANY" );
$wgLDAPServerNames = array( "MYCOMPANY"=>"mail.MYCOMPANY.com" );
$wgLDAPSearchStrings = array( "MYCOMPANY"=>"MYCOMPANY\\USER-NAME" );
$wgLDAPUseSSL = true; //not recommended but OK for testing
$wgLDAPUseLocal = false;
$wgMinimalPasswordLength = 1;
#$wgLDAPRetrievePrefs = true;
#$wgLDAPDisableAutoCreate = array( "MYCOMPANY"=>false );

This worked flawlessly in the 1.9

—98.165.89.85 18:08, 13 May 2008 (UTC)[reply]

(RESOLVED) How to change article Edit page?

  • MediaWiki: 1.12
  • PHP: 5.2.5
  • MySQL: 5.1.23

Hi! I need a wise advice.

Situation

  1. I call index.php script in the following way:
index.php?title=New_Article&action=edit&add_param1=value1&add_param2=value2

add_param1 and add_param2 are certain parameters.

  1. I set a hook on ArticleInsertComplete or ArticleSaveComplete event. This one calls my_event_handler function as an event handler.
  2. User edits an article and press "Save page" button. Then I need to implement some actions using my_event_handler and values of add_param1 and add_param2 parameters. More precisely function my_event_handler uses these add_param1 and add_param2 parameters.

So this is my question and my problem

I need to pass through my additional parameters to index.php script which is called by pressing "Save Page" button.

What should I use to modify Edit page as I need? For example, I would change <form> of "Save Page" button by adding next code into it:
<input type="hidden" name="add_param1" value="value1">
<input type="hidden" name="add_param2" value="value2">

But I don't know how I can implement it. Now I'm experimenting with hooks and searching for an appropriate extension. Are there another ways to solve my task? Or maybe somebody with great experience can help me, show me the right way(s)?

Please, hint me something. Thanks anyway!

ANSWER
I've found one way in using EditPage::showEditForm:fields hook. So, I have no problem already.
—217.9.147.66 14:32, 15 May 2008 (UTC)[reply]

(OUTDATED) Timezone crashes wiki

  • MediaWiki 1.12.0
  • PHP 5.2.1 (cgi-fcgi)
  • MySQL 5.0.51a-community-nt
  • URL:

When using $wgLocaltimezone with a setting other than null, pages take 10 seconds to load but then give a 500 error. Using $wgLocalTZoffset = date("Z") / 60; works but then gives an error when sending emails about how its inaccurate and such.

Tried different types of time zones in config but they all 500....

Any ideas? —86.164.140.62 03:14, 17 May 2008 (UTC)[reply]

(RESOLVED) Search in Namespace Discussion

  • MediaWiki: 1.12
  • PHP: 5
  • MySQL: 5

Hi, I have installed my own Mediawiki and it works fine, but when I search it will by default not find something in Discussion Namespaces. How can I change the Option, to search also in other Namespaces by default, for example in Discussion?

—87.154.132.153 08:27, 18 May 2008 (UTC)[reply]

I have solved my Problem with this...
$wgNamespacesToBeSearchedDefault = array(      
        NS_MAIN =>           true,
        NS_TALK =>           true,
        NS_USER =>           false,
        NS_USER_TALK =>      false,
        NS_WIKIPEDIA =>      false,
        NS_WIKIPEDIA_TALK => false,
        NS_IMAGE =>          false,
        NS_IMAGE_TALK =>     false,
        NS_MEDIAWIKI =>      false,
        NS_MEDIAWIKI_TALK => false,
        NS_TEMPLATE =>       false,
        NS_TEMPLATE_TALK =>  false,
        NS_HELP =>           false,
        NS_HELP_TALK =>      false,
        NS_CATEGORY =>       false,
        NS_CATEGORY_TALK =>  false
);

(RESOLVED) Special:UncategorizedImages

  • MediaWiki: (Reported by your Wiki's [1] page)
  • PHP:
  • MySQL:
  • URL: Kinderwiki

Hi,

Since a while I'm getting a warn when I'm trying to open Speciaal:NietGecategoriseerdeAfbeeldingen (in Dutch) Special:UncategorizedImages

What can I do to solve this problem?

Best regards, 86.88.44.213 14:24, 18 May 2008 (UTC)[reply]

It's already solved. Thanks. 86.88.44.213 14:10, 19 May 2008 (UTC)[reply]

(OUTDATED) How can I dynamically add some text to an article?

  • MediaWiki: 1.12
  • PHP: 5.2.5
  • MySQL: 5.1.23rc

Hi! Please help solve my problem.

I need to modify standard behaviour of viewing an article. Some wiki-text should be dynamically generated and added to the end of an article. Describe what I mean by the example.

  • There is next text of Article in the database:

=Hello, world!=

  • I need mediawiki to show the next:

=Hello, world!= ---- [[dynamically generated internal link]]

Note that it is impossible to store [[dynamically generated internal link]] text into the article's body because it is generated dynamically.

At first I was going to use ArticlePageDataAfter hook but this one doesn't allow to modify $article. So, now I'm confused and I don't know what I should to do.

Please, help me. Thanks!

—89.254.228.47 19:27, 19 May 2008 (UTC)[reply]

(RESOLVED) Special:Categories page is blank

I have created several category pages by opening a url to Category:<Topic_Name>, then editing the page with a short description.

When I browse to my Special:Categories page, all I see is:

The following categories exist in the wiki.
(first | last) View (previous 50) (next 50) (20 | 50 | 100 | 250 | 500)
(first | last) View (previous 50) (next 50) (20 | 50 | 100 | 250 | 500)

Is there a quick and dirty method for regenerating/rebuilding the Category list for this Special page?

Thanks, --Oldr4ver 02:07, 20 May 2008 (UTC)[reply]

  • umm? duH! I am a retard!!
I think if a category doesn't have any pages in it, it won't show up in Special:Categories even if it exists. Smaug 21:57, 20 May 2008 (UTC)[reply]
  • I had the same problem. I think that is a bug when update to 1.13 version when you ar using postgres database :-(
I solve it with this script (only tested on postgres):
-- Detele content
delete from category;

-- insert new count values
insert into category (cat_title, cat_pages, cat_subcats, cat_files, cat_hidden)
select 
	cl.cl_to as cat_title, 
	(	select coalesce(count(cl_pag.cl_to)) 
		from categorylinks cl_pag 
		where (cl_pag.cl_sortkey not like 'Imagen:%' and cl_pag.cl_to = cl.cl_to)
	) as cat_pages, 
	0 as cat_subcats, 
	(	select coalesce(count(cl_files.cl_to)) 
		from categorylinks cl_files 
		where (cl_files.cl_sortkey like 'Imagen:%' and cl_files.cl_to = cl.cl_to)
	) as cat_files, 
	0 as cat_hidden 
from categorylinks cl
group by cl.cl_to;

commit;
This script regenerate category table with category counts. Please check if it is correct. I'm not mediawiki guru. --Lodopidolo 08:53, 24 September 2008 (UTC)[reply]

(RESOLVED) Can MediaWiki run on a Windows server and use Sequel as the database.

We have a hosting agreement that doesn't account for PHP and MYSQL applications. Can we have MediaWiki run without using PHP or MYSQL? Can it run in a Windows environment?

—Lin light 13:35, 20 May 2008 (UTC)[reply]

There are one or two SQLs you could use in place of MySQL, though MySQL is the probably the best-supported. You cannot to my knowledge use MW without PHP. Smaug 22:05, 20 May 2008 (UTC)[reply]

(RESOLVED) Request for Enhancement: Special Pages: Unprotected Pages

I am looking for an enhancement in the Special Pages. I would like a link to all UNprotected pages, so that if one was inadvertently missed when setting it up, we can protect it without having to go through ALL the pages to find it.

Thanks! ~Sal

—Ravensun 14:37, 23 May 2008 (UTC)[reply]

see Extension requests

(RESOLVED) Renaming MediaWiki:Toc

Hello! I want to change the content of this system message which is naming the title row for the tables of contents, as far as I know, from (in German) „Inhaltsverzeichnis“ to „Inhalt / Navigationshilfe“. It works fine when doing this on my own 1.9.6 wiki, but on this 1.11.2 wiki it has no effect (see http://sfbuilder.wiki-site.com/index.php/Benutzer:JörgM/EDV/Gesamt_-_Test_1). Might it be overridden by the wiki-farm? Changing of some other system messages (common.js, common.css, sidebar) worked ...

—89.55.172.232 06:50, 27 May 2008 (UTC)[reply]

Works now. Seems to need a little bit more time to be executed on this wiki farm. -- 212.65.3.130 15:00, 5 June 2008 (UTC)[reply]

(RESOLVED) Math Funktion will not work

  • MediaWiki: 1.12
  • PHP: 5.2.0-8+etch11 (cgi-fcgi)
  • MySQL: 5.0.45-Dotdeb_0.dotdeb.1-log
  • URL: internal installation

Hi,

must i activate my Math funktion? If i put the code into my editfunktion i would not see the Mathfunktion i see the Code My code: works on Wikipedia!??! Whats wrong?

—91.17.101.237 14:52, 28 May 2008 (UTC)[reply]

See Manual:Math and subsequent pages. In short: You must enable TeX support on your wiki. Regards -- 89.55.190.92 07:54, 29 May 2008 (UTC)[reply]

(RESOLVED) Standard text of confirmation email

  • MediaWiki: 1.11.0
  • PHP:
  • MySQL:
  • URL:

Hello! At our German project with version 1.11.0 there was found a standard confirmation email text at MediaWiki:Confirmemail body which refers to Wikipedia instead to our project. It's no problem to correct it, but it would be better if these texts would not refer to Wikipedia at all in the download versions which are used outside Wikipedia or Wikimedia projects. Regards

—213.30.234.106 16:51, 29 May 2008 (UTC)[reply]

default has been changed in the meantime

(OUTDATED) How do page counts get determined? Why does history increase it?

  • MediaWiki: 1.10.0
  • PHP: 5.2.2
  • MySQL: 5.037
  • URL: Not Public

What types of accesses cause the page_count field to increment? I cannot relate any specific type of access in my Apache access.log with page_count numbers for any particular article. Recently, someone's run-away robot hammered our site and caused certain articles' counts to go through the roof. I was hoping to revert the damage by examining the access.log. But, cannot figure out which lines correspond to an incremented page view.

Also, I noticed that if I go into the history of an article, and click through the old versions, each click generates 2 page views, reported at the bottom of the original article. Is this a bug? Thanks.

—Cedarrapidsboy 19:26, 29 May 2008 (UTC)[reply]

(RESOLVED) How do I protect MediaWiki:Sitenotice

It seems strange, but as an admin with sysop powers, I cannot protect MediaWiki:Sitenotice from editing on neither of my two wikis, why? Odessaukrain 20:33, 29 May 2008 (UTC)[reply]

Pages in the MediaWiki namespace are protected by default. Only sysops are able to edit them. --:bdk: 00:00, 29 August 2008 (UTC)[reply]

(OUTDATED) Message Notification

Hi, I took another Skin (Wordpress) and it works fine, but I wonder about the non-working Notification. Could it be that the Skin template is responsible for that? (Mediawiki 1.12) --Krischan 03:22, 30 May 2008 (UTC)[reply]

(RESOLVED) Request for Enhancement: Special Pages: Upload Multiple

Hi,

I am looking for an enhancement that will permit me to upload multiple files at one go, much like Photobucket does. This would be extremely useful!

Thanks! ~Sal

—Ravensun 12:38, 30 May 2008 (UTC)[reply]

You can try Extension:MultiUpload. iAlex 14:23, 6 June 2008 (UTC)[reply]

Need to upgrade to 1.12 -- getting Parse error: syntax error, unexpected ':', expecting '(' in /homepages/5/d182076830/htdocs/theguildedage.net/wiki/maintenance/dumpBackup.php on line 59
when I try to run dumpBackup.php...

I am using 1.10.0...

—Ravensun

Correction:

Using PHP5, I am getting:

(uiserver):u41814739:~/theguildedage.net/wiki/maintenance > /usr/local/bin/php5 dumpBackup.php --current
X-Powered-By: PHP/5.2.6
Content-type: text/html

DB connection error: Unknown error

Any ideas?

—Ravensun

Is upgrading not an option? If you upgrade, the extension will work and solve the problem, it seems. Smaug 01:26, 13 June 2008 (UTC)[reply]

I did upgrade after posting this, and I tried the extension, but I am getting the following error:

Here's the line that is causing the error:

$wgOut->addWikiText( "[[{$imgTitle->getFullText()}|left|thumb]]" );

And here is the error message:

Parse error: syntax error, unexpected '(', expecting '}' in /homepages/5/d182076830/htdocs/theguildedage.net/wiki/extensions/MultiUpload/SpecialMultipleUpload.php on line 474

I don't know php well enough to try and fix the thing myself!

I've emailed the developer, but I haven't heard back from him yet... help?

—Ravensun

FYI - heard back from the developer. Here is the fix:

$wgOut->addWikiText( "[[" . $imgTitle->getFullText() . "|left|thumb]]" );

Thanks! -Ravensun

(OUTDATED) Request for Enhancement: Special Pages: Default Protect

Hi,

I am looking for an enhancement to set the default protect on all pages and files to "Sysops Only".

Thanks! ~Sal —Ravensun 12:40, 30 May 2008 (UTC)[reply]

(OUTDATED) automatic reload of wiki pages

  • MediaWiki 1.12.0
  • PHP 5.1.2
  • MySQL 4.1

Hi, I just added the <dirlist>-extension to my MediaWiki and figured out, that the Wiki doesn't automatically reload the page to refresh the directory list. This is unfortunatelly not very helpful if you want to know what in a folder is:-). Do you have any recommendations, maybe a function to force wiki to recreate the page with every user access? Thanks a lot

-- Roland, 4 June 2008

(RESOLVED) How to force SSL/HTTPS?

  • MediaWiki: 1.12.0
  • PHP: 5.2.3
  • MySQL: 5.1.11-beta
  • URL: none (closed Wiki)

Hi,

today I tried to switch my Mediawiki from http to https (only!) but I had no luck... I set $wgServer, $wgServerName an $wgProto in my LocalSettings.php but I can still access my Wiki with http.

So my question is: How can I force my Mediawiki (without .htaccess) to use https://$host? - Thanks for your answers!

—88.72.252.186 12:57, 4 June 2008 (UTC)[reply]

You probably have to specifically redirect all requests from http://whatever to https://whatever. Typically this is done with an .htaccess file but you can probably simulate this behavior in index.php. Try:
if ($_SERVER[HTTPS]!="on") {
  header ("Location: https://something");
  exit;
}
There are probably ways to break this using headers or something. .htaccess is still better. --Cneubauer 14:53, 4 June 2008 (UTC)[reply]

(RESOLVED) phpBB and MW

  • MediaWiki: 1.12.0
  • PHP: 5.2.5-dev (cgi-fcgi)
  • MySQL: 4.1.22-community-nt
  • URL: www.riev.nl/wiki

Hi, Is it possible to combine my phpBB-userlist & their passwords with my wiki? Like people from my forum are able to login to the wiki, without creating a new account... Thanks. —98.16.158.41 19:27, 5 June 2008 (UTC)[reply]

See Extension:PHPBB/Users Integration. Smaug 19:40, 5 June 2008 (UTC)[reply]

(RESOLVED) How can I edit the name of a page without changing the URL?

  • MediaWiki: 1.10.1
  • PHP: 5.2.3
  • MySQL: 5.0.27-community-nt

All is in the title, I need to change the head name of a page and keep the same URL as before. Is there any way to do it?

—FB 13:58, 6 June 2008 (UTC)[reply]

Could you just rename the page? It should create an automatic redirect, and if not can make one yourself. Then the URL will lead to the page, though the page's url will be different. Smaug 15:12, 6 June 2008 (UTC)[reply]
(Note to readers, discussion continues here. Smaug 00:12, 9 June 2008 (UTC))[reply]

(OUTDATED) Configuring a Wiki Family on Windows 2003

  • MediaWiki: 1.11.0 (Reported by your Wiki's Special:Version page)
  • PHP: 5
  • MySQL: 5.0.50
  • URL: localhost/mediawiki

I've used several configuration examples to try and configure the wiki family. But it's not working. I tried the documented notes from http://www.mediawiki.org/wiki/Manual:Wiki_family - Scenario 3 and http://www.steverumberg.com/wiki/index.php?title=WikiHelp&w=myc. On the method 1 from Steve Rumberg, I don't see the cookie moving to the next pages, not sure why. Any suggestions would be great.

Thanks, Melissa —Mdougherty08 14:53, 6 June 2008 (UTC)[reply]

(OUTDATED) version 1.6 + breaking iframes

Hello, I am trying to display pages from my wiki in iframes. I have tried setting the following lines to comments (as shown) and clearing my cache.

// Un-trap us from framesets
//if (window.top != window) window.top.location = window.location;

Is there some other line involved in this for version 1.6?

Thanks. —67.191.214.247 04:57, 7 June 2008 (UTC)[reply]

(RESOLVED) Searchengine

  • MediaWiki: 1.9.2
  • PHP: 5.1.6 (apache2handler)
  • MySQL: 5.0.22

Hello there, i have a question about the built in seach mechanism of mediawiki. I noticed that if a three character long string is typed into the search field the search is completely ignored. If the number of characters is increased it searches perfectly.

Is there a possible to decrease the number of "recognised" characters in the search mechanism?

Thanks a lot for your help!

Greetings,

Florian H. —87.160.23.73 11:21, 8 June 2008 (UTC)[reply]

You need to reconfigure mySQL (and rebuild a table). See http://www.mediawiki.org/wiki/Manual:$wgDBminWordLen but note that the PHP variable is only used for older versions of MySQL, but the documentation includes instructions for mySQL 5.
--216.204.206.146 18:01, 18 August 2008 (UTC)[reply]

(OUTDATED) texvc compile error with cygwin on Windows

  • MediaWiki: (Reported by your Wiki's Special:Version page)
  • PHP:
  • MySQL:
  • URL: localhost

I'm trying to enable TeX support in a localhost installation of MediaWiki under Windows XP Pro (SP3). I have MediaWiki itself installed already.

In cygwin, I cd to the mediawiki/math subdirectory. There I execute make (GNU make). I get the following error output:

 ocamlopt -c util.ml
 >> Fatal error: cannot open Pervasives.cmi
 Fatal error: exception Misc.Fatal_error
 make: *** [util.cmx] Error 2

What do I do now? I do have ocaml installed in cygwin, and Pervasives.cmi is in the subdirectory lib/ocaml of the cygwin directory.

—MurrayE 21:06, 8 June 2008 (UTC)[reply]

(OUTDATED) Merge two Wikis

  • MediaWiki: 1.10.0
  • PHP: 5.2.2 (apache2handler)
  • MySQL: 5.0.41
  • URL: None, it's in our Intranet

Hello together,

we have one main mediawiki installed in our Enterprise. For external firms, we plan to install another, second, mediawiki because we don't want the external firm looking in our main mediawiki.

In this second mediawiki the external firm is able to do document the progress in their project. After that project is finished, we want to migrate the documentation into our main mediawiki.

My question is now, is there a way to merge the whole second mediawiki into the main mediawiki? At first i'm thinking about the database. But also the Images folder has to be merged into the main mediawiki.

Do you know a solution for that? Or maybe a different way but with the same result?

Thanks in advance.

Ps: Sorry for my bad english, i was not sure if you understand german.

—194.1.176.242 10:07, 9 June 2008 (UTC)[reply]

(RESOLVED) Javascript errors preventing Common.js from parsing

I have a scripting problem: I've tried copying several scripts from wikipedia:MediaWiki:Common.js, only to find that they don't work. IE complains of two script errors: 'wgBreakFrames' is undefined on line 55, and 'tooltipAccessKeyRegexp' is null or not an object on line 533. It may be worth noting that the wiki was originally installed with MediaWiki version 1.6.0 (IIRC), and was upgraded directly to 1.11.0. Any help? Dinoguy1000 20:31, 9 June 2008 (UTC)[reply]

It seems that this is caused by a "dirty" upgrade... I've not actually fixed it yet, but the problem is some old files left over from 1.6. —Dinoguy1000 18:30, 28 June 2008 (UTC)[reply]

(RESOLVED) MediaWiki:Common.js not working

  • MediaWiki: 1.12.0
  • PHP: 5.2.3
  • MySQL: 4.1.20-log
  • URL: Internal (not accessable from outside)

MediaWiki:Common.js is not working. We are using the Monobook skin and upgraded from 1.6.9 to 1.12.0 in order to get Mediawiki:Common.js and a bunch of other features. The way I'm testing it is with this code in the box on the Mediawiki:Common.js page:

addOnLoadHook(function() { window.status = "Mind control! Mind control!'; });

But the window status bar never changes (well, to be clear, it says "Done" but I think that is Firefox loading the page). If can change the window.status text with JavaScript in my browser without issue. I also tried something like:

addOnLoadHook(function() { alert('test'); });

But that isn't working either. I do see Common.css in the page headers and I also see this (in appropriate tags to load as JavaScript):

/CORECT_PATH/?title=-&action=raw&smaxage=0&gen=js&useskin=monobook

The wgUseSiteCss and wgUseSiteJs are both default (enabled). Do you have any suggestions? Thank you in advance for your time. --Cymen 16:20, 10 June 2008 (UTC)[reply]

SOLUTION: I kept getting Raw pages must be accessed through the primary script entry point. so I edited includes/RawPage.php and changed it to print out the values ($wgScript, $url -- it expects them to be the same) and it turned out that a secondary included file for our configuration mistakenly alterated the $wgScript path (removing index.php). With that corrected, Mediawiki:Common.css and Mediawiki:Common.js started working (and yes, a plain "alert(test!);" actually worked in MediaWiki:Common.js).

(RESOLVED) can't edit / redirected to base page

  • MediaWiki: (1.12.0)
  • PHP: 5.2.2 apache
  • MySQL: 5.0.45 - community
  • URL: [2]

Whenever i try to edit a page, i'm redirected to my parent page. e.g.

www.danda-comics.co.uk/wiki/MainPage

edit

save changes

www.danda-comics.co.uk is loaded, and the mainPage is left exactly as it was. I'm fairly sure it has to do with some permissions. BUT just not sure which ones i should be touching.

[RESOLVED] as i was looking through some other stuff, i noticed a few things about uploading certain directories having no effect on the install etc, so i just re-uploaded the includes directory and it worked fine.

Similar note.

Is there a way to disable registration of new users?

Adding the following line to your wiki will disable the registration of new users:
$wgGroupPermissions['*' ]['createaccount'] = true;
--TheDevilOnLine 10:30, 12 June 2008 (UTC)[reply]

(RESOLVED - workaround developed) Sysop rights disappeared

I have suddenly lost my sysop privileges on my wiki. As well as that all my protected pages have now become unprotected. On my users page if I ask it to display all users, then after my username (wikisiak) it has (bureaucrat , sysop ). However, if I select the sysop group on the user list and ask it to display those users with sysop rights then no users are displayed.

I have looked in my users table and my id is 1 and then i looked in the user_groups table and ID 1 has both bureaucrat and sysop. Does anyone know what is happening here and how can i fix it so that I get sysop rights back and can once again protect some of my pages?

Any help is much appreciated. Cheers!

  • SOLUTION

I noticed that in the user list when it displayed my user name it would have spaces after the sysop and bureaucrat. I thought that this may cause issues so updated these fields in the user_groups table trimming the space off the field. However, the table now displayed: ug_user 1 and ug_group bureaucrat\0\0\0\0\0\0; sysop\0\0\0\0\0\0\0\0\0\0\0 . I changed the field from a varbinary to a varchar and updated these field. I have now got my sysop right back. However, I also had to change the field types in the page_restiction tables from VARBINARY to VARCHAR in order to get page protection to work again.

I then had to do the same to img_minor_mime field in the image table to get my images to be displayed. Change the type to VARCHAR and then run - update images set img_minor_mime = trim(img_minor_mime)

If any experts read this then please let me know your thoughts on how this happened. Also if you think that this could cause issues further down the line then please let me know.

Cheers —78.150.45.63 13:03, 4 July 2008 (UTC)[reply]

(OUTDATED) Multiple 'Subdomains' with One MediaWiki Installation?

  • MediaWiki: 1.12.0
  • PHP: 5.2.6 (cgi-fcgi)
  • MySQL: 5.0.24a-standard-log
  • URL: n/a

Hi, I'm investigating setting up a MediaWiki installation and whether what I'm hoping to achieve is actually technically possible. As the wiki would have quite a few subsections, each with the same pages, I'm thinking that using subdomains to house each subsection would be a good way to organise things: If I had three subsections, each with a Main_Page, the URLs might appear something like:

subsection1.wikisite.com/wiki/Main_Page

subsection2.wikisite.com/wiki/Main_Page

subsection3.wikisite.com/wiki/Main_Page

The most important question is: is such a thing possible without actually having to 'create' each subdomain and install a separate MediaWiki installation to it?

Could just one MediaWiki installation be used to achieve this? (RewriteRule would no doubt have to be used)

Many thanks.

—195.137.100.182 06:24, 18 June 2008 (UTC)[reply]

(OUTDATED) Redirect to page other than User:'username'

Hi all. I'd like to change the href when a user name link is clicked on. That is, when the link is clicked, I want to redirect elsewhere other than the User:'username' page. Can anyone give me any pointers?

—Malatorr 07:54, 18 June 2008 (UTC)[reply]

(OUTDATED) Web Browser Compatibility

  • MediaWiki: 1.12.0
  • PHP: 5.2.5 (cgi)
  • MySQL: 5.0.45-community
  • URL: Guitarpedia
compatibility problem with some web browsers like
Firefox, IE 6, Safari..

1.) Ok, i got a compatibility problem with some web browsers like: Firefox, IE 6, Safari and may be other Web browsers. the problems with site are different from one browser to another but in IE 7 it's exacly like i planned. before i going to detail the main problems with site i want to mention that i changed a little bit the visual apperance of the site. the main problems:

  • the whole site is messed up and the size of some subjects are not as it shown in IE 7 browsers.
  • the links in the right tool bar are not button able...meaning in some browsers i can't push those links, they are shown but not as a link.

2.) i got another issue... i want to know if there a option to make link which can add the current page to favorite / Home page.

thank you very much.. i want to know how can i help more to solve this problem.

again thank you in advanced..

—Goan 22:25, 19 June 2008 (UTC)[reply]

(OUTDATED) Automatic propositions in the search field

  • MediaWiki: 1.11.0 (r29541)
  • PHP: 5.2.5-pl1-gentoo (cgi-fcgi)
  • MySQL: 5.0.54-log
  • URL: (restricted access)

Hello, I want to know how I can configure my wiki so that when typing a few letters in the search field, I can get suggestions exactly as I get them in a small scrolling menu when doing it on Wikipedia.

On my wiki, we have a similar function, but :

  • I can't get any result while I have not typed at least three characters ;
  • results appear on the body of the page, hiding the page I was consulting, instead of in a little scrolling menu ;
  • results differs on the the fact that I use capital letters or not, whereas on Wikipedia it doesn't take it into account ;
  • I can only get results from the main namespace, whereas on Wikipedia I can get any page as soon as I have typed the namespace and the colon.

Do you know what I should do about it ? install a specific extension ? update the MediaWiki version ? create a widget ?

Thanks a lot if you have the solution ! — Cos (talk page) 17:40, 20 June 2008 (UTC)[reply]

(OUTDATED) Hiding categories doesn't work

My wiki is http://wiki.rockciclopedia.com I'd like to don't show the categories in the main page, how can I do? I've tried to add __HIDDENCAT__ to the categories pages but it doens't work... look at the main page... How can I fix this problem?

Thanks in advance,

—Lorenzone92 16:24, 21 June 2008 (UTC)[reply]

Mmh... can you help me? --Lorenzone92 19:31, 21 June 2008 (UTC)[reply]

All wikipages are of type application/opensearchdescription+xml

  • MediaWiki version:  1.15.3
  • PHP version: 5.2.6 (apache2handler)
  • PostgreSQL version: 8.3.9
  • URL: internal

Every few days my wiki starts to act up. When you visit any page on the wiki you are prompted to download a file of type application/opensearchdescription+xml

If I restart Apache everything clears up and starts working like normal. Has anyone seen this before?

—63.214.184.6 19:52, 4 August 2010 (UTC)[reply]