Project:Support desk/Sections/Extension

__NEWSECTIONLINK__

= Extension Support =

== 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)

Displaying Categories in Pages
Sorry if this is the wrong place. I am fairly new to all of this.

I am looking for a way to use what I think of as more common database accessing within wikimedia where for example I add a word as a page and on that page I define the word, and the I have a page called words or something that goes through and picks out those pages based on them being in the category:word and spitting them out into a table. Is that possible? I have tried a couple of extensions, but no luck so far.

Thanks.

(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)

(RESOLVED) EmbedImg Extension, Advice rather than tech help needed on Images

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

Hello, This is more of an "advice needed" post. I wanted to use the Upload/Image functions in MediaWiki but I believe I cannot... my webhost does not give me easy access to php.ini and I really don't want to go through the headaches of making them enable uploads in PHP, so I've kind of given up.

I did, however, download EmbedImg Extension and absolutely love it. It lets me take a address to an JPG or PNG file and paste it into the wiki, and in turn it displays the image (Rather than the path). The problem is that it's parameters only let me change size, but not location. I need to be able to align those images "right" with text, so that it all looks good. Aside from the extension, I got around the upload system by writing, in ColdFusion, an upload agent. It lets any of my users - in a super simple fashion - upload an image to the site and obtain the link, which then goes into the Wiki Article. It's really simple but very effective for my needs.

So now, I am just dealing with a formatting issue. It needs to be uber easy for my users. How would you guys/girls handle the alignment or would you really work on getting the Wiki upload stuff to work (btw, I feel my ColdFusion app is easier to use for my users than the Wiki stuff).

Karl @ www.trialworks.com/wiki Thanks!!


 * UPDATE: sorry to waste space, I think I've solved my little crisis with

MediaWiki oes not find texvc - but texvc exist in the math folder !!!

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.4
 * MySQL version: 5.0.51a
 * URL: not public ... local network

Hi there,

I need help, cause I tried serveral times to setup texvc for our MediaWiki. I downloaded and installed the latest version of OCaml and run the 3 steps:

1. Change to the "math" sub-directory of your MediaWiki install 2. Run 'make' (or 'gmake' if GNU make is not your default make). This should produce the texvc executable. 3. Enable $wgUseTeX and $wgEnableUploads in your LocalSettings.php and everything should work.

I've seen no errors during the make but the MediaWiki does still not find the texvc !!! I checked the math folder and there is an texvc...

how can I resolve the problem ???

thank you !!!

Alex

I have some problem with mediawiki-1.13.3-42.fc10.x86_64 on fedora 10 x86_64 and resolved it from http://zaphod.lite.msu.edu/bugzilla/show_bug.cgi?id=5757. The solution was to run texinfo rehash, and run fmtutil-sys --missing. Ivan

How-to restrict access to a Special Page? (Resolved)

 * MediaWiki version: 1.13
 * PHP version:  5.0

Hi,

I'm using the extension http://www.mediawiki.org/wiki/Extension:UploadCSV where I can update pages with an CSV file. As this extension can easily cause vandalism, I want to restrict the access for just "administrators". Like when trying to access this page as a normal user: http://meta.wikimedia.org/wiki/Special:Block

I added:

$wgGroupPermissions['*']['uploadcsv'] = false; $wgGroupPermissions['sysop']['uploadcsv'] = true;

to LoaclSettings.php - but everyone can still access the page. Any ideas what I'm doing wrong?

Thanks, Chris

add to uploadCSV.php

// New user right - required to access Special:Maintenance $wgAvailableRights[] = 'uploadcsv';

function wfUploadCSVStart { global $wgMessageCache, $ExtensionTitles, $wgOut, $wgUser;

# If the user doesn't have the required 'maintenance' permission, display an error if( !$wgUser->isAllowed( 'uploadcsv' ) ) { $wgOut->permissionRequired( 'uploadcsv' ); return; }

add to LocalSettings.php

$wgGroupPermissions['sysop']['uploadcsv'] = true;

Extension Licensing Guidelines
I was wondering if there were licensing guidelines for extensions. I am combined several extensions with MediaWiki and noticed that some of the extensions have licenses that are incompatible with other extensions (e.g. Affero v.3 with a majority of extensions under GPL v.2). There are also several extensions that have no license indicated--is there a default license if you are coding for combination with MediaWiki? I was wondering if there was already guidance or if there could be some written on these topics. Thanks.

Sphinx Search Special Page Query Failed
-->
 * MediaWiki version: 1.15.1
 * PHP version: 5.2.10-2ubuntu6.4 (apache2handler)
 * MySQL version: 5.1.37-1ubuntu5.1
 * URL:

Special pages SphinxSearch (Version 0.7.0)

When I run Sphinx Search Special Page it returns Query Failed If I run the same search from the command line it returns

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

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
 * http://www.mediawiki.org/wiki/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: http://commons.wikimedia.org/wiki/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)