Project:Support desk/old

Using MediaWiki source code in commercial software
Hi If we use MediaWiki source code for creating a part of some commercial non-open-sourced software (it's not based on MediaWiki, just little part of it) - do we have to make our software GNU-licensed?

Thank you, best regards, -- Peterpen 13:14, 15 August 2007 (UTC)


 * Yes.

MediaWiki & DB2 support
Hi,

I’ve been developing a plugin for the MediaWiki to support DB2.

1) I’ve written a PHP program that converts the database from MySQL into DB2 (it creates tables identical to the tables in MySQL database and moves the data there)

2) I found that all connection to the database is done in the Database.php. I’m planning to use functions such as db2_connect (from PHP) as they are very similar to mysql_connect. I’ve also written my own functions using db2_connect… that have almost the same signature as mysql functions (I’ve done it in order to eliminate almost any differences between DB2 and MySQL in order to decrease number of changes in the current MediaWiki code. Basically I want to replace mysql function with function that I wrote without making any other Major changes in the MediaWiki code).

However, I’ve noticed that SQL statements in MediaWiki are build dynamically in many steps and placed in different files, which are very hard to track. And I’m not able to use MySQL statements directly as DB2 have slightly different syntax. For example it doesn’t accept a quoted integer in the ‘WHERE’ clause.

My question is there any particular structure how the SQL statements get build in the MediaWiki? I’ve tried to search the MediaWiki code, but I couldn’t find any consistency and I don’t want start guessing, because I need MediaWiki to be stable.

Please help!!!


 * Wouldn't it be more efficent to write a MySQL > DB2 SQL Cleaner function? And just preg_replace all the MySQL style stuff that conflicts w/ DB2?  How many syntax differences are there $DB2sql = preg_replace("/(WHERE.*?)('|\")(\\d+)\$2'/i",'$1$3',$MYSQLsql);Or is that crazy talk?


 * The problem there with SQL statements that get executed from PHP. Those statements are not hardcoded but they are built dynamically in many steps and MySQL accepts much more syntax than DB2.


 * I have to make changes in all functions that build those statements, but I don’t know exactly what those functions are and what purpose of each of them.


 * Could someone who is familiar with MediaWiki code help me to identify those functions?

Is there a bug related to template-trascluding in MW 1.10.0 and 1.10.1?
I have several instances of MW running and there is a behaviour while inserting templates from a central pool I cannot explain myself. E.g. there is a central instance let's say foo1.bar.tld and another one let's say foo2.bar.tld. And now I want to use a template hosted by foo1.bar.tld using the designated way while foo1 is the right interwiki link. (yes, iw_trans is set and scary transcluding is turned on). So here is my problem:

Instances which are based on MW 1.10.0 include that template but wiki markup within the template is ignored. Html markup works fine. Instances based on MW 1.10.1 show something like UNIQ1e69a7ad64e3f598-item140b0119235f4147 instead the included template.

Is there anyone out there who can explain that behaviour to me? --195.145.211.194 07:19, 27 July 2007 (UTC)
 * Has this been resolved? If not, have you checked BugZilla for an existing bug report?


 * Sorry I wasn't at my office for a couple of weeks. No. As I noticed this bug has not been resolved. And I searched BugZilla but no description doesn't really match my problem. Do you have any hints for me? --12:41, 14 August 2007 (UTC)

Error: Cannot redeclare property static public SpecialPage::$mList
I am trying to install Mediawiki 1.10.1 on a Suse Linux 9.3 with Apache 2.0.53, PHP 5.0.3 and MySQL 4.1.10a. After unpacking, the Mediawiki Config/Setup page tells me the environment is fine. After entering the details there Mediawiki creates the database and I get a success message. So I copy the LocalSettings.php to the parent directory and call my new wiki.

Problem: The Main_Page appears and looks good. However, whenever I click on any links refering to my Wiki (or try to create a new page), I get the following error:

Fatal error: Cannot redeclare property static public SpecialPage::$mList in class UnlistedSpecialPage in /srv/www/wiki/includes/AutoLoader.php on line 328

I reinstalled it several times, also tried Mediawiki 1.9. Same error all the time. I am guessing something is messed up with PHP / Apache setup, but I have no clue what. Both were installed using rpm-packages. Any help is greatly appreciated! Steffen

-84.72.78.136 13:21, 5 August 2007 (UTC)

Most Recently VISITED Pages
I've looked through the extensions and throughout the site and cannot find this, but I was wondering if it would be possible to make a page that displayed the most recently visited pages in the wiki.

Thanks. -Smaug 22:18, 6 August 2007 (UTC)
 * It would be possible, but you would to have to also create the mechanism to track page views. MediaWiki does not keep track of page views.  It could be done easy enough with an extension.  See  for instructions on Extension writing and examples.
 * Doesn't it? The bottom of each page contains a counter... but I suppose there's no MRU function if that's what you specifically referred to... Kareeser|Talk!

By using FckEditor with Mediawiki...
I have modified MediaWiki version 1.10.1 to integrate FckEditor by following steps from http://mediawiki.fckeditor.net/index.php/FCKeditor_integration_guide. I have also modified some code in FckEditor's files to use font color, font size and background color.

And that features are working fine. I haven't test it much. But i just want to know is this is feasible  solution to show those buttons on editor or there is some other way also available?

And yes i have also try to use the alignment buttons but it is not working. So can you help me out to solve the above things. Like i need more features on FckEditor as FckEditor is providing in its latest version.

And yes this is really really major requirement to improve FckEditor on MediaWiki site.

Thank you Viral Shah
 * If you have problems with the FCKeditor extension (either of them) for MediaWiki, you need to contact the extension writer/programmer. I personally dont' see a problem with having those extra buttons enabled except for the fact that they insert HTML rather than wikitext.  Which is how you change the color anyway in wiki.  If you have further questions regarding FCKeditor, please contact the extension designers.

Thank you for your reply. But i am not able to find extension writer/programmer page. Can you send me the link for that. and one more thing like for alignment i have commented one line in extensions\FCKeditor\plugins\mediawiki\fckplugin.js file.

//Before: _BasicElements : { body	: [ ], b		: [ "", "" ], strong	: [ "", "" ], i		: [ "", "" ], em		: [ "", "" ], p		: [ '\n', '\n' ], h1		: [ '\n= ', ' =\n' ], h2		: [ '\n== ', ' ==\n' ], h3		: [ '\n=== ', ' ===\n' ], h4		: [ '\n==== ', ' ====\n' ], h5		: [ '\n===== ', ' =====\n' ], h6		: [ '\n====== ', ' ======\n' ], br		: [ ' ', null, true ], hr		: [ '\n\n', null, true ] }, // After //Commented P tag line to show the alignment. Editor is creating align property in P tag and i think this line convert P tag with '\n'. _BasicElements : { body	: [ ], b		: [ "", "" ], strong	: [ "", "" ], i		: [ "", "" ], em		: [ "", "" ], //		p		: [ '\n', '\n' ], h1		: [ '\n= ', ' =\n' ], h2		: [ '\n== ', ' ==\n' ], h3		: [ '\n=== ', ' ===\n' ], h4		: [ '\n==== ', ' ====\n' ], h5		: [ '\n===== ', ' =====\n' ], h6		: [ '\n====== ', ' ======\n' ], br		: [ ' ', null, true ], hr		: [ '\n\n', null, true ] }, So will this be fine??
 * Using FCKeditor may need more modifications. It is NOT ready for prime-time.  Please contact the Extension creators as they are currently looking for help in getting their extension up to snuff for MW integration.

Complicated if parser function statement
I want this template to accept a single parameter but change the output relative to what that perimeter is (unnamed and named). This code works correctly if I give an unnamed parameter (where it links to Wikipedia with it) and if I specify "wikt=whatever" (where it links to whatever) but if I don't specify a parameter it defaults to Wiktionary instead of Wikipedia (which I don't want). Also, I'd like the "wikt" parameter to default to   without having to specify a name ("wikt=name"). Did you get all that? Now, is it possible and, if so, how do I do it? ;)

-Eep² 19:55, 7 August 2007 (UTC)

2 Tabbed page in Mediawiki
I see a very simple two tab page (three pages - the tab header page, the first tab page, and the second tab page [described here].

The first line on the tab header pg. references Wikipedia:Tutorial/Tabs. How do I reference this line on an internal Mediawiki for my company to create a two page tab? What do I put on the first line of the tabs header pg. to make 2 tabs on a page? I tried making it an external link, but that did not work. -Pomykala01 20:25, 7 August 2007 (UTC)


 * What exactly is the problem you are having? Did you copy over all the templates onto your wiki? --Dr DBW 01:47, 8 August 2007 (UTC)

Thanks, the problem is that I am unable to create a two or three page tab on a mediawiki. I did use the wikipedia templates, but they do no work because they call internal wikipedia pages. My MediaWiki would need to reference a templates internal to my wiki. Specifically I cant seem to recreate this template. Do you know of a mediawiki that has two pg tab or do you know a good reference tutorial on creating tabbed pages (in Mediawiki)?


 * Hmm, sorry, still don't see what the problem is. If it calls pages within Wikipedia, then you export and import them into your own wiki (or even just copy and pasting), with the appropriate template names you want to use in yours, you don't have to use what Wikipedia does.  The code looks relatively simply, just calling a number of different templates and inserting into those different page titles.  And all you have to do is ensure those templates are part of your wiki.  --Dr DBW 00:24, 14 August 2007 (UTC)

Failed connection to MySQL
I successfully installed MediaWiki and the Semantic Wikipedia from Ontoworld.org on a Windows machine with WAMP. I created my first pages but after a reset I'm getting the error message below, even though WAMP services including MySQL are successfully relaunched.

FirstWiki has a problem

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Can't contact the database server: MySQL functions missing, have you compiled PHP with the --with-mysql option? )

Thanks for your help.

Mircea -216.48.88.11 20:38, 7 August 2007 (UTC)
 * Has this been resolved?

Mediawiki Search Engine
Hello,

Is the Mediawiki Search Engine able to search in the whole Special Site if you include extensions? For example I have included some extensions with tags like in the Special Pages. When I use the wiki search I can only search for the tags, but not the content which the extensions are returning. Is there any way that the extensions are executed when you use the Mediawiki Search? -62.152.191.66 10:52, 8 August 2007 (UTC)

Substring search question
Is it at all possible to get 'part word' searches instead of fulltext (Eg searching for 'word' would bring up 'sword', 'word' and 'words' results)? -213.249.162.132 13:25, 9 August 2007 (UTC)
 * Yes, it is.
 * You should get substring matches with the default configuration. Have you verified that your wiki is not producing substring hits?  (remember, by default, MySQL is not indexing words shorter than 4 characters)
 * I've changed MySQL to index words of 3 characters or more, however if I search for 'dame', it does not find an Article with the title 'dameware', but it does find occurrences of 'dame' in the text of the page (as 'dameware' is mentioned several times on the page). If I put the full word in to search, it finds it no problem. Slightly confused!--Nomis35 09:43, 14 August 2007 (UTC)

disabling namespace "talk"
How can I disable the namespace "talk" in a local installation of MediaWiki? BTW this solution is improper for my purposes. Thanks in advance. --WIKImaniac 13:39, 9 August 2007 (UTC)
 * What do you mean by "disable"? Stop users from writing to it?  See Help:User_rights for instructions on permissions, and the aforementioned solution will hide the edit/discussion tab.  I'd advise setting createtalk permissios to false for everyone and hiding the edit tab.
 * I'd like to prevent the namespace "talk" from appearing in special pages, e.g. in Special:Allpages (cf. the drop down choice). Is there any possiblity to deactivate a built-in namespace, just the same way as you can create custom namespaces? --WIKImaniac 09:42, 10 August 2007 (UTC)

mailto: tag
Hello,

I would like to include a mailto: code in my wiki however I am running into problems with the following: [mailto:emailaddress@123.com?subject=TEXT&body=TEST link name]   Everytime I add more text to 'body=' it formats itself as the name of link. How do add more text to the body while keeping the 'name' for the hyperlink?

-Pomykala01 18:19, 9 August 2007 (UTC)
 * You have to URL encode the body (you can't have spaces in a URL - they are encoded to %20. Visit http://meyerweb.com/eric/tools/dencoder/ and encode your body text.  then paste it after the &body= argument.  NOTE - URLS can not be longer than 2048 characters (AFTER encoding).

How do I create a expandable subcategory?
I am using mediawiki. This my sidebar. Is there a way to make each section under webs to be able to expand where I can put subcategories???

-Chicagoboy 18:41, 9 August 2007 (UTC)
 * Webs
 * mainpage|Main Page
 * PRODUCTS|PRODUCTS
 * ACTIONS|ACTIONS
 * SERVICE|SERVICE
 * sandbox|Sandbox
 * Online Help
 * portal-url|Portal
 * currentevents-url|Current Events
 * recentchanges-url|recentchanges
 * randompage-url|randompage
 * helppage|help
 * There isn't currently a way to use multiple levels in your sidebar. I've seen a few people working on the problem currently and it has already been requested as an enhancement.  The closest extension currently is Extension:Tree_view - however that usually replaces your entire navigation with a tree view.

I'm having trouble installing this. I've downloaded the Treeview.php and uploaded it but I'm not sure where to put the code in my localsettings.php. Can you advise?


 * Contact the developer of the extension, best idea to do that is via the talk page for the extension. --Dr DBW 00:27, 14 August 2007 (UTC)

workflow plug-in
Dears,

There are some plug-in that implement workflow to approve page contents. Please help me

Thanks Expedito Junior (BR) -200.225.90.10 20:03, 9 August 2007 (UTC)
 * No, not currently. See Extension:FlaggedRevs for an extension that is currently under development.

HTML not being evaluated
I have the latest stable version of MediaWiki installed. However, I notice that I cannot do some things that I see on WikiPedia and other MediaWikis.

In particular, if I try to hardcode a "td" in a Wiki table, on WikiPedia a new cell appears. However, on my setup the HTML is displayed. If I make the table with "table" tags instead, things work fine.

I've also tried copying the Template:Tnavbar template to my system, and when I use it I get an extra "/span" after the "edit" and the three links are not the right CSS class.

Is there a setting I need to set to make sure that HTML tags are evaluated in more situations? -TedPavlic 20:41, 9 August 2007 (UTC)


 * See Manual:Configuration_settings for available HTML related settings. a TD should be evaulated by default, but you MUST properly code the entire table:

Yields:




 * I think I should have given a better example. Let's take the following code...


 * ...which produces (on MediaWiki, which I think is running alpha software)...


 * Cell4 is actually a cell. However, on my system, I get this result:


 * I see similar results when, for example, starting  and ending   tags are buried in separated  statements (or similar); the closing   gets displayed rather than evaluated. --TedPavlic 18:26, 10 August 2007 (UTC)


 * When you inline HTML into a page, it is run through a tidy process to validate it. By default, MediaWiki uses a builtin tidy, but Wikipedia and the other projects use an external tidy utility which is supposed to give better results.  That's the reason why yours is different, not the different software version.  You'll need to find the tidy program, and configure your wiki to use it. -Steve Sanbeg 18:11, 15 August 2007 (UTC)

CategoryTree not working (Maybe AJAX????)
Hi guys hope you can help. I cannot for the life of me get the CategoryTree extension to work. Im running both IE6 and Firefox. I have tested that javascript is working correctly with a script, and it is. I have downloaded both the bundle from the svn site and tried the old version of it, both with no success. When I input the categorytree tag in a page, I get the [-] tag next to the category, but when I click on it, nothing at all, even though there are pages in this category. I have made the necessary changes to LocalSettings.php with $wgUseAjax = true; require_once( 'extensions/CategoryTree/CategoryTree.php' ); and still not working, even after clearing out the cache. I have tested by changing the name of the CategoryTree folder in the /extensions directory, and it does throw an error, so its finding the folder correctly. Is there anything else I can do? It seems like this extension is a bit fragile somehow, or is there any other debugging or testing that AJAX is working correctly? Thanks guys. Simon -58.175.34.89 22:03, 9 August 2007 (UTC)
 * Try
 * Hi Tim!
 * Mate thanks so much. Ill give it a go right now and let you know :>)
 * Tim! YOUR A CHAMPION!! That worked! Thank u so much. Ive spent a couple of hours on this and youve helped me no end!! Thank u mate!!
 * np. BTW, don't forget to check around the site and look for examples before asking your questions here. ;-)

Initial View of Category Tree
Guys last question for today. I have the CategoryTree now working (thank you Tim!). Just a little issue is that when the page is loaded, it seems to expand all levels. So I have: [-]Category Page Page [-]Category Page Page [-]Category Page Page Instead of what Id like which is the following: [+]Category [+]Category [+]Category Then when Id click on each Category, it expands out to show the pages. Iv tried the following with no luck. Sorry last question. :>) Simon -58.175.34.89 23:15, 9 August 2007 (UTC)

How do I update search index after importDump?
This question is about migrating pages from one wiki to another.

I created an XML dump from an old site, using the command-line tool dumpBackup.php. I then used the command-line tool importDump.php to import pages into the new wiki. This imported the pages just fine.

The pages show in the Special:Allpages page. But when doing a search, the imported pages are not included in the search.

What process do I run so that all the pages are included in searchs?

-Xxaxx 01:49, 10 August 2007 (UTC)
 * Specifically, what pages did you import? Are they general articlespace pages, or user/talk pages? Kareeser|Talk! 17:21, 12 August 2007 (UTC)

StringFunctions page name variations
Please see Extension talk:StringFunctions for my question. -Eep² 06:28, 10 August 2007 (UTC)

Downloading extensions with .sql and .js files
When I want to download an extension with .sql or .js files like this, I click on "download" and I what I see is the text of that file. It doesn't download that file. When I click on "download" by .php files, it downloads that file normally. Do I something wrong? Or is this normal? Thank you, SPQRobin 10:04, 10 August 2007 (UTC)

Use the rightklick and save ass... 91.17.76.185 01:30, 11 August 2007 (UTC)
 * Oh, yes. Thank you, SPQRobin 18:25, 12 August 2007 (UTC)

Warning: require_once
I get the following error when opening my wiki:

Warning: require_once(./includes/Defines.php) [function.require-once]: failed to open stream: No such file or directory in /var/lib/mediawiki1.7/index.php on line 30

Fatal error: require_once [function.require]: Failed opening required './includes/Defines.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/lib/mediawiki1.7/index.php on line 30

However, the directories stated above are all existing. Please help me out, as hours of working might be lost now. PS: The wiki is installed on a Linux and wiki is version 1.7

Many thanks in advance! -13:01, 10 August 2007 (UTC)
 * Check user permissions? Kareeser|Talk! 17:18, 12 August 2007 (UTC)
 * Found the solution: uninstall en reinstallation helped me out. But anyway thanks to Kareeser! 10:41, 13 August 2007 (UTC)

How /Where to define the class of a table?
Tables like  {| class="infobox" cellspacing="2"  have a class. If i copy a template that has this class form wikipedia to my own wiki the class is not known like here and formatting looks bad. Where do i define this "class"? how do copy this class form wikipedia to my own wiki? Or where is this documented? -Leuk he 13:09, 10 August 2007 (UTC)
 * If you copied this you can find the content of this CSS class here. You just have to copy the classes you need to your http://wiki.emule-web.de/index.php/MediaWiki:Common.css. --WIKImaniac 15:03, 10 August 2007 (UTC)
 * Thx. That was the hint i needed. -Leuk he 16:05, 10 August 2007 (UTC)
 * Ich würde auch den kompletten Skin ändern, den Standartskin finde ich nicht gerade schön...
 * --91.17.76.185 01:29, 11 August 2007 (UTC)

Notification of article moved or deleted
I have been looking thru this site and I can not seem to find anything about sending a email to the creator/last editor of a wiki article letting them know it has been moved or deleted. Am I just overlooking it somewhere, or is this something I need to write a hook for?

-143.166.226.57 14:27, 10 August 2007 (UTC)


 * Use the RSS Feed from your WIKI 91.17.76.185 01:28, 11 August 2007 (UTC)


 * That is not what I am looking for. I am looking to see if there is a hook that is called when a article has been moved or deleted. So I can write a plugin to handle this.
 * TitleMoveComplete Manual:MediaWiki_hooks

How do I edit the "Create Account" screen in MediaWiki?
I want to change the Create Account screen so that Real name and Email address are no longer listed as optional. Help! I am using MediaWiki 1.10.1 with MySQL.

ANSWER: I've answered my own question. You open Special:Allmessages while logged in a sysop and edit the text from there.

-216.191.251.130 15:33, 10 August 2007 (UTC)

Speed up wiki
Does anyone know of things I can do to speed up my wiki. Memcached doesn't work on my server, but I have SSH access to run some programs.-141.158.61.42 18:51, 10 August 2007 (UTC)

@141 You can save the page as a Static page ..91.17.76.185 01:33, 11 August 2007 (UTC)

structured data input mechanism
I am looking for a structured data input mechanism, like a data form that the user simply fills out and clicks "Save", and the data is saved, perhaps in a template format where an existing template formats and displays the data. The handling for the users must be easyer... Are ther any Mod? -91.17.76.185 01:25, 11 August 2007 (UTC)


 * Simple Forms, Semantic Forms, and DataTable come to mind off hand, but see Category:Table extensions and Category:Form extensions for others. -Eep² 09:08, 11 August 2007 (UTC)

abbr and acronym tags -- not sanitary enough?
Why does MediaWiki not whitelist the  and   tags? It leaves a commented spot for them in its whitelist in the Sanitizer code. Shouldn't they be present? After all,  is present, and it's almost identical to them. -TedPavlic 03:09, 11 August 2007 (UTC)


 * Seems they were forgotten. There's also an open bug about this. I seem to recall Brion vetoed further whitelisting at some point in the past... robchurch | talk 05:34, 11 August 2007 (UTC)


 * That seems a little silly since there is a comment about abbr and acronym already in the PHP. It's as if they were specifically excluded. Maybe someone can write an extension to modify these. Then that extension modifier can keep up to date with W3C. Oh, well... -TedPavlic 16:45, 11 August 2007 (UTC)

Media Wiki only send Email to one Email Address on the registered list
I've setup apache_2.0.59-win32-x86-no_ssl, mediawiki-1.10.1 locally. I've configured Wiki to send out Email but It sends out Email to only one user on the list at a time. For example: I registered user_One@hotmail.com, user_Two@yahoo.com. They both have the same configuration on Wiki(Reveal my e-mail address in notification mails, E-mail me when a page I'm watching is changed. etc...). When I ( another different user ) edit the Main Page on Wiki, it only sends out Email either for user_One@hotmail.com or user_Two@yahoo.com. What I want is: I want Wiki sends out Email to  all the registered user(s) with the check mark in front of "Watch this page". Please help. Thanks in advance.

ogg upload
-196.207.40.212 09:09, 11 August 2007 (UTC)

Hello,

Can you please tell me where to upload ogg audio files to for playback via the wiki?

http://en.wikipedia.org/wiki/Template:Listen

I cannot see any path listed to the audio file to link to it externally... Many thanks.

Michael.

Question about headers and side navigation?
Is there a way to add a header? I'm mainly looking to add my site's main navigation layer.

Additionally, is there a way to remove the logo area and move up the side navigation?

I'm sure there are ways to do both of those, I guess the question becomes where do I alter the code?

Thanks, Jim R.


 * Hello Jim,


 * Please refer to http://www.mediawiki.org/wiki/Help:FAQ#Changing_the_Interface ... Does this solve one of your problems?

Error creating thumbnails/galleries
recently had to move our mediawiki 1.6 from one server to another. site seems to load fine, and database appears intact. however, users are getting errors when trying to create thumbnails and galleries.

example: Error creating thumbnail: /var/www/vhosts/mysite.com/httpdocs/wiki/bin/ulimit.sh: line 6: /usr/bin/convert: No such file or directory

where do i edit/change/fix this and how? thanks for any assistance!

-71.80.132.242 17:18, 11 August 2007 (UTC)
 * Either ImageMagick is not installed, or is installed in a different directory. The system path to imagemagick (or rather, convert), is hardcoded in LocalSettings.php Kareeser|Talk! 17:14, 12 August 2007 (UTC)

thanks for the info! given the path i've listed in this error, how can i re-install ImageMagic? also how should my localsettings.php file read? -71.80.132.242 17:18, 12 August 2007 (UTC)
 * I'm a windows user, so my experience might not be directly transferable. Try your best! Here is my setting:
 * # $wgImageMagickConvertCommand = "/usr/bin/convert";
 * $wgImageMagickConvertCommand = "C:\Program Files\ImageMagick-6.3.3-Q16\convert.exe";
 * You can see that I've commented out the "default" line, which points to /usr/bin/convert, and modified that line to point to the directory on my Windows box. You should do the same on your setup. Either install imagemagick, or find where it has been installed, and point $wgImageMagickConvertCommand to the right place Kareeser|Talk! 14:50, 15 August 2007 (UTC)

"offline" off server use of MediaWiki or similar possible?
From what is available about MediaWiki on en.wikipedia.org, that is currently not possible, but... --Organizex 17:38, 1 August 2007 (UTC)
 * 1) Is it being planned in the future version?
 * 2) What are some wiki softwares that can be used off line and have similar editing syntax, wikiTeX like MediaWiki, etc?
 * What do you mean by "offline" and off server? As long as you can install a webserver (usually Apache2), MySQL, and PHP Supoprt, you should be able to get it going.  Do you want to use it in an internal netowrk?  Or like locally just on your own computer?


 * Yes, that is correct. Organizex 08:43, 2 August 2007 (UTC)
 * Which? Local Network?  Or just Your Computer?
 * I have no preference between the two except the main objective of not requiring an active internet connection.Organizex 03:01, 9 August 2007 (UTC)
 * Yes, you can run the mediawiki server offline. If you are worried about security, you can set apache to allow only 127.0.0.1 (localhost) to have access, and deny access to anybody else. All you need is Mediawiki, Apache, PHP, and MySQL Kareeser|Talk! 17:13, 12 August 2007 (UTC)
 * Thanks, I will post again after I have looked into Apache.Organizex 07:06, 13 August 2007 (UTC)

Bureaucrat deleted
-201.223.151.232 11:13, 12 August 2007 (UTC)

I have a mediawiki software in a comunitary wiki, installed and when i move the privileges of my user, i lose the bureaucrat privilegies and anybody have thart privileges. I need to restore the bureaucrat, how i can do this?
 * Can you access Special:Userrights on your wiki? Kareeser|Talk! 17:11, 12 August 2007 (UTC)

I can't see. This is the trouble.


 * If it won't mess it up too bad, you might have to reinstall the wiki. Back everything up, and then reinstall with the settings you want. Smaug  20:29, 13 August 2007 (UTC)

Problem to add files
-192.118.88.2 11:14, 12 August 2007 (UTC) Hello, I have a problem to attache file. The side bar is not appear. any idea? Regards Elad


 * Hello Elad,


 * You must enable file uploads in LocalSettings.php, by changing the value of $wgEnableUploads from false to true. Kareeser|Talk! 17:10, 12 August 2007 (UTC)

Apache Error Log...
Hello everybody,

I've been getting this error logged in the apache log every time somebody goes to a page (any page on the wiki):

[Wed Aug 08 14:49:59 2007] [error] [client (IP)] File does not exist: C:/[System path to wiki]/wiki/common, referer: http://sesdb.kareeser.com/wiki/Main_Page

Weird that it's trying to access just the "common" folder, and nothing inside... could it be a permission problem?

Thanks! Kareeser|Talk! 17:09, 12 August 2007 (UTC)


 * I probably can't help you, but did this error start right after you installed the wiki, after something else happened or you did something, or did it start randomly? Smaug 22:14, 12 August 2007 (UTC)
 * I only got into the habit of checking the logs recently... so I'm not sure when it started :S... 206.248.139.177 14:39, 15 August 2007 (UTC)

Links that show up in another window

 * 1.10.1 is the version I am using.
 * PHP 5 but I am not a programmer so any solution in the guts of the coding would not be where I want to go :0)

In HTML as an example - Urbizzness

target="other"

makes the link appear in another browser window or tab depending on the type of browser.

When using the Wiki syntax

Main Page - UrbizznessWiki

- How do you get the link to show up in another window or tab in similar manner as target="other" in HTML?

Also is there a way to get the browser to show up in certain dimensions?

-70.71.227.100 22:27, 12 August 2007 (UTC)
 * Maybe you mixed up "target other" and "target _blank" for opening a page in a new window. If you want to open all external links in a new window you just have to change one single line of code in the file \includes\Linker.php. Change line 674 from

return ''.$text.'';
 * to

return ''.$text.'';


 * That works...thanks. I did however have to change target="_blank" to target="_other" before the Wiki software would deliver outside links to another browser tab. But now she works fine....excellent.


 * Could someone have a look at my question above, please? --WIKImaniac 12:35, 13 August 2007 (UTC)
 * If you find out the answer, tell me because I'd like to know too.... Smaug 14:51, 13 August 2007 (UTC)

Cant find any information (Please Help)
Hi, Ive been searching for days trying to find the syntax required to have the Category Tree not expanded by default. I cant find any appropriate information on how to do this. The main page for CategoryTree doesnt have it either. -58.175.34.89 01:27, 13 August 2007 (UTC)


 * Have you attempted to contact the developer? --Dr DBW 00:35, 14 August 2007 (UTC)

help changed url address:Solved
I was currently running wiki off my first domain but now I want to run it off my second, but the thing is it gives me an error page, domain it was installed on = http://insane-monkey.com/xudas but I want it to look like this http://xudas.com/index.php?title=main_page but its not working could you tell me what file I have to change the url code in, please email me at squeggie@gmail.com, ty


 * Did you just ocpy and paste all the files? You may have to go in to the code and change what the location is, and what the MySQL database is if it's changed.  I don't know how to do this, though, sorry. Maybe in LocalSettings.php? Smaug  20:27, 13 August 2007 (UTC)


 * I figured it out, I had to change the file that it was located at and just delete it, thanks

New Error Creating Thumbnails
I put a fresh copy of the ulimit.sh in the bin/convert folder, but now I get this message:

Error creating thumbnail: sh: /usr/bin/convert: No such file or directory

These are the contents of that file:
 * 1) !/bin/bash

ulimit -t $1

ulimit -v $2 shift 2

"$@"

Any ideas? -71.80.132.242 18:34, 13 August 2007 (UTC)

Update prob
I updated MediaWiki 1..2 to MediaWiki 1.10.1. Now I get a Internal Server Error http://www.zimwiki.com/index.php --70.67.167.157 21:29, 13 August 2007 (UTC)


 * A Zim wiki! Awesome idea!  I love it.  I dunno how to help you with your problem, though, sorry. :( <font color="#006500">Smaug  22:54, 13 August 2007 (UTC)

2nd prob
I fixed it :) (the permissions were wrong) but now I get this error "Too many redirects occurred trying to open “http://zimwiki.com/index.php/Main_Page”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page." I suspect it's from me fiddling around to much trying to fix the 1st problem.


 * What redirects do you have to or from that page? Also, what did you do to make the address "index.php/Main_Page"?  (I've only seen index.php&title=Main_Page and straight up Main_Page.)  Are you sure that is the address?  It's weird seeing what appears to be a php file where a directory should be. <font color="#006500">Smaug  14:37, 14 August 2007 (UTC)
 * 1.10.1 supports the index.php/Main_Page syntax by default - if you go to http://www.zimwiki.com/index.php?title=Main_Page, it redirects to: http://www.zimwiki.com/index.php?title=Main_Page" (note the extra double quote at the end - that ain't right... Maybe it's time to just re-run the config and copy some of the generated LocalSettings.php settings over to your hacked up LocalSettings.php (make sure to follow procedure and backup your existing stuff).  You do NOT need a mod_rewrite for the index.php/Main_Page syntax - mod_rewrite is for the Short URLs.  Also note that the true url still works fine: http://www.zimwiki.com/index.php?title=Main_Page - wiki is up, config is junk.  Run the setup/config again.

Help to configure users, groups and permissions for a determinated word or entry
-80.34.202.56 07:06, 14 August 2007 (UTC) I need some help about how can I configure my own wiki for only permit a determinated user to create/modify some entries but not the rest. I've been reading the docummentation and trying to find out the solution but it's impossible for me...

Thanks in advance, Susan


 * You can protect pages on a page-by-page basis, and then only administrators (or maybe other user levels, I dunno, but not basic users) can edit them. Is this what you are looking for? <font color="#006500">Smaug  14:38, 14 August 2007 (UTC)


 * See Extension:PageSecurity - Note rob's comment on that page - MediaWiki isn't designed for that sort of protection.

My wiki is acting up; it's slow or doesn't load at all
Just recently the main page of my wiki (located at http://www.uDIY.org) started loading very slow. Sometimes it won't load at all. It's impossible to navigate to any page other then the homepage. I recently integrated FCKeditor into the code (so the editing was wysiwyg) and thought this might be causing the issue, after removing all the FCKeditor code the site is still not working properly. I have some subdomains on the same server and they work fine, so I don't think it's a server issue.

Also, when the site loads properly the correct favicon (the letter 'U') is displayed, when it doesn't load properly the letter 'W' is displayed. I use the 'W' favicon for one of my subdomains.

I am using
 * Mediawiki version 1.10.0
 * MySQL database, version 5.0.27-standard-log
 * PHP version 5.0.5

Thanks in advance for the help. -69.137.221.147 15:11, 14 August 2007 (UTC)

Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.
I have a MediaWiki wiki and thus far it has been operating without issue. Some time later Friday night or Saturday however anybody logging in started to get the error message

"Login error: NerdFest uses cookies to log in users. You have cookies disabled. Please enable them and try again."

If you select "Remember my login on this computer" then it will still error out, but will show you as being logged in. Any attempt to edit a page however throws out the error; "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in."

Originally i thought that this was just a MediaWiki error and tried to re-install the php aspect of it while keeping the database in tact. Same error. So I decided to be especially thorough in my troubleshooting and I created a new sub-domain, with a new installation of mediawiki and a new database. Still nothing. For all of these instances I made sure I cleaned out my cookies and set up the site as a trusted site. I put in several tickets with my host and they basically said it was a mediawiki issue and I should take it up with y'all. I'm still under the belief that this is a PHP and SQL issue, but I thought it best to rule this one out first.

PHP 4.3.11 (They also have an undisclosed version of 5 installed.)

MySQL version	4.1.22-standard

MediaWiki version 1.5, 1.6, 1.7, 1.10

-12.46.128.66 18:55, 14 August 2007 (UTC)

Special:Search checkboxes
I have looked extensively through the code, but cannot figure out how to acheive what I want to do. I want Special:Search and search results to not display all the namespaces at the bottom, only some of them. All the talks, for example, I wish to do away with, as they are unused.

Thanks. <font color="#006500">Smaug 22:14, 12 August 2007 (UTC)


 * I think I found where it is, but I still dunno how to do it. In includes/SpecialSearch.php, there is a function powerSearchBox which I beleive to be the checkbox creator.  I do not have the necessary php skills, yet, to change it without messing it up.  How might I go about doing this?  Thanks. <font color="#006500">Smaug  01:44, 14 August 2007 (UTC)


 * Actually, I think you need to do it where ever  is set.  Somehow limit / change what that is, then all the other things will follow on automatically from there. --Dr DBW 02:24, 15 August 2007 (UTC)


 * Thanks for the idea. I can't find it in LocalSettings.php or includes/DefaultSettings.php.  I'm going to keep looking, but do you have any idea where it might be? <font color="#006500">Smaug  17:23, 15 August 2007 (UTC)

wfmsgext
What is it and when was it introduced? Thanks in advance, --Flominator 13:03, 15 August 2007 (UTC)


 * I don't know, but what prompted this question of yours? <font color="#006500">Smaug 17:56, 15 August 2007 (UTC)
 * See http://svn.wikimedia.org/doc/GlobalFunctions_8php.html#172b5098f951487946bb60cd983b9d1b - don't see any "implemented in" documentation. Standard message parser - it's used all over the place to parse out system messages.

Disabling uploads when there are images
Please see Manual talk:$wgEnableUploads. Thank you, SPQRobin 13:56, 15 August 2007 (UTC)

Can anyone with a Email edit a page even if its somebody elses page? Bug?
I was wondering about this webpage. I sign in and it looks to me I can edit anything on this page..Is this a bug? http://www.wowwiki.com/Server:Misha_US Alliance side says I can edit, Horde says I cant. I also have a edit button for the whole page. Is this a bug?
 * It's not a bug. That's how wikis work.  You can edit anything that's not protected (Unless they have some crazy permissions extension).  I don't believe WoWWiki runs any non-standard permissions.  So that's intended - that's how they have it set up.

Categories Not listing Sub Categories
I have a wiki running up at survivalwiki.org and my category page has recently stop listing subcategories. I believe It may be a database issue as this may have happenned around the time I attempted to install the wikiBB extension, which is not working. However I have attempted removal and still have this issue. I am wondering if this is something anyone else has experienced and if anyone has any suggestions for a possible fix.

-BiTMAP- -68.150.34.225 00:47, 16 August 2007 (UTC)

cannot login with Sysop account
MediaWiki version: 1.10.1

Enviroment: * PHP 5.2.3 installed * Found database drivers for: MySQL * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. * Session save path (/tmp) appears to be valid. * PHP's memory_limit is 128M. * APC installed * Found GNU diff3: /usr/bin/diff3. * Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. * Installation directory: /usr/local/apache2/htdocs/wiki * Script URI path: /wiki * Environment checked. You can install MediaWiki.

Issue: 1. "superuser account" is used in installation. But it has to run Installation twice to create LocalSettings.php file. And there is not "?>" at the end of LocalSettings.php. 2. Sysop account has been created, but it cannot be used to login.

-202.98.13.181 04:04, 16 August 2007 (UTC)


 * The missing ?></tt> is fine; we no longer place it at the end of most files, since it causes some issues when users come to edit their configurations
 * What does "cannot be used to login" mean - what happens? Error message? robchurch | talk 01:13, 20 August 2007 (UTC)

Using MediaWiki source code in commercial software
Hi If we use MediaWiki source code for creating a part of some commercial non-open-sourced software (it's not based on MediaWiki, just little part of it) - do we have to make our software GNU-licensed? Thank you, best regards, -Peterpen 07:09, 16 August 2007 (UTC)


 * Carefully ask the opinion of a qualified legal specialist on copyright law. MediaWiki code is protected by the GPL, as far as I recall.  However, IANAL and TINLA, but here is an opinion: if you use a seperate module accessed through an open API of the gpl code, you would only need to provide access to that specific module's source code. --Grymwulf 11:06, 17 August 2007 (UTC)


 * I think that if you distribute code Licensed under the GPL you must include a copy of the source code and the GPL with the software. You must make it very easy for people to have access to the sourec code

Missing question
Err. May be a daft question, but what happened to the question I asked the other day (substring search question) - it seems to have disappeared - I'd just updated it to explain in more depth, but it's disapeared overnight? -Nomis35 08:09, 16 August 2007 (UTC)

-62.159.112.104 10:56, 16 August 2007 (UTC)


 * Was it archived? Check up the top of the page, list of archived pages on the right --Dr DBW 21:56, 16 August 2007 (UTC)


 * It isn't in the Archive, looking at the history of the page, the following appears:

02:12, 16 August 2007 66.245.226.217 (Talk) (152,659 bytes) (undo) 00:47, 16 August 2007 68.150.34.225 (Talk) (48,311 bytes) (undo)

it's there in the version at 00:47, but not in the one at 02:12.

Any ideas? Or maybe I should just ask it again :-) --Nomis35 07:29, 17 August 2007 (UTC)


 * I would ask it again. --Grymwulf 10:46, 17 August 2007 (UTC)


 * OK - running Mediawiki from a Xampp install (MySQL 5.0.45, PHP 5.2.3, MW 1.10) - How do I enable substring searching - it works on Article text but not on the Article Titles. I've seen details for getting it working on Mysql4, but I'm obviously using the later version. - I've changed min. word length to 3 so I can search TLA's but thats the only config change I've made?--Nomis35 11:19, 17 August 2007 (UTC)

Security about edit a new Page
I have installed Mediawiki on a Server 2003 and it works fine. I want now something for the security about edit a new page. My Idea is, when someone wants to write a new Page he can save the site but no one can't see this page until an Administrator gaves his ok. The best way is, when someone wants to create a new page, Mediawiki send the Admin an eMail and he has to say Yes Thats good or no please delete..... Is it possible to create a rule like that?


 * Pretty sure there is an extension being / been developed to do something like this. Have a search through them. --Dr DBW 21:57, 16 August 2007 (UTC)

Disabling uploads when there are images
It is disabled by default. When you enable it, is it possible to disable it back, while there are images on the wiki? Thank you, SPQRobin 13:56, 15 August 2007 (UTC)
 * disabling and re-enabling the uploads has no effect on the content currently in the wiki, just the ability to perform those functions. --Grymwulf 10:44, 17 August 2007 (UTC)

Question
Hi,

we use MediaWiki for documentation of our Data-Center.

We'll get an Audit next month and now we have to print a lot (>300) articles because audit -guys loves paper and hates web :-/

Is there any interface, 3rd party code or whatever to print all articles that are on a list?

Were are using:
 * MediaWiki: 1.7.1
 * PHP: 5.1.5 (apache2handler)
 * MySQL: 4.1.21-standard-log

Regards, Stephan -84.178.21.47 14:36, 16 August 2007 (UTC)
 * Try using the Export special page, it will export pages into an .xml file format that should be able to be read by an XML document viewer. You can even export your entire documentation, then import it as tables into Microsoft Access, then create a report from the revision table, the comment field has the title of the page,  and text has the text of the page.--Grymwulf 10:43, 17 August 2007 (UTC)

Using the hook TitleMoveComplete.
I am trying to use the TitleMoveComplete hook and I can not seem to find the correct functions to get the information out of these array's. I tried something like "$OldTitle = $title->getTitle->getText;" which I have used on other hooks but that didnt seem to work. It would be nice if each of the hook pages had a example of how to grab the information from each of the hooks (http://www.mediawiki.org/wiki/Manual:MediaWiki_hooks/TitleMoveComplete).

$wgHooks['TitleMoveComplete'][] = 'fnKBMoveHook';

function fnKBMoveHook(&$title, &$newtitle, &$user, $oldid, $newid) {	$OldURL = ""; $OldTitle = ""; $OldID = $oldid; $NewURL = ""; $NewTitle = ""; $NewID = $newid; $ArticleMovedBy = ""; $ArticlePostedBy = ""; $ArticlePostedBy = "";

return true; } -143.166.226.42 14:43, 16 August 2007 (UTC)
 * Like so:

function fnKBMoveHook(&$title, &$newtitle, &$user, $oldid, $newid) {       $OldURL = $title->getInternalURL; $OldTitle = $title->getText; $OldID = $oldid; $NewURL = $newtitle->getInternalURL; $NewTitle = $newtitle->getText; $NewID = $newid; $ArticleMovedBy = $user->getName; $ArticlePostedBy = ""; $ArticlePostedBy = "";

return true; }
 * The "postedby" vars don't make any sense - MW is revision based, so you could figure out whatever information you needed off of the $title object - may need to load up an Article object to pull the revision data. See http://svn.wikimedia.org/doc/ for all the Class documentation.

SideBar Links
Hi Guys. I have set up a div id tag for the section "Projects" on the mainpage, so that I can link to it easily from the sidebar. I have made a link in the sidebar by editing the MediaWiki:Sidebar page, and it is displayed as the word "Projects". I firstly tried creating the link by doing the following: mainpage#Projects|Projects in the editing section of the Sidebar page. This didnt work! The thing that did work was the following: http://localhost/mediawiki/index.php/Main_Page#Projects|Projects This is okay when you are at home, but for remote access, this is no good. Can someone please tell me how to do this so that I dont have to put in localhost, but instead, mainpage etc etc? Thank you. -58.175.34.89 15:44, 16 August 2007 (UTC)


 * Try  --Dr DBW 21:59, 16 August 2007 (UTC)

unicode title problem after export and import to new DB
Hi i have a problem with titles in mediawiki when i import the database in new db so i will explain more i need to move my database from current database to the other database in other server so i export whole of database then make new database and import it to new database... everything was well but titles of my articles were damaged

my language is Persian (Farsi) so i use unicode title for my articles the content of artice is still Persian the only problem is in titles

look at this page for example: http://codex.asroone.net/index.php?title=%D9%88%DB%8C%DA%98%D9%87:Recentchanges

i use mediawiki v1.0.6

howw can i solve my problem? -85.133.164.97 16:06, 16 August 2007 (UTC)

Server address changes to computername.local
I am running MediaWiki 1.9.3, PHP 5.2.2 and mysql 5.0.45 on OS X 10.4 Mediawiki runs and appears fine until I select something like "Random Page" from the navigation bar, my browser trys to open a page on computername.local insead of mydomainname.com. Everything works fine on local computers because the browser seems to be able to resolve omputername.local, but outside the local network the page is not loaded and I need to manually edit the address (replacing omputername.local with mydomainname.com) to get to a "Random Page". Any idea where MediaWiki is taking the domain name from and how I can change it?

thank you, bryan

-24.19.15.3 21:50, 16 August 2007 (UTC)
 * See $wgServerName - Also, you could re-run the configuration script from OUTSIDE the local box - the problem is when you setup MW, you ran it locally and were connected to http://compyname.local/ - NOT http://mydomainname.com/. (or that's my guess anyway) - Try just changing $wgServerName first.  It sounds like you only have problems when MW produces Full URL.

The database did not find the text of a page that it should have found
We recently upgraded to MySQL 5 and some tables in the database appeared to exhibit corruption. I've recovered the tables, but the Wiki is now giving me this error when I try to save pages - "The database did not find the text of a page".

I can see the text in the edit screen, but when I try to save, this is what I get.

Any ideas, please. I've been searching all over and have found nothing. Thanks.

-163.234.147.94 00:19, 17 August 2007 (UTC)

Editing text on bottom of content pages
On the bottom of many pages, it has a footer saying something like, "This page has been accessed 48 times. This page was last modified 18:41, August 14, 2007. Content is available under GNU Free Documentation License 1.2. "

How can I edit what it says here? It does't seem to be in Special:Allmessages, so it must be in the code. Where?

Thanks. <font color="#006500">Smaug 01:39, 17 August 2007 (UTC)


 * Actually, this text is in various Special:Allmessages:


 * MediaWiki:Aboutsite
 * MediaWiki:Copyright
 * MediaWiki:Disclaimers
 * MediaWiki:Lastmodifiedat
 * MediaWiki:Privacy
 * MediaWiki:Viewcount
 * —Eep² 09:28, 17 August 2007 (UTC)


 * Thanks! <font color="#006500">Smaug  12:38, 17 August 2007 (UTC)

Checking rewrite Rule - Articles with "+"
Hello there, i installed Wiki 10 and it works fine, with one exception: If i want to create a article which contains a "+" in the title this symbol will be deleted, so the article will be named without the "+". What can i do?

All help is greatly appreciated! - Flo -217.7.54.186 12:29, 17 August 2007 (UTC)
 * A plus symbol encodes to %2B - if you enter a literal + in a URL string, MW will translate it to a SPACE character. If you search for the nonexistant article title and then click the link to create the article - MW should create the properly URL encoded string.
 * Hi Tim is it possible to deactivate such a option? Because a friend of mine uses MW 9.2 in the english version and there it functions problery. Could you give me a example of your procedure? Thanks!! --87.160.20.195 19:27, 18 August 2007 (UTC) Flo
 * Well, if you searched for "One+Two" you should see a link on the search page (in the .new class red color) that links to One%2BTwo - if you create that page, the URL will always read One%2BTwo, but in plaintext - the real title will always be One+Two.
 * I tried that, i see the link for the "One+Two" Page. If i want to edit it i see the correct title in the heading, but if i saved the document it is saved as "One Two" --217.7.54.186 05:07, 20 August 2007 (UTC) FLO

Unknown Connection Timeout
I recently installed MediaWiki 1.10.1 on my Fedora Core 7 machine which runs PHP 5.2.2 and MySQL 5.x. However about half the time I try to view the wiki on another computer on my LAN, My connection times out. -Danielc192 21:56, 17 August 2007 (UTC)
 * Just when viewing MediaWiki pages? Or do you get timeouts on ANY web page hosted on your box?  Sounds like a network issue or an Apache issue.

Media Wiki installation
Hi! I am trying to install media wiki to my windows 2000 computer, but I cant get it to work.... I am using the newest WAMP and MySQL Server 5.0 (not the wamp included) I get this shown when I install:

PHP 5.2.3 installed Could not find a suitable database driver! For MySQL, compile PHP using --with-mysql, or install the mysql.so module For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so module

Everything I find seems to not work with WAMP

I am using MediaWiki 1.10.1 and WAMP5

-193.217.169.130 00:53, 18 August 2007 (UTC)
 * See Manual:Errors_and_Symptoms - enable the MySQL extensions.

enabling hotlinking
Dear Support, I'm a new wiki user, creating pages for a private company's new wiki site. I don't know what version it is, but they got it mid-2007, if that helps.

The company wants the wiki to be able to access its own database of images...hotlinking, I guess. There is no wiki administrator--no one is really in charge--so I'm kind of flying blind here, but it seems that hotlinking needs to be "turned on" in the configuration settings: that is, in LocalSettings.php, we need to do this:

$wgAllowExternalImages = true;

Is that all we need to do to hotlink to our own image database?

One of my techie colleagues asked this question. Do we also have to make sure the Upload Directory is properly configured and writeable by the Apache web server process? Then set the $wgEnableUploads variable to true to allow uploading in the web user interface? She also wondered if we needed to enable calls to a database - since dynamically created material would be accessed, rather than an image on a static HTML page.

Ideally, we want to be able to display the images and resize them on wiki pages.

Thanks for any assistance. JB -76.211.131.80 06:30, 18 August 2007 (UTC)
 * Hotlinking allows you to simply include an external image (static image). Resizing the external images won't be possible in MW - MW creates the resized thumbnails only for images in MW's database, NOT external (hotlinked) images.  I have no idea how you would accomplish using a fully external image DB - there's no built-in way to do it.


 * I'll let them know. Hotlinking=yes; resizing hotlinked images=no.


 * So, if my employers decide that static thumbnails are fine, and they want to hotlink, all they do is change/add $wgAllowExternalImages = true; to LocalSettings.php, right? Sorry to have you answer again...I really want to make sure I understand what you're saying before I relate this to my employers.


 * Thank you so much for responding.
 * JB
 * Yup.

How to provide a page outline (via template?) so that article contributors can fill in details between preset paragraph headings in the article ?
Hi there -

fiddled quite a bit with templates (on my private mediawiki installation) but I seem to be missing a point.

What I try to do is to set up a directory with information about historical persons (one person per wiki page) - following a standardized outline with detail paragraph texts in between povided by other users of the wiki.

Now of course I'd like the people who contribute to adhere to the rather strict outline of the article - thus I had hoped I could set up the outline as a template.

Upon generation of a new page (per person in the directory) the contributor would simply fill in the details BETWEEN the paragraph headings as set in the 'template'. That way I could still change/consolidate the paragraph headings at a later point without having to go through all individual pages. (Or add additional headings for additional paragraphs to be filled in for each entry, for that matter.)

Not sure if made my requirement clear enough.

In fiddling with the templates I came across the problem that while I can of course have a template included in an acticle it's kind of tricky (impossible?) to set it up as such that the individual contributor could write the detail text in between the (template preset) paragraph headings.

To that end it seems I would have to enter a template for EACH paragraph heading - but I'm sure there must be a better way?

Any hints appreciated (I'm quite a newbie to MediaWiki).

Many thanks in advance.

-84.174.112.155 09:25, 18 August 2007 (UTC)


 * I got a hint that I need to learn about template substitution as well as template transclusion - which I will do.


 * However I still wonder: Once I substitute the template into an article, if I then later update my template to change the heading layout - will the changes then propagate to articles that substituted text from the template? Will that work - at least as long as the users have not edited or rearranged the headings?


 * 84.174.100.96 14:18, 18 August 2007 (UTC)


 * Yes. There are also extensions (like CreateArticle) that can preload templates (but it doesn't parse the template and will include all of the wiki markup). —Eep² 03:11, 19 August 2007 (UTC)


 * Yes? Would you care to comment a bit more on this? (As I'm still missing something here, it seems.)


 * If I substitute the outline template into the article (so that the contributers can enter the detail text between the preset outline headings provided via the substituted template) - how do I ensure that later changes at the outline template are propagated into the article pages? (Wasn't even aware that this might be possible - short of a bespoke custom parsing solution).


 * On the other hand, if I would not substitute but transclude the outline template into the article(s) the contributors would simply see the link to that transcluded outline template in the article(s) - but couldn't enter the detail text between the outline headings.


 * How would that work?


 * Many thanks in advance for additional hints.


 * 84.174.124.254 10:43, 19 August 2007 (UTC)

Squid purge problems
Hi,

I have some problems with my Squid : when Mediawiki send purge request, it takes many many time (depend of the image quantity).

I've checked my access.log and there some strange lines : MediaWiki want to purge not existing thumbnail...

ex: there's "logo.jpg" on a page, without scaling (original sizes are 100px x 100px, and it is displayed with the same size on the page) and MediaWiki tells Squid to purge "100px-logo.jpg" in the "thumb" directory :s

What's the problem with MediaWiki ? Do I have made an error in the configuration ?


 * MediaWiki: 1.10.0
 * PHP: 5.2.0-8+etch4 (apache2handler)
 * MySQL: 5.0.26
 * Squid 2.6 (http purge)
 * OS : Debian ETCH

Sorry for my english ^^ -86.217.232.28 17:17, 18 August 2007 (UTC)

Picture with watermark
hi,

how can i put my Logo on every Picture that has been bigger as 300 x 300 pixel ? -91.17.85.140 22:57, 18 August 2007 (UTC)
 * There isn't currently an extension that does Watermarking. It could certainly be done - but someone would have to write it.  Check out the Project:Extension_requests for extension requests.

Get error at SmoothGalery
-Kampfschaf 00:34, 19 August 2007 (UTC)

'''I have installed SmoothGalery! Upload the SmoothGallery.php in my extensions Folder and the SmoothGallery Folder in extensions folder. And insert this in my LocalSettings.php'''

''$wgUseImageResize = true;

include("extensions/SmoothGallery.php");

$wgSmoothGalleryExtensionPath = "/mediawiki/extensions/smoothgallery";

$wgSmoothGalleryDelimiter = "\n" ;''

I get the following error:

 Fatal error: Call to a member function getUrl on a non-object in /www/htdocs/v110248/other/mediawiki/extensions/SmoothGallery.php on line 241

Line 241 ist: $full_thumb = $full_thumb_obj->getUrl;

What i wan't to do is:

<sgallery showarrows="true" showcarousel="true" showinfopane="true" timed="true" delay="1000">

Image:001.jpg

Image:002.jpg


 * You should ask on the extension's discussion page, or contact the author directly if you don't get a reply. —Eep² 03:11, 19 August 2007 (UTC)

Are template substitutions evaluated even when in a COMMENT line?
I have a comment line in my template 'OutlineTemplate' which reads:

"Put into newly created article and save. This will generate an outline IN the new article you can then work from."

Now it seems that the substitution is evaluated EVEN THOUGH THIS IN A COMMENT (which seems odd to me; or is this kind of a feature?) - resulting in some recursive mess.

Any hint how I can ensure a simple comment quoting the EXACT substitution command (that is, with TWO curly brackets each side) will show up in the article (that is, after substitution) of the commentary line?

The reason is simply that most contributors of my wiki will first look into the edit source of an existing article to figure out how to create a new one...

Many thanks in advance.

-84.174.124.254 14:53, 19 August 2007 (UTC)
 * Disable wikitext for the comment block by wrapping it in &lt;nowiki&gt; tags:   text text


 * Tried to put those nowiki commands around my substitution on that commment line - to no avail, though: still get the "WARNING: template loop detected" message (again, as before, once the OutlineTemplate is used via  upon creation of a new article).


 * Also tried the nowiki commands (I take it that you meant them as shown on the help desk page as rendered, not as you entered in edit code...) around (i.e. before and after)) the COMMENT line - same thing, still substituted.


 * Odd. Any further ideas anyone? (Subst: seems a rather strong command to me now :-)


 * Thanks in advance


 * 84.174.124.254 17:26, 19 August 2007 (UTC)
 * Please precede your reply text with colons to indent. If you're trying to exclude the note text from transclusion, use  around the entire note section.


 * Though, after reading your description again, I'm still not sure exactly what you're trying to do. I'm sure it's possible, but I'm just not clear on what you want to type, where you want to type it, and what you want your users to see.  The SUBST prefix, if evaluated, WILL take out the template referance and replace it with the template text - there are cases where you only want the SUBST to fire upon transclusion, where you would do something like:  which causes the template to evaluate when the article is viewed, but actually SUBST when the template is transcluded.

Allmessages page shows up blank
I've installed MediaWiki: 1.10.1 on a debian server running debian 4.0 with PHP: 5.2.0-8+etch7 (apache2handler) and MySQL: 5.0.32-Debian_7etch1-log. Everything works fine except when I go to the Allmessages page, I get a blank page with no content at all and no error messages! Any idea what might have caused this? Thanks.

-62.60.194.40 15:30, 19 August 2007 (UTC)
 * See Manual:Errors_and_Symptoms - that will allow you to troubleshoot. Also, you might just need to wait longer - Special:Allmessages is HUGE.

How to execute template substitution automatically upon creation of a new article?
I reviewed http://meta.wikimedia.org/wiki/Template (and some other sources) but could not identify how I can configure Mediawiki as such that upon creation of a new article the resulting page is not blank but a default template would be substituted into the new article automatically upon creation (so as to make it easier for the contributors to adhere to a preset form without having to fiddle with the template substitution command themselves - which they would be having a hard time given the limits of their involvement).

Can anyone please point me in the right direction?

Many thanks in advance.

-84.174.124.254 18:04, 19 August 2007 (UTC)
 * Two options Extension:Boilerplate http://www.mediawiki.org/w/wiki.phtml?title=Project:Support_desk&action=edit&editintro=Template%3AQuestions-preload&preload=Template%3ASignature-preload (note the &preload= argument - it specifies a template to load - this style is per-link. The boilerplate style is for EVERY new article)

Hello Tim -

thanks for the quick reply and pointing me towards the Boilerplate extension. That one works like a charm (after I got over my initial error). Exactly what I needed.

Will also take a more than the initial cursory look at the second solution. (As I need to have the SAME preset text in EVERY new article Boilerplate suffices for now - many thanks for adding the other option though - I really might need it in the future.)

Thanks again,

84.174.124.254 07:14, 20 August 2007 (UTC)

templates expand in Wikipedia sandbox, but not in MediaWiki sandbox??
Hi,

Could someone please explain to me why saving templates to a sandbox page on mediawiki.org don't get expanded? For example, when I save this:

I get this:

as a virgin article link. This is a problem, because if I save the same code to a sandbox page on en.wikipedia.org, the article shows the proper expansion of the template content. What's going on?

I checked the documentation on MediaWiki.org and also searched back through several months on this help page. I found one recent template-related question above where the expert answered with this question: "Did you copy over all the templates onto your wiki?"

This makes me wonder if templates have to be copied and installed separately from the main MediaWiki package. Is this true? If so, why wasn't this done on mediawiki.org?

Any help appreciated, this is really frustrating me. I'm working with MediaWiki 1.9.3 to build a private wiki, and templates aren't being expanded in page edits on my wiki either.

Thanks,

-InBalance 19:00, 19 August 2007 (UTC)
 * I think this question has been resolved on the IRC help channel for the English Wikipedia (#wikipedia-en-help). InBalance came in to ask the question; it was explained that most of the templates on Wikipedia were created for Wikipedia by Wikipedia editors and are not included in the MediaWiki download. The redlink is the result of there being no template by that name. --70.0.29.135 19:53, 19 August 2007 (UTC) (NickW557 on en.wikipedia)


 * Nick, with all due respect, it looks like this is a deeper problem than you may suspect. There appear to be additional internal dependencies in quite a lot of the published Wikipedia template code. These internal dependencies become unresolved when code for any given template is copied wholesale from one wiki to another. For example, if you try copying the Template:helpme code from Wikipedia to a MediaWiki sandbox, you'll see that it doesn't expand remotely well. I know other readers here may want to just say, "well then, tough, you've got to create your own templates, or figure out all the interdepencies" -- but consider that a lot of the Wikipedia help pages on editing (some of which are linked to by the MediaWiki installation) make reference to Wikipedia template code. It's really hard for me to believe that the MediaWiki developers have just decided to ignore Wikipedia-user-created templates. Many of those templates seem to be deeply embedded into the generally perceived usefulness of the system -- InBalance 20:21, 19 August 2007 (UTC)


 * Pry a discussion for another page. Known Issue.

Hide Pagetitle
Hello folks, i want to hide the pagetitle on my main page. Is it possible? And if yes, how ? :) Thanks 4 your help! FLO -217.7.54.186 06:39, 20 August 2007 (UTC)


 * You can take a look at http://www.mediawiki.org/w/index.php?title=Manual:FAQ&diff=93496&oldid=85303 - it's really easy (once you know how :-)
 * Note also http://bugzilla.wikimedia.org/show_bug.cgi?id=6129 and http://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_hide_the_main_page_title.3F
 * Cheers, 84.174.124.254 07:17, 20 August 2007 (UTC)