Project:Support desk/Archives/Extension/002

(OUTDATED) Sphinx integration giving PHP error - Function name must be a string

 * MediaWiki: 1.5.8
 * PHP: 5.2.5 (apache2handler)
 * MySQL: 5.0.51a-community

Hi, I have configured mediawiki for Sphix search as per the wiki

But I am getting this error

Fatal error: Function name must be a string in D:\Program Files\Apache Group\Apache2\htdocs\mediawiki\includes\Setup.php on line 317

Problem seems to be in this line,

$wgExtensionFunctions[] = array( &$setup, 'setup' );

this must be something related to PHP which I am not familiar with.

I am running all this on windows XP and the Sphinx indexing etc is working fine. I tested this through the command prompt

Any help is appreciated – 66.205.89.194 02:04, 15 August 2008 (UTC)

(RESOLVED) Social Profile – Execute install.php from the command line?

 * MediaWiki: 1.11.0
 * PHP: 5.2.5 (apache)
 * MySQL: 5.0.51a-community
 * URL: http://sharnyl.net/wiki/index.php/Main_Page

I'm trying to install the Social Profile extension at my mediawiki, but I've run into a couple of issues. It says I have to run the install.php file from the command line but I have no idea what that means. What command line? Where do I do this at? Also, I'm getting an error message:

Notice: Undefined variable: output in /home/xxxxx/public_html/xxxx/extensions/SocialProfile/UserProfile/UserProfilePage.php on line 601 Notice: Undefined variable: output in /home/xxxxx/public_html/xxxx/extensions/SocialProfile/UserProfile/UserProfilePage.php on line 601 Notice: Undefined variable: output in /home/xxxxx/public_html/xxxx/extensions/SocialProfile/UserProfile/UserProfilePage.php on line 148 Notice: Undefined variable: output in /home/xxxxx/public_html/xxxx/extensions/SocialProfile/UserProfile/UserProfilePage.php on line 629

—97.115.181.238 20:43, 17 August 2008 (UTC)


 * See Command line interface to find out about command line in general. Assuming you are a Windows user and your server is Unix-like, you should download PuTTY remote shell client and use it to connect to your server through SSH. Once you have opened the connection, type cd your wiki directory/extensions/SocialProfile in PuTTY and then type php install.php. If all this seems a bit too complicated, you can alternatively run the required SQL queries through phpMyAdmin interface.
 * The "error" you reported is not an error to be exact, but rather a PHP notice. In most servers, PHP notices are disabled. You should be able to turn off error reporting by adding the following piece of code into your wiki's LocalSettings.php: error_reporting(0);
 * In any case, the PHP notices mentioned above will be fixed in SocialProfile version 1.2. which will hopefully be released in near future.
 * And at least in the case of SocialProfile extension, you are more likely to get an answer on Extension talk:SocialProfile (where you initally posted this question) rather than here. -- Sayuri 20:47, 17 August 2008 (UTC)


 * Okay, but why do I need to connect through an SSH? I can access everything on my domain.  Is there some place to get the SQL query so I can just do it manually through phpMyAdmin?  I looked at the file and it's not written in a way I'm use to seeing.
 * 97.115.181.238 02:54, 18 August 2008 (UTC)

(OUTDATED) How to show pages in categories with "includeonly" summary beside each page link
Is there any way of altering Category pages to show


 * a link to each page in the category
 * a summary of each page, generated from transcluding the "includeonly" part of each page?

Many thanks.

(OUTDATED) How to restrict anonymous users from editing all pages from Category or subcategories
How to restrict anonymous users from editing all pages from Category or subcategories

—59.95.41.82 05:54, 26 August 2008 (UTC)

(OUTDATED) decimal separators in parsing on European Wikis

 * MediaWiki: 1.13.0
 * PHP: 5.1.6 (apache2filter)
 * MySQL: 4.1.20
 * URL: http://de.wiki-products.org/

In many European countries/languages we use "," instead of "." as decimal separators in numbers. We write 10,4 kg instead of 10.4 kg. Now, this is problematic because the mediawiki parser functions don't respect this conventions and return errors on numbers with commas. This alone wouldn't be a problem, if we could adopt our whole wiki to the US convention (writing all numbers with "." instead of ","). However, this is impossible because other extensions (like semantic mediawiki) respect the European convention and adopt their calculations according to the language to which the wiki is configured. Semantic Mediawiki, installed on a German Wiki, therefore cannot handle numbers with "." as decimal separator. This is a big problem because we need both extensions on our wiki. The best solution would therefore be to find a way to make parser functions handle numbers with ",". Is there a way to do so?

This would solve many problems for us...

—Gollum 19:21, 30 August 2008 (UTC)

(OUTDATED) Problems with CentralNotice from MediaWiki subversion repository

 * MediaWiki version: 1.14alpha
 * PHP version: 5.2.0-8+etch11 (apache2handler)
 * MySQL version: 5.0.32
 * Extension:CentralNotice: (Version r36357)

Main and extensions are trunk of MediaWiki subversion repository.

As of 2008-09, the extension that is present in subversion causes significant page load problems. This is most likely by including a call to a third-site JavaScript, which does not load. Page source of pages generated when the extension is enabled, includes:



This call is not present on the Wikipedia site itself. On en.wikipedia, CentralNotice is given as the same version: (Version r36357). However, the results seems to be different.

—G.Hagedorn 04:32, 17 September 2008 (UTC)

(OUTDATED) Need Help with Installing CentralAuth

 * MediaWiki version: 1.14alpha (r40823)
 * PHP version: 5.2.6 (cgi)
 * MySQL version: 5.0.67-log
 * URL: Not public yet

I'm trying to install CentralAuth on mediawiki. I did the installation instructions and ran the .sql file in phpmyadmin. However, after I do all that, aI get a problem with the database saying that it can't access the table "centralauth", Could anyone help. P.S I didn't use $wgConf

—Techman224 12:43, 19 September 2008 (UTC)

(OUTDATED) No mainpage after istalling DynamicPageList-extension

 * MediaWiki version: 1.12.0
 * PHP version: 5.1.2
 * MySQL version: 5.0.26
 * URL:

Hello support-desk,

I recently installed the SpecialTaskList-extension and the dependend extensions DynamicPageList and ParserFunctions.

After that, i wasn't able to connect to my wiki mainpage (every other mediawiki site works fine). I got an "Page can not be displayed"-error.

If I comment the DynamicPageList-extension in the LocalSettings.php everything seems to work fine except the tasklist (because DPL is needed).

How can I reactivate the DPL extension without getting this error? Maybe ther is a configuration faillure... I have made no changes to the extension.

best regards, Jens Risch —217.5.249.133 11:27, 24 September 2008 (UTC)

(RESOLVED) Invalid confirmation code. The code may have expired.

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.67-community-nt
 * Web Server: Apache 2.2.9
 * OS: Windows Server 2003
 * URL: http://www.smartgridipedia.org

Local Test Site
 * MediaWiki version: 1.11.0
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.37-community-nt
 * Web Server: Apache 2.2.9
 * OS: Windows XP
 * URL: localhost

I've just deployed MediaWiki for the new Wiki above. I'd like to add the ConfirmAccount extension but before deploying it I've been testing it on my local site.

On the test site, the system allows a new user to request an account and successfully sends an e-mail to the new user. When the user click the link, or pastes it into a browser, a page appears with this message:

Invalid confirmation code. The code may have expired.

The wiki works well otherwise. What am I overlooking? I don't want to try deploying this to the main site until I get it working on my test site. I notice that the MediaWiki version is different for the two sites. I've checked that the ConfirmAccount extension version is correct for the application. Could that be the problem, and maybe the main site will work without a problem?

—209.60.163.120 21:07, 25 September 2008 (UTC)


 * ConfirmAccount is supposed to work with 1.11, but if you think that's the problem, why not just upgrade MediaWiki on your test site? If that doesn't fix the problem, report it on Extension_talk:ConfirmAccount so that the extension maintainer will see it. —Emufarmers(T 01:30, 26 September 2008 (UTC)


 * Followup: I found out that the problem was that timezone wasn't set in PHP. After setting a valid timezone in PHP, ConfirmAccount started working correctly.--RKH 15:01, 1 October 2008 (UTC)

(OUTDATED) ShowHide extension not working when I save the page.

 * MediaWiki version: 1.8.5
 * PHP version: 5.1.6
 * MySQL version: 4.1.13
 * URL:

I have installed the ShowHide extension. The ShowHide functionality only works in "Show preview" screen. When I click on "Save page" it does not work. It doesn't hide the text section. Help!

Here's an example: test __HIDER__ some text

Thanks!! —Brchun 19:47, 29 September 2008 (UTC)

(OUTDATED) Single sign-up, which hook to use?

 * MediaWiki version: Last Version
 * PHP version: 5.2.5
 * MySQL version: 5
 * URL: in local

Could you suggest me the hook to use for single sign-up between MediaWiki and another PHP Script. Now i managed the logout by hooking the UserLogoutComplete event. But what about login and automatic authentication (checking if is yet logged into another script).

—151.53.47.197 19:52, 30 September 2008 (UTC)

(OUTDATED) LDAP extension on Wiki?

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.4 (apache2handler)
 * MySQL version: 5.0.45-community-nt
 * URL:

I have set up a wiki for testing and we trying the AD configuration.

Am unable to get the AD/LDAP working. Can you please confirm if these are the correct settings which I needs to add to the localsettings.php

My installation is running on a as-is Xamp Stack (Not sure if this can make any difference)

Please review the below and let me know if this is Good to work or am I missing something?

=
=================== require_once( 'LdapAuthentication.php' ); $wgAuth = new LdapAuthenticationPlugin;

//The names of one or more domains you wish to use //These names will be used for the other options, it is freely choosable and not dependent //on your system. These names will show in the Login-Screen, so it is important that the user //understands the meaning. $wgLDAPDomainNames = array( "someName"  ); //The fully qualified name of one or more servers per domain you wish to use. If you are //going to use SSL or StartTLS, it is important that the server names provided here exactly //match the name provided by the SSL certificate returned by the server; otherwise, you may //have problems. $wgLDAPServerNames = array( "someName"=>"TheLDAPMachineName"  ); //Allow the use of the local database as well as the LDAP database. //Good for transitional purposes. //Default: false $wgLDAPUseLocal = false; //The type of encryption you would like to use when connecting to the LDAP server. //Available options are "tls", "ssl", and "clear" //Default: tls $wgLDAPEncryptionType = array( "someName"=>"clear"  );

//Search filter. //These options are only needed if you want to search for users to bind with them. In otherwords, //if you cannot do direct binds based upon $wgLDAPSearchStrings, then you'll need these two options. //If you need a proxyagent to search, remember to set $wgLDAPProxyAgent, and $wgLDAPProxyAgentPassword. //Anonymous searching is supported. To do an anonymous search, use SearchAttibutes and don't set a Proxy //agent for the domain required. $wgLDAPSearchAttributes = array( "someName"=>"uid"  );

//The search string to be used for straight binds to the directory; USER-NAME will be //replaced by the username of the user logging in. //This option is not required (and shouldn't be provided) if you are using a proxyagent //and proxyagent password. //If you are using AD style binding (TDOMAIN\\USER-NAME or USER-NAME@TDOMAIN) and //want to be able to use group syncing, preference pulling, etc., you'll need to set //$wgLDAPBaseDNs and $wgLDAPSearchAttributes for the domain. $wgLDAPSearchStrings = array( "someName"=>"uid=USER-NAME,ou=SOMEOU,dc=some,dc=net"  );

//Base DNs. Group and User base DNs will be used if available; if they are not defined, the search //will default to $wgLDAPBaseDNs $wgLDAPBaseDNs = array( "someName"=>"dc=SOMEOU,dc=some,dc=net"  ); --59.160.37.32 6 October 2008

(RESOLVED) Template:Languages (ParserFunctions)

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.0-8+etch11 (cgi-fcgi)
 * MySQL version: 5.0.32-Debian_7etch6
 * URL: http://ocaml.tuxfamily.org/

Hi, I would like to know how to activate/install this template: Template:Languages


 * You need to install Extension:ParserFunctions (if you haven't yet), and then copy the template plus Template:Languages/Lang. -- :bdk: 03:33, 14 December 2008 (UTC)

(OUTDATED) Search-Extension, dynamic-list functionality

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.0-8+etch11 (apache2handler)
 * MySQL version: 5.0.32-Debian_7etch6-log
 * URL:

Which extension is responsible for the Search of Mediawiki. I mean the dynamic-list functionalitiy of the Search-form in the navi.

I need to find pages only with puting some letter in the input field and then get a drop-down list of articels.

So, could somebody please tell me which extension I have to install for this?

—Fightgnome 10:17, 9 October 2008 (UTC)

(RESOLVED) Short URL/wiki/Page title -- no root access - but I miss the Logo

 * MediaWiki version: 1.11.0
 * PHP version: 5.2.0-8+etch10 (cgi-fcgi)
 * MySQL version: 5.0.32-Debian_7etch5-log
 * URL: http://www.wellness.andreasmgross.de

After installing the Extension Manual:Short URL/wiki/Page title -- no root access - which worked fine for me, but except this:

The logo is not displayed any more.

Who knows to help?

—Andreas Groß 03:08, 22 October 2008 (UTC)
 * I found the solution on another place:
 * Problem: Web page Logo does not appear in shortened web pages but still appears on normal /wiki/index.php?title= pages.
 * Solution: Use an absolute path to the image like so $wgLogo = "http://examplewiki.org/wiki/skins/common/images/wikiheader.png";
 * Reference: Manual:Short URL/Page title -- PHP as a CGI module, no root access

(OUTDATED) Extension development, what hooks to use

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6
 * MySQL version: 5.0.18
 * URL: http://wiki-reputation.cs.umn.edu

I need to add background color to every word in an article based on its age. I am confused as to what hooks i need to use for the same. Also, how do i extract words from a mediawiki article? Any help would be apprciated.

—128.101.35.44 18:26, 5 November 2008 (UTC)

(RESOLVED) Format Search Results, Lucene, MWSearch

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.5
 * MySQL version: 5.0.45
 * URL:

I have just completed an overhaul of our MediaWiki implementation, and am now looking to improve the quality of the search results.

To this end, I have installed LuceneSearch and use it by way of the MWSearch extension.

I am curious as to how I can change the formatting of the search results to make it look more like those returned by MediaWiki or Wikipedia - remove the red highlighting for keywords, change the date format, modify colours, etc.

Any guidance you could provide would be much appreciated.

Cheers —209.139.229.17 18:56, 5 November 2008 (UTC) (Matt)


 * Found the relevant CSS - I guess my only remaining question would be how to modify the date format that is returned by way of Lucene/MWSearch?
 * In case any one else was wondering - the date format is a user preference.

(RESOLVED) Cite extension does not work on Joomla 1 installation

 * MediaWiki version: 1.5.8
 * PHP version: 5.2.0-8+etch10 (apache2handler)
 * MySQL version: 5.0.32-Debian_7etch6-log
 * URL: http://mystic.inibap.org/joomla/karen/joomla_1

I have installed Cite on a Joomla 1 site with the mediawiki version as stated above. It does not work. I have followed the instructions in regards to putting the require once line on the LocalSettings.php page. First I got an error message saying that the class could not be found. The class is not on the Cite.php page but is on the Cite_body.php page. If you put the class onto the Cite.php page you don't get the error message but still the references do not appear. You see the text between the tags but not a footnote as should appear. Do you have any ideas on this?

Here is a link to a test page on the wiki page of this website: http://mystic.inibap.org/joomla/karen/joomla_1/index.php?option=com_mambowiki&Itemid=203

Karen Lehrer k.lehrer@cgiar.org

—Klehrer 13:16, 12 November 2008 (UTC)


 * You must upgrade MediaWiki. —Emufarmers(T 19:54, 12 November 2008 (UTC)

(RESOLVED) Proposing a new MediaWiki extension : Global Context Variables
Going on discussion started on Meta. Is it the right place to discuss it?

See Wikimedia Forum

There are arguments and analysis of the problem and why we would need it, and which kind of problems it would solve cleanly.

Contributions wellcome there. Thanks. Verdy p 22:37, 12 November 2008 (UTC)


 * We have a seperated page for such proposals: Extension requests. -- :bdk: 03:33, 14 December 2008 (UTC)

(RESOLVED) Recent Vandalsim and Crash after installing CheckUser
I recently installed the CheckUser extension after I found my wiki was vandalized by a user going by the name of either Grawp or Hagger over the last few days.
 * MediaWiki version: 1.12.0
 * PHP version: 5.2.5 (cgi-fcgi)
 * MySQL version: 4.1.22-max-log
 * URL: http://innewscenter.net/wiki

Now I'm getting a 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 "efUpdateCheckUserData". MySQL returned error "1146: Table 'inn0826408295227.mw_cu_changes' doesn't exist (p41mysql169.secureserver.net)".

—Nsgaeverine 19:44, 18 November 2008 (UTC)


 * You never ran the CheckUser install script. —Emufarmers(T 23:48, 18 November 2008 (UTC)
 * Where on the wiki is the check user install script to open command prompt and run php install.php? Nsgaeverine 17:53, 19 November 2008 (UTC)
 * The issue has been resolved, I found out that I needed to change the cu_chanes, etc. to mw_cu_changes. Nsgaeverine 20:03, 20 November 2008 (UTC)

(RESOLVED) How do you install reCaptcha extension

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6 (cgi)
 * MySQL version: 5.0.67-msl-icd1-log
 * URL: http://test.royandboucher.com/wiki/index.php?title=Special:RequestAccount

I have installed the ConfirmAccount extension and was in the process of installing the reCaptcha Extension. To say that the recaptcha.net page is quite brief, and it leaves a few things out is a big understatement.

I downloaded from the Google link, but when I activate the reCaptcha extension by adding the require_once( "$IP/extensions/recaptcha/ReCaptcha.php" ); line to LocalSettings.php, I then get a fatal error which when you add $wgShowExceptionDetails = true; to the LocalSettings.php returns Messages file for extensions ConfirmEdit is not defined Backtrace:


 * 1) 0 /home/royboucher/www/test/wiki/extensions/ConfirmAccount/RequestAccount_body.php(197): wfLoadExtensionMessages('ConfirmEdit')
 * 2) 1 /home/royboucher/www/test/wiki/extensions/ConfirmAccount/RequestAccount_body.php(78): RequestAccountPage->showForm
 * 3) 2 /home/royboucher/www/test/wiki/includes/SpecialPage.php(534): RequestAccountPage->execute(NULL)
 * 4) 3 /home/royboucher/www/test/wiki/includes/Wiki.php(224): SpecialPage::executePath(Object(Title))
 * 5) 4 /home/royboucher/www/test/wiki/includes/Wiki.php(55): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
 * 6) 5 /home/royboucher/www/test/wiki/index.php(93): MediaWiki->initialize(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
 * 7) 6 {main}

However when I add the ConfirmEdit extension with the require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );

It initially appears to work, but ultimately ends with a fatal error Fatal error: Cannot redeclare class SimpleCaptcha in /home/royboucher/www/test/wiki/extensions/ConfirmEdit/ConfirmEdit_body.php on line 66

So how do you install the reCaptcha extension? and what parts of ConfirmEdit are needed? and should the ConfirmEdit messages be put in the recaptcha extensions directory or what?

TIA, —Ken Roy 15:16, 23 November 2008 (UTC)


 * The ReCAPTCHA package includes ConfirmEdit. You must follow all of the installation instructions, including the ones about the key pair. —Emufarmers(T 22:02, 23 November 2008 (UTC)
 * Thanks for your response. I did follow the instructions as defined on the Carnegie Mellon site

and added the require_once( "$IP/extensions/recaptcha/ReCaptcha.php" ); to LocalSettings.php and obtained the api keys. So why am I getting Messages file for extensions ConfirmEdit is not defined. --Ken Roy 01:34, 24 November 2008 (UTC)
 * See response from Aaron Download current ConfirmEdit which resolved the problem. --Ken Roy 15:30, 27 November 2008 (UTC)
 * Noted (belatedly) on the ReCAPTCHA page. —Emufarmers(T 15:28, 30 November 2008 (UTC)

(RESOLVED) Subpage transclusion - possible with default Mediawiki installation?

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.2 (apache2handler)
 * MySQL version: 5.0.41
 * URL: (Intranet)

I haven't been able to transclude a subpage onto a page, i.e.: putting this code: onto the main page. (More info here: w:en:Help:Template )

I've tried this in the Wikipedia sandbox, and it worked - so I'm wondering if this involves a particular Extension. I haven't been able to find anything about this - I've been using the following terms to search: subpage transclusion template Kind thanks.


 * Update
 * Found out! Seems to work with the installation of the Parser extension. Woot!
 * —Dougbast 03:31, 7 December 2008 (UTC)

(RESOLVED) Login error: Incorrect password entered. Please try again

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6 (cgi)
 * MySQL version: 5.0.51a-community
 * URL: http://tng.lythgoes.net/wiki2/index.php?title=Special:UserLogin
 * Installed Extensions : ConfirmAccount and ConfirmEdit
 * Extension functions : confirmEditSetup, efLoadConfirmAccount and efReCaptcha

What would cause the new user to be unable to login with the temporary password?

I tested the ConfirmAccount extention with the reCaptcha extension and had it working fine on my test wiki. When I asked the administrator to implement it on the TNG Wiki everything appears to be OK, except that when a new user attempts to login, they get the following error message

Login Error: Incorrect password entered. Please try again

I have not found anything doing a Google Search that might indicate where we have a problem in the setup. I asked the administrator to send me his LocalSettings.php and changed mine to match his but I cannot recreate the problem.

You can see the problem at http://tng.lythgoes.net/wiki2/index.php?title=Special:UserLogin

using Account name: Test Login

Password: QrNq8bh

After changing my LocalSettings.php to match those on TNG wiki2, I created a new account and was able to login with the temporary password, which then prompted for the password change.

Any help here would be appreciated tremendously since this is the only thing preventing us from going live.

TIA —Ken Roy 21:47, 7 December 2008 (UTC)
 * Appears to be a self-induced problem as a result of lines I added to ConfirmAccount_body.php to save the real name in a variable so that I could create the User:user page with realname which is not used as the login username, I overlaid line 445 - $user->saveSettings; // Save this into the DB --Ken Roy 12:59, 10 December 2008 (UTC)

(RESOLVED) Permanent shortcuts

 * MediaWiki version: 1.13.3
 * PHP version: 5.1.6 (apache2handler)
 * MySQL version: 5.0.27
 * URL: I was asked not to give it.

How do you add permanent shortcuts/redirects to namespaces in a wiki? For instance, on the English Wikipedia, "WP:[Something]" always redirects to "Wikipedia:[Something]", without the need for the creation of many redirect pages entitled "WP:[Something]". Thus, how do you add such permanent redirects?

—It Is Me Here  t / c 19:55, 16 December 2008 (UTC)


 * Use $wgNamespaceAliases. —Emufarmers(T 23:51, 16 December 2008 (UTC)

(RESOLVED) Installing extensions – Warning: Cannot modify header information - headers already sent by... [German]

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.2 (apache2handler)
 * MySQL version: 5.2.2 (apache2handler)
 * URL: Intranet

Hallo, ich bin leider nur dem Deutschen oder Französischen mächtig. Vielleicht kann mir trotzdem jemand helfen! Also: ich brauche ein Extension, mit dem ich Artikel oder Kategorien schützen kann. Ich hab auch genügend Extensions hier gefunden. Aber egal welche Extension ich installier, bekomme ich IMMER diese Fehlermeldung: Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\MinjusWiki\LocalSettings.php:1) in C:\xampp\htdocs\MinjusWiki\includes\WebResponse.php on line 10

Kann das vielleicht daran liegen, dass ich eine anderssprachige Media-Wiki-Version (luxemburgisch) habe? vielen dank im vorraus, --JimHawk 13:06, 11 November 2008 (UTC)


 * Ich spreche kein Deutsch, mais j'espere que vous pouvez comprendre ca: on ne peut pas faire ou ecrire un cookie apres avoir commencer a ecrire HTML. You can't redirect or write a cookie after you've started writing the HTML. And 09:18, 16 January 2009 (UTC)

(OUTDATED) automatically generate a list of keywords

 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

I have no Wiki yet - but I would like to.

Based on the latest Wiki version I have one question:

Is it possible to generate a list of keywords? I would like to have a special page with (more or less) detailed information where I find content to my keyword (like an index) inside my wiki. When you search for a article you get detailed information for the typed word. But I would like to have a printable overview about the keywords - so that I can print out the complete wiki and have a directory/indices-list

I would like to mark words inside the article (like: cost center ) and the Special page generates automatically an alphabetical list like (KEYWORD: ARTICLE Header - Place inside article)

e.G.:
 * Cost Center
 * Organisation - 10.3 Organisation Forms
 * Business - 7.5.11 Center Forms

—80.133.173.238 09:42, 13 November 2008 (UTC)

(OUTDATED) Installing TreeAndMenu

 * MediaWiki version: 1.11.0
 * PHP version: 5.2.5 (apache)
 * MySQL version: 4.1.22-standard
 * URL: www.elektro-ikt.no

Is it possible to get help with installing TreeAndMenu. I want it to show in the navigation bar at left. I can give access to the url if someone want to help me.

TST—77.110.193.21 10:03, 14 November 2008 (UTC)

(RESOLVED) FCKEditor integration fails with current SVN MediaWiki 1.14 rev. 43724

 * MediaWiki: 1.14alpha
 * PHP: 	5.2.0-8+etch13 (apache2handler)
 * MySQL: 	5.0.32-Debian_7etch8-log
 * URL: http://160.45.63.55/test/Main_Page ; this page is ok, but an error occurs when clicking on edit (we have no anonymous access, however).

The integration of FCK was attempted with an up-to-date MediaWiki and following the instructions. A record of the attempts is openly available. About the documentation: Note that there is some confusion with the extension already checked out in MediaWiki extensions, which is marked BROKEN and was not used. Or should it be?) The error message is:

Catchable fatal error: Argument 1 passed to Skin::setupUserCss must be an instance of OutputPage, none given, called in /usr/share/mediawiki/FCKeditor/FCKeditor.body.php on line 341 and defined in /usr/share/mediawiki/phase3/includes/Skin.php on line 560

See also Extension talk:FCKeditor (by FCKeditor and Wikia) for same error experienced by another user several months ago. Any help or experience with this?

—G.Hagedorn 15:44, 19 November 2008 (UTC)


 * FCKeditor is broken, see ticket #2626 on their bugtracker (it seems that you've found it already). -- Sayuri 13:34, 16 January 2009 (UTC)

(OUTDATED) Error with Lifemarks, cannot access protected property …

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6 (cgi)
 * MySQL version: 4.0.27-standard
 * URL: http://wiki.voelkersbach.de

Hi there,

I'm german - so please sorry for my bad english :-)

I've installed the LifeMarks-Extension and when I click on Lifemarks in my SpecialPages i get this error:

Fatal error: Cannot access protected property OutputPage::$mParserOptions in /homepages/40/d203059780/htdocs/voelkersbach.de/wiki/extensions/LifeMarks.php on line 493

I've done everything from the howto - I have no idea whats going wrong...

What can i do?

Regards Thomas —Thomasnoth 22:08, 23 November 2008 (UTC)

(OUTDATED) Infobox?

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.0-8+etch11 (apache2handler)
 * MySQL version: 5.0.32-Debian_7etch5-log
 * URL:

Hallo, i have make me an own Wiki. Now I want to make an Post whith an Infobox, but it wount make. Can you tell me, how I Install/Build this feature/Extension?

Thanks

PS: you can write me an e-mail. creutznacher@gmail.com

—79.207.88.201 19:20, 26 November 2008 (UTC)

(OUTDATED) Can't get Extension : Google Adsense 2 working

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.5 (apache)
 * MySQL version: 5.0.67-community
 * URL: http://www.fordmondeo.org/wiki/index.php/Main_Page

I've followed the instructions on the Extension:Google Adsense 2 page (Extension:Google_AdSense_2) but nothing appears to be happening. Please help as I'm not too conversant with Mediawiki or wiki software in general.

Many Thanks

Nick —82.44.254.89 19:10, 2 December 2008 (UTC)

(OUTDATED) Local authentication on Linux, NIS

 * MediaWiki version
 * MediaWiki 	1.13.2
 * PHP 	5.1.6 (apache2handler)
 * MySQL 	5.0.45

I am trying to find an extension that will allow me to use local authentication on the linux server to authenticate users.

I use NIS on the Linux cluster and I'd like to have the option of using my NIS users edit the wiki.

I'd like to have the NIS groups be setup to control the access and editing of the wiki.

I think I can use Active Directory, but that is not what I need to do in this case.

On google there is a UnixLocalAuth.php extension, but I cannot find anywhere to download it.

Thanks THP3 —136.141.6.76 00:09, 4 December 2008 (UTC)

(OUTDATED) Using the Boilerplate extension - Help needed.

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.5 (cgi)
 * MySQL version: 5.0.45-community-log
 * URL: http://www.jefferson-wiki.com/wiki/

I am trying to start a new wiki and need to give our users a predefined form to help them begin to add content to our wiki. Other wiki's use scaffolds to help build a new wiki. It helps to give new users some structure to help them build a new wiki. The closest thing I could find on MediaWiki is the Boilerplate. It is supposed to let the admin give the users some predefined text for the wiki to help them get started. I am very new to this and am running into problems. I need some help!

I am seeking information on the use of the Boilerplate extension. I have followed the instructions and have copied the code from Boilerplate.php to the extensions directory. However, where should the Boilerplate file be located and what are the contents of the file?

In the instructions it says:

Step 3: Create a page named Boilerplate on your MediaWiki site. Whatever is included in this Boilerplate page will serve as the default template for any new pages created on your site.

But they do not give any details on where the file should go. How to I point to the file? What is the text of the Boilerplate file look like? If someone can show me the syntax of the file contents and how to use them to create a form for the user to fill in when creating a new article that is exactly what I need. An example Biolerplate file would be even better. Does anyone have an example of a site that uses the Boilerplate that would be good too.

Thanks, Steve

Please send any help you can provide to me at duffsb @ comcast.net —68.37.61.154 19:39, 15 December 2008 (UTC)

Use a template in the result of a tag extension.

 * MediaWiki version: 1.14
 * PHP version: 5.2.8
 * MySQL version: 5.2.30
 * URL: private wiki

I created an extension and I need it to return someting like

Then I need the parser to deal with the template.

return ""
 * At first I tried :

It printed the whole string, the parser didn't replace the { – } ;


 * Then I tried $parser->recursiveTagParse, the template hadn't been integrated in the final render, I just got "Result" as flat text.

Could you help me?

Thanks.

—193.186.8.8 13:45, 25 March 2009 (UTC)

Problem with GenericEditPage extensions

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6 (cgi)
 * MySQL version: 5.0.68-log
 * URL: http://www.streetkiss.com/mediawiki/

Hi, When I try to edit a page with the extension GenericEditPage it add " " at the end of the article You can see the problem here : http://www.streetkiss.com/mediawiki/index.php?title=Test_Uniwiki if someone could help by leaving a message on the wiki page bellow or to my email : etienne.martin@streetkiss.com it would be very nice !

—Monsieur Martin 20:18, 15 December 2008 (UTC)

DPL-Error: Illegal mix of collations ... for operation 'concat' (localhost)

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.2
 * MySQL version: 5.0.41
 * URL: localhost

Hallo,

I try to use the DPL extension. So I installed it and as an exampled I typed the following code:

 category = Management 

The result was this error message:

The DPL extension (version 1.7.4) produced a SQL-statement which lead to a Database error... After the SQL-statement the Error message is shown:

The error message is: Illegal mix of collations (utf8_general_ci ...) for operation 'concat' (localhost).

Do I have to change any settings in my database? Or do you have any idea?

Thank you for your endeavors.

Uwe Henning —194.114.62.70 08:24, 16 December 2008 (UTC)

TinyMCE extension error

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.0
 * MySQL version: 2.9.11
 * URL: Intranet

I installed TinyMCE extension and returned a error:

Fatal error: Call to undefined method Parser::stripToc in C:\Arquivos de programas\EasyPHP 2.0b1\www\wiki\extensions\TinyMCE_MW.php on line 257

how fix this?

—Graffo 12:31, 18 December 2008 (UTC)

Same problem! How??? refal

Isnt there any fix for this? is this post visible to wikimedia admin? David

Yes, let's try to find a way to fix this. Does anyone know what the $q variable being passed in is? Ryan

Tex does not work

 * MediaWiki 1.13.3:
 * PHP version: 5.2.6
 * MySQL version: 5.0.32-Debian_7etch8
 * URL: http:www.eewiki.de

Latex does not working on my Webaccount by Sysprovide.de. I have only FTP-Upload. NO SSH! This is a part of my Configuration at the LocalSettings.php:

To enable image uploads, make sure the 'images' directory is writable, then set this to true: $wgEnableUploads      	= true; $wgUseImageResize		= true; $wgUseImageMagick 		= true; $wgImageMagickConvertCommand = "/usr/bin/convert";

$wgUseTeX          = true; $wgTexvc			= "/var/www/empty/web254/"; $wgMathPath			= "{$wgUploadPath}/math"; $wgMathDirectory	= "{$wgUploadDirectory}/math"; $wgTmpDirectory		= "{$wgUploadDirectory}/tmp"; But it doesn't work. Do you have any idea? I have got only a bug report:

Parser-Fehler (Das temporäre Verzeichnis für mathematische Formeln kann nicht angelegt oder beschrieben werden.): a+b=c He doesn't find the temp folder. Where is usually the temp and math folder in the wiki?

Regards

Sven Tesker —Tesker 18:17, 18 December 2008 (UTC)


 * Hello, try an 'echo $wgTmpDirectory/tmp' and look if the path points to a directoy where you could write to. Check if the the directory have CHMOD 777. Good luck, TG 87.193.172.106 15:01, 27 January 2009 (UTC)

(RESOLVED) Extension:Farmer and transwiki problems

 * MediaWiki version: SVN build
 * PHP version: 5.26
 * MySQL version:
 * URL: Localhost

I installed Farmer, and it shows the special page - as it should do, but it won't let me create the wikis.

This is from my LocalSettings.php file: $wgSharedTables = array( 'user' => $sharedPrefix . 'user', 'user_groups' => $sharedPrefix . 'user_groups', 'interwiki' => $sharedPrefix . 'interwiki', 'math' => $sharedPrefix . 'math', );

require_once( 'extensions/ExtensionFunctions.php' ); require_once( 'farmer/Farmer.php' );

/* We use the internal _matchByURLHostname function to find the wiki name */ $wgFarmerSettings['wikiIdentifierFunction'] = array('MediaWikiFarmer', '_matchByURLHostname'); $wgFarmerSettings['dbAdminUser'] = 'root'; $wgFarmerSettings['dbAdminPassword'] = 'west'; $wgFarmerSettings['dbTablePrefixSeparator'] = '_-_'; $wgFarmerSettings['newDbSourceFile'] = realpath(dirname(__FILE__)). '/extensions/farmer/daughterwiki.sql';

$wgFarmerSettings = array( 'configDirectory' => realpath(dirname(__FILE__)) . '/configs/', 'defaultWiki' => 'autowiki1', 'wikiIdentifierFunction' => array('MediaWikiFarmer', '_matchByURLHostname'), 'matchRegExp' => '', 'matchOffset' => null, 'matchServerNameSuffix' => 'localhost',

'onUnknownWiki' => array('MediaWikiFarmer', '_redirectTo'), 'redirectToURL' => 'http://127.0.0.1/',

'dbAdminUser' => 'root', 'dbAdminPassword' => 'west',

'newDbSourceFile' => realpath(dirname(__FILE__)). '/daughterwiki.sql',

'dbTablePrefixSeparator' => '', 'dbTablePrefix' => '',

'defaultMessagesFunction' => array('MediaWikiFarmer', '_getDefaultMessages'),

'perWikiStorageRoot' => 'C:\xampp\htdocs\autowiki1', 'defaultSkin' => 'monobook', );

$wgExtensionFunctions[] = 'MediaWikiFarmer_Initialize';

/** $wgGroupPermissions['*']['farmeradmin'] = false; $wgGroupPermissions['sysop']['farmeradmin'] = true; $wgGroupPermissions['*']['createwiki'] = false; $wgGroupPermissions['sysop']['createwiki'] = true; $wgAvailableRights[] = 'farmeradmin'; $wgAvailableRights[] = 'createwiki'; require_once('farmer/Farmer.php');
 * These should really go in the initialize function, but MediaWiki initializes
 * $wgUser before the extensions are initialized. Seems like weird behavior,
 * but OK.

$wgFarmer = new MediaWikiFarmer($wgFarmerSettings); $wgFarmer->run; Whenever I try to run Special:Farmer this error occurs: Fatal error: Call to undefined function wfmsghtml in C:\xampp\htdocs\autowiki1\Farmer\MediaWikiFarmer.php on line 112

Also, when I try to transwiki some Wikimedia files with large page histories, this notice happens:

Fatal error: Maximum execution time of 120 seconds exceeded in C:\xampp\htdocs\autowiki1\includes\StringUtils.php on line 126

Anyone know how to fix this??

Thanks. --82.42.237.84 15:39, 30 December 2008 (UTC)


 * Simplest fix? Don't use Farmer, it's very outdated extension. The actual bug might be caused by the fact that the wfMsgHtml call is inside a throw new MWException call - I don't know if you're supposed to translate exceptions and I don't think that MediaWiki core software does so. For the second error, increase your PHP's time limit by setting something like this in your wiki's LocalSettings.php: set_time_limit(900); -- Sayuri 13:34, 16 January 2009 (UTC)

Userpages extension

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.6 (cgi-fcgi)
 * MySQL version: 4.1.22-standard

I wanna create a extension in order to display extra info (determined by a interface message) in the user page. What hooks I need to use (or to add)? Userpages are special pages? Thanks.<DIV align="right">Eloy 23:06, 31 December 2008 (UTC)</DIV>

RSS feeds

 * MediaWiki version: 1.13.2
 * PHP version: 5.x
 * MySQL version: 5
 * URL:

Hi,

I have a requirement withing organisation to have RSS feed enabled for some pages i create. For example say one user is creating a page called 'Sales plan'. Now users who are interested in knowing updates happening to that page only should be able to add a RSS feed for updates of this "Sales Plan" page alone. The recent changes function for RSS/Atom feed gives feed xml every time a change is made to "any" page. What ever i have mentioned is it possible to do any extention or feature list of Mediwiki. Any help in this regard will be highly appreciated.

—122.166.42.202 11:59, 1 January 2009 (UTC)

Problem with Wgraph extension output not rendered by MediaWiki

 * MediaWiki version: 1.13.3
 * PHP version: 	5.2.6 (apache2handler)
 * MySQL version: 5.0.67
 * URL: n/a but the exact same problem can be seen on bottom of http://s23.org/wiki/Sandbox

Installed Wgraph extension. The images get produced ( confirmed ), however on the wiki page I can see only <a href="/images/Wgraph/Main_Page_1.svg?1231800813" target=wgraph><img src="/images/Wgraph/Main_Page_1_thumb.png?1231800813" title="click for SVG .."></a>

(made with <a href=http://semeb.com/dpldemo/Wgraph target=wgraph>Wgraph</a>)

Tried to put $wgRawHtml = true in LocalSettings.php but this didn't change anything.

Solution: There is a problem with the way Wgraph inserts it's HTML output. To correct it, in your Wgraph.php file, find the lines global $wgRawHtml; $wgRawHtml = true; and comment them out for security reasons. Then find the line: return $result; //. $wgraph. ":". $thumbResolution ."/".$resolution. ', '.$clipThumb. '---'. $clipImg; and replace it with

return array( $result, noparse => true, isHTML => true ); More information on why this works can be found on http://jimbojw.com/wiki/index.php?title=Raw_HTML_Output_from_a_MediaWiki_Parser_Function

—78.90.3.108 23:11, 12 January 2009 (UTC)

(RESOLVED)Problem with sysop/bureaucrat permissions after creating account with UserLoadFromSession hook
Apologies for the length of this post, but I'm utterly stymied after working on this for ages.
 * MediaWiki version: 1.13.0
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.67
 * URL: http://ntm-igdev02.nott.ime.reuters.com/wiki/index.php/Main_Page (internal)

I am setting up 1.13.0 as a new system and will soon (I hope!) be migrating the content from an older version to it. This migration includes using our company SSO and I've successfully used the UserLoadFromSession hook to implement this. However, there is one glitch: I currently have two IDs, one original one (SS) for use without the hook and another (Sam.Sexton) that was created and is authenticated by the hook. Both of these are assigned as Sysop and Bureaucrat, but these permissions are only effective for the original user (SS) - as the other one (Sam.Sexton), I don't see the restricted special pages.

(first | last) View (previous 50) (next 50) (20 | 50 | 100 | 250 | 500)


 * SS ?(bureaucrat, sysop)
 * Sam.Sexton ?(bureaucrat, sysop)
 * WikiSysop ?(bureaucrat, sysop)

(first | last) View (previous 50) (next 50) (20 | 50 | 100 | 250 | 500)

I have made the following observations and investigations.


 * 1) The database records I create with the hook differ from the original (SS) record in that:
 * 2) user_touched is initially nulls (\0\0\0 rather than NULL) despite my setting it - but this is corrected by later activity.
 * 3) user_email_token and user_email_token_expires for Sam.Sexton are NULL, but I've copied values from SS and that made no difference.

I've looked at Skin.php and added this hack to see what was going on:

/* Hack to see what's going on. Sam 090108 */ wfDebugBacktrace; $rpages = SpecialPage::getRestrictedPages; wfDebug("Restricted pages for $wgUser->mName\n"); foreach ( $rpages as $rpage) { wfDebug(" $rpage\n"); }		/* end hack */


 * but nothing was added to the debug file, which is receiving other debug info.


 * I have even resorted to running truss on navigating to Special Pages as both users. There was a rather curious difference between the two - the one for Sam.Sexton (created with the hook) contained several calls to resolvepath that weren't in the truss for SS. This relates to symbolic link resolution - not unreasonably, as htdocs/wiki is a link to the files in my home dir for easy maintenance - and I've not seen any problems related to that arrangement. However, as I didn't get those calls for SS, I copied the files so that the link was removed and all files native - but that made no difference.


 * My suspicions are that there's something I'm missing in the new account creation process, but for the life of me I can't see what! I suspect that there must be another criterion other than sysop/bureaucrat group membership required to see the restricted pages, but it's escaped my investigations so far. I'd be grateful for any illumination or suggestions on what else to check. Below is the code for the hook and a sample of the log for the db entry creation. Thanks in advance! Any constructive comments on the code will be welcomed - this is not an area in which I am overburdened with experience! ;-)

<?php function fnUserAuthTGST($user, &$result) {

/*	This function performs the user authentication for TGSTWiki and D3000Wiki. It requires the following fields to be added to the default {prefix}_user table in the database: user_employee_id	tinytext user_market_group	tinytext

Ref:	http://www.mediawiki.org/wiki/Manual:Hooks/UserLoadFromSession http://svn.wikimedia.org/doc/classUser.html */ $fname  = "UserAuthTGST::fnUserAuthTGST"; $SAFE   = "https://safeqa.thomson.com/login/sso/SSOService?app=tgstwiki&returnURL="; $errpage = "http://ntm-igdev02.nott.ime.reuters.com/wikiaccess.php"; $allowed = 300; # Five minutes diff is allowed. logTGST("Page: " . $_SERVER['REQUEST_URI']); if (isset($_COOKIE['TGSTWiki'])) { $tgstcookie = $_COOKIE['TGSTWiki']; logTGST("TGSTWiki cookie found");

if (isset($_REQUEST['digest'])) { logTGST("digest exists as well - ignoring it."); }

loadFromDatabaseTGST($user, $tgstcookie); $result = 1; // This causes the rest of the authentication process to be skipped. return(false);  // As should this, according to the internal error report: // Detected bug in an extension! Hook fnUserAuthTGST failed to return a value; should return true to continue hook processing or false to abort.

} elseif (isset($_REQUEST['digest'])) { # Just back from SAFE - validate the result. $digest     = $_REQUEST['digest']; $empid      = $_REQUEST['uid']; $email      = $_REQUEST['email']; $firstname  = $_REQUEST['firstname']; $lastname   = $_REQUEST['lastname']; $marketgroup = $_REQUEST['marketgroup']; $intime     = $_REQUEST['time']; $returnurl  = $_REQUEST['returnURL']; $thispage   = curPageURL; $mytime     = date("Y:m:d:H:i:s", time);

// Get the secret ... $file = fopen("/usr/local/apache2/htdocs/wiki/TGST/conf/.SAFEkey", "r") or exit("Unable to open file!"); $secret = chop(fgets($file),"\n"); # Drop trailing LF		fclose($file);

$md5string = "$empid$intime$secret"; $mydigest = md5($md5string); if ( "$digest" != "$mydigest" ) { // Problem! Log secure info to file: logTGST("Digests don't match for $email - unable to proceed."); logTGST(" digest=$digest"); logTGST(" mydigest=$mydigest"); logTGST(" md5string=$md5string"); // ... and tell the user something interesting: $errpage .= "?error=Digest%20mismatch"; $errpage .= "&digest=$digest&empid=$empid&email=$email&first=$firstname&last=$lastname&mg=$marketgroup&intime=$intime"; $errpage .= "&mytime=$mytime&returnurl=$returnurl"; // redirect to report error ... http_redirect($errpage, array, true, HTTP_REDIRECT); }

$diff = valtime($intime); if ( $diff > $allowed ) { logTGST("Time difference ($diff) is too great for $email"); logTGST(" intime=$intime"); logTGST(" mytime=$mytime"); // ... and tell the user something interesting: $errpage .= "?error=Time%20difference%20too%20great."; $errpage .= "&digest=$digest&empid=$empid&email=$email&first=$firstname&last=$lastname&mg=$marketgroup&intime=$intime"; $errpage .= "&mytime=$mytime&returnurl=$returnurl"; $errpage .= "&timediff=&diff"; // redirect to report error ... http_redirect($errpage, array, true, HTTP_REDIRECT); // $result not set so that authentication continues - and should fail. return(true); // This should have the same effect. }		logTGST("SAFE validation successful for $email"); # Validation successful - create cookie with all SAFE fields. $tgstcookie = "$empid|$email|$firstname|$lastname|$marketgroup"; $tgstcookie = str_replace(' ', '%20', $tgstcookie); # We'll start with a week and perhaps extend to a year....? if ( setrawcookie("TGSTWiki", $tgstcookie, time+7*24*60*60, '/', $_SERVER['SERVER_NAME']) ) { logTGST(" cookie set successfully."); } else { logTGST(" cookie setting failed."); }		// Now see if the user is already in the database ... $user = loadFromDatabaseTGST($user, $tgstcookie); $result = 1; // This causes the rest of the authentication process to be skipped. return(false); // Ditto (see above) } else {	// No cookie, so we go to SAFE. logTGST("TGSTWiki cookie not found - redirecting to SAFE.");

$SAFE .= curPageURL; // Append this page's name http_redirect($SAFE, array, true, HTTP_REDIRECT); }	// No cookie }

function loadFromDatabaseTGST($user, $tgstcookie) { $fname  = "UserAuthTGST::loadFromDatabaseTGST"; // Check whether user is in the database - if so, complete User. logTGST("Entering $fname ..."); // Explode the cookie: list ($empid, $email, $first, $last, $marketgroup) = explode("|", $tgstcookie, 5); logTGST("Cookie exploded: $empid, $email, $first, $last, $marketgroup"); // Now see if the user is known ... $dbr =& wfGetDB( DB_SLAVE ); $s = $dbr->selectRow( 'user', array('user_id'), array('user_employee_id' => $empid), $fname); if ($s === false) { logTGST("No entry found in db for employee id $empid - creating one ..."); $user = new User; // MediaWiki requires names to start with a capital, so we have a stab at a reasonably formed name: $temp = explode(".", substr($email,0,strpos($email,'@'))); $i  = 0; $lim = sizeof($temp); while ( $i < $lim) { $temp[$i] = ucwords($temp[$i]); $i++; }		$userName = implode(".", $temp); $user->loadDefaults($userName);        // Added as it's done this way in CentralAuth. $user->mEmail             = $email; $user->mName              = $userName; // Redundant given use of loadDefaults...? $user->mEmployeeId        = $empid; $user->mRealName          = "$first $last"; $user->mMarketGroup       = $marketgroup; $user->mEmailAuthenticated = wfTimestamp; $user->mTouched           = wfTimestamp; logTGST(" mName               = $user->mName"); logTGST(" mEmployeeId         = $user->mEmployeeId"); logTGST(" mRealName           = $user->mRealName"); logTGST(" mMarketGroup        = $user->mMarketGroup"); logTGST(" mEmailAuthenticated = $user->mEmailAuthenticated"); logTGST(" mTouched            = $user->mTouched"); $user->addToDatabase; // No longer returns mId - it never did, but Roddy thought so! logTGST("User added to database with ID $user->mId."); } else { $user->mId = $s->user_id; logTGST("DB entry found for employee id $empid with user id $user->mId"); } 	// Load the existing or newly-created user from the database ... if ( !$user->loadFromDatabase ) { logTGST("loadFromDatabase failed for user ID $user-mId"); }       $user->saveToCache ; # This loads the user's group membership! ###############################################	return $user; }

function curPageURL { $pageURL = 'http'; if (isset($_SERVER['HTTPS'])) {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER['SERVER_PORT'] != "80") { $pageURL .= $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$_SERVER['REQUEST_URI']; } else { $pageURL .= $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; } return $pageURL; }

function curPageName { return substr($_SERVER['SCRIPT_NAME'],strrpos($_SERVER['SCRIPT_NAME'],'/')+1); }

function valtime($intime) {

// Check whether supplied time is within five minutes of now.

$time1  = implode(explode(":", $intime)); // Colonic irrigation!

// Play at being a Time Lord here for testing.

$inepoch = strtotime($time1); // Convert to epoch $myepoch = time;

$diff = $myepoch - $inepoch; return($diff); }

function logTGST($message) {

// Log significant events during authentication if the log file exists.

$day = gmdate("Ymd"); $authlog = "/reuters/radt/local/log/TGSTWiki.authlog.$day"; $now = gmdate("Y-m-d H:i:s "); if (file_exists($authlog)) { if ($file = fopen($authlog, "a")) { fputs($file, $now . $message . "\n"); fclose($file); return(true); } else { return(false); }	} else { return(true); } } ?> 2009-01-13 15:08:39 Page: /wiki/index.php?title=Special:RecentChanges&feed=rss 2009-01-13 15:08:39 TGSTWiki cookie found 2009-01-13 15:08:39 Entering UserAuthTGST::loadFromDatabaseTGST ... 2009-01-13 15:08:39 Cookie exploded: 8009449, sam.sexton {at} thomsonreuters.com, Sam, Sexton, 11929 2009-01-13 15:08:39 No entry found in db for employee id 8009449 - creating one ... 2009-01-13 15:08:39  mName               = Sam.Sexton 2009-01-13 15:08:39  mEmployeeId         = 8009449 2009-01-13 15:08:39  mRealName           = Sam Sexton 2009-01-13 15:08:39  mMarketGroup        = 11929 2009-01-13 15:08:39  mEmailAuthenticated = 1231859319 2009-01-13 15:08:39  mTouched            = 1231859319 2009-01-13 15:08:39 User added to database with ID 15.

—And 09:58, 14 January 2009 (UTC)

I've solved this myself at long last - for the full details, see https://bugzilla.wikimedia.org/show_bug.cgi?id=17077 but in a nutshell, the group membership array is emptied in loadFromDatabase and you need to call saveToCache afterwards to reload it. Obvious, innit?! ;-)

And 11:02, 21 January 2009 (UTC)

Help please! Sysop users dont have permissions!
Hello, i need urgent help, i installed mediawiki on my server, for some reason my admin account does not have any access to special pages like the sidebar and userrights page. says i need to be in the group. I AM in the group. Help help help please!
 * MediaWiki version: 1.13.0
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.67


 * And 16:20, 19 January 2009 (UTC) This appears to be related to my problem immediately above - which I have now reported as Bugzilla Bug 17077 - I suggest you watch that as I've not had any response here.
 * And 10:26, 20 January 2009 (UTC) Do you have any more information on this? e.g. Do you use the standard account creation procedure or do you use an alternative method as I have above?
 * And 11:12, 21 January 2009 (UTC) I've solved the problem above - so if you have custom code to create accounts, you probably need to do the same - add a call to $user-saveToCache after loadFromDatabase.

(RESOLVED) Formatting problem after installing extensions

 * MediaWiki 1.14alpha (r45489)
 * PHP 5.2.4-2ubuntu5wm1 (apache2handler)
 * MySQL 4.0.40-wikimedia-log
 * URL: http://www.trialworks.com/wiki

After I install certain extensions, such as: require_once("extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php"); require_once("$IP/extensions/embed_document.php");

The font's all over the Wiki site appear bigger, affecting formatting. It's almost as if someone zoomed in to 125% size. If I add '#' to those lines it stops them from working, and returns to the layout to normal.

Not quite sure what keywords to search to even figure out what it may be. This is my first experience with MediaWiki.

—208.105.172.170 14:54, 15 January 2009 (UTC)


 * I took a quick look and seems that a PHP file - or maybe even two - is adding a BOM into the generated HTML output. Usually the first line of a page's HTML source code is like this: <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></tt>. Unfortunately on your wiki, something is adding a BOM before the first < tag. To remove the BOMs, you'll need a hex editor of some kind (I use the hex editor plugin for Notepad++) and then comes the tough part - you'll need to track down the files that have a BOM. It might be possible that it's either SyntaxHighlight GeSHi's some file or then it could be LocalSettings.php. -- Sayuri 13:34, 16 January 2009 (UTC)


 * That's Brilliant! I use Microsoft Expressions to edit various parts of the site (find it easy) and I used it to edit the PHP files. Although I do not see the line I am sure it's there, Expressions tries to put it in as a default.  Thank you!!!


 * Quick update: I took the LocalSettings.php originally made with Expressions, copied it to Notepad, made a new file, and overwrote the original.  Problem resolved.  - Thanks! Karl@trialworks.com

SQL Error on Extension:MantisIntegrations

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.8 (cgi)
 * MySQL version: 5.0.68-log
 * URL: http://www.gestioneacquario.org/wiki/index.php?title=MantisTest/it

Hi all, hi would like to use the Extension for Mantis Integration. I Installed the extension how described, but when i try to use it i got error shown on the page of my site. Can anyone help me?

THanks —Marcolino7 02:04, 17 January 2009 (UTC)

MediaWiki Extensions & Profiles

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.8 (cgi-fcgi)
 * MySQL version: 4.1.22-max-log
 * URL: http://www.superwikia.com/wiki

Apparently their is a version conflict with the copy of MediaWiki that I am using and the extensions provided on all MediaWiki sister sites. I have the nightly release for 01/16/09 yet none of the extension have been installed properly. Also, as a general inference; the profile skins and other factory installed extension are not active. No adjustments can be made or images uploaded as well.

Please assist in this matter for the project is on a time sensitive basis.

Thank you... —Habatchii 03:36, 18 January 2009 (UTC)

Ajax Rating Script
I have a problem with installing the Ajax Rating script in my wiki. I have tried to install it first in a 1.13 version but failed and then I install the 1.10.4 because I have seen to be tested in that version. But when I finish the installation my wiki throw me this Warning: Cannot modify header information - headers already sent by (output started at /home/george/public_html/mediawiki/extensions/RateArticle.php:69) in /home/george/public_html/mediawiki/includes/WebResponse.php on line 10
 * MediaWiki version: 1.10.4
 * PHP version: 5.2.6-2ubuntu4 (apache2handler)
 * MySQL version: 5.0.67-0ubuntu6
 * URL: (in my laptop not ready in the net)

I don't know what to do at all. The only solution I found is to install some other rating or reviewing extension

ps. In your extension matrix you are saying tha the version 2 is stable for all versions.I haven't find anywhere the version2 or a manual for instalation.

—80.221.45.68 08:55, 22 January 2009 (UTC) George Koloventzos

Cannot preload pages in Main namespace using PreloadManager

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6-2ubuntu4 (apache2handler)
 * MySQL version: 5.0.67-0ubuntu6
 * URL: Not available - is on a company intranet
 * Relevant extensions:
 * Extension:StubManager version: 1.3.2
 * Extension:PreloadManager version 1.1.0

For our wiki we (a collegue and I) would like to have the capability to preload newly created pages with name space specific templates, including the main name space. It seems like Extension:PreloadManager should be able to help us acheive this, so we have installed the extensions StubManager and PreloadManager in accordance with the instructions (to the best of our knowledge). We have tested that we the extension works, when we try to preload a page in, e.g., the Template name space by creating a preload template on the page MediaWiki:PreloadManager/Template. That works fine!

However, we cannot figure out how to preload pages in the main name space?!? As we understand the documentation, we should have the main namespace preload template in MediaWiki:PreloadManager/Main, but that does not work for us. We have also tried to place it simply under MediaWiki:PreloadManager and MediaWiki:PreloadManager/(Main), but no success either. I have tried to enquire about this on Extension talk:PreloadManager for quite some days without success. That is the reason I am bringing the issue forth here on the Support desk to perhaps get more eyes on it hoping to find a solution.

In case it is not possible to preload main name space pages using PreloadManager, are there then other possibilities for doing that?

We would also like to enquire how we can preload the summary field shown during File upload with a fixed template?

Thank you for your time.

--Slaunger 22:42, 22 January 2009 (UTC)

FCKeditor

 * MediaWiki 	1.13.3
 * PHP 	5.2.8 (cgi-fcgi)
 * MySQL 	5.1.30-community
 * URL: localhost

I'm ussing FCKeditor FCKeditor (Version fckeditor/mw-extension $Rev$ 2008) extension on my version 1.9.3 mediawiki version but a I'm update my mediawiki to 1.13.3 version. so the editor no work in mediawiki 1.9 FCKeditor extension (version fckeditor/mw-extension $Rev$ 2007) it's my problem :S

—200.74.136.91 01:05, 23 January 2009 (UTC)

(RESOLVED) Cite extension
I'm attempting to install the Cite extension as directed at Extension:Cite/Cite.php. What does the phrase, "Note: Cite.php requires hooks in the main MediaWiki code found in HEAD", mean? Steve3849 05:38, 25 January 2009 (UTC)
 * MediaWiki version: 1.13.3
 * PHP version: 4.4.9
 * MySQL version: 5.0.67
 * Although I do not know the answer to my above question I did see that in the additional files included in the 'Cite snapshot' there is a mention of 'hooks' in one file, "citeParserTests.txt". So, I included all the files in the Cite folder rather than just the aforementioned (3) files in the installation directions and the Cite extension now works fine. Steve3849 09:40, 25 January 2009 (UTC)

Activating MATH/Tex leads to "Failed to parse (PNG conversion failed)" because of wrong temp file name

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.67-community
 * URL: private Wiki

Hi,

I want to activate Tex support in my mediawiki. I have followed the corresponding how to on mediawiki.org. But I get still the error: Failed to parse (PNG conversion failed)

I digged into the code and came to the following point:

The Code fails in include/Math.php at this position if( !file_exists( "$wgTmpDirectory/{$this->hash}.png" ) ) { return $this->_error( 'math_image_error' ); }

When I echo'ed this line I get this on the screen: C:\Programme\xampp\htdocs\wiki/images/tmp/daa63ef966cc412541190bc8794731de.png

But when I look into the directory I get the following file name: 6080_daa63ef966cc412541190bc8794731de.tex

Have anybody an idea what went wrong? Why is the file called '.tex' and is prefixed with '6080_'?

Thank you very much for your advise in advance ...

TG, —87.193.172.106 14:41, 27 January 2009 (UTC)

Print as PDF extension is not working

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.8 [apache 2 handler]
 * MySQL version: 5.1.30 community
 * URL:

Hi, I had installed the Pdf Export extension version 2.I'm able to see the Print as PDF option under the tool box menu. I had opened a page and i had pressed Print as Pdf option in the tool menu, the PDF is not generated, the browser is freeze,not able to navigate anywhere and it requires re launching the browser. Can you please give me a solution to solve this issue? I had tested this with both Firefox version 2 and IE 6.The version of adobe reader installed in my PC is 7. Thanks!!

Suresh

—121.241.133.245 11:28, 28 January 2009 (UTC)

Special signs

 * MediaWiki version: 1.12.0
 * PHP version: 5.1.6
 * MySQL version: 5.0.45
 * URL: wiki.magion.nl

Dear missis/ mister,

I saw a "new" feature on www.wikipedia.com. It is a feature to add special signs to the text. Is this part of a new MediaWiki version or is this an exention. And if so, which one?

86.80.180.251 16:31, 28 January 2009 (UTC)


 * What special signs are you talking about? —Emufarmers(T 18:20, 28 January 2009 (UTC)

Fatal error when installing Cite extension

 * MediaWiki version: 1.13
 * PHP version:
 * MySQL version:
 * URL:www.discoveryourcause.org/founderssquare

I installed the Cite extension, but I get this error when I try to save a page:

Fatal error: Call to undefined method ParserOptions::getIsSectionPreview in /home/ccritten/public_html/founderssquare/extensions/Cite/Cite_body.php on line 674

—65.88.12.130 22:03, 28 January 2009 (UTC)


 * Use the version of Cite labeled 1.13.x in the extension distributor. —Emufarmers(T 22:32, 28 January 2009 (UTC)

I get the same error, but in Line 699. 66.160.67.67 18:24, 7 April 2009 (UTC)

tag extensions: code to find tags

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.8
 * MySQL version: 5.1.30

Where in the mediawiki code can I find the code used to find instances of tags that I've defined in tag extensions? I need to identify the tags in my own code; would like to use the same technique.

—173.79.61.216 17:07, 29 January 2009 (UTC)Zev

LiveChat extensions

 * MediaWiki version: 1.13.3
 * PHP version:
 * MySQL version:
 * URL: localhost
 * Chat: PhpFreeChat 1.2 ore 1.0-Beta11

Problem:

I have used your LiveChat guide when innstalling phpfreechat-1.0-beta11 but have problem whit after the install is complete. Only me as admin are able to log in to the chat. But all the users are not able to. What can I do, how do I edit the premission to let users login to the chat

-- Kimlorentz 14:14, 31 January 2009 (UTC), E-Mail: kselstoe@online.no

Extension:Intersection

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.8 (cgi-fcgi)
 * MySQL version: 5.0.67-community
 * URL: http://www.tayyeb.org/wiki/index.php?title=Citizen_Journalism:Newsroom

I've installed Extension:Intersection to gather list of pages from various categories on a single page using DynamicPageList script but when I try to save page, sometime, it gives me a white page, some time error page and sometimes its saved but nothing appears. Please check this issue on my wiki. —Captain101 06:00, 2 February 2009 (UTC)

Farmer extension causes problems

 * MediaWiki version: SVN build
 * PHP version: 5.28
 * MySQL version: 5.130
 * URL: Localhost wiki, for internal usag

I tried installing Extension:Farmer but got the following errors: Warning: require_once($IP/extensions/Farmer/Farmer.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\mywiki\LocalSettings.php on line 132

Fatal error: require_once [function.require]: Failed opening required '$IP/extensions/Farmer/Farmer.php' (include_path='C:\xampp\htdocs\mywiki;C:\xampp\htd ocs\mywiki/includes;C:\xampp\htdocs\mywiki/languages;.;\xampp\php\pear\') in C:\xampp\htdocs\mywiki\LocalSettings.php on line 132

I am using Windows Vista Home Edition, and tried to ensure the configs directory of the extension was writable by the server, but cannot unset read-only on the folder. Anyone able to help?

—84.45.219.185 10:16, 2 February 2009 (UTC)
 * You need to use  with double quotes ("") so that $IP is replaced with its value. <font color="#66A7CC">i <font color="#9966CC">Alex  10:59, 2 February 2009 (UTC)

IAlex, have you ever got this to work or not?? --84.45.219.185 11:14, 2 February 2009 (UTC)
 * For some reason that didn't work when I tried it with double quotes on my install. And how do you unset read-only on Vista?

ConfirmAccount/ConfirmEdit/reCaptcha problem

 * MediaWiki version:1.13.3
 * PHP version: 5.2.6
 * MySQL version: 5.0.67
 * URL: http://wiki.dctp.ws

I have experienced the same problem as this previous thread: Project:Support desk. However, I have already installed all appropriate version of ConfirmAccount, ConfirmEdit, and reCaptcha extensions, with appropriate reCaptcha keys. Now it still works since I have commented the lines related to these extensions-- where is the problem this time?

—Samuel Curtis 20:03, 5 February 2009 (UTC)

Error in installing FCKeditor
when I installed the extension FCKeditor per the instructions and just to check myself had my ISP TMDHosting install the FCKeditor extension I got the following error when trying to access Mediawiki:
 * MediaWiki version: 1.13.3
 * PHP version: 	5.2.5
 * MySQL version: 5.0.51a -community-log
 * URL: improvobiz.com/wiki

Warning: require_once(/home/improvob/public_html/wiki/extensions/FCKeditor/fckeditor/fckeditor.php) [function.require-once]: failed to open stream: No such file or directory in /home/improvob/public_html/wiki/extensions/FCKeditor/FCKeditor.php on line 52

Fatal error: require_once [function.require]: Failed opening required '/home/improvob/public_html/wiki/extensions/FCKeditor/fckeditor/fckeditor.php' (include_path='/home/improvob/public_html/wiki:/home/improvob/public_html/wiki/includes:/home/improvob/public_html/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/improvob/public_html/wiki/extensions/FCKeditor/FCKeditor.php on line 52

What am I doing wrong?

—Normandowe 04:16, 7 February 2009 (UTC)


 * You still need to download the editor. —Emufarmers(T 06:26, 7 February 2009 (UTC)

Gadgets Extension, Problem with Navigation_popups installation

 * MediaWiki version: 1.12.0
 * PHP version: 5.2.6 (apache)
 * MySQL version: 5.0.51a-19
 * URL: http://www.cnel.ufl.edu/itl

I installed the Gadgets extension, because I wanted to add the Navigation_popups gadget. After installing the correct version of Gadgets extension I added the Navigation_popups following these instructions:

- add Gadget-popups.js script - add Gadget-navpop.css script - add * Navigation_popups|popups.js|navpop.css in the Gadgets-definition page - create Gadget-Navigation_popups page for a description of the gadget

I then selected this gadget under the Preferences/Gadgets section, and I did bypass the browser's cache but the popup gadget still didn't work.

I installed another gadget, wikEd, to make sure that my installation procedure was correct, and this gadget works fine.

Can you tell me what I am missing on the Navigation_popups gadget installation?

Thank you,

—Erioni 03:10, 8 February 2009 (UTC)

(RESOLVED)

 * MediaWiki version: 1.6
 * PHP version: 5.x
 * MySQL version: 5.0.16
 * URL: intranet

What extension implements ?

—129.21.241.9 21:38, 8 February 2009 (UTC)


 * ParserFunctions. —Emufarmers(T 05:37, 9 February 2009 (UTC)

(RESOLVED) Problem passing $user back from UserLoadFromSession hook

 * MediaWiki	1.13.0
 * PHP	5.2.6 (apache2handler)
 * MySQL	5.0.67-log
 * URL: (internal)

I am having a problem with the UserLoadFromSession hook.

In the hook, I use User::newFromName to obtain the user object and if it's a new user, I authenticate it with our SSO service and add it to the database; otherwise I update $user and return, leaving $result as null. I've battled with this code a fair bit, but have learned from looking at CASAuthentication's use of this hook and believe that I'm now doing things "the right way". However, although $user is set up as expected when I leave the hook, $this in loadFromSession doesn't contain the values I've set up in the hook. I've even used the ugliness of var_dump to splat the $this array onto the screen and all the variables are null.

Here's the relevant part of the code and the deugging output. I can supply the full hook code if necessary, but am trying to keep this report as succinct as possible.

1. Bits of the hook: <?php

global $wgHooks;

$wgHooks['UserLoadFromSession'][] = 'fnUserAuthTGST';

...

function fnUserAuthTGST($user, &$result) {

$fname  = "D3UserAuthTGST::fnUserAuthTGST"; $SSO    = "https://xxxxxx.com/login/sso/SSOService?app=d3wiki&returnURL="; $errpage = "http://d3wiki.xxxxx.com/d3wikiaccess.php"; $allowed = 300; # Five minutes diff is allowed. logTGST("Page: " . $_SERVER['REQUEST_URI']); ....

// This returns the user object if it exists: $u  = User::newFromName($userName); $uid = $u->getId;

logTGST("After newFromName, uid is $uid");

if ( $uid == 0 ) { .....

$user = $u;

$myid  = $user->getId; // Trap this for debugging purposes ... logTGST("About to exit hook with user->mId = $myid"); return true; // To continue loading the user...

} // fnUserAuthTGST 2. Hacked section of User.php: private function loadFromSession { global $wgMemc, $wgCookiePrefix;

$result = null; wfRunHooks( 'UserLoadFromSession', array( $this, &$result ) ); >      wfDebugLog('TGST', '  TGST: loadFromSession result is ' . $result . "\n"); >      wfDebugLog('TGST', "  TGST: user id in \$this is $this->mId and name is $this->mName\n"); if ( $result !== null ) {

3. Output from logTGST and wfDebugLog: 2009-02-09 14:17:04 Cookie exploded: 1234567, Sam.Sexton@xxxx.com, Sam, Sexton 2009-02-09 14:17:04 After newFromName, uid is 3 2009-02-09 14:17:04 DB entry found for employee id 1234567 with user id 3 and name Sam.Sexton 2009-02-09 14:17:04 About to exit hook with user->mId = 3 2009-02-09 14:17:04 wikidbD3-d3_:  TGST: loadFromSession result is 2009-02-09 14:17:04 wikidbD3-d3_:   TGST: user id in $this is  and name is As indicated above, mId is set when leaving the hook, but immediately after the call to it, this (and other values) aren't set in $this.

I really can't see what I'm doing wrong - can anyone else? Or is it a real bug?

—And 10:34, 10 February 2009 (UTC)

-And 12:44, 10 February 2009 (UTC) Not exactly resolved, but I've realised that the updates to $user should not be passed back - reviewing the situation!

Convert wiki rss feeds to real files like feed.xml

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.4 (apache2handler)
 * MySQL version: 5.0.45
 * URL: internal

There are some real good extension which allow me to create a rss feed of any page in my wiki. But like for the "Recent changes" and "New Pages" the rss feed is a link to the datatbase. Now I want to use a toolbar for my browser (www.conduit.com), which requires rss feeds as files like www.domian.com/feed.xml and not as a link to a datatbase. I didn't find any extension which is doing that. Is there one, or any other smart solution?

—80.153.145.11 09:42, 12 February 2009 (UTC)

call_user_func(Ikariam_ParserFunction_Setup) function.call-user-func: First argument is expected to be a valid callback

 * MediaWiki version: 1.13.2
 * PHP version: 5.1.6 (apache2handler)
 * MySQL version: 5.0.45
 * URL: vestia.ikariam-wiki.nl

I wanted to add my own parser to MediaWiki.

For example to parse:

So I started out with the obvious sample and rewrote it a bit to:

<?php

$wgExtensionFunctions[] = 'Ikariam_ParserFunction_Setup'; $wgHooks['LanguageGetMagic'][] = 'Ikariam_ParserFunction_Magic';
 * 1) Define a setup function
 * 1) Add a hook to initialise the magic word

function _Ikariam_ParserFunction_Setup { global $wgParser; # Set a function hook associating the "example" magic word with our function $wgParser->setFunctionHook( 'IKcity', 'Ikariam_ParserFunction_City' ); }

function Ikariam_ParserFunction_Magic( &$magicWords, $langCode ) { # Add the magic word # The first array element is case sensitive, in this case it is not case sensitive # All remaining elements are synonyms for our parser function $magicWords['IKcity'] = array( 0, 'IKcity' ); # unless we return true, other parser functions extensions won't get loaded. return true; }

function Ikariam_ParserFunction_City( &$parser, $param1 = , $param2 = , $param3 = , $param4 = ) { # The parser function itself # The input parameters are wikitext with templates expanded # The output should be wikitext too $output = "<b>Stad : $param1\n"; $output .= "CityID : $param2\n"; $output .= "IslandID : $param3\n"; $output .= "Type : $param4</b>\n"; return $output; }
 * 1)       return $parser->insertStripItem( $output, $parser->mStripState );
 * 2)       return array($output, 'noparse' => true, 'isHTML' => true);

?>

And I added this to my LocalSettings.php file:

$wgIkariamServer = "http://s1.ikariam.nl/"; $wgIkariamImages = "http://ikariam-wiki.nl/images/"; require_once( "$IP/extensions/Ikariam/Ikariam.php" );

I have been reading and searching but the error is propably too obvious so it might be just in front of me but I can't seem to find where I went wrong.

Hugo.

—80.101.136.196 12:31, 14 February 2009 (UTC)

Checkuser Install Script

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.8 (apache2handler)
 * MySQL version: 5.1.30-community
 * URL: localhost

I have put the checkuser extension files into the right place, but how do I run the install script? What program should I use? Thanks in advance, -Genius101 19:22, 16 February 2009 (UTC)

(RESOLVED) ConfirmAccount Extension causes blank page due to missing method pipeList

 * MediaWiki version: mediawiki-1.13.4
 * PHP version: php-5.2.8-win32-installer.msi
 * MySQL version: mysql-5.1.30-win32.exe
 * URL: Internal usage

Hi. I'm new to this so bear with me. I'm using the ConfirmAccount-trunk-r47120.tar.gz extension. I have added the database tables and require_once("$IP/extensions/ConfirmAccount/SpecialConfirmAccount.php"); to the LocalSettings.php.

If I go to the login page -> request one -> fill in form -> press ok. I get a mail to the address I gave in the form. I follow the link in the mail and a page showing me the following is displayed: Your e-mail address has been confirmed and will be listed as such in your account request

If I now log on as sysop and go to Special Pages I have the Confirm Account Requests. I click on that and a blank page is displayed. The error log gives me the following error:

[Tue Feb 17 17:35:38 2009] [error] [client xxx] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /mediawiki/index.php/Special:SpecialPages HTTP/1.1 to file, referer: http://localhost/mediawiki/index.php?title=Special:UserLogin&action=submitlogin&type=login

[Tue Feb 17 17:35:40 2009] [error] [client xxx] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /mediawiki/index.php/Special:ConfirmAccounts HTTP/1.1 to file, referer: http://localhost/mediawiki/index.php/Special:SpecialPages

[Tue Feb 17 17:35:40 2009] [error] [client xxx] PHP Fatal error: Call to undefined method Language::pipeList in  C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\mediawiki\\extensions\\ConfirmAccount\\ ConfirmAccount_body.php on line 95, referer: http://localhost/mediawiki/index.php/Special:SpecialPages

I have searched the PHP files included in the extension and in MediaWiki and the only place I find a reference to pipeList are several calls in ConfirmAccount_body.php. There is no method declaration done within Language.php or any were else as far as I can tell.

I have tried to Google the problem without any success. Any help is appreciated.

BR /Niklas Toral

—192.138.116.230 16:50, 17 February 2009 (UTC)


 * Use the version of ConfirmEdit designed for your version of MediaWiki. —Emufarmers(T 23:37, 17 February 2009 (UTC)

As far as I know I am using the correct version. According to the description of extension Confirm Account 1.41 should work with MW 1.11 and up. Se Extension:ConfirmAccount

I tried to find different versions of the ConfirmAccount code without success. If I click on Download Snapshot I get a message saying: No such extension "ConfirmAccount" even though the extension is there in the list.

I also tried to download MW 1.11.1 to see if pipeList was an available function in Language.php there but I can't find it there either. Is there something I have missed?

BR

/Niklas Toral --192.138.116.230 07:27, 18 February 2009 (UTC)


 * There are versions of the extension available for each MediaWiki branch 1.11 and up, but a given version of the extension may or may not work with a particular version of MediaWiki. Select the 1.13 version of the extension from the ExtensionDistributor; if it wasn't working before, it must have been a temporary problem, because it's working now. —Emufarmers(T 01:17, 19 February 2009 (UTC)

Thanks! Downloadning version 1.13 of ConfirmAccount did solve the problem. I find it a bit strange thet there are newer versions available that doesn't work with the latest release of MediaWiki. I also tried with version 1.14 of ConfirmAccount but then I got the following error:  [Thu Feb 19 08:23:09 2009] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined method User::addNewUserLogEntry in  C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\mediawiki\\extensions\\ConfirmAccount\\ConfirmAccount_body.php on line 568, referer: http://localhost/mediawiki/index.php?title=Special:ConfirmAccounts/authors&acrid=3

Could it be that version 1.14 and Current version is aimed for a not yet released version of MediaWiki? I guess that it would be good to state on Extension:ConfirmAccount which releases that work with the latest MediaWiki download.

—niklastoral 09:12, 19 February 2009 (UTC)

MediaWiki 1.13.4 Install problem - can't find suitable mysql database driver

 * MediaWiki version: 1.13.4
 * PHP version: 5.1.6
 * MySQL version: 14,14 Distrib 5.1.31
 * URL: localhost

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

* PHP 5.1.6 installed Could not find a suitable database driver! o For MySQL, compile PHP using --with-mysql, or install the mysql.so module o For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so module o For SQLite, compile PHP using --with-pdo_sqlite, or install the pdo_sqlite.so module o For MSSQL, compile PHP using --with-mssql not ready, or install the mssql not ready.so module

PHP was included with my RHEL ES 5.2 install and there doesn't seem to be a mysql.so module for RHEL ES 5.2. I googled for problem but solutions all seemed to apply to windows OS. Assistance will be greatly appreciated.

—69.232.227.233 00:21, 26 February 2009 (UTC)

How to calaulate word count of an article according to contributors?

 * MediaWiki version: 1.14.0
 * PHP version: 5.1.6
 * MySQL version: 5.0.45
 * URL:

For example: If an article is written by three contributors: A, B and C. When the article is finally stable and no more editing, is there any extension module that can help me calculate the word count written by each author?

—123.112.60.113 03:57, 28 February 2009 (UTC)


 * MediaWiki version: 1.13.3
 * PHP version: 5.2.8.
 * MySQL version: between 5.0 and 5.1
 * URL: ---

Hello, I'd like to ask if there is any possibility to modify the wikisearch to be able to search through file attachments. In my case, I often use to insert PDF, Word or Excel files to the Wikisites. So it would be very helpful if the Searchbox would also link these files if there is the a agreement to the search. But not only the Name of the file also in the file.

I can't find any extension to this problem so it would be great if you can show me some way to handle it.

Kind regards—192.35.17.30 09:57, 4 March 2009 (UTC)

how to search through file attachments

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.8.
 * MySQL version: between 5.0 and 5.1
 * URL: ---

Hello, I'd like to ask if there is any possibility to modify the wikisearch to be able to search through file attachments. In my case, I often use to insert PDF, Word or Excel files to the Wikisites. So it would be very helpful if the Searchbox would also link these files if there is the a agreement to the search. But not only the Name of the file also in the file.

I can't find any extension to this problem so it would be great if you can show me some way to handle it.

Kind reagards—192.35.17.30 09:58, 4 March 2009 (UTC)

(RESOLVED) Which extension enables usage of If/else or switch - commands?

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.4 (apache)
 * MySQL version: 5.1.30
 * URL: internal

Hello, Can anyone tell me the extension needed to enable usage of IF / ELSE or SWITCH - commands ( it's used in this wiki for example: ffxiclopedia-template )

thx in advance,

—93.198.158.15 16:40, 6 March 2009 (UTC)


 * ParserFunctions. —Emufarmers(T 05:51, 7 March 2009 (UTC)


 * Thank you--87.180.249.165 14:11, 7 March 2009 (UTC)

Extension:ABC -> not available anymore?

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.4 (apache)
 * MySQL version: 5.1.30
 * URL: not available

I tried downloading the Extension:ABC - but after clicking "Download Snapshot" I get this message:

Download MediaWiki extension

''No such extension "ABC"

Select which extension you want to download: - and there's no "ABC" available in dropdown-menu. Isn't it available anymore? and if it still is: how can I install it? thx,

—93.198.159.238 14:01, 9 March 2009 (UTC)

Can you have a survey/poll on 1.13.4

 * MediaWiki version: 1.13.4
 * PHP version: 5.2.6
 * MySQL version:
 * URL: http://www.theglobalidea.com

Mediawiki 1.13.4, We're just starting a wiki for disabled travelers and need to conduct surveys on the wiki.Can this be done? Site: http://www.theglobalidea.com

—69.181.69.255 19:47, 12 March 2009 (UTC)

Main Page Column Extensions?

 * MediaWiki 	1.14.0
 * PHP 	5.2.8 (apache2handler)
 * MySQL 	4.1.22-standard

I have noticed several wiki's now using something that goes along the lines of " <mainpage-endcolumn>, <mainpage-leftcolumn-start>, <mainpage-rightcolumn-start> ". From what I can see this seems to be somewhat of an extension, but I cannot for the life of me, find it anywhere. I would like to know how (or what) I would have to do to potentially use this, so that I could have columns on my mainpage (as often seen on wiki's). So, then. What do I do to use this, or another forum to allow side by side columns? --TheSisko 23:11, 13 March 2009 (UTC)

Installation of Extension:TitleKey

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.7
 * MySQL version: 5.0.67-community-nt
 * URL: localhost

I have a wiki that was running on a flash drive using WOS Portable that I then copied to my Windows Vista laptop, where it runs now. I would like to install Extension:TitleKey so that the search suggestions are case-insensitive, but the installation instructions are not very good. What specific commands do I need to do in order to "run the queries from "? It would be nice if someone could update the installation instructions on the extension's page. Thanks.

—Imperator3733 18:22, 17 March 2009 (UTC)

Permission denied

 * MediaWiki: 1.13.2
 * PHP: 5.2.6 (cgi-fcgi)
 * MySQL: 5.0.67-community-nt
 * URL: intranet
 * extension: http://dev.openbig.net/index.php/Dev.openbig.net:Ratings

I'm trying to install an extension but i get this warning/failure:

[31-Mar-2009 11:00:28] PHP Warning: require_once($IP/extensions/Ratings/Ratings.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: Permission denied in $IP\LocalSettings.php on line 283

[31-Mar-2009 11:00:28] PHP Fatal error: require_once [<a href='function.require'>function.require</a>]: Failed opening required '$IP/extensions/Ratings/Ratings.php' (include_path='$IP\mediawiki;$IP/includes;'$IP/languages;.;C:\php5\pear') in '$IP\LocalSettings.php on line 283 in line 283 of the Localsettings.php: require_once( "$IP/extensions/Ratings/Ratings.php" );

I'm a wiki beginner and i cant find any information about the permission that i need to get things work. And I dont know if it is a problem with the extension or if I must change something...

please help me


 * I just had to select the Ratings folder, rightclick, properties, security and there enable everything (I didn't want to spend my time on finding out what exactly has to get the permission). AndiRay 14:27, 21 April 2009 (UTC)

IIS and LDAP

 * MediaWiki version: latest (sorry couldnt find the version) i downloaded about a week ago
 * PHP version: 5.2.9-1
 * MySQL version: 5.0
 * URL: internal corporate site

Please please please can someone tell me how to configure LDAP using IIS. ive searched the web for 2 days trying to find out and all i can find is Apache configs. Ive downloaded the info from this site and it still doesnt work can someone point me in the right direction or give me some pointers. i would rather figure this out by myself but ive almost hit "the wall" thanks a million

—62.189.175.212 16:12, 7 April 2009 (UTC)


 * The LDAP Authentication extension supports IIS. —Emufarmers(T 22:48, 8 April 2009 (UTC)

how to create new table and handle it in a extension

 * MediaWiki version: 1.12.0
 * PHP version: 5.2.4 (apache2handler)
 * MySQL version: 5.0.45-community-nt
 * URL:

how to create new tables which i need to use in an extension?

any standard / recommended practice to create new tables and use it in a extension?

can you list extensions, which is creating their own tables to store their extension specific data?

—192.8.211.11 11:12, 14 April 2009 (UTC) Prince Gerald

how to add a new tab (top right of the page)

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.4
 * MySQL version: 5.0.51
 * URL: NONE

Hi, I have installed an extension (Tasks_Extension). I was able to add the special page link into my special page (Spécial:Pages_spéciales) but I don't know how to add the same link to the top right of the page (specialpages tabs).

I suppose is not so hard too do, so please help me :) !!!

—Bricecol 09:41, 17 April 2009 (UTC)

Document Management

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.6 (cgi-fcgi)
 * MySQL version: 5.0.45
 * URL: http://www.dci-online.net/wiki/ (using password via .htaccess)

I wonder whether a plugin exists which provides simple document management functionality. So that you can upload files (pdf, doc, jpg, gif,...) and categorize them. Our club wants to replace the existing communication platform on nexo.com with a mediaWiki-installation to handle all documentation in one place.

Thanks in advance!

—88.77.154.190 15:14, 18 April 2009 (UTC)

Calendar for yearly events?
Hi, is there any calender extension which allows - besides the standard calendar features - to enter annual events like birthdays? --JazzmanDE 19:43, 20 April 2009 (UTC)

TableEdit 0.8 extension install fails . . . sql script errors

 * MediaWiki version: 1.14
 * PHP version: 5.2.5 with Suhosin-Patch 0.9.6.2
 * MySQL version: 14.12 Distrib 5.0.26, for suse-linux (x86_64) using readline 5.1
 * Web server version: apache2-2.2.3-16.21
 * URL: Local Intranet

Hello, I have installed a local intranet version of media wiki in SLES 10 x86_64 running in Apache2. The defaults work great! However I wanted to add the TableEdit extension module to my wiki. I followed the directions exactly only to run into some Mysql database errors. Much google searching has not pointed me to a fix as of yet;

- I downloaded TableEdit.0.8.tgz - Extracted it into the extension directory ; /srv/www/htdocs/wiki/extensions/TableEdit - Followed the instructions in the INSTALL - ran the install command ; mysql -u user -p < sql/TableEdit_tables.sql Enter password: ERROR 1046 (3D000) at line 7: No database selected - So I did ; mysql -u wikiuser -p

mysql> use wikidb mysql> source /srv/www/htdocs/wiki/extensions/TableEdit/sql/TableEdit_tables.sql Query OK, 0 rows affected (0.00 sec)

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'KEY `template` (`template`), KEY `page_name` (`page_name`) ) ENGINE=MyISAM DE' at line 13 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'KEY `box_id` (`box_id`) ) ENGINE=MyISAM  DEFAULT CHARSET=latin1' at line 10 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'KEY `box_id` (`box_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1' at line 6 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'KEY `box_id` (`row_id`) ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1' at line 6 Any suggestions or a fix would be greatly appreciated! Thank-you, -- Ryan Letourneau

E-mail: rletourneau@keypics.com —

—68.179.65.201 00:05, 23 April 2009 (UTC)


 * MediaWiki version: 1.14
 * PHP version: 5.1.6.20
 * MySQL version: 5.0.45-7
 * URL:

1. How to configure number of issues listed per page in View of Issue Tracker extension. At present not able to see more than 30 Issue per user per project. Also the pages is missing with a pager to second page. However when queried with specific Issue ID the issue is shown with details. Want a pager to the issue list along with the details of the Location and file name to configure the number of items in the Issue list.

—Yeshwanth 07:42, 24 April 2009 (UTC)

Perfect solution for adsense

 * MediaWiki version: Latest
 * PHP version: 5
 * MySQL version:
 * URL:

I have been searching to find an easy way to add adsense to wiki but it seem virtually impossible to do so. Every one is giving some hacks or extensions, i cannot understand these. Kindly some one help me. I am lost

—58.27.155.168 20:38, 17 February 2009 (UTC)Jawad AHmed


 * The Google AdSense 2 extension works fine. —Emufarmers(T 23:39, 17 February 2009 (UTC)


 * I am new at this too but I was able to figure out the Google AdSense 2 extension and get it working on my site Debatrix.org. I would be willing to answer questions and help getting this installed. Just leave a message on my user page. --Jake4d 15:48, 11 May 2009 (UTC)

SocialProfile - install.php not working

 * MediaWiki version: 1.14
 * PHP version: PHP/5.2.6
 * MySQL version: 5.0.67
 * URL: xampp

I tried to run the install.php file per command line of firebug, but always get back a syntax-problem in line 93. But there is nothing wrong. I put the adminsettings.php in the root-folder. I think, that the problem is the adminsettings.php. Maybe it's because of xampp. I have no clue. I'm not familiar with this command-line stuff too. I appreciate your help. Thanks

Error:

message: SyntaxError: invalid flag after regular expression

stack: "@:0\neval("with (_FirebugCommandLine) {\n /extensions/SocialProfile/install.php\n \n};")@:0\n("with (_FirebugCommandLine) {\n /extensions/SocialProfile/install.php\n \n};")@http://localhost/mediawiki-1.14.0/index.php/Main_Page:92\n([object Event])@http://localhost/mediawiki-1.14.0/index.php/Main_Page:65\n"

Thanks

—84.144.102.111 10:19, 9 May 2009 (UTC)


 * You need shell access to your server. Talk to your host about this. —Emufarmers(T 17:42, 9 May 2009 (UTC)

I use xampp. Thus I could configure this. But I don't know how! I can not find something about ssh.


 * If you're running xampp on your personal computer, you don't need shell access: you should be able to open the command prompt by going to "Run" in the start menu and entering "cmd" (on Windows XP, anyway). Look up how to get to the command line on whichever OS you're using. —Emufarmers(T 19:27, 9 May 2009 (UTC)

I tried this already, but because of missing packages it wasn't working. You have to install php5-cli and php5-mysql!! Now I get: A connection to the database could not be established. Again I have no clue. I put the root-data for mysql in the adminsettings.php. But it won't work.

ParserFuntion Download Error

 * MediaWiki version: 1.14.0
 * PHP version:
 * MySQL version:
 * URL:

I am trying to download the ParserFunctions extension to create a Portal page on MediaWiki. Getting the following error message: svn: Working copy '/mnt/upload5/private/ExtensionDistributor/mw-snapshot/branches/REL1_14/extensions' locked svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

—209.47.47.34 20:04, 19 May 2009 (UTC)

LDAP Authetication Problems

 * MediaWiki version: 1.12.0
 * PHP version: 5.1.6
 * MySQL version: 5.0.22
 * URL: Intranet only

For some WIKIs that are running in our Intranet, I need to authenticate our users using LDAP and the following two WIKI groups: Readers (testgroup) and Writers (testgroup2). Anonymous should not be able to read the WIKI pages.

my problem is, that using the syntax:

$wgLDAPRequiredGroups = array(

"testLDAPdomain"=>array(

"cn=testgroup,ou=groups,dc=LDAP,dc=example,dc=com", "cn=testgroup2,ou=groups,dc=LDAP,dc=example,dc=com" ), I cannot define different rights for users in the testgroup than the users in the testgroup2 have. This mean, if a user is in one of each two groups, he will always get the Writers access.

Can you please explain how I can define two groups, with different rights (Readers & Writers)?

—80.254.163.214 07:03, 24 May 2009 (UTC)

(RESOLVED) Configuring MediaWiki SMTP to send email to users

 * MediaWiki: 1.11.0
 * PHP: 5.2.5 (apache2handler)
 * MySQL: 5.0.50-enterprise-gpl-nt-log

I am trying to configure the SMTP to send users email. I put the SMTP array of parameters in the localsettings.php file. But I get an error when I try to click the 'email password' dialog from the login page. In the error below, it mentions the incluses\UserMailer.php line 108.... that is the line (	require_once( 'Mail.php' );). Where is the Mail.php file located? I don't see it under the includes folder. Is there a wiki page the describes the complete instructions for configuring MediaWiki mail?

Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in D:\apache\apache2.2\htdocs\mediawiki\includes\UserMailer.php on line 108 Fatal error: require_once [function.require]: Failed opening required 'Mail.php' (include_path='D:\apache\apache2.2\htdocs\mediawiki;D:\apache\apache2.2\htdocs\mediawiki/includes;D:\apache\apache2.2\htdocs\mediawiki/languages;.;C:\php5\pear') in D:\apache\apache2.2\htdocs\mediawiki\includes\UserMailer.php on line 108

Melissa —Doughertyma 19:46, 23 December 2008 (UTC)


 * As Manual:$wgSMTP tells you, you have to install PEAR's Mail package for it to work. -- Sayuri 13:34, 16 January 2009 (UTC)


 * I still had the same problem even after installing pear's MAIL package. Turns out I also had to update the include path in LocalSettings.php:

$PEAR_PATH = "C:/php/pear"; $path = array( $IP, "$IP/includes", "$IP/languages", $PEAR_PATH ); set_include_path( implode( PATH_SEPARATOR, $path ) );
 * HTH --MobiGeek 03:20, 25 May 2009 (UTC)

new Article($wgTitle->newFromText('foo')) doesn't work as expected on pages with &oldid in url

 * MediaWiki 	1.14.0
 * PHP 	5.2.9 (cgi)
 * MySQL 	5.0.67-community

I am developing Extension:CustomSidebar.. in it, I sometimes load text from other pages. This works fine, except for when I'm viewing page histories. When viewing previous versions of pages, new Article($wgTitle->newFromText('foo')) returns the current article, not the artile 'foo'.

Is this a bug, or by design?

Thanks —Frantik 05:43, 6 June 2009 (UTC)


 * Use Title::newFromText</tt> - it's a static function, it doesn't need to be called from an existing object. That said, the behaviour probably is a bug. Happy ‑ melon 10:17, 6 June 2009 (UTC)
 * I updated my code to use a static function, but the behavior is the same. Thanks for the response.  I'll try to submit a bug report --Frantik 14:24, 6 June 2009 (UTC)
 * I posted a bug report --Frantik 22:27, 7 June 2009 (UTC)

Using $wgParser->parse($string, $wgTitle, new ParserOptions, true, true); causes error...
Using $wgParser->parse($string, $wgTitle, new ParserOptions, true, true); causes all headers prior to the object that used the extension that called this turn into <a name=".7FUNIQ7a2f500f6cab414d-h-0--QINU.7F_Hello" id=".7FUNIQ7a2f500f6cab414d-h-0--QINU.7F_Hello"></a> UNIQ7a2f500f6cab414d-h-0--QINU Hello (its is mean't to be just Hello as a Header 2nd level.) why does this happen and how can I fix it? --202.14.216.129 01:17, 8 June 2009 (UTC)
 * The symptom is that the parser is exposing strip markers (placeholders that mark where content such as links will later be reinserted). The problem is that by calling the parser in that fashion, you are 'resetting' the parser, losing its memory of which strip markers it has already inserted.  I cannot remember off the top of my head what the solution is; but try having a look at other extensions and see how they handle parsing content in similar situations. Happy ‑ melon 22:35, 11 June 2009 (UTC)

PdfBook Extension "Download Not Found/No such Extension"

 * MediaWiki version: 1.5
 * PHP version: 5.2.6
 * MySQL version: 5.0.67 SUSE MySQL RPM
 * URL:

Hi, When I click on the "Download Snapshot" link at the top right of the "PdfBook" Extension page @ Extension:Pdf Book I get sent to the following page @ Special:ExtensionDistributor/PdfBook which tells me No such extension "PdfBook"

Any assitance that could be offered to assist me in converting a mediawiki which is currently hosted as a book would be greatly appreciate.

—97.100.141.225 18:47, 22 June 2009 (UTC)aaudu

Extension:PDF_Writer, ConfirmAccount and Extension:WikEd

 * MediaWiki version: ??
 * PHP version:  ??
 * MySQL version:  ??
 * URL:

Hello, I'm a software developer but without any experience in MediaWiki. My client needs adds the Extesions :PDF_Writer, ConfirmAccount and WikEd.

Before accept the job, I need to assess the project and konw if it takes me a lot of time or is easy.

My question : Is necessary to make some develop after the instalation of extensions ???

best regards

David

—83.43.35.21 20:53, 25 June 2009 (UTC)

SocialProfile Returns a HTTP500 Internal Server Error

 * MediaWiki version: Most current
 * PHP version: Most current
 * MySQL version: Most current
 * URL: Not available - private intranet site

We installed MediaWiki on a virtual machine. Everything was working fine, until we installed the SocialProfile extension. We configured SocialProfile with the directions, exactly, but now none of the profiles work. The wiki is still working, but when we go to http:// /wiki/index.php/User:NewUser, all we get is a HTTP 500 error. No data, nothing, just a HTTP 500 Internal Server Error. Any help would be useful.

—149.173.6.25 16:34, 29 June 2009 (UTC)

what is the difference between include and require_once ?
Thanks for your answer, —almaghi 12:24, 12 June 2009 (UTC)
 * Google is your friend. Happy ‑ melon 13:38, 12 June 2009 (UTC)
 * Thanks for this. I'll better try Googling before questioning... --almaghi 13:45, 12 June 2009 (UTC)

Can't you see that the spelling is different? LOL. Anyway, I also don't know and I googled it. It says:


 * The require statement includes and evaluates the specific file.
 * The include statement includes and evaluates the specified file
 * include produces a Warning while require results in a Fatal Error.

What does it mean? Does it mean that include is better than require since I presume it will continue to execute? &mdash; PM Poon 16:58, 21 June 2009 (UTC)

I don't think that you can say that any one of them is "better", just different in what they do. By the way, Require is diferent from require_once. If you call require twice on the same file, it will include the file twice, but when you use require_once, it won't. There's also an include_once; 149.173.6.50 20:37, 29 June 2009 (UTC)

Uploading/Downloading Perl scripts

 * MediaWiki version: 1.15.0
 * PHP version: 5.2.6 (cgi-fcgi)
 * MySQL version: 5.0.67-log
 * URL: intranet

My plan for mediawiki was to use it as somewhat of a CMS (content management system) for different scripts (perl, shell, php, javascript, etc), and configuration files (xml), etc. Possibly C++/Java binary files as well.

I've configured MediaWiki to allow all extensions/uploads. My problem is with Perl scripts (and I imagine I'd have problems with other types of scripts, as well).

I can upload a perl script just fine - viewing/downloading it after upload is a different story. If I click on a perl script in MediaWiki, I get taken to a "500" type internal server error page. If I try to download it (right-click/download), it claims the file is not found.

I just want mediawiki to allow the user to download the file to local disk, or possibly show the contents of the script on a new page, as it would with a text file.

Any ideas?

—99.37.115.49 04:05, 9 July 2009 (UTC)

After upgrade from 1.9 to 1.15.1, NamespacePermissions doesn't work.

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.5
 * MySQL version: 5.1.22
 * URL: http://wiki.micros.com/wiki (internal)

As the subject says: after I've upgraded to 1.15.1, NamespacePermissions no longer works. There are no error messages, I simply cannot edit any pages. A snippet of LocalSettings.php is here. Timneu22 23:42, 15 July 2009 (UTC)
 * Use the Lockdown extension instead; it's better written and supported, is known to work on v1.15, and seems to have all the functionality you need. Happy ‑ melon 10:12, 16 July 2009 (UTC)

Skype Extension

 * MediaWiki version: 1.16alpha-wmf (r53410)
 * PHP version: 5.2.4-2ubuntu5wm1 (apache2handler) (i loves apaches, skalpin n stuff)
 * MySQL version: 4.0.40-wikimedia-log
 * URL: http://meta.wikimedia.org/wiki/Board_elections/2009/Candidates/en#Beauford_Anton_Stenberg_b9_hummingbird_hovering_.28B9_hummingbird_hovering.29

Oh this is all so esoteric, ur askin me my squeal version an evryfink. I am a dirty filthy end-user that is code-dumb. I am trying to enable the Skype Extension on this page Board elections/2009/Candidates/en & I would really appreciate some support cos i'm *confuzzled* & confounded. R there join the dots instructions for making this integrate with my Wikimedia signatures across Projects? I don't have an integrated Wikimedia a/c either. Mine are all single and fancy-free. ThanXta —B9 hummingbird hovering 12:58, 26 July 2009 (UTC) PS: I would love the join.the.dots cheatsheets so I may give them to the other candidates.

FlaggedRevs: Setting Stable view by default

 * MediaWiki version: 1.12.0
 * PHP version: 5.2.6-1+lenny3
 * MySQL version: 5.0.51a-24+lenny1
 * Extension: FlaggedRevs-MW1.12-r31252

Hi. Can I set the STABLE view TAB by default instead of the current one in all articles ? (What I mean is: When someone goes to an article link, it has to show its stable version) I know there's a method using the URL with "&stable=1" but I need to set this variable a default value without specifying it at the URL.

(I think that if I modify the src code it can be done, but I prefer not to do it unless that's the only way).

Is it possible ?

Thank you in advance. Alejandro

—200.123.101.200 15:18, 27 July 2009 (UTC)

MultipleUpload Extension installation error

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.6
 * MySQL version: 5.0.81-community
 * URL: http://ethersagaclub.com/wiki

After trying to install the MultipleUpload Extension to my wiki under the /extensions directory and put in require_once("extensions/MultiUpload/SpecialMultipleUpload.php"); in the LocalSettings.php file, I get the following error:

Warning: require_once [function.require-once]: URL file-access is disabled in the server configuration in /home/esclub/public_html/wiki/LocalSettings.php on line 128

Warning: require_once(http://ethersagaclub.com/wiki/extensions/MultiUpload/SpecialMultipleUpload.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/esclub/public_html/wiki/LocalSettings.php on line 128

Fatal error: require_once [function.require]: Failed opening required 'http://ethersagaclub.com/wiki/extensions/MultiUpload/SpecialMultipleUpload.php' (include_path='/home/esclub/public_html/wiki:/home/esclub/public_html/wiki/includes:/home/esclub/public_html/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/esclub/public_html/wiki/LocalSettings.php on line 128

Line 128 is where I put the require_once code at.

—76.173.106.64 06:31, 26 August 2009 (UTC)

Copy-past with effect of automatic upload extension

 * MediaWiki version: 1.15.1
 * PHP version: 5

Hi, I don't find an extension that behaves such: when saving a wiki entry, all the lines like (say):

file:///home/user/network.txt file:///home/user/images/nice.png http://www.wishuponaster.com/photos/horse0.jpg

will be processed by the effect of:


 * 1) uploading the file to the wiki server from the local disk (two first cases) or from the internet (last one)
 * 2) have this material displayed in the wiki by appearing as:

[[media:network.txt]]

in the same place as the original location was given.

Does such an extension exist? Is there anything bad in its design if I'd like to write it?

—152.78.195.139 20:22, 9 September 2009 (UTC)

How can I get the page title with php instead of MagicWord { { PAGENAME } }

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.51b-community
 * URL: test-system on localhost

I wrote an extension replacing an specific tag in the wikitext. This extension needs to get the page title.

That's how I did it: the extension gets the url from $_SERVER['REQUEST_URI'] and extracts the title with regexp.

Problem: now I have to edit this pages containing the specific tag via curl through a special page, and $_SERVER['REQUEST_URI'] has no result anymore, since the extension is executed by api.php?action=edit.

Question: How can I pass the page title to the extension's script? I tried <specific_tag ... page="{ {PAGENAME} }" />, resulting in $args['page']= { {PAGENAME} } instead of the desired title of the page... I tried it with $wgPageName, too, but no result.

Can someone help please?

—92.193.2.185 21:20, 12 September 2009 (UTC)


 * MediaWiki version: 1.15.1
 * PHP version:
 * MySQL version:
 * URL:

Native MathML presentation. I know IE still does not support this but for a segment of academics presenting our formulae in mathML to each other in Wiki keeps it cleaner than have TeX involved. Is there a way to have the MathML presented (not ASCIIMathML) and let the intelligent browsers handle it.

Thank You Joseph Pearce

—Joseph.pearce 14:15, 14 September 2009 (UTC)


 * MediaWiki version: 1.15.0
 * PHP version: 5.2.10
 * MySQL version: 5.0.24
 * URL:

Extenstion in subdir doesn't seem to work
I've installed the extention for the parserfunctions. When i install it in the root of extentions, it works fine, but the dir will be a mess.

require_once("$IP/extensions/ParserFunctions.php");
 * 1) require_once("$IP/extensions/ParserFunctions/ParserFunctions.php");

When i install it in a subdir, the whole wiki doesn't work anymore. What do i do wrong?

Can someone help please?

—84.53.68.26 10:58, 15 September 2009 (UTC)

Tree And Menu extension does not work

 * MediaWiki version: 1.15.1
 * PHP version: 5.3.0 (apache2handler)
 * MySQL version: 5.1.37-community-log
 * URL: unreachable (intranet only)

Hello,

I tried to install the TreeAndMenu extension as indicated in this link : Extension:TreeAndMenu

My problem is that when I type this menu for example :

I see exactly what I entered... (like if I entered the code between the nowiki parsers)

In the special page "Special:Version", the TreeAndMenu extension does not appears...Nevertheless, the DynamicPageList extension appears and works...

How can I solve this problem ?

Thank you very much for your help.

Best regards. Damien

—193.57.67.241 12:12, 21 September 2009 (UTC)

png preview successful, but after save page, the png image can not display.
Hi,

I try to display $$formula$$ on Mediawiki-1.15.1, it seems all the converts are successful, I can find the ".png" images in the directory "/wiki/images/math...", but the png images can not display on the wiki page.

I right click(mouse) the error image on wiki page, see the image properties,it shows:

Protocal: HyperText Transfer Protocol Type: Not Available Address(URL): http://sbtamino2.vtt.fi:8088/mediawiki-1.15.1/index.php/images/math/8/9/4/894f312e78ebc09a4e78c11b79cf4a8c.png Size: Not Available Dimentions: 195 * 53 pixels

I am using XAMPP server including Apache 2.2.12, MySQL 5.1.37, PHP 5.3.0.

Please help me with this question. Many Thanks!

Brudy Zhao


 * It sounds like your URLs are misconfigured; properly implement short URLs. —Emufarmers(T 01:38, 2 October 2009 (UTC)

Hi, Emufarmers! Thank you for your hints. I found it was a URL error of these PNG images, in the above image URL, it should not contain "index.php" text. Do you have any experience to remove "index.php" text from the URL?


 * Manual:Short URL —Emufarmers(T 04:51, 3 October 2009 (UTC)

Category "exclusion in print" in Extension:Collection
(Wikimedia sites)
 * MediaWiki version: 1.16alpha-wmf (r57236)
 * PHP version: 5.2.4-2ubuntu5.7wm1 (apache2handler)
 * MySQL version: 4.0.40-wikimedia-log
 * URL: fr:Catégorie:Wikipédia:Exclure lors de l'impression

In the french-speaking Wikipédia, we would like to change the default category MediaWiki:Coll-exclusion_category_title of the extension:Collection (from Exclure lors de l'impression</tt> to Wikipédia:Exclure lors de l'impression</tt>). I changed the message MediaWiki:Coll-exclusion_category_title but it seems there is no effect : for example, the template fr:Template:Article principal is already present in the PDFs.

I thought there was some delay due to the replication (?) between servers, but I changed the category yesterday and the templates are still present in the PDFs. So is there some other thing to do or do we wait?

Thanks ~ Seb35 11:59, 5 October 2009 (UTC)

robohelp2wiki does not work

 * MediaWiki version: mediawiki-1.15.1.tar.gz
 * PHP version: 5.3.0
 * MySQL version: 5.1
 * URL: not yet released outside our office

Tried to use the RoboHelp2Wiki extension to MediaWiki, and got the following error:

Page edit layout is changed. the pattern needs to be rebuilt

Wrote to the author, but have not received a response, and it looks like he's been out of the business for a while now. Last entry on his site was at least a year ago.

We're just trying to get our product API documentation up on our wiki. There will be four topics, each with a set of APIs - one per page. They currently exist as HTML docs, which were done in RoboHelp (obviously).

The hierarchy is: Pretty simple, right? And the only people who will be updating these docs are our in-house devs.

I'm a contractor who came in to edit the documentation - it's currently out of date. I'm a developer, not a tech writer, so I'm unfamiliar with RoboHelp and was hoping this tool would just get them up on the wiki where I could just edit them in the place we want them to be.

If I have to do this by hand, are there instructions anywhere for creating a main page (one for each of the topics) and then linking each of the api methods that relate to it? Then creating the next topic and creating that new topic's set of API docs?

I don't need anything that complicated - at least, I don't think it should be all that complicated. If you have a help page/topic that you think addresses what I need to do, please forward. If you think there's a chance of getting the extension to work, then let me know that.

Thank you so much in advance for your help with this,

—67.88.218.250 19:02, 13 October 2009 (UTC) Mary Ann Davison

pdfbook creates a PDF with all Articles in a category. The Link from the MasterPDF to the Real PDF is wrong

 * MediaWiki version: 1.15.1
 * PHP version: 5.2
 * MySQL version: 5.0.32
 * URL: http://server/wiki

I have a Categorie with a lot of Articles. If I click to the Link "export as PDF" (in German: "Als PDF ausgeben" then he creates me a PDF with one line: its a links with the Text "all Articles in PDF" (in German: Kategorie - alle Artikel als pdf). This link is wrong. The links refers to http://serverhttp//server/wiki/index.php?title=Category:ADempiere&action=pdfbook instead of http://server/wiki .....

How can I fix that?

Thanks a lot for the support!

—Turricum 13:06, 15 October 2009 (UTC)

unable to install chat on mediawiki
Hello everybody. I installed mediawiki on my linux ubuntu server 9.04 machine,is working very good, almost eveyone in LAN, is using. The backup process and recovery also was successful after many efforts.

Now I try to install chat extenstion on my mediawiki, but I receive error. I follow the structure in link below" Extension:Chat Also I installed . To download phpfreechat, I used the follwing link, and I downloaded on linux machine. Now I try to install it (phpfreechat) which now Is on my desktop(phpfreechat.php), but I cannot install using this command (sudo apt-get install phpfreechatx.x). It says, there is no package. Also I tried with root permission, as well. http://linux.wareseeker.com/Internet/phpfreechat-1.0-beta-11.zip/317847.

It's really appreciated to tell me the steps in more details.

Thanks in advance Mona Mortazavi IT-Specialist —Mona mrtzvi 16:56, 7 November 2009 (UTC)

Extension: DeleteBatch fails with ' Call to undefined method OutputPage::addWikiMsg '

 * MediaWiki version: 1.11.2
 * PHP version: 5.2.0
 * MySQL version: 5.0.27-community-log
 * URL: http://ldndwm322560/mediawiki-1.5.2/index.php/Special:Specialpages

When the 'Delete batch of pages' link is clicked on I get the error:

Fatal error: Call to undefined method OutputPage::addWikiMsg in C:\Program Files\EasyPHP 2.0b1\www\MediaWiki-1.5.2\extensions\DeleteBatch\DeleteBatch.body.php on line 85

I think it likely that I need to update my mediaWiki version; please could someone tell me what is the safest version to update to?

I tried updating to 1.15.1 - the download page said this was the latest version - but now I get:

Fatal error: Call to undefined method XmlSelect::addOptions in C:\Program Files\EasyPHP 2.0b1\www\mediawiki-1.15.1\extensions\DeleteBatch\DeleteBatch.body.php on line 148

—141.228.106.151 17:16, 16 November 2009 (UTC)


 * MediaWiki version: 1.15.1
 * PHP version: 4.4.1
 * MySQL version: 4.0.25
 * URL: www.mobilityfreak.com/wiki

I am having trouble using the extension for connecting MediaWiki with Drupal 5.10.

At the moment I activate the module in Drupal, this is what happens:

a. When I first try to login I get a message: Fatal error: Call to undefined function: str_split in F:\webspace\disk15\Newfreak\www\sites\all\modules\mediawikiauth\AuthDrupalEncode.php on line 31

b. At the second login trial, I login (to Drupal).

c. When I want to logout I need to do it twice, since at the first time I am not logged out.

d. When I press the link to my Wiki, I get there but it seems not to have identified the cookie, since I am not logged in there.

e. Last but not least, I (expectedly) cannot manually login to MediaWiki.

I need help with that ASAP, I wanted to implement the Wiki in the next weeks.....

Thanks,

Helio Diamant

—85.250.104.49 11:12, 27 November 2009 (UTC)

Show/Hide buttons
I am on a wiki which is local to my home island, Shetlopedia (http://www.shetlopedia.com). For a while I've tried to get the show/hide button links over but I haven't been able to figure out how to do it. Do I have to install an extention or is this simply a template one can make with code?

To be entirely precise, I mean the kind of show/hide that is at the very bottom of | this page


 * MediaWiki version: Unknown, not the owner of the site, presumably the most up-to-date.
 * PHP version: As above
 * MySQL version: As above
 * URL: http://www.shetlopedia.com

Thank you

—139.133.7.38 14:35, 27 November 2009 (UTC)

Code Review for User:DaSch/WeCoWi.php

 * MediaWiki version: 1.16
 * PHP version:
 * MySQL version:
 * URL:

Can somebody please review this extension code. The problem is that when having the extension activated the content of the page is not displayed. Headers, Headings, Categories, Menues are displayed but not the content between Heading and Categories. Another problem is that the __NOTITLE__ does not work because the saved variable is not saved correctly.

—DaSch 18:31, 17 January 2010 (UTC)

Mass unpatrolling
Could we please manage the unpatrolling action in a list, by ticking and/or pasting a category of pages? JackPotte 19:33, 6 January 2010 (UTC)

Anterior approval
Would it be possible to apply the patrolled label on all contributions of the patrollers group, and not only to those post-Patrolled_edits installation? JackPotte 20:59, 7 January 2010 (UTC)

Bot flag
It's almost unreadable: could we please filter the patrolled logs by hiding the bots? JackPotte 18:45, 14 January 2010 (UTC)

Undeletable exclamation mark
I've reported the bug. JackPotte 20:19, 19 January 2010 (UTC)

A question

 * MediaWiki version: 1.16alpha-wmf
 * PHP version: 5.2.4-2ubuntu5.7wm1 (apache2handler)
 * MySQL version: 4.0.40-wikimedia-log
 * URL: Georgian wikipedia

Hello, sorry to disturb you, but can you please explain how to install an extension to wikipedia? I'm an admin at ka-wiki, and would like to install the abuse filter extension. The instruction on the page of the extension doesn't suit, as it was difficult to find localsettings.php. So, if you please, can you give some instructions, or point to a page where all this is explained? Regards,

—Gaeser 06:35, 19 January 2010 (UTC)
 * All such requests should be posted to Bugzilla, with link to discussion establishing community consensus regarding that. Max Semenik 06:39, 19 January 2010 (UTC)
 * All right, thank's a lot. :)--Gaeser 14:14, 19 January 2010 (UTC)


 * MediaWiki version: 1.15.1
 * PHP version: 5.1.6
 * MySQL version: 5.0.45
 * URL:

I'm running redhat Linux 5.3. I believe I've seen all the different extensions out there for exporting to different formats but I haven't found one that suits my needs. I need to be able to export the wiki pages into a PDF or HTML for printing and such. Like I said I've seen the few extensions that are out there and believe that the PDF extension might work for me but it requires htmldoc which doesn't seem to be available to Redhat. Do you have any recommendations? Thanks for your great work.

—158.147.20.62 13:48, 5 February 2010 (UTC)

Short page list - enhancement

 * MediaWiki version: The latest version of MediaWiki that is used in Malayalam Wikipedia
 * PHP version:
 * MySQL version:
 * URL: http://ml.wikipedia.org

This is a feature request in the MediaWiki software regarding the short pages list.

Short page in English Wikipedia
 * http://en.wikipedia.org/w/index.php?title=Special:ShortPages&limit=500&offset=0

Short page in Malayalam Wikipedia
 * http://ml.wikipedia.org/w/index.php?title=Special:ShortPages&limit=500&offset=0

Currently the short page link displays all the short pages irrespective of its nature. We Malayalam Wikipedians would like see some feature that will help us to sort out the (disambiguation) pages from the short pages list.

I am asking this feature specially by considering the short page list in Malayalam Wikipedia: http://ml.wikipedia.org/w/index.php?title=Special:ShortPages&limit=500&offset=0

We would like to see a feature that will hide all the (നാനാര്‍ത്ഥങ്ങള്‍) (equivalent of disambiguation page) pages in Malayalam Wikipedia.

—Shijualex 08:30, 19 February 2010 (UTC)


 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

—69.63.57.3 21:29, 6 March 2010 (UTC)

Latex Math functions not working

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9 (cgi)
 * MySQL version: 5.0.77mm0.1-log
 * URL: http://natcguild.org/wiki/index.php?title=Main_Page

The problem is that my installation does not recognize Math functions that are supposed to work. I have taken the functions from here: LaTeX/Mathematics

And I have verified they work in your sandbox.

I am using standard wiki installation, I have added the textvc binary to it and I have added the following in LocalSettings:

$wgMathPath        = "{$wgUploadPath}/math";

$wgMathDirectory   = "{$wgUploadDirectory}/math";

$wgTmpDirectory    = "{$wgUploadDirectory}/tmp";

Some functions work and other don't. Any help or thoughts will be highly appreciated.

—87.118.135.131 10:01, 9 March 2010 (UTC)

Uniwiki how to actually add a layout to the options when creating a new page?

 * MediaWiki version: 1.15.2
 * PHP version: 5.2.9
 * MySQL version: 5.0.90
 * URL:

I have installed Uniwiki and using the GenericEditPage and the CreatePage which work fine. When I create a new page it asks for a layout. I've read the docs and know the format of the layouts, but how do I actually add a layout of my own design? The docs speak of the layout namespace and I'm logged in as the admin, but I dont know where this namespace is or what format to save the custom layouts? —79.141.39.188 15:18, 10 March 2010 (UTC)

Sphinx Search Special Page Query Failed
Product 	Version MediaWiki 	1.15.1 PHP 	5.2.10-2ubuntu6.4 (apache2handler) MySQL 	5.1.37-1ubuntu5.1 Installed extensions Special pages SphinxSearch (Version 0.7.0) 	Replace MediaWiki search engine with Sphinx. Svemir Brkic, Paul Grinberg
 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

When I run Sphinx Search from the Special Page it returns query failed. If I run the same search from the command line I get the following results

root@twosinfo:~# /usr/local/sphinx/bin/search --config /usr/local/sphinx/sphinx.conf "Checks" Sphinx 0.9.9-release (r2117) Copyright (c) 2001-2009, Andrew Aksyonoff

using config file '/usr/local/sphinx/sphinx.conf'... index 'wiki_main': query 'Checks ': returned 2 matches of 2 total in 0.003 sec

displaying matches: 1. document=2, weight=1, page_namespace=0, old_id=3, category= page_title=A+_A/R page_namespace=0 2. document=3, weight=1, page_namespace=0, old_id=6, category= page_title=A+_A/P page_namespace=0

words: 1. 'check': 2 documents, 2814 hits

index 'wiki_incremental': query 'Checks ': returned 0 matches of 0 total in 0.000 sec

words: 1. 'check': 0 documents, 0 hits

—24.187.238.130 19:19, 15 March 2010 (UTC)

(RESOLVED) ParserFunctions error

 * MediaWiki version: 1.15.2
 * PHP version: 5.2.5 (apache2handler)
 * MySQL version: 5.0.26-log
 * URL: http://www.medviz.ru/

Hello! I try to install "ParserFunctions" extension. So, i do like in instruction. 1. Download a snapshot and extract it to your extensions directory. Choose the version that matches your version of MediaWiki. 2. Add require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); to the bottom of LocalSettings.php. 3. If you want to use the integrated string function functionality, add $wgPFEnableStringFunctions = true; just after that. 4. Installation can now be verified through Special:Version of your wiki.

But it's show me the error:

Magic word 'if' not found Backtrace:
 * 1) 0 /home/m/medvizru/public_html/includes/MagicWord.php(244): Language->getMagic(Object(MagicWord))
 * 2) 1 /home/m/medvizru/public_html/includes/MagicWord.php(197): MagicWord->load('if')
 * 3) 2 /home/m/medvizru/public_html/includes/parser/Parser.php(4034): MagicWord::get('if')
 * 4) 3 /home/m/medvizru/public_html/extensions/ParserFunctions/ParserFunctions.php(72): Parser->setFunctionHook('if', Array, 2)
 * 5) 4 /home/m/medvizru/public_html/includes/Hooks.php(117): ParserFunctions_HookStub->registerParser(Object(Parser))
 * 6) 5 /home/m/medvizru/public_html/includes/parser/Parser.php(178): wfRunHooks
 * 7) 6 /home/m/medvizru/public_html/includes/parser/Parser.php(190): Parser->firstCallInit(Array, Array)
 * 8) 7 /home/m/medvizru/public_html/includes/parser/Parser.php(312): Parser->clearState('ParserFirstCall...', Array)
 * 9) 8 /home/m/medvizru/public_html/includes/StubObject.php(58): Parser->parse
 * 10) 9 /home/m/medvizru/public_html/includes/StubObject.php(76): StubObject->_call
 * 11) 10 [internal function]: StubObject->__call('????????...', Object(Title), Object(ParserOptions), true, true, 77)
 * 12) 11 /home/m/medvizru/public_html/includes/Article.php(3557): StubObject->parse(Array, Array)
 * 13) 12 /home/m/medvizru/public_html/includes/Article.php(979): Article->outputWikiText('parse', Array)
 * 14) 13 /home/m/medvizru/public_html/includes/Wiki.php(450): Article->view('parse', Array)
 * 15) 14 /home/m/medvizru/public_html/includes/Wiki.php(63): MediaWiki->performAction('????????...', Object(Title), Object(ParserOptions), true, true, 77)
 * 16) 15 /home/m/medvizru/public_html/index.php(116): MediaWiki->initialize('????????...')
 * 17) 16 {main}

How can I resolve the problem ? Please Help me!

—213.129.40.253 05:22, 25 March 2010 (UTC)

UPADATED: SORRY. it's was development version that i download in subversion repository —213.129.40.253 15:25, 25 March 2010 (UTC)

tag extension vs parser function

 * MediaWiki version: any
 * PHP version: any
 * MySQL version: any
 * URL:

I want to put many layouts (grid, messagebox, etc.)in my mediawiki.

When may i make a tag extension or parser function ?

Thanks,

—Blr21000 14:12, 25 March 2010 (UTC)

HTTP GET to mw-serv - returns error 405
Actually, this is a local turnkey mediawiki under VMware Server2 for which I want to install the collection extension to render books with local render server. I must admit, that I'm a complete newbie to the wiki and php and python stuff, so maybe I missed something important. First I found, that I had to change the "is_good_baseurl" function in mw-serve serve.py, because the VMnet is running on 192.168.x.x, which is by default assumed as bad base url (which definitely makes sense for a non local render server, although I would propose to exclude other private IP ranges in class A and B networks as well) - but that's just one observation. The mw-render now works and render process runs, and I get the Page : "The document file has been generated. Download the file to your computer." But after clicking on download no page appears any more in my browser. TCPDUMP Tracing shows, that I get a http 405 invalid method code returned by mw-serve, listening on port 8899 I found from mw-serve python source code, that mw-serve actually is designed to deny all requests, except http POST requests. And the collection does definitely send a GET, as I found in my traces. Then I found this page: It seems, that there's a quite new change since 24.03.2010, that obviously definitely changed explicitly to use GET, which would explain my observations. So the code seems broken to me. I installed the extension yesterday, so I have this new code running. Any chance to checkout older versions from svn for a cross check, if this works? Thanks a lot for any ideas, Greetings, Herb 88.78.2.243 20:27, 26 March 2010 (UTC)
 * MediaWiki version: 1.15.1
 * PHP version: 5.2.4-2ubuntu5.10 (apache2handler)
 * MySQL version: 5.0.51a-3ubuntu5.4
 * URL: local wiki, using local mw-serve render server as well
 * Special:Code/MediaWiki/64112

Maintenance Script help

 * MediaWiki version: 1.15.2
 * PHP version: 5.2.13 (cgi)
 * MySQL version: 5.0.81-log
 * URL: http://www.creationlightship.com/wiki

I am trying to use maintenance scripts via command line.

However, 1and1.com only has v4 of php in command line mode.

Is there any other way of running the scripts to help maintain my database?

As future reference for those curious, this is what 1and1.com told me:

Thank you for contacting us.

It is not possible for us to set the server in PHP 5 through putty since our shared hosting packages are set to PHP 4 by default. It checks the version of the entire server and changing the version through ssh will affect the settings of other customers.

—71.29.75.54 19:00, 30 March 2010 (UTC)

Mediawiki Internal Error Throws Exception while Joomla Login

 * MediaWiki version:MediaWiki 1.15
 * PHP version: 5
 * MySQL version: 5
 * URL: http://www.erasmate.com/wiki

I have integrated media wiki to my joomla site and am using the mediawiki login plugin to inter connect the login but i do get this error as stated below,when i login through joomla and move to wiki?

Error: - "Original exception: exception 'MWException' with message 'SkinTemplate::makeTalkUrlDetails given invalid pagename User:'" Could someone provide me a solution to rectify this.


 * MediaWiki version: 1.17
 * PHP version: 5.2.6
 * MySQL version: 5.0.67
 * URL: localhost

I've tryed to install the usability extension, i follewed the guide but i can't use it because the button "Try Beta" don't apper... How can i Do? Thaks, sorry i'm italian.

—87.2.192.37 20:44, 4 April 2010 (UTC)

External image editor setup help
This question is related to the Wikimedia commons.


 * MediaWiki version: 1.16wmf3 (r64695)
 * PHP version: 5.2.4-2ubuntu5.7wm1 (apache2handler)
 * MySQL version: 4.0.40-wikimedia-log
 * URL: commons:File:TPSMV1P112.jpg


 * Windows XP SP3
 * Firefox 3.6.3

I need to change the background of many images from here and would like to use (Windows) IrfanView as the external image editor. Studied the Mediawiki installation instructions extensively, but something is missing.

Selected the default external editor on commons:My Preferences, and added this to my monobook.js:

addOnloadHook(function {   var editTab = document.getElementById("ca-edit");    if (!editTab) return;    var editURL = editTab.getElementsByTagName("a")[0].href;    addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", ""); });

Whenever I try to edit an image like this, I get the following (index.php) in my text editor and no image.

[Process] Type=Edit text Engine=MediaWiki Script=http://commons.wikimedia.org/w/index.php Server=http://commons.wikimedia.org Path=/w Special namespace=Special

[File] Extension=wiki URL=http://commons.wikimedia.org/w/index.php?title=File:TPSMV1P112.jpg&action=edit&internaledit=true

Frankly, I am lost. I tried getting help on the commons but to no avail. Can someone help me through this? I monitor all talk pages in all wikis where I am active: Wikisource, Wikipedia, Wikimedia Commons and here. Thanks in advance. Ineuw talk page on en.ws 21:48, 8 April 2010 (UTC)

Getting article HTML

 * MediaWiki version: 1.15.2
 * PHP version: 5.3.0
 * MySQL version: 5.1.36
 * URL:

Hi.

I'm writing new Mediawiki extension based on Extension:Pdf Export (Source code is here). I'm trying to export an article. The PDF Export extension includes the following function:

At the end of this function,  is empty. I tried to print out (wrote to a log file)  after line 24, but it's empty too.

What could be the problem? Is there another way to get the HTML of an article?

Thanks!

—Nahsh 09:46, 11 April 2010 (UTC)

incategory, prefix, title, AND, OR used in the search box are ignored!

 * MediaWiki version: 1.13.2
 * PHP version: 5.1.6 (apache2handler)
 * MySQL version: 5.1.29-rc-community-log
 * URL:

When i try to use the "incategory, prefix, title, AND, OR" words in the search box they are ignored. These words have no effect. I use the internal search from wiki. I need some extensions ? Could you please help me ? Thanks. —155.105.7.44 05:57, 13 April 2010 (UTC)

Usability extension

 * MediaWiki version: 1.17
 * PHP version: 5.2.6
 * MySQL version: 5.0.67
 * URL: localhost

I've tryed to install the usability extension, i follewed the guide but i can't use it because the button "Try Beta" don't apper... How can i Do? Thaks, sorry i'm italian.

—87.2.192.37 20:49, 4 April 2010 (UTC)

Cant upload tar files while PagedTiffHandler is installed (says: tiff_out_of_service)

 * MediaWiki version: 1.15.3
 * PHP version: 5.1.6 (apache2handler)
 * MySQL version: 5.0.77
 * URL: (intranet)/ (and on localhost its the same, same MediaWiki-version)

Hello,

When i trie to upload a *.tar file it says 'tiff_out_of_service' and doesnt upload the file. When i comment the "require_once("$IP/extensions/PagedTiffHandler/PagedTiffHandler.php");" line, it works again. Does anyone have an idea what might be the problem? I dont have any clue any more....

Ps.: Im not completely sure, but could it be, that it worked in 1.15.1 and now it doesnt? I used to have 1.15.1 and maybe it worked there... but i cant/dont want to downgrade because of this...

Thanks a lot!! —Maxi.igl 17:24, 15 April 2010 (UTC)

(Solution) I deleted the error-routine for this specific error in the function check in PagedTiffHandler_body.php... its only a symtomatic solution, but for me needs its ok.

#time: parser function not converting FROM unix time

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.11 (apache2handler)
 * MySQL version: 5.0.82-log
 * URL: http://wiki.vectorbase.org/index.php/Special:Version

Hello,

Is there any way to get the ParserFunctions #time: function to recognise unix time? I am doing some date math calculations (with #expr:) in seconds since 1970 and I can't find a way to convert back into human readable form...

I have seen the JULIAN.* templates on wikipedia but that seems very complicated.

many thanks, Bob.

—155.198.150.201 15:54, 20 April 2010 (UTC)
 * Answer: (from SMW mailing list), 155.198.150.201 09:37, 21 April 2010 (UTC)

Running Lsearch extension on windows server 2003 or alternative to Lucene
I have searched the site looking for this answer and yet to find a direct answer. Although I would like to just setup a linux server and run the Lucene Search Extension service for MediaWiki, our IT department has mandated that we MUST run everything on windows servers. Whether this is a good idea or not this is how I must proceed. That said, I have sucessfully installed Lucene Search 3.0.1 on a windows server but I have yet to find a good way to get the latest bits for the extension service to run on windows. i am sure there is something out there already that answer this so if you know please feel free to post a link. I have read that there is an OLD C# version that does work on windows but the guy I work with had trouble getting this to work. Any help is much appreciated.

—138.32.80.20 14:26, 23 April 2010 (UTC)

Using FCKeditor 2.6.4 with Media wiki 1.15.3

 * MediaWiki version: 1.15.2
 * PHP version: 5.3.2
 * MySQL version: 5.1.45
 * URL: its a intranet site

Hi I'm trying to use FCKeditor 2.6.4 with Mediawiki 1.15.3. After I copy the fckeditor folder to externsion, and add the requireonce code andajax thing to loaclsettings.php, when I run the site, I get the following

Strict Standards: Declaration of FCKeditorParser::makeImage should be compatible with that of FCKeditorParserWrapper::makeImage in C:\public_html\pedia\extensions\FCKeditor\FCKeditorParser.body.php on line 707

Strict Standards: Declaration of FCKeditorParser::parse should be compatible with that of FCKeditorParserWrapper::parse in C:\public_html\pedia\extensions\FCKeditor\FCKeditorParser.body.php on line 707

and the rest of the wiki site is displayed below it. Then when I try edit something, I get the following message

Internal error Detected bug in an extension! Hook FCKeditor_MediaWiki::onCustomEditor failed to return a value; should return true to continue hook processing or false to abort.Backtrace:

#0 C:\public_html\pedia\includes\Wiki.php(502): wfRunHooks('CustomEditor', Array) #1 C:\public_html\pedia\includes\Wiki.php(63): MediaWiki-&gt;performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest)) #2 C:\public_html\pedia\index.php(116): MediaWiki-&gt;initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest)) Now before I moved to the WAMP I was running this on a LAMP and their the extension worked fine, so I don't think its the extension at fault, but the $Ip I'm going or something. I'm letting it gigure out the $ip and I'm givng require_once("$IP/extensions/FCKeditor/FCKeditor.php");
 * 1) 3 {main}

Can anyone take a guess where I'm getting the problem from.

—216.207.205.50 18:48, 30 April 2010 (UTC)

$wgConfigureEditableSettings = array; is broken

 * I was too lazy to login yesterday. Report moved to 23379 201.95.205.219 17:04, 2 May 2010 (UTC)

Problem solved.

autocomplete search
Is there a simple extension I can use for autocomplete in a searchbox with the default search enginge of MediaWiki? -R. Broersma
 * MediaWiki version: 1.15.3
 * PHP version: 5.2.10
 * MySQL version: 4.1.21
 * URL: http://www.hymenoptera.nl/nev/thijsse/


 * Manual:$wgEnableMWSuggest --Rainman 09:48, 30 May 2010 (UTC)

Add to wanted categories page
How can I add to the wanted categories page? --Bigone5500 03:04, 27 May 2010 (UTC)
 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:
 * Add a category to a page that doesn't exist? Reedy 09:57, 17 June 2010 (UTC)

using #time in other languages

 * MediaWiki 	1.16wmf4 (r66620)
 * PHP 	5.2.4-2ubuntu5.7wm1 (apache2handler)
 * MySQL 	4.0.40-wikimedia-log
 * URL: n:ta:வார்ப்புரு:Daycategory1

(வார்ப்புரு=Template)

I tried to use #time magic word for the above site but its throwing error. gives something like ஜூன் 7 (=June 7) passing = throws error. How can i achieve it?. also i cannot able to use #replace too. thanks —Mahir78 09:37, 17 June 2010 (UTC)

Some extensions doesn't work on PHP 5

 * MediaWiki version: 1.15.4
 * PHP version: 	5.3.2-1ubuntu4.2 (apache2handler)
 * MySQL version: 5.1.41-3ubuntu12.3

Hello, sorry for my english Why some extensions doesn't work with PHP 5.3.2 For example this extension Extension:CreateArticle or (Extension:AddHTML) not work with my PHP configuration, why ? Maybe something needs to be configured on the server ? Help me please.

—79.111.43.106 18:21, 19 June 2010 (UTC)

Modifications are causing corrupted output

 * MediaWiki version: 1.15.4
 * PHP version: 5.2.13 (apache2handler)
 * MySQL version: 5.1.47-log

When I'm installing extensions in MediaWiki, the wiki is showing the code of the extension -- but very crippled. At the end of the page there are some random Chinese symbols. The wiki is not reachable at all. I'm saving the modifications as Unicode because the code contains special characters. I'm adding the require_once at the end of the LocalSettings.php file.

Thanks.

—Lembamjunior 11:32, 20 June 2010 (UTC)

Output text after content of article

 * MediaWiki version: Current
 * PHP version: 5.3
 * MySQL version: sqlite
 * URL: http://editthis.info

I am writing an extension that needs to output html content after the content of an article (in the white area where the content resides but after all the content). Is there a hook I can use, and how do I use it?

—RobKohr 18:37, 20 June 2010 (UTC)

Better search

 * MediaWiki version: 1.15.4
 * PHP version: 5.2.5
 * MySQL version: 5.0.51
 * URL: localhost

When I search i get prompts as last searched items. Can be possibility to be filtering existing article names as prompt like Wikipedia? Can install such extension?

—Borneq 20:27, 28 June 2010 (UTC)
 * read Manual:$wgEnableMWSuggest. Bawolff 03:22, 16 July 2010 (UTC)

How to enable templates on Wii-Site.com (resolved; invalid)

 * MediaWiki version: 1.11.2
 * PHP version: 5.1.6
 * MySQL version: 5.0.77
 * URL: http://dmartinaus.wiki-site.com/index.php/Don_Martin_%28Austin%2C_Texas%29


 * URL: http://wiki-site.com

I cannot find any page on www.wiki-sites.com where I can ask for templates to be added or authorized. In fact, no page on Wiki-Sites to ask anyone anything. Do you have any recommendations? There seem to be no sysops, administrators, etc. I've looked for weeks and used templates, and have finally given up on what to do. (FYI - I added a page here that was not "notable" for Wikipedia so want to get the most out of Wiki-Sites or some other alternative wiki if possible without belaboring Wikipedia with non-notable sites. Thanks.

—Dmartinaus 15:33, 1 July 2010 (UTC)


 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

—188.61.192.21 10:22, 5 July 2010 (UTC)


 * Hi. This is the wrong place to ask. Templates are just normal pages that start with template: they don't need to be authorized generally. For help with the community at that website you'd have to ask there. We have no control over what happens at that website. Bawolff 03:20, 16 July 2010 (UTC)

Problems with installation of flaggedrevs
Hello!

after adding flaggedrevs to my system I'm no longer able to adit discussions. The reviewing of articles as well as the writing of articles is no problem.

Installierte Software Produkt 	Version

MediaWiki 	1.15.0

PHP 	5.2.10-2ubuntu6.4 (apache2handler)

MySQL 	5.1.37-1ubuntu5.1

Installierte Erweiterungen

Spezialseiten

Flagged Revisions (Version r60856) 	Markierte Versionen 	Aaron Schulz und Joerg Baach

Parser-Hooks

ParserFunctions (Version 1.1.1) 	Erweitert den Parser um logische Funktionen 	Tim Starling

Funktionsaufrufe

efLoadFlaggedRevs und wfSetupParserFunctions

Parser-Erweiterungen (tags)

Parser-Funktionen anchorencode, basepagename, basepagenamee, defaultsort, displaytitle, expr, filepath, formatdate, formatnum, fullpagename, fullpagenamee, fullurl, fullurle, gender, grammar, if, ifeq, iferror, ifexist, ifexpr, int, language, lc, lcfirst, localurl, localurle, namespace, namespacee, ns, numberingroup, numberofactiveusers, numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages, numberofusers, numberofviews, padleft, padright, pagename, pagenamee, pagesincategory, pagesize, plural, protectionlevel, rel2abs, special, subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subpagename, subpagenamee, switch, tag, talkpagename, talkpagenamee, talkspace, talkspacee, time, timel, titleparts, uc, ucfirst und urlencode

—Dergi 11:53, 9 July 2010 (UTC)

-- --

I have a new project with Mediawiki..But I need some helps.

 * Moved from User talk:Burgutex per his own request. Diego Grez ¡hablemos! 01:56, 16 July 2010 (UTC)

Hi! I have a new project with Mediawiki..But I need some helps.

How can I change internface like your homepage?

How can I include advanced content editor like your content editor?

Please check my child project: http://www.islamvebiz.net/saadetepedia

Thank you.

Bulent Turgut
 * See Extension:UsabilityInitiative and follow the steps to install it, then you will be able to setup the 'advanced content editor'. To set up the Vector skin, you must update your MediaWiki installation to the last trunk version of the software. Cheers, Diego Grez ¡hablemos! 22:35, 14 July 2010 (UTC)

Thanks Diego. But where will I put this codes in? In localsettings.php? I tried somethings, but site gone away!

Please advise me somethings..

OK. I suggest to download the packages that appear there. Don't forget to backup! Then, extract the files of MediaWiki 1.16alpha on the path of your current installation of MediaWiki. After that, if you have shell access, go to "maintenance/" and run "php update.php". After you have successfully updated MediaWiki, extract the MediaWiki extensions in "extensions/". Add to your LocalSettings.php:

Also, to set up Vector (Wikipedia's skin) as the main skin of your wiki (be sure to have updated the wiki as I explained before), change:

...that is located in your LocalSettings.php. If you don't understand, don't bother to ask again! Cheers, Diego Grez ¡hablemos! 01:58, 15 July 2010 (UTC)

--

Dear Diego,

Thank you for your support.

I donwloaded: Alpha 1.6v + All MediaWiki extensions

I upload Mediawiki to my host and installed it. Also I uploaded extensions to my host, and is opened it in extensions directory.

Added lines below to Localsettings.php in root for editor:

require_once("$IP/extensions/UsabilityInitiative/WikiEditor/WikiEditor.php");

$wgWikiEditorModules['toc']['global'] = true; // Enable the TOC for everyone

$wgWikiEditorModules['toc']['user'] = false; // Don't allow users to turn the TOC on/off individually

Checked line below to Localsettings.php in root for skin:

$wgDefaultSkin = "monobook";

Result as:

http://www.islamvebiz.net/saadetepedia/index.php/Ana_sayfa

Same it.. Nothings are changed!

What must I do?

Thanks

I want these:

[IMG]http://i31.tinypic.com/syxwty.jpg[/IMG]

[IMG]http://i31.tinypic.com/5tuduc.jpg[/IMG]

[IMG]http://i29.tinypic.com/2i94e2s.jpg[/IMG]

Need to run update.php for finishing? If it is necessary, how can I finish to setup?

I changed skin as Vector.

But I couldn't change editor.. I installed wiki in subdirectory. I have tried to change this line:

require_once("$IP/saadetepedia/extensions/UsabilityInitiative/WikiEditor/WikiEditor.php");

But nothing..

It isn't working because you are using "/saadetepedia". Please remove that and use:

require_once("extensions/UsabilityInitiative/WikiEditor/WikiEditor.php");

This time will work, unless your "extensions" directory is located somewhere else. --Diego Grez ¡hablemos! 21:10, 15 July 2010 (UTC)

--

I tried both of 2 ways: with /ssadetepedia and non.. it is not working..

Now it is included under all codes of localsettings.php:

-- --



Need any permissions?
 * No it doesn't. Diego Grez ¡hablemos! 22:06, 15 July 2010 (UTC)
 * Try without the $IP thing. Diego Grez ¡hablemos! 22:09, 15 July 2010 (UTC)

--

No any new action.. Same it.. I don't understand why is shown editor?

Also my admin login is rejected. There is an error:

"Login error: There is an error with login attempt.. Please go bak, refresh your page, and try again later"

(I traslated from Turkish)

"Oturum açma hatası. Giriş oturumunuzla ilgili bir sorun var gibi görünüyor; bu eylem, oturum gaspına karşı önlem olarak iptal edildi. Lütfen "geri" gidin ve geldiğiniz sayfayı yeniden yükleyin, sonra tekrar deneyin. "

Also I have tried to crate a new user.. It gave me same message like above..

-

Diego,

I have reinstalled MediaWiki to my system.. Also I have included codes, but result is same again.. What do you advide me? Could you interest to install it with my admin and FTP account? Or could you advise me what must I do?

Thanks..
 * Hi Burgutex, I don't really know what's the issue here. I'm gonna move this thread to the support desk for comments of developers and more experienced users than me, perhaps they can help you solve this problem. Do you want that? Diego Grez ¡hablemos! 01:49, 16 July 2010 (UTC)

It may be.. Cause anybody can help me for these problem. I want to contact with them.. Thanks..


 * Hi. First of all, you do realized you publicly posted your mysql password up above. You might want to consider changing it. Second, I managed to log in fine, so it appears any login problems you had fixed themselves. Third, the wiki-editor is installed, but disabled by default (you need to enable it in special:preferences currently ). I'm not all that familiar with the extension, but I think you need to add the following to the bottom of localsettings.php to make it enabled by default:

$wgDefaultUserOptions['wikieditor-highlight'] = 1; $wgDefaultUserOptions['wikieditor-preview'] = 1; $wgDefaultUserOptions['wikieditor-publish'] = 1; $wgDefaultUserOptions['usenavigabletoc'] = 1; $wgDefaultUserOptions['wikieditor-template-editor'] = 1; $wgDefaultUserOptions['usebetatoolbar'] = 1; $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; Cheers. Hope that helps. Bawolff 03:15, 16 July 2010 (UTC)

Thank you Bawolff.

I tried to solve problems in last 24 hours nonstop :)

- I reinstalled Mediawiki 1.6v midnight. - I found something when I logged in system and "preferences".. You can change "skin" and "editor" setting in "preferences" only. You couldn't change anything in LocalSettings.php. - Only; you will write some linesin LocalSettings.php below: '' require_once( "$IP/extensions/UsabilityInitiative/WikiEditor/WikiEditor.php" );
 * 1) WikiEditor (Toolbar, Toc, Preview, Highlight)

$wgDefaultUserOptions['wikieditor-highlight'] = 1; $wgDefaultUserOptions['wikieditor-preview'] = 1; $wgDefaultUserOptions['wikieditor-publish'] = 1; $wgDefaultUserOptions['usenavigabletoc'] = 1; $wgDefaultUserOptions['wikieditor-template-editor'] = 1; $wgDefaultUserOptions['usebetatoolbar'] = 1; $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; ''

-

And now:

I want to add two things to my system:

1. The box under the editor which you can use wikipage codes like this "[]".. You can see the box which has wikicodes under "... and you aggree to follow any relevant licencing requirements" words..

2. I want to set SMTP settings up to my system.. How can I do it? I found some copdes and tried somethings, but it is not success.

$wgSMTP = array( 'host'    => "mail.islamvebiz.net", //could also be an IP address 'IDHost'   => "islamvebiz.net", 'port'     => 587, 'auth'     => true, 'username' => "myemail@islamvebiz.net", 'password' => "mypass" );

I am not sure these lines are true.. And where will I put these lines in? Localsettings.php or includes/defaultsettings.php?

My emails are not sent to users.


 * I'm not that familar with mediawiki's smtp support, but assuming those settings are correct, you put it at the bottom of Localsettings.php. You should never ever edit includes/DefaultSettings.php. The click to insert wikicode stuff is part of extension:CharInsert. You can edit that part of the wikipage at mediawiki:Edittools Bawolff 22:45, 16 July 2010 (UTC)

wikED problems with converting pasted Word7 tables into wiki code

 * MediaWiki version: 1.15.1
 * PHP version: 5.3.2-1ubuntu4.2 (apache2handler)
 * MySQL version: 5.1.41-3ubuntu12
 * URL: ?

"Convert pasted content to Wiki code" does not work properly for Word 7 (docx) tables. I'm using wikED 0.9.90r (June 14, 2010) which seems to be the latest version. Any tips are very much appreciated. Vielen Dank in advance --heinrich

--Heinrich 10:05, 17 July 2010 (UTC)

Editbox in Extension

 * MediaWiki version: 1.16.0beta2
 * PHP version:  	5.2.0-8+etch15 (apache2handler)
 * MySQL version: 5.0.32-Debian_7etch10-log
 * URL: http://www.dairalainn.de/wiki/index.php/Spezial:PrivateMessages/write

Hello,

I'm trying to write a private messages extension for my Mediawiki. For this purpose I need an Edit Box on my "write" page. I don't want to confuse users with presenting another Edit Box than the Mediawikis. Is there any way to implement the buildin Edit Box to an Extension?

Kind regards.

Sven ( sfischer at newavalon dot de )

—89.204.137.156 08:34, 28 July 2010 (UTC)

Problem developing very very very simple extension

 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

I I'm developing a very simple tag extension. You can se that on http://www.mattyfog.com/mediawiki/index.php?title=MediaWiki:Sitenotice. It doesn't work! It show me the code! Why?

—77.242.189.101 20:24, 28 July 2010 (UTC)
 * Unfortunately, without resorting to telepathy to read the source code of your extension, hardly anyone will be able to help. Max Semenik 20:49, 28 July 2010 (UTC)

Sorry, I thought that is a tipical error for newbie :D <?php /* Copy this code into a new file called banner.php * in the folder extensions of wikimedia. * Insert into the file LocalSettings.php (which is in	 * the root of wikimedia) the following line (without the symbol *): * require_once('extensions/banner.php'); */ $wgHooks['ParserFirstCallInit'][] = 'efSampleParserInit'; function efSampleParserInit( &$parser ) { $parser->setHook( 'banner_image', 'efBannerRender' ); return true; } function efBannerRender( $input, $args, $parser, $frame ) { $url = $args['url']; $output = '<div id="banner_image">'; $output .= '<a href="'.$url.'" style="padding: 10px;">'; if(strrpos($input, 'http://') >= 0) {		$image_url = $url; }	else {		/*$image_url = str_replace("extension/banner_image.php", "",realpath(".")).$input;*/ $image_url = realpath(".").'/'.$input; }	$output .= $image_url; $output .= '</a>'; $output .= ' '; return htmlspecialchars( $output ); } You need to change the last line (return htmlspecialchars( $output );) to return $output ;. The htmlspecialchars causes all html to not be interpreted. Also, you have an xss - for example:. You're going to want to do htmlspecialchars on $args['url']. Bawolff 22:25, 28 July 2010 (UTC)

Ok thanks! What I have to do if I want to use this extension in the sidebar?

Mediawiki Automatic Remote User Authentication

 * MediaWiki version: 1.15.4
 * PHP version: 5.3.2
 * MySQL version: 5.1.4
 * URL:

We authenticate users on Apache using Active Directory and we want to avoid authenticate again when going to Mediawiki. I have tried the Auth_remoteuser.php extension and it does not work. I have tried both authenticating on the same Mediawiki server and authenticate from a different server and have mod-proxy redirect wiki requests to Mediawiki server but neither worked.

Does this extension work? Do I have to do anything else apart from saving the extension in the 'extension folder' and add the following two lines to LocalSettings.php? require_once('extensions/Auth_remoteuser.php'); $wgAuth = new Auth_remoteuser;

Thanks,

—38.105.147.251 14:34, 19 July 2010 (UTC)

Hi,

we use this Extension for our wiki's either. During the last update from MediaWiki 1.15.1 to 1.15.4 we experienced, that this module stopped working. The last version to work with Auth_remoteuser extension is 1.15.2. I think there has to be done some maintaining to the extension. So, this is what i can say to this extension. A downgrade or self-debugging of the extension is the only thing that can help you now.

Greetz.

We have used it just fine on MW 1.15.4. It stopped working with the upgrade to MW 1.16.0. However, the comments at the top of the code say that it was adapted to be compatible with 1.16, so I don't know why it isn't working. Lkmorlan 20:16, 29 July 2010 (UTC)

I have made a minor update to Extension:AutomaticREMOTE USER so that it works with MW 1.16.0. I had to add  We are using PHP 5.2.13, if that matters. Lkmorlan 16:51, 30 July 2010 (UTC)

Hi, works great now. But it does not work consistent with old versions! We have a UNIX-Kerberos Server which wants it users to login like "username"@"domain". Old versions of Extension:AutomaticREMOTE USER deleted the domain part. The new version does not! There is an option for Windows-Kerberos-Servers to delete the domain-prefix ("domain"/"username"). But this does not help us. Is there a way to fix this?

Extension: Watchers
I installed the Extension: Watchers Extension:Watchers and this should create a a new page under special: watchers-list But I dont have a new link to this watchers-list. When I manually enter: http://intranet.de/index.php?title=Spezial:Beobachter or http://intranet.de/index.php?title=Spezial:Watchers there is an error message: page does not exist
 * MediaWiki version: 1.15.4
 * PHP version: 5.2.3 (cgi-fcgi)
 * MySQL version: 5.024 community-nt
 * URL: only reachable in company Intranet

Who can help me? —213.70.219.132 14:12, 2 August 2010 (UTC)

Needed Subeditor
I want to setup subeditor of Wikipedia. It has special chars Wiki Lang, Special chars, IPA, Turkish, Latin, Greek, and more..

http://i25.tinypic.com/2eevo6p.png

How can I put this tool in my system?

Thank you..


 * You need to install the Extension:CharInsert and then to edit at least the page MediaWiki:Edittools on your wiki; for changing the different edittools as seen on WP or even down below this edit window (Standard, Latin, Greek, and so on), you have to edit MediaWiki:Edittools.js, too. Best regards -- JörgM 84.156.146.62 17:09, 4 August 2010 (UTC)

Custom search-box

 * MediaWiki version: 	1.15.1 (r755)
 * PHP version: 5.2.6-3ubuntu4.5 (apache2handler)
 * MySQL version: 5.0.75-0ubuntu10.5
 * URL: http://www.cockos.com/wiki/index.php/Action_List_Reference

Hi! We're looking for a solution to make a custom search-box for this page: http://www.cockos.com/wiki/index.php/Action_List_Reference I'm thinking of using jQuery, and think I found a good way of adding it: http://www.thusa.co.za/blog/gareth-davies/getting-jquery-running-mediawiki Now, I would like to add the html-part (a box on the right side) with a wikitext like (so it's not editable for the normal user and it don't mess up the edit-field). How do we achieve that?

Thanks! —Gsoler 19:55, 29 July 2010 (UTC)
 * The display of showed me how to make a template -it's a possible solution. But, I'd like to use full html, inline css and add a couple of javascripts. Can I use "<no_wiki>" (minus underscore)? Gsoler 06:30, 30 July 2010 (UTC)


 * If you want to use full HTML on wiki pages, see Manual:$wgRawHtml for getting it - but consider the fact that this is NOT recommended for wikis which can be edited by everyone. See also m:Help:HTML in wikitext for allowed html tags in a standard wiki (which tags could be added with inline css), and there is the page MediaWiki:Common.js (also on your wiki) for commonly used javascript. Best regards -- JörgM 84.156.146.62 16:52, 4 August 2010 (UTC)

Extension tag doesn't work in the sidebar!
Hi! I have developet a simple extension tag. It works on the sitenote but it doens't work in the sidebar! For example if I write in the sidebar: <tag arg="******">****  in the sidebar appear the code, so my extension isn't called and on the sidebar will appear the text (which is the same I have write): <tag arg="******">**** Why?
 * MediaWiki version: the last
 * PHP version: 5
 * MySQL version: 5
 * URL:

Sorry for my English. —77.242.189.101 11:46, 2 August 2010 (UTC)

HELP!!!!

Please, it's urgent!


 * Well, even a simple HTML  <i> </tt> tag or its wikicode counterpart  '' </tt> are not working in the sidebar - have a look at Manual:Sidebar for maybe changing this (haven't tested this). Best regards -- JörgM 84.156.139.116 17:27, 6 August 2010 (UTC)

Problems with Extension:UsabilityInitiative (WikiEditor) on IE6

 * MediaWiki version: 1.16.0
 * PHP version: 5.2.4-2ubuntu5.10 (apache2handler)
 * MySQL version: 5.0.51a-3ubuntu5.4
 * URL: non-public

Other details
 * Extensions: not a large number and have actively focused on those marked Stable. They are: CategoryTree, RenameUser, ImageMap, ParserFunctions and FLVPlayerTwo.

I did raise this here: Extension_talk:UsabilityInitiative but I thought perhaps this page would receive more attention and I have included more specific details which might assist in diagnosing the problem.

The issue I have is that if a user with IE6 goes to edit a page, they see no toolbar at all, even though I have installed Vector and the Usability extension and configured it to work - it works fine in IE8 and Firefox 3.n. I didn't expect the full toolbar (i.e. "WikiEditor") to function in IE6 but I was hoping it would still show the basic (original) toolbar, which is the behaviour that Wikipedia has. Is there some setting I should change to make this appear?

I have got Vector set as the default skin. It doesn't make any difference if an IE6 user switches back to Monobook or sticks with Vector - there is still no toolbar. I have not edited the skin files at all - in fact I'm pretty conservative with the configuration in general, testing things and not making numerous changes, so I can't see anything that would obviously lead to problems of this sort, but there must be something I haven't considered.

Any help / suggestions would be gratefully received! —83.244.174.157 15:48, 5 August 2010 (UTC)

Widget not rendering

 * MediaWiki version: 1.15.1
 * PHP version: 5.3.2-1ubuntu4.2 (apache2handler)
 * MySQL version: 	5.1.41-3ubuntu12
 * URL: Intranet Only
 * Widgets: (Version 0.9f)

Hello, I have been working with installing the widget plugin but am experiencing difficulty in getting the plugin to function correctly. Any of the sample code that I have pasted into a page created in the Widget namespace renders blank. Can you offer any suggestions? As a note I have added the following to the bottom of LocalSettings.php:

define('NS_WIDGET',274);

$wgGroupPermissions['sysop']['editwidgets']=true;

require_once("path/to/extensions/Widgets/Widgets.php");

—72.215.183.28 18:40, 5 August 2010 (UTC)


 * You added

require_once(" path/to /extensions/Widgets/Widgets.php");
 * and not

require_once(" $IP /extensions/Widgets/Widgets.php");
 * ? First one won't work, I think. -- JörgM 84.156.136.94 09:17, 7 August 2010 (UTC)

Jorg,

Using ("path/to/extensions/Widgets/Widgets.php") did work. $IP is an installed variable which outputs the same path. The issue I was having was not copying the source file of each widget I intended to install. This can be a lesson for all to learn from my mistake. After installing the Widget plugin you must also create a page in the Widget namespace, something like Widget:Google Calendar. Then go to that page and paste in the source code from Widget:Google_Calendar. This activates the widget. You must then create your final page where you intend to host your intended widget and paste in the call to the widget such as

That should get you up and running. Thanks Rob

Help with Mediawiki tags

 * MediaWiki version: 1.15.4
 * PHP version: 5.2.13
 * MySQL version: 5.0.90
 * URL:

I'm kind of new to installing and managing MediaWiki. I am very familiar and active with Wikipedia and was hoping to have some of the same capabilities by using MediaWiki. I'm kind of confused though when it comes to tags or extensions. I don't know what I need to do, but I would like to get some of these tags or shortcodes set up that automatically applies a template to the page. Something like what Wikipedia has done with stubs, copy-vio's and a ton of other tags. Any idea where I need to start?, where I might find some already made if possible (where I can edit the text or something and be ready to go)? Any help would be appreciated. Thanks 69.132.106.174 20:55, 6 August 2010 (UTC)


 * Do you think about such templates as en:Template:Stub which is included with  </tt> on a stub page? If so, you have to create those templates yourself (or maybe to copy them from the resp. WP ...). Best regards -- JörgM 84.156.136.94 09:09, 7 August 2010 (UTC)