Project:Support desk/Sections/System

__NEWSECTIONLINK__ = MediaWiki System Support =

Displaying links to a page
I want to have a section on my Wikiversity page that displays what other pages link to it. For example, within the project, there will be many pages that can cross-reference each other, so I want all pages that link to one page to be displayed toward the bottom of that page. Does this make sense? If so, what would be the easiest way to go about doing that? Thanks! 122.102.199.90 11:42, 29 February 2008 (UTC)

TOC not redirecting properly
I'm getting a wrong redirect for the TOC. IF there's an heading called "Story" the link should be http://www.domainsite.ext/article#STORY but the links redirect on http://www.domainsite.ext/#STORY, without "article" so the browser is redirected to the home page!!!

I think it's an hosting problem, How can I fix this? Thanks in advance! --Lorenzone92


 * I'd be nice if you gave your url and your wiki information so we can help you. -PatPeter, MediaWiki Support Team  16:03, 22 December 2007 (UTC)


 * The wiki is on www.rockciclopedia.com. For istance if you go here and you click on "Origini" you'll be redirected to the home page... --Lorenzone92 21:54, 22 December 2007 (UTC)


 * Someone on your wiki edited a page wrong, it is either a system file or a MediaWiki file that defines how the ToC displays. Do you have access to your wiki's system files and MediaWiki files? Ask all your admins who have the same permissions if they did anything. -PatPeter, MediaWiki Support Team  23:27, 22 December 2007 (UTC)


 * I'm the only admin and I've edited nothing... I think I have to replace relative links with absolute links in the PHP file that pertain to contents table... --Lorenzone92 13:52, 23 December 2007 (UTC)


 * Yes they need to be absolute. -PatPeter, MediaWiki Support Team  19:52, 24 December 2007 (UTC)


 * OK but I've edited nothing... So I don't know where the problem could be! What do you think? Which is the PHP file that "manage" the ToC? --Lorenzone92 22:38, 24 December 2007 (UTC)
 * MMh... no one can help me? --Lorenzone92 15:44, 26 December 2007 (UTC)
 * Pleaseeeeeeeeeeee!! :P --Lorenzone92 11:36, 30 December 2007 (UTC)


 * Ouch sort of forgot about you here, sorry. Anyway it might have been edited when you installed MediaWiki (i.e. random bad default edit or loss of info in file transfer). I can't find any help information on the Table of Contents on MediaWiki, stay posted. -PatPeter, MediaWiki Support Team  17:48, 7 January 2008 (UTC)


 * So what do you think I can do? Which files can i reupload? Which PHP file create the ToC? P.S.: Thx for your help! ;) --Lorenzone92 17:51, 9 January 2008 (UTC)


 * I'd start with re-uploading the /includes/ directory, along with its sub-directories. Tuvok[Talk/en.wp] 06:38, 10 January 2008 (UTC)


 * And re-uploading that dir I won't lose my pages? --Lorenzone92 18:27, 10 January 2008 (UTC)


 * Yes you won't lose your pages, includes aren't attached to your database. You would lose a Special page if you forgot to re-upload it though. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  18:32, 10 January 2008 (UTC)


 * I've reuploaded all the directory with also subdirs but the redirections don't work anyway (for example here look at the ToC.. :( I tried to set all my files/dirs CHMOD to 777 but it's the same... --Lorenzone92 18:42, 10 January 2008 (UTC)


 * Don't forget me! :P --Lorenzone92 14:24, 14 January 2008 (UTC)


 * Don't worry, as long as you continue repling to the questions and whatnot your thread will remain here until it is resolved, see the policy up above, this is just one heak of a problem. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  17:25, 14 January 2008 (UTC)

This is what the source of your TOC is:

So I am going to have to put this up for another MST member, I am pretty sure there is an option somewhere for enabling "fullURL" for ToC or something. -PatPeter,  MediaWiki Support Team  00:30, 17 January 2008 (UTC)


 * mmh... so what should i do? --Lorenzone92 17:46, 17 January 2008 (UTC)
 * mmmhh? :P --Lorenzone92 22:01, 22 January 2008 (UTC)

Good job, keep bumping, I know someone here must know the config setting to enable full URL. -PatPeter,  MediaWiki Support Team  02:28, 23 January 2008 (UTC)


 * Bump, bump, bump... :D --Lorenzone92 17:07, 25 January 2008 (UTC)


 * I'm still here....... --Lorenzone92 21:33, 5 February 2008 (UTC) :P


 * I need help..... --Lorenzone92 18:26, 11 February 2008 (UTC)


 * May someone help me? --Lorenzone92 14:07, 28 February 2008 (UTC)


 * Try searching meta for any help on ToCs. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  19:36, 3 March 2008 (UTC)

Adding an additional Sidebar

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

Hi there I try to develop a little MediaWiki for some friends. They requested an additional Sidebar on the right side. General question: - is this possible? - I guess so... If it is possible, which file do I have to edit? I searched for Extensions but haven't found one, anyone knows about this? Ben

—212.184.19.70 10:17, 10 January 2008 (UTC)


 * You can create many sidebars as is done on this wiki, edit the MediaWiki:Sidebar article. See also Manual:Interface/Sidebar --Nad 19:41, 10 January 2008 (UTC)


 * Putting one on the right side will require some trivial CSS changes though. — color probe (talk | contribs | [[Image:Tournesol.png|20px]]Support team) 19:48, 10 January 2008 (UTC)


 * Great. Thanks for your help.Can you tell me in which file I have to add some css code?
 * CSS code can be put in the wiki article Mediawiki:Common.css --Zven 01:40, 11 January 2008 (UTC)


 * Thanks for your hint. Actually my skills writing CSS are low (sorry for that). So can you please give me more help concerning the code?
 * I read some CSS help :). Is it right, that I have to add in common.css some lines starting #rightcolumn {float:right etc} If this first thought is ok, then how to tell the code that there should be some Information in it (the right column)? Normally there is some html code e.g. text but even if I add this div tag to monobook.php I don't know how to add a WikiText into it... Hope you can understand my problems. Have a nice weekend.
 * Ok I found a possibility to insert a Wikitext into a div tag. Now the (last) problem is the Position. I added my div Container in monobook.php at several places. None of them was ok. Someone knows where exactly (after/before which lines) I have to add my code?. Or is it the wrong way? As color probe wrote I have to do the placement with "trivial" css?

Locking Down MediaWiki
Just installed v1.11.1 on Windows 2003, PHP 5.2 and MySQL at www.theearthwitch.com as a personal knowledge dump. Trying to lock it down so only myself and wife can view/add pages. Added the following statements to the LocalSettings.php file and restarted IIS. These lines are not preventing editting or creating of new accounts. What does work?

$wgWhitelistEdit = true;
 * 1) Specify who can edit: true means only logged in users may edit pages

$wgWhitelistRead = array ("Main Page", "Special:Userlogin", "Wikipedia:Help");
 * 1) Pages anonymous (not-logged-in) users may see

$wgWhitelistAccount = array ( 'user' => 0, 'sysop' => 1, 'developer' => 1 );
 * 1) Specify who may create new accounts: 0 means no, 1 means yes

—63.118.221.94 20:04, 28 February 2008 (UTC)

Some programming help needed

 * MediaWiki: 1.5.8
 * PHP: 4.4.0 (apache2handler)
 * MySQL: 3.23.58

For my wiki I would need some additional functions wich I hope could be possible via adding to the php code. Our users will use the wiki for their own different projects. I want them to have a way to decide if other users but them can edit their pages. We developed a "traffic light"-system for this using templates. "Green" meaning free to edit for anyone, "Yellow" please ask before editing, "Red" No editing. What would we need is the edit page to check if the "Red" template is present on a page, and if yes to not save any changes, unless the user editing is the user who first created the page. If the "Yellow" template is present in a page, the user who first created it (and that user only) should be able to revert that page.

Is this somehow possible?

—217.94.251.162 06:31, 29 February 2008 (UTC)

Main Page boxes

 * MediaWiki: 1.11.1
 * PHP: 5.2.5
 * MySQL: 5.0.24

Hi,

Fairly new to the whole wiki thing so plase bear with me.

I'm making an internal wiki for my company and managment have told me that they want several "boxes" on the Main Page (similar to the main page on wikimedia.org and wikipedia). but how do i go about adding those in? Are they just tables with all that info added in or is there a special code i need to us?

Plus, is there any way i can set all users preferences to search all namespaces as default?

Cheers

—62.49.155.133 12:41, 29 February 2008 (UTC)


 * MediaWiki: (1.11.1)
 * PHP: (5.2.5 IIS)
 * MySQL: (5)
 * URL: Not working yet but it is installed at Http://www.glsc.usgs.gov/mediawiki/

When I load index.php at the address above, I get a message that I need to configure the wiki. That's what I expect however, it fails to find a db when I click the setup link. I get this:

MediaWiki 1.11.1 Installation

Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list.

Checking environment...

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

PHP 5.2.5 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

I have installed MySQL but there must be a problem with it.

Thank you for any help you may be able to provide.

Rich Quintal

Webmaster

Great Lakes Science Center

—159.189.64.158 20:51, 29 February 2008 (UTC)

LDAP Groups in Wiki

 * MediaWiki: 1.11.1
 * PHP: 5.2.5
 * MySQL: 5.0.45
 * URL:

The issue we are having pertains to group access in the wiki. The code that we have lets users log in with there LDAP credentials; which is what we want. We want everyone who has a logon for our domain to have access to the information. The part that we can't get to work is we only want one group in AD to be able to edit the information on the wiki. As it stands anyone that can sign in can edit and add pages. This is the code that we are currently using. We are all new PHP so some of the code may be incorrect.

We have commented out $wgLDAPRequiredGroups, it makes the code fail when we let it run.

—198.182.163.125 18:11, 14 February 2008 (UTC)

Highly Available Wiki System

 * MediaWiki: 1.11.1 (latest)
 * PHP: 5
 * MySQL: 5.0
 * URL: (internal)

I am trying to use loadbalancing to create a highly available Wiki system. My idea is to have the wiki write to a master and read from a slave. This way, when the master fails, it can still keep on reading of the slave.

I edited the setup.php and DefaultSettings.php and added the correct values to use multiple servers, but when the master goes down, it doesn't read from the slave, it keeps on trying to go to the master...

Thanks in advance !

EDIT: It seems that when the master is up, the wiki IS conneting to the slave... Problem is that when the master goes down, the wiki crashes (which it shouldn't, it should just read from the slave)

—213.193.161.137 13:25, 18 February 2008 (UTC)


 * /See Category:Database variables and particularly Manual:$wgDBservers. Try connecting to your slave server manually and test if it contains the proper data etc. Also it's bad practice to change codebase files, you should do all configuration from LocalSettings.php. --Nad 21:10, 18 February 2008 (UTC)

Thanks for your reply ! Well, I followed the manual of wgDBservers, and edited the values that are there ! When I manually connect, the slave responds and all of the data that should be there, is there :-)
 * If the slave is synchronising ok, then I don't know. All I can suggest is to analyse what's happening when it crashes. I.e are there any errors logged? is it timing out? etc --Nad 22:55, 18 February 2008 (UTC)

Well, I took the following steps:

-Edited the files according to the manual (change $wgDBservers to true and added the server to the server array).

-Set up a MySQL-master-slave replication (outside of MediaWiki, or is MediaWiki supposed to do this itself?)

Also, the slave IS NOT down, MediaWiki just doesn't seem to want to connect to it when the master goes down... I now put the following code in the LocalSettings.php and restored the other files to default...

$wgDBservers=true;

$wgMasterWaitTimeOut=1;

$wgClusterTimeOut=1;

$wgDBerrorlog="/var/log/wiki/dberrors.log";

$wgDBservers = array( array(
 * 'host'=> "192.168.2.150",
 * 'user' => "user",
 * 'password' => "password",
 * 'dbname' => "wiki",
 * 'type' => "mysql",
 * 'load' => 0

), array(
 * 'host'=> "127.0.0.1",
 * 'user' => "user",
 * 'password' => "password",
 * 'dbname' => "wiki",
 * 'type' => "mysql",
 * 'load' => 1

));

When I put the master down, I get the following errorcode:

"Lost connection to MySQLServer during query (192.168.2.150))"

Thanks for your interest btw :)

Category page, contents breakdown
Cripes - what a load of text to wade through just to make a help desk request! I don't think any of it was relevant, so I deleted it all.

Here is my (version and platform independent) problem;

By default, pages in a category are broken down by the first letter of the page title (or the first letter of the category index) on the page for the category. i.e.

A A page A page by any other name Another page Annex All pages B Because Become By the way ...

To change that behaviour, for example to break down pages by the first two letters of the page title (or the category index), i.e.

A A page A page by any other name An Another page Annex Al All pages Be Because Become By By the way ...

Should I,


 * 1) Add a magic word to the category page,
 * 2) tweek a global parameter setting somewhere,
 * 3) install an extension,
 * 4) hack the source code,
 * 5) all of the above?

Thanks for help ppl. --Dmb 08:31, 19 February 2008 (UTC)


 * Well dude, you could hack the 'firstChar' function in ./languages/Language.php - it seems that the only code to use this function is exactly the call under ./includes/CategoryPage.php that you want to hack. Try to substitute this code, and you will see double character category indexing;

/**	 * Get the first character of a string. *	 * @param string $s * @return string */	function firstChar( $s ) { $matches = array; preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|'. '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|'. '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})/', $s, $matches);

return isset( $matches[1] ) ? $matches[1]. $matches[2] : ""; }

Of course you should probably rename that function, and add an option to activate this behaviour somehow. --Dmb 13:19, 19 February 2008 (UTC)

OK, now I have renamed the above function 'firstTwoChar' (keeping firstChar as it was). The relevant line to edit in ./includes/CategoryPage.php is within the addPage function ...

$this->articles_start_char[] = $wgContLang->convert( $wgContLang->firstTwoChar( $sortkey ) );

Now we need to call that selectively in response to some option... Suggestions? --Dmb 13:36, 19 February 2008 (UTC)

I wanted to change the logo in the LocalSettings.php but the $wgLogo is not there
I wanted to change the logo in the LocalSettings.php but the $wgLogo is not there where do i change it then?

—66.176.143.166 18:46, 24 February 2008 (UTC)


 * Add it.  Mønobi 19:59, 24 February 2008 (UTC)

A N S W E R : The image for $wgLogo is wiki.png. And this image resides in skins/common/images/wiki.png.

Rename your image to wiki.png, even if it is .jpg.

$wgLogo should be able to be defined in includes/DefaultSettings.php. --Detlef Lindenthal 20:40, 24 February 2008 (UTC)
 * You should never adjust the codebase files, set your logo using the Manual:$wgLogo global in the LocalSettings.php file. Do not adjust DefaultSettings.php or rename image files from the codebase. --Nad 22:02, 24 February 2008 (UTC)
 * Dropping $wgLogo = "/images/b/bc/Wiki.png"; into LocalSettings.php may be easiest; this allows you to upload Image:Wiki.png to the wiki as just another image. --Carlb 01:26, 26 February 2008 (UTC)

Email notification won't work

 * MediaWiki: 1.11.1
 * PHP: 5.2.0-8+etch7 (apache2handler)
 * MySQL: 5.0.32-Debian_7etch1-log
 * URL: http://werkwelt.de/mw

Hello,

I'm trying to install Mw 1.11.1; everything works fine

except for email notification :-(

Email address confirmation does work, this means that the PHP-Mailer works.

I switched on any switch in
 * LocalSettings.php and
 * includes/DefaultSettings.php and
 * Special:Preferences (Spezial:Einstellungen).

Does somebody have any idea what is missing?

mailto:detlef(at)lindenthal.com —Detlef Lindenthal 20:32, 24 February 2008 (UTC)
 * Are all settings you need of Manual:Configuration settings enabled ? ~ Seb35 09:16, 27 February 2008 (UTC)

Signatures php script?

 * MediaWiki: 1.11.1

Doubt anyone knows this, but what is the php script for signatures ( ~ ) ? ——The TattleTale Strangler 05:53, 1 March 2008 (UTC)


 * Parser.php; and here is some more information that is semi-related. Timneu22 18:58, 2 March 2008 (UTC)

After editing a section, browser returns editor to the top of the article not to the section

 * MediaWiki: 1.9.3
 * PHP: 5.2.5 (cgi-fcgi)
 * MySQL: 5.1.22-rc-community

The issue is this:
 * On Wikipedia:
 * I edit section X of an article
 * After I save, the browser keeps me on section X
 * On MediaWiki Sites that I administer:
 * I edit section X of an article
 * After I save, the browser returns me to the top of the article

This issue occurs on multiple wikis on multiple versions, so I don't think it is a versioning thing.

I want my Wikis to return to the proper section, like Wikipedia does... does anyone know how to do this? —Timneu22 14:28, 2 March 2008 (UTC)

Trying to set the script up as a SubDomain

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

Hi, I am trying to get the wiki to work as wiki.mydomain.com rther then domain.com/wiki, Th problem im running into is that if you goto the wiki.mydomain (which points to public_html/wiki) it trys to send me to wiki.mydomain.com/wiki. If i edit localsettings.php so that it will try to redirect to "$wgScriptPath      = ""; the page goes to text only.

Any advice on how i should edit it. or shall i start recoding it? (not sure if this is a common issue)

—90.242.137.6 10:32, 3 March 2008 (UTC)

Links to internal servers

 * MediaWiki: 1.11.1
 * PHP: 5.2.5
 * MySQL: 5.0.24

Is there any way of making a link on my internal wiki to a shared folder/file on my internal network?! I've tried numerous things, but to no avail.

Please help as this is vital for my wiki to be accepted by management!!

Cheers

—62.49.155.133 17:16, 3 March 2008 (UTC)