Project:Support desk/Sections/Unsorted

From MediaWiki.org

Jump to: navigation, search

Contents

[edit] Unsorted Threads

[edit] (RESOLVED) HTML inclusion

Is it possible to include the HTML code below in a wiki page without installing Google Maps extension ?

<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=111661609153203707973.0004483c89c42b99a25b1&s=AARTsJps3Johc7PJJ8zbVh-pexd4N2zOPg&ll=-25.45118,-49.236774&spn=0.046501,0.051498&z=13&output=embed"></iframe>
<a href="http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=111661609153203707973.0004483c89c42b99a25b1&ll=-25.45118,-49.236774&spn=0.046501,0.051498&z=13&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a>

201.21.160.180 15:14, 13 March 2008 (UTC)

No, you will need the extension. --'Truetech (Talk) MediaWiki Support Team 17:58, 10 August 2008 (UTC)

[edit] Embedding an Excel File as OLE into a Wiki page

  • MediaWiki 1.12.0
  • PHP 5.2.5 (apache2handler)
  • MySQL 5.0.41

I would like to embed an Excel File which is sitting on our File Server directly into a Wiki page as an OLE object. Is this possible? —217.5.177.110 12:53, 23 April 2008 (UTC)

[edit] [file:// does not work

  • MediaWiki: 1.12.0
  • PHP: 5.2.5
  • MySQL: 5.0.51a
  • URL:

Hello,

I just successfully migrated my Wiki to a new server. Everything works, except the external links. I have several places where I use [file://server/directory/file] to open directly a PDF file. It still works fine on my old server, but not on the new one. It is just getting displayed as text. Is there a special setting i have to activate?

217.5.177.110 13:03, 25 April 2008 (UTC)

[edit] (RESOLVED) How do I require an email address when creating an account?

How do I require an email address for the 'create an account' page? I noticed in the code there is a variable called 'emailrequired' that, if set, does not display the 'e-mail address is optional' message but rather something else.

I need this because I have set the wiki to be only readable to people with authenticated email addresses.

Thanks for your help!

Dave —Dk253 01:01, 3 May 2008 (UTC)

I know that you can change that setting when setting up your wiki. So upgrade to 1.13. --'Truetech (Talk) MediaWiki Support Team 02:27, 15 August 2008 (UTC)

[edit] How to Make "Random Page" Select Only Pages from a Certain Category?

  • MediaWiki: 1.11.1
  • PHP: 5.2.3 (apache2handler)
  • MySQL: 5.0.51a
  • URL: DishiWiki

My wiki is a recipe wiki. I have changed the label for Random Page in the navigation sidebar to read "Random Recipe." Of course, it randomly :) brings up a page that is not a recipe. All pages that are recipes have a category tag of [[Category:Recipes]].

So how can I structure the Random page link to pull up only pages categorized as recipes? I have explored but am not ready to create a custom Namespace for recipe pages.

I think this "trick" would be very useful for many types of wikis! Thanks for all the help here on MediaWiki and elsewhere. -Brian7632416 23:18, 12 May 2008 (UTC)

Probably the SQL query in SpecialRandompage.php (directory "includes") has to be rewritten, but I don't know much about SQL, and my trial this morning wasn't successful. (Tried to involve the MySQL table "categorylinks" with "cl_to" into the SQL query.) Meanwhile alternatives may be
but both probably with a lot of pages to include or exclude manually. --89.55.152.75 20:13, 13 May 2008 (UTC)
Thanks. I, too, tried massaging MySQL table "categorylinks" column "cl_to." I looked at SpecialRandomPage.php but don't want to mess with it yet. $wgExtraRandompageSQL is unwieldy as long as it is wired for "page_title," but I couldn't find the category variable to substitute for "page_title." I will now look at Random conent extensions. Thanks so much. Brian7632416 21:19, 15 May 2008 (UTC) [Edit:] Nothing in that group of "random" extensions is what I need.
The SQL query of SpecialRandompage.php is limited to the "page" table, as far as I can see; the $wgExtraRandompageSQL variable is part of this SQL query, so it's not possible to involve parts of other tables with it (like the "cl_to" row of "categorylinks"). That's why I said that probably this SQL query has to be rewritten for this purpose.
You could use $wgExtraRandompageSQL in LocalSettings.php like the following:
$wgExtraRandompageSQL = 'page_title != "Main_Page" AND page_title != "Page_1" AND page_title != "Page_2" AND page_title != "Page_3" AND page_title != "Page_4" AND page_title != "Page_5"';
but you would have to EXclude all the non-recipe pages this way. Using "OR" instead of "AND" and "=" instead of "!=" should be the other way (INcluding all the pages you want), but as there are much more recipes than other pages this would not be the way of choice, I think. Surprisingly I could not prevent the Main page to be shown this way.
I tried it also with the extension Extension:RandomInclude this morning, created 5 test pages (Testseite 1 bis Testseite 5) and included them on a randomtest page as templates (with {{:Testseite 1}}). Works on 1.9.6 (look at http://joergmaske.de/wikip/ and the link Randomtest in the navigation bar), of course showing just the content of the page, not the selected page's name, and I had to disable the cache like mentioned on the short manual. Disadvantages: You have to include all the pages you want to have selectable for random, and the disabled cache. Advantage: You have more control on which pages you don't want to show without using $wgExtraRandompageSQL or changing categories (if this would work sometime). --89.55.189.114 08:30, 16 May 2008 (UTC)
Thanks for your work. I see your Randomtest link, and I can use that extension for something else. I'm beginning to think I need a namespace for Recipes, which I have been avoiding.
In the meantime, I will try:
$wgExtraRandompageSQL = 'page_title != "*Tips"';
to try to exclude "Kitchen Tips" pages, which have titles like: "Citrus Tips," "Egg Tips," etc. Will the wild card * work, I wonder? If so, I could add "Recipe" to the title of all recipe pages and use:
$wgExtraRandompageSQL = 'page_title = "*Recipe"';
but I've never wanted pages to be so "fully titled." Like you, I have just discovered that Main_Page is not being excluded with:
$wgExtraRandompageSQL = 'page_title != "Main_Page"';
so I give up for now. - Brian7632416 18:20, 16 May 2008 (UTC)

[edit] Recurring issue logging in various MediaWikis

Logging in to various wikis powered by MediaWiki is too often a frustrating experience. I use a password manager, KeePass, so when I register at a wiki (or any other site) I create a new entry and have KeePass generate a high-security password for me. I drag-and-drop this password into the registration form.

So there should be no excuse for my password to be rejected as incorrect when I go to log in and drag-and-drop my login information, or paste from clipboard.

The current problem is with http://freemind.sourceforge.net/wiki/index.php/Main_Page . I've successfully logged in there before... even earlier today! But it's suddenly rejecting my login as having an incorrect password. Grrrrrrr!!!

This time I'm not going to go through the whole process of requesting a new password and creating yet ANOTHER password to be able to log in again, because first I want to know exactly what's going on. If someone could please e-mail me at foxcole@yahoo.com, I'd like to know what the wiki thinks my password ought to be and where that password came from... or, if it does have my correct password, why exactly my login is being rejected.

I would like to note that after I go through all the motions to reset and create another new password, I generally have no further problems with that site. But I shouldn't have to be going through all this in the first place. My original login should be valid forever until I change it myself.

63.64.39.28 21:39, 14 May 2008 (UTC)

[edit] (RESOLVED) A Wiki protected by htaccess gives an internal error 500 when accessing through a Proxyserver

  • MediaWiki: 1.11.0
  • PHP: 5.2.5-pl1-gentoo (cgi-fcgi)
  • MySQL: 4.1.22-log page)

I have may Wiki htaccess protected for educational and research reasons. However after a couple month it was not accessible anymore through a Proxy server feeding only one IP adress to the internet from our company. The server with the wiki on is outside the company. Actually some pages are readable but log in is impossible. Has this problem to do with the WIki settings or with the proxy settings. The access to the Wiki without Proxy works perfectly well. —85.1.21.79 20:46, 15 May 2008 (UTC)

Try upgrading your MySql. --'Truetech (Talk) MediaWiki Support Team 02:47, 15 August 2008 (UTC)

[edit] link back to mediawiki from external page?

I've installed Mediawiki and in order to have a dynamic collapsible menu I created a menu page and dropped it in http://internalsite/socwiki/clientlisting/menu.html. The functionality I want is to have the menu links reload the page inside the wiki with data from the wiki.

For instance

When you click on Location0 it will take you to http://172.26.50.211/socwiki/index.php/Location0

I just couldn't find any other way to get the collapsible menu to work in a page other than using an IFrame - but when I link back now - it basically reloads the whole wiki into the content space. so it's like two wikis nested within each other.

Any Help/Info is appreciated. —75.127.66.250 16:58, 17 May 2008 (UTC)

[edit] How to login and link to mediawiki from another web application?

I am writing a web application and I want to provide access to my copy of mediawiki via links to specific pages in the wiki. I already have a password protection scheme of my own, and would like to automatically login to mediawiki as or before I start mediawiki in a separate window. I'd also like to be able to create new mediawiki users and new pages with personalized empty-page messages.

I am a php newbie, but program in other languages including perl and C++. I have been trying to get the Api:Login working using Snoopy as suggested in the Api:Login documentation, which references this information: http://lists.wikimedia.org/pipermail/mediawiki-api/2007-October/000117.html

The example 2 there works as advertised, but after completing the login, I want to start a particular mediawiki page as the now-logged-in user, preferably in a new window. Using a HREF link on the resulting page doesn't work; I get there but the user is not logged in. Using Snoopy to fetch the page and print_r the snoopy->results gets me to the page, which tells me I'm logged in. But links to new pages, such as "edit", don't maintain the login.

I'm guessing that the problem involves sessions, and in-memory cookies. I would prefer in-memory cookies for their security advantages, but can live with ordinary cookies if necessary.

I've tried searching the web for a solution, but all I've found is complex approaches (like Drupel) which I don't understand, and which seem to require extensive patches to mediawiki.

75.147.32.154 03:19, 19 May 2008 (UTC)

[edit] How to validate fully upgraded wiki ?

  • MediaWiki: 1.12.0
  • PHP: 5.2.2 (apache)
  • MySQL: 4.1.21-log

(* URL: internal project)

Hello, I'm quite new to this forum even though I've been using wiki for some time now, but I've recently moved from one ISP to another and at that time from a Windowsbased host to a Linuxbased one. Well, I had everything up and running smoothly on my new host, the wiki worked fine (don't remember the version but it was quite old) and I upgraded to version 1.11.2 without any problems, everything still worked fine.

But then I noticed there was a version 1.12.0 and I set out to upgrade to it. Now here's the tricky part, previously on Windows I had shell access and used to run the upgrade.php scripts, but now I don't, so I tried the reinstallation option, backed up everything, made copies of localsettings.php etc and launched the setup.

It immediately failed with some kind of script error about $wfIniGetBool not being correctly defined on line xx in /config/index.php. After some checking of access rights and everything I could think of I decided that oh well, before restoring backups I might just try to get around this and removed the checks for wfIniGetBool. This let me run the upgrader, the database checks were executed and some upgrades were reported, and then the installation was supposed to create a new localsettings.php which again failed since I had missed commenting out one section of wfIniGetBool commands.

This really didn't matter since I was going to replace it with the backup, after which done the site is working happily again and now reporting 1.12.0 as version, but this prompts my question(s).

a) what could possibly be the cause for this failure, I never saw anything about that when upgrading to 1.11.2 ? b) Was the installer supposed to do something more after creating the localsettings.php ? Is there something I might have missed that I should check for ? c) Is there some way for me to verify that my site is working correctly, i.e. both that the version now is fully upgraded and also to possibly prevent future issues like this one ?

Best regards // Mike —213.114.35.125 15:54, 22 May 2008 (UTC)Mikael R.

[edit] Extensions

Hi. I am looking for extension wchih will allow me to upload images from url, not only from hdd. Is there any? pogo

[edit] Navigation Tabs?

Does anyone know how to integrate this feature into a wiki? I've tried copying code into the MediaWiki:Common.css and MediaWiki:Common.js, failing to work at every attempt.

E.g. [1]
example of use: [2]
original source code: [3]

Help? --90.200.52.124 11:28, 28 May 2008 (UTC)

[edit] control User Preferences

Does anyone know how to globally change a custom user preference?

this is the code i belief that is adding the check box to the special:preferences / misc. page:

	public function onUserToggles( &$extraToggles ) {
		$extraToggles[] = 'riched_disable';
		$extraToggles = array_merge($extraToggles, self::$nsToggles);
		return true;

But I can't seem to have 'riched_disable' checked by default. Matt 19:17, 28 May 2008 (UTC)

[edit] Embedding external media without extensions

  • MediaWiki: 1.11.0
  • PHP: 5.2.2 (apache2handler)
  • MySQL: 4.1.20-standard-log

My organization runs a secure MediaWiki wiki. Users must be on a list of allowed users to read or edit wiki content. Authentication is handled with an Apache module and a wrapper for MW.

With these security features in place, we decided that rather than installing extensions to help us with embedding YouTube videos or Google maps in MW articles, we would set the configuration variable $wgRawHtml to true. Since we've done that, we are able to put a larger range of HTML tags in our MW articles.

However, it doesn't work with the "object" tags for embedding a YouTube video or the "iframe" tags for embedding a Google map. Instead, MW just displays the HTML in the article. Using "nowiki" tags around the HTML doesn't help, either.

How can I make this work? —Lance E Sloan 16:29, 29 May 2008 (UTC)

[edit] Permission Issue

Directory Listing Denied This Virtual Directory does not allow contents to be listed. If I type a path directly to the index.php file I get this:

phpMyAdmin - Error
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

Even former solutions offered have not helped. I installed php with the IIS install. I must use IIS because I also have .net on my computer. PHP works fine. I have run a phpinfo page. I installed phpMyAdmin but when I try to run it I get the above messages.

I have tried the solutions offered in different forum. Including this one: Right click on CMD.exe and "Run as administrator" and then type the commands below

icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant Users:(CI)(S,WD,AD,X)
icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant "CREATOR OWNER":(OI)(CI)(IO)(F)

I got a message:

'icacls' is not recognized as an internal or external command,
operable program or batch file.

I also right clicked the phpMyAdmin file and set permissions to read. It asked if I wanted it to apply to the child index.php as well I clicked yes.

I stll get the above messages. What now?

just a quick question, is this server side? if so, use a ftp client and right click on your root folder that the php files are in and CHMOD it by typing in 777 into the box. i know filezilla requires you to right click, others actually have option in the file menu for this as well.

edit: when you right click there should be a "setup permisisons" dialog box on the right click menu.

I am still very much a novice so some of that went over my head. I am doing what could be server side, but on my own machine. I really don't know what you mean by ftp client, unless I was accessing it from another computer, which I am not. When I right click on it I don't get a box of any sort that I can type in or any "set up permissions" dialogue box, but a box that says open, search, search, refresh thumbnail.. etc. at the bottom is properties.

Ok, I see now. It looks to me you are using your own computer as a server with IIS, my mistake. Well, first and foremost, you do have php installed on your machine, correct? then you will need mySql along with it. here is a great tutorial I found:

Installing phpmyadmin http://www.iis-aid.com/articles/how_to_guides/install_and_configure_phpmyadmin_on_iis
you also need to change the code $cfg['PmaAbsoluteUri'] = ; in your config.in.php file to $cfg['PmaAbsoluteUri'] = yourpathhere";
for example: $cfg['PmaAbsoluteUri'] = localhost/ASP/admin";
and change to
register_Global=ON

This post has been edited by duritz: May 20 2008, 10:53


Yes MySQL is installed.

It said that $cfg['UploadDir'] = ;. is an option. I might not need to actually do that. I did anyway. The instructions say, "log into your new phpMyAdmin install using the root account" That does not happen. I still get the error message! I still get the error message! I still get the error message!

In Internet Explorer it looks like this:

The website declined to show this webpage
HTTP 403
Most likely causes:
This website requires you to log in.

What you can try:
Go back to the previous page.

More information

This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.

For more information about HTTP errors, see Help.

I can mess around with the configuration all i want, but I still don't have permission.

I found no "$cfg['PmaAbsoluteUri'] = ; " so I added that command. I also added the "register_Global=ON" cause it wasn't there either.

71.82.6.222 19:15, 29 May 2008 (UTC)

[edit] Unable to add OpenSearch from my wiki to my browser

Hi guys,

I'm trying to add my wiki's (details above) OpenSearch to the search engines my browser uses, and am failing miserably.

On IE7 (7.0.5730.11), I get the following error message when trying to add the provider: “Internet Explorer could not install this search provider. There was a problem with the search provider's information.”

On Mozilla Firefox 2 (2.0.0.14), it just fails silently.

I’ve trying to save the output of opensearch_desc.php to a local file and add it from there, but it fails with the same error(s), although to my naked eye, the format seems fine.

Any bright ideas?

Thanks in advance
OgmiosProject 18:04, 30 May 2008 (UTC)

Some more info - I set FireFox's logging of Search Providers to true, and gave it another shot. The interesting part of the error console is as follows:
_onLoad: Couldn't convert byte array!
Error: [Exception... "'Failure' when calling method: [nsIStreamListener::onStopRequest]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "<unknown>" data: no]
Off hand, I'd say it's some sort of odd encoding problem.
Any ideas?
Thanks,
OgmiosProject 13:16, 8 June 2008 (UTC)

[edit] Search for short words not working after proposed changes

I've changed the fulltext index to 2 and 2 for both mysql variables and rebuilt the indexes (using the maintenance script), but this did not fix the problem. I still don't find anything when searching for XY or XYZ, even though the pages containing these words are in the searchindex table. Anything else I can do about that?

[edit] Can you hide the titles of namespaces a user doesnt have access to in the search page?

Does anyone know of a way to hide namespaces to which a user has no access in the search page where you select the namespaces to be searched? I've modified the search so the results don't contain text from hidden pages, but it would be nice to hide the fact that a namespace exists at all to avoid hacking attempts. It would also be nice to just hide some of the inherent mediawiki namespaces to have less clutter. I thought I read how to do this somewhere awhile back but I just can't find it now! Thanks for any help.

I user the extension "Blacklist" to hide my special-pages (and others) from the users (admin has to place a userdefined list into the LocalSettings.php), and this works properly. It should also work with specified namespaces.--FSLEP 08:47, 9 May 2008 (UTC)

[edit] How can I change User Links on top?

I'd like to add a new User Link on the very right top of the page and remove some. Where can I change it? --Subfader 00:13, 13 February 2008 (UTC)

Try editing monobook.php and if necessary alter main.css on monobook. --'Truetech (Talk) MediaWiki Support Team 04:02, 12 August 2008 (UTC)

[edit] How do I add more buttons on the edit page? - Does not work

Hello,

i added in two different wikis the same for additional buttons in MediaWiki:Common.js, but in one the buttons do not appear. is there any variable that needs to be added to local setting to support additional buttons or what else might be the reason?

thanks in advance
kind regards
--TurboKanne 11:22, 19 February 2008 (UTC)

[edit] (Solved) Recentchanges only shows max. 7 days????

My machine:
MediaWiki: 1.11.1
PHP: 5.2.2 (apache2handler)
MySQL: 5.0.41-community-nt

My problem:

the function Recentchanges only shows maximum the last changes of the last 7 days, even if you change to "show the last changes of the last 30 days" (&days=30), result: only the last 7 days are displayed. example:
http://[...]/dewiki/index.php?title=Spezial:Letzte_%C3%84nderungen&limit=500&days=30
(there are not many changes, the limit of 500 is enough)

Am I doing something wrong?

Is it a bug?

Is there a "hidden" maximum anywhere, maybe in the LocalSettings.php, or somewhere else?--FSLEP 07:31, 9 May 2008 (UTC)

7 days is the default, yes -- it's called recent changes for a reason :) The limit can be configured using Manual:$wgRCMaxAge.
The fact that there's a "30 days" link on the page even if the DB only has 7 is confusing though. -- 217.234.218.114 09:29, 9 May 2008 (UTC)
Thanks for your answers. This seems to be the solution for my problem.
Is it to be placed in the LocalSetting.php?
Example: $wgRCMaxAge= "7 * 24 * 3600 "; --FSLEP 06:02, 14 May 2008 (UTC)

[edit] (Solved) Uneeded Copyright removal

I don't own the afformentioned wiki, but I was wondering, how can I tell the owner how to removed the second copyright he has on the bottom of every page? He has it loading on the bottom left of every page, in addition to the pre-loaded copyright notice, so, could I given step by step instructions on how to remove this uneeded copyright? Thanks! —Logestic 20:42, 31 May 2008 (UTC)

PS: Is there anything I can add to my common.css to make it disappear? - Logestic 20:43, 31 May 2008 (UTC)

When looking at the source code, I find out that a gnu-fdl.png should be shown there instead of just the gnu-fdl link. Perhaps this image is not in the location where it should be so just the alternate text is shown:
<div id="f-copyrightico"><a href="http://www.gnu.org/copyleft/fdl.html">
<img src="/w/skins/common/images/gnu-fdl.png" alt='GNU Free Documentation License 1.2' /></a></div>
To remove it from being displayed using common.css this should work:
div#f-copyrightico {display: none;}
Regards -- 89.55.176.121 09:06, 14 June 2008 (UTC)
Or in your case edit main.css in monobook. --'Truetech (Talk) MediaWiki Support Team 03:59, 12 August 2008 (UTC)

[edit] How to change the destination of the login/register link on the right top of the screen

  • MediaWiki: 1.11
  • PHP: 5.2.3
  • MySQL: 5.0.41

Hi there mates i'm trying to force that when you click on this link it will redirect you to another site i have on my localhost system. So i can log in thru CAS authentication. Is there an easy way to do this? Thanks a lot!

Juanan 10:31, 2 June 2008 (UTC)

There should be. Try editing monobook.php in your skins directory. --'Truetech (Talk) MediaWiki Support Team 03:57, 12 August 2008 (UTC)

[edit] (RESOLVED) Upgrade Problems

  • MediaWiki: 1.9.2 / 1.12.0
  • PHP: 5.2.6
  • PostgreSQL: 8.2.7
  • URL: Title

I recently upgraded my MediaWiki installation from 1.9.2 to 1.12.0.

After upgrading, I found that no page was visible. A quick search for DOMDocument revealed that I need to install php-xml. So I ran the command:

 yum install php-xml

This took a while to execute (including quite a few updates for dependancies). After the update, postgres failed to start. I checked the documentation, and found that postgres had been updated from 8.1.0 to 8.2.7 (which have incompatible data formats).

Luckily, I had run pg_dumpall before trying to upgrade mediawiki. I restored this dump in the usual way. But now, mediawiki just gives me:

A database error has occurred Query: SELECT * FROM page_restrictions WHERE pr_page = '1' Function: Title::loadRestrictions Error: 1 ERROR: relation "page_restrictions" does not exist
Backtrace:
#0 /var/www/wiki/includes/Database.php(799): DatabasePostgres->reportQueryError('ERROR: relatio...', 1, 'SELECT * FROM...', 'Title::loadRest...', false)
#1 /var/www/wiki/includes/Database.php(1244): Database->query('SELECT * FROM...', 'Title::loadRest...')
#2 /var/www/wiki/includes/Title.php(1725): Database->select('page_restrictio...', '*', Array, 'Title::loadRest...')
#3 /var/www/wiki/includes/Article.php(312): Title->loadRestrictions()
#4 /var/www/wiki/includes/Wiki.php(256): Article->loadPageData(Object(stdClass))
#5 /var/www/wiki/includes/Wiki.php(46): MediaWiki->initializeArticle(Object(Title), Object(WebRequest))
#6 /var/www/wiki/index.php(90): MediaWiki->initialize(Object(Title), Object(StubObject), Object(User), Object(WebRequest))
#7 {main}

Can anyone suggest what the problem might be here, or how to fix it? The table page_restrictions appears to exist as far as I can tell.

MrAngel 15:12, 8 June 2008 (UTC)

OK, I should have figured this one out sooner. I ran the upgrade script after dumping the database, so I need to do it again. However, I now get an authentication failure for user 'dracula'@'localhost' (Using password: YES)
I've tried logging in to the database using the same username and password specified in LocalSettings.php, and it works fine. I have no idea if the problem is with MW, PHP or postgres now.
--MrAngel 15:29, 8 June 2008 (UTC)
Resolved - turned out to be a postgres config error --MrAngel 16:01, 9 June 2008 (UTC)

[edit] Interwiki SQL error

  • MediaWiki: 1.13alpha trunk version
  • PHP: 5
  • MySQL:
  • URL:

I installed the latest version successfully on my localhost wiki, for testing. However, interwiki links do not work from the interwiki-sql file. This is the error message I get:

SQL query:

(
'zh', 'http://zh.wikipedia.org/wiki/$1', 1
), (
'zh-cfr', 'http://zh-min-nan.wikipedia.org/wiki/$1', 1
), (
'zh-classical', 'http://zh-classical.wikipedia.org/wiki/$1', 1
), (
'zh-cn', 'http://zh.wikipedia.org/wiki/$1', 1
), (
'zh-min-nan', 'http://zh-min-nan.wikipedia.org/wiki/$1', 1
), (
'zh-tw', 'http://zh.wikipedia.org/wiki/$1', 1
), (
'zh-yue', 'http://zh-yue.wikipedia.org/wiki/$1', 1
), (
'zu', 'http://zu.wikipedia.org/wiki/$1', 1
),

MySQL said: Documentation
#1064 - 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 ''zh','http://zh.wikipedia.org/wiki/$1',1),
('zh-cfr','http://zh-min-nan.wikiped' at line 1

I did this via phpMyAdmin, since it is hard for me to use maintenance scripts with XAMPP (the platform I am hosting this on!) If anyone can help me, it's much appreciated!! Thanks, AP aka —Sunstar 18:52, 8 June 2008 (UTC)

[edit] display used templates

Hello,

can someone help me on this. If I click edit on a page, I can see all templates used in this page. It displays all pages (sections) I've included with #section-h. Exactly this list I'd like to include in my wiki document. On the bottom of the page I'd like to have a section displaying links to all the pages I've included sections from.

is there a way to display something like this?

Thanks —193.134.254.145 14:50, 10 June 2008 (UTC)

[edit] Email related problem (How to set SMTP mode and how to get log for an error)

I am facing problem in Email notifications.How to set the SMTP mode in DefaultSettings.php.

1. After changing the SMTP Mode according to our requirements and after uncomment the code i am getting an error in these lines. So how to uncomment these lines so that these lines will also run.

/**
* SMTP Mode
* For using a direct (authenticated) SMTP server connection.
* Default to false or fill an array :
* 
* "host" => '192.168.1.123',
* "IDHost" => '192.168.1.123',
* "port" => "25",
* "auth" => true,
* "username" =>myusername ,
* "password" =>password
* 
*
* @global mixed $wgSMTP
*/
$wgSMTP= true;

What all other changes we need to do enable Email notification.

2. How to get log files for any error.Is there any option which need to be set.

--Neelam.jain 05:29, 11 June 2008 (UTC)

[edit] How do I create a second database

Hi, I would like to create a second database with exactly the same structure as the first, and also using the same Mediawiki installation for both. The purpose is to have two different types of contents. How do I go about doing it and what's the disadvantage, if any. — PM Poon 20:58, 14 June 2008 (UTC)

What is your goal? Smaug 03:51, 15 June 2008 (UTC)
If only I know, LOL. Actually, I was thinking of having two sections, one for me to write exclusively, and another for the community. — 219.95.193.61 23:06, 29 June 2008 (UTC)
You could protect an individual namespace with $wgNamespaceProtection. Would that give you what you need? Otherwise, if you just want to have two wikis, you could just install MediaWiki in two different directories with different databases. Or else see Manual:Wiki_family. Smaug 14:58, 6 July 2008 (UTC)

Hi Smaug, thank you for your replies. I have so many ideas for using two databases accessed from the same main page. Now my mind is clearer. One is as said earlier, and the other is to have two languages, one being a mere translation of the other. Users can choose the language at the main page or the side panel. Once a language is chosen, the search bar does not show results for the other language even if some words are similarly spelt. — PM Poon 00:20, 14 July 2008 (UTC)

MediaWiki has some built in support for multiple languages, what with the translation of system messages into different languages. I'm not familiar with that functionality however. Smaug 03:37, 22 July 2008 (UTC)

[edit] Link to other Languages on sidebar

Hello, I have down loaded MediaWiki and installed 2 languages are Thai and English. I would like to know If I have the topic in Thai language , then I would like to link to the topic in English language in to sidebar. How can I do ? Wondermoon 13:41, 15 June 2008 (UTC)

Well, I have the same problem with 3 languages. I tried it with 3 scripts and 3 Sql's and with 3 scripts and 1 Sql. Both did not work. Can someone help? http://www.Genwiki.info eMail: kwartierstaat@yahoo.com

[edit] Display the edit links inside of the page

  • MediaWiki: 1.11.2
  • PHP: 5.2.4-2ubuntu5.1
  • MySQL: 5.0.51a-3ubuntu5.1
  • URL: private network

How can you make it so that the edit links inside of the article appear even if the page is protected?? I have a page that is protected but uses templates to get the information that is desplayed on the main page... I want to have everyone edit the actual templates but not the main page... Thanks

63.77.141.66 13:11, 16 June 2008 (UTC)

[edit] leveraging OS permissions for files used as links

  • MediaWiki: (Reported by your Wiki's Special:Version page)
  • PHP: 5
  • MySQL: (not known)
  • URL: [4]

Is there some way to leverage file permissions, like read, write, etc. when using documents and spreadsheets, etc as links from wiki pages? Example: a named wiki user can only read certain spreadsheets, but write onto others. I think I saw a piece about configuring Apache for this purpose(??) but not for IIS. I am using IIS. THANKS —68.178.62.32 20:26, 19 June 2008 (UTC)

[edit] Unable to enable HTML in wiki

Product Version MediaWiki 1.12.0 PHP 5.2.2 (apache) MySQL 5.0.51a-community URL: www.danda-comics.co.uk/wiki

OK i've created an FaQ for a game i play inside of a wiki and, although its against the idea of the wiki somewhat i've locked off other users from registering without permission etc so as to save the pages getting vandalised by ingrates. However there are certain things i would like to do which i can't do with the wiki formatting. So i had the intention of enabling HTML so as i could do some additional edditing that way, however Whenever i attempt to input ANY html code into one of my pages, i'm redirected from the wiki to the base page.

I have the following at the bottom of my localsettings.php (i'm typring this in so it may not be accurate in here)

$wgGroupPermissions['*']['createaccount'] = false; $wgAllowExternalImages = true; $wgAllowHtml = true;

Far as i can tell i SHOULD be able to use html with that code in there, but i have no idea why i'm being redirected out of the page, anny assistance would be appreciated (i'm sure its something mind numbingly simple)

193.63.197.246 03:15, 20 June 2008 (UTC)

Dunno about redirecting, but the variable is called $wgRawHtml, not $wgAllowHtml. --Sayuri 04:48, 20 June 2008 (UTC)

Whelp i've tried changing that (the allowhtml must've been a previous version or something. ( but still the same problem, whenever i edit a page and put in some html the edit won't stick and i'm sent back to the main site and not the wiki.

[edit] How do I upgrade?

How do I upgrade the mediawiki from version 1.6.8 to version 1.12.0? There's a lot of information stored, as well as quite a few modifications having been made with extensions and the theme. I don't want to lose any of it. Is there an easy-to-follow guide that will take me through the process step-by-step?

97.115.227.196 01:02, 28 June 2008 (UTC)

I am the sysop for my wiki site. The problem is that I made some changes in my preferences a while back. Afterwards the page for my sysop account changed. The logo appears on the right, the search page is on the bottom of the Main Page, and I can no longer find my preferences or any other items that should be at the top right of the page. How can I reset this? The history for the page has no record changes being made to my preferences so I cannot seem to solve the problem that way. Help

[edit] Interwiki Transcluding

  • MediaWiki: 1.12.0
  • PHP: 5.2.5
  • MySQL: 5.0.51a

I have a problem when transcluding a template into another site, using $wgEnableScaryTranscluding - What happens: A double linebreak appears before the loaded template. This doesn't happen when i use the template on the same site that it is created.

When i check the sourcecode for the page with the linebreaks, it has added <p> <br /> </p>. Why is this added and how do i remove it? Not a big problem, but it messes up the layout. --Aroekene 09:22, 2 July 2008 (UTC)

[edit] Math support

  • MediaWiki: mediawiki-1.12.0
  • PHP: 2.11.4
  • MySQL: 5.0.51a

Hey every one!

I have installed all the necessary softwares for math support and generated texvc.exe.And made all the changes mentioned in math.php and localsettings.php. Also, the mediawiki on windows asks to make changes in the image.php file, but there is no such file available in the mediawiki version that I downloaded.

I get the error "Failed to parse (unknown error):"

Please help!

Thanks a lot!!!

[edit] Sending e-mails to specific user groups

how can I send an email to a whole grup of users? i.e. I want to tell everybody of the bot-group via email to force their work in the wiki. thanks —84.188.198.121 13:10, 6 July 2008 (UTC)

[edit] I have a UId - but I cannot comeback - I have my internal number

I am lost out and very sorry if I am writing things in the wrong place.

I have a UId - tarcisio and I have asked a new pass to be sent to me, but - perhaps - I used an e-mail that has been dropped since a time.

I have my internal number. Would I put it here ? I do not think so!

How can I manage to come back?

Tarcisio tarcisio@member.ams.org

[edit] (Solved?) Import TikiWiki-Pages to MediaWiki

  • MediaWiki: 1.12
  • PHP: 5.2.6
  • MySQL: 5.0.51b-community
  • TikiWiki: 1.9.9

Hey, I have used TikiWiki for more than 3 years. Now I would like to change my Wiki to MediaWiki.

Is there any script or trick how to convert the Wiki-Pages from TikiWiki to MediaWiki? —193.111.40.210 13:20, 10 July 2008 (UTC)

For now try just to do the long way because I don't think there is a good explanation: Copying and pasting. --'Truetech (Talk) MediaWiki Support Team 03:44, 12 August 2008 (UTC)

[edit] Monobook Skin Variant Help with Line Breaks

  • MediaWiki 1.12.0
  • PHP 5.2.6 (cgi-fcgi)
  • MySQL 5.0.45-log

I have not edited my monobook skin too much, but for some reason my skin has some insane line breaks: For an example check My Special:Version and now take a look at your Your Version Could anyone enlighten me as to why mine does this? Or what I need to change to make it not act funny?

Hope I did this right —76.107.86.48 14:02, 12 July 2008 (UTC)

Yea whats wrong with it? --'Truetech (Talk) MediaWiki Support Team 05:36, 11 August 2008 (UTC)

[edit] Incorrect Link Lists

A template of ours is causing pages to show up on the Special:Disambiguations page even though the pages do not actually link to those disambiguation pages. The template is the Cite template. We tried to fix the problem with the template but have had no success.

Mjr162006 14:50, 16 July 2008 (UTC)

We have determined the cause of the problem. It is the #ifexist function from the ParserFunctions extension. If there is an internal link in the either of the outputs for the function, then that link will show up in all of the relevant Special Pages regardless of whether the target pages exists or not. I will now report this on that extension's discussion page.--Mjr162006 22:51, 21 July 2008 (UTC)

[edit] Database location

I would just like to apologize in advance, because I am well beyond my ken here. I set up a personal wiki on a local server using the lifehacker guide here -> http://lifehacker.com/software/wikipedia/geek-to-live-set-up-your-personal-wikipedia-163707.php, using WAMP5 1.6.5 and MediaWiki 1.5.8. The computer on which I was running this wiki was then brutally infected with a virus, and I was forced to reformat. Before I did so, I saved the entire wamp folder, which I presumed contained the data for my mediawiki project. However, as I am now trying to reconstruct the setup I had before, I have discovered several problems, most of which are probably for the folks at the wampserver forums. But as I'm trying to figure out how to get this up and running again, the first problem I have discovered is that I really don't know where the actual data for my database was saved. I know I should have taken the time to do a real backup (hindsight is 20/20) but I figured that just saving the whole folder would do the trick. I was very frustrated with my computer at that point, so the quickest solution seemed best.

If somebody can tell me that my data was actually located elsewhere and is now lost on my wiped-clean HD, then the plus side is that I will stop needing to bother nice people on forums like this one. But I would really like to get my wiki up and running again, if at all possible. Thanks in advance for your consideration, and for going easy on me.

MrCheshire 03:29, 18 July 2008 (UTC)

[edit] mod_auth_sspi with apache, php,mysql on windows

  • MediaWiki: 1.12.0
  • PHP: 5.2.6
  • MySQL: 4.1
  • mod_auth_sspi-1.0.4-2.0.58-3
  • URL: http:\\localhost\testwiki

I am trying to use mod_auth_sspi module for windows integrated authentication. I have loaded the module in httpd.conf LoadModule sspi_auth_module modules/mod_auth_sspi.so

and added the below lines

<Directory "C:\Program Files\Apache\htdocs">
   # Configure mod_auth_sspi - who can get stuff from this server.
   #AuthName "Intranet"
   AuthType SSPI
   SSPIAuth On
   SSPIAuthoritative On
   SSPIDomain MyDomain
   SSPIOfferBasic On
   SSPIOmitDomain On
   #SSPIUsernameCase lower
   # PerRequestAuth can now be safely set to `off` in 1.0.5
   #SSPIPerRequestAuth off
   require valid-user
</Directory>

Then what else we need to do to make mediawiki work with domains's username and password

[edit] W3C's WCAG 1.0 Priorities 1 and 2 checkpoints

Does MediaWiki support W3C's WCAG 1.0 Priorities 1 and 2 checkpoints? —198.103.172.9 16:06, 21 July 2008 (UTC)

[edit] Multi langage (French question)

  • MediaWiki: 1.12.0
  • PHP: 5.2.6 (cgi)
  • MySQL: 4.1.22-log
  • URL: Wiki de BelgAnt

Bonjour,

J'aimerai de l'aide sur comment créer un wiki multi langage comme vous l'avez ici (cadre en dessous qui permet de choisir sa langue). Je ne sais pas trop où m'adresser donc je me permets de vous contacter.

Merci d'avance

Translated verison from translate.google.com
[START OF TRANSLATE]
Hello,
I'd like to help on how to create a wiki multi language as you have here (below framework that ::allows to choose the language). I do not know where I speak therefore I will contact you.
Thank you in advance
[END OF TRANSLATE]
--76.65.3.32 04:04, 16 October 2008 (UTC)
Do you mean inter-language links? Tohd8BohaithuGh1 (talk | contribs) 22:27, 31 October 2008 (UTC)

[edit] dictionary

i want create a dictionary site in mediawiki. i have a dictionary in access database. how to import this database into mediawiki? and make mediawiki site? —212.138.47.12 09:16, 26 July 2008 (UTC)

Just install mediawiki onto your site and when asked for you database info put the same as you dictionary one. What is you website's address?--'Truetech (Talk) MediaWiki Support Team 23:54, 10 August 2008 (UTC)

[edit] Warning: Cannot modify header information?

  • MediaWiki: 1.12.0
  • PHP / MySQL: I don't know because I can't enter my wiki... = =
  • URL: This is Chinese = =

When I enter my wiki is result in a blank page.

I input the forcing debug code:

error_reporting( E_ALL );
ini_set( 'display_errors', 1 );

in the LocalSettings.php and I get:

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/unplkno1c/wiki/LocalSettings.php:1) in /usr/local/apache2/htdocs/unplkno1c/wiki/includes/WebResponse.php on line 10

Six of this line on the page...

What is going on...I am exhaused = =

If the solution needs to mod sth in the php.ini or sth like that,

please provide another solution that doesn't need to mod things like that

b/c I am using a free host... —Hamsterham 14:37, 1 August 2008 (UTC)

Sorry for I didn't make a title:P -Hamsterham 14:41, 1 August 2008 (UTC)

Try reinstalling your wiki (1.13 is a good version). If that doesn't work it might be because of your host. --'Truetech (Talk) MediaWiki Support Team 03:23, 12 August 2008 (UTC)
but why? maybe I can contact the host for solving this problem...-Hamsterham 14:21, 13 August 2008 (UTC)
Check that there's no space before the <?php tag or BOM character in LocalSettings.php. iAlex 20:54, 13 August 2008 (UTC)
Well,I dont think so... -Hamsterham 07:58, 16 August 2008 (UTC)
I thought that it is sth wrong with the php or safe mode, is it? -Hamsterham 12:54, 16 August 2008 (UTC)


[edit] Generell information about user maintenance such as rights, deleting accounts, access and protecting pages

  • MediaWiki: Version 1.9.3
  • PHP: 5.1.2(apache2handler)
  • MySQL: PostgreSQL 8.1.9 on i486-pc-linux-gnu, compiled by GCC gcc-4.0.gcc-opt (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

Hello there,

Im using the MediaWiki and would like to know if you also can make some special adjustments
such as deleting pages/users or giving some users no access to certain categories.

I would be very grateful for any responses. Don´t hestitate to contact me as well via mail at

d.dumitru@flexa.de —Regards from Germany - Maintower 08:52, 4 August 2008 (UTC)

Well you can't delete a user but you can block a user. You can always protect the category pages so only sysops can edit it, though I dont think you can block them completly from viewing it. --'Truetech (Talk) MediaWiki Support Team 23:41, 10 August 2008 (UTC)

[edit] is there a way to use "Gizmos" & other Special Content ?

I'm presently using MetaDot as a wiki platform, and like it for many things, like the ability to have email forums and group calendar "gizmo" pages. Can those kinds of things be found somewhere and used within MediaWiki? I'm also looking for the ability to display page hierarchies and to copy/paste page hierarchy templates as workspaces for clients to use. Is that possible in MediaWiki, or in any other relatively user friendly wiki you know of?

thanks, —PFHenshaw 13:35, 4 August 2008 (UTC)

Well it can be if you can find any extensions that do that. I know I saw google calander extension somewhere among others... Just go on the extensions category or type in the search box what you want and see what you come up with. --'Truetech (Talk) MediaWiki Support Team 05:10, 11 August 2008 (UTC)

[edit] Setting default to "protected"

Hi, I would like to set all my pages to "protected" by default so that only sysops and the user who started the page can edit it. Is that possible?

The reason is because I use the "Delete old revisions" feature to cut cost on webhosting. And it would be sad if there is any vandalism that goes unnoticed. Moreover, my articles at Dummipedia.org do not need much co-writing. Generally, each contributor can handle the whole article by himself. — PM Poon 18:01, 4 August 2008 (UTC)

That is not possible. It could be if someone creates an extension for it. --'Truetech (Talk) MediaWiki Support Team 23:35, 10 August 2008 (UTC)

[edit] How to Specify a Default "Main Page" for each custom namespace?

  • MediaWiki: 1.12.0
  • PHP: 5.2.5 (apache2handler)
  • MySQL: 5.1.26-rc
  • URL: Local LAN Only URL

I have spent several hours scouring the help files and, perhaps I am not familiar with how a Wiki is supposed to work but, I am not able to find any information on how to specify the default page for each new custom namespace.

I am under the impression that I would create a new namespace and have a "Main Page" appear for that namespace so a brief explanation of what the namespace is there for or what the namespace offers could be displayed.

Can anyone tell me how this is done? I have found how to modify the NS_MAIN "Main Page" but I don't want to do that. Any suggestion?

--Andrewggrant 17:20, 6 August 2008 (UTC)

[edit] Export of wiki to CD or USB-Stick

Hello ,

i have installed media wiki on a server with xaamp sql .

can i export the whole wiki to a cd or usb-stick, so that i can see the articles when i have no connection to server.

217.194.34.103 14:46, 6 August 2008 (UTC)

Yea if but you might have to do it one by one. In your browser that you are viewing your wiki on click on File>Save as> specify name and file type (ex: .doc for word). --'Truetech (Talk)