Project:Support desk/Sections/Miscellaneous

__NEWSECTIONLINK__

= Miscellaneous (unsorted) Issues =

Import failed: Loss of session data. Please try again.
I'm getting this repeatedly. How do I fix? --68.9.226.101 23:47, 22 November 2009 (UTC)

Linking pages by words
Hi, is there a plugin that automatically links key words to other Wiki pages? At the moment I am manually creating links but I'm sure there must be another way?

Any help would be much appreciated!

How to add certain structured info to a list or table by an inputbox or submit button
MediaWiki 1.14.0 PHP 5.2.9 (apache2handler) MySQL 5.1.33-community URL local

I would like to make a list on a wikipage. This list must contain "name", "date" and "in" or "out" fields wich can be filled in by an inputbox. The goal is someting like a log for our users, so we can have an overview of who is taking hardware on the road.

Can this be done in wiki (php)? And how?

Thanks in advance.

How to add product feeds from affiliates?
MediaWiki 1.15.0 PHP 5.2.9 MySQL 5.1.33 URL local

i would like to include product feeds from affiliate networks on my website Klusopedia. Can this be implemented and how? My affiliate network offers xml and csv feeds.

Thanks

Fatal Error...
I got this on a free webserver (so I don't have an access to it), after trying to save the page or to log in:

Fatal error: session_start [function.session-start]: Failed to initialize storage module: files (path: ) in /mnt/md1/public/d/o/dob/includes/GlobalFunctions.php on line 2453 What should I do now? :-D

Drkazmer

character before DOCTYPE "<<!DOCTYPE html PUBLIC .."

 * MediaWiki version: 1.13.2
 * PHP version: 5.1.6 (apache2handler)
 * MySQL version: 5.0.45
 * URL: local

I got a character above the logo "<" and I don't know what is generating it

and it is always there when I use the rich editor "disabling the rich editor doesn't help"

also with every preview it appends one more character as follow

< < one more thing

viewing page source I find that character before <!DOCTYPE..

<<!DOCTYPE html PUBLIC .....

looks like something is appending that character "<" to the (output stream) How to debug such behavior?

FireFox error console shows

help>questions). What is the code that the path infix in the page?

thanks for help


 * Do you mean using subpages? What sort of path do you mean? Wikademia

embed copies of authoritative versions of pages from other mediawiki instances, sharing one page history between mediawikis

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

There appear to be many ways of including content from one page to another, including templates and the "embed page" capability (which seems restricted to Special pages). The terms "transwiki", "inclusion" and "interwiki" are used in a confusing way making it difficult or impossible to answer some simple questions:


 * How, exactly and with examples, does one specify that the master or authoritative version of a page is at some other mediawiki, providing both a link to the editable version of that page and a visible & protected copy of it as if it were a page within one's own wiki (identical to the features of wikinfo?
 * How, exactly and with examples, does one simply include an entire non-Special non-template page from the same wiki? Is it possible to include from another wiki that is hosted on the same MySQL installation?
 * How, exactly and with examples, would one implement two-way transclusion so that the page could be edited in either one of two wikis, and the edits would be made reliably on the other to unify the page histories?
 * 1) Are there any good examples of public mediawikis sharing content in any of these ways with private ones?
 * 2) What other approaches, such as "auto-import of Wiki articles via XML using PHP's Expat Library" are used in Mediawiki extensions, and what are the advantages/disadvantages of doing this inclusion using XML rather than mediawiki's internal facilities?

Concurrent users and Add ons to Wiki
Do you know if there are any Microsoft word add ons that can be used with Wiki? Is there a way to lock a document so that no 2 users are updating the same file?

Completely Anonymous Editting (No IP)
Is there a way to allow complete anonymity? Or how about a system whereby an ID is shown instead of showing IPs?
 * MediaWiki	1.13.3
 * PHP	5.2.8 (cgi)
 * MySQL	5.0.67-community

Untitled
Remarque : Les versions de PHP et MySql sont celles fournies par Xampp 1.1.1.2
 * MediaWiki version: 1.14.0
 * PHP version: 5.2.8
 * MySQL version: 5.0
 * URL:

Comment puis-je afficher la valeur d'une variable contenue dans LocalSettings.php ?

How may I post(show) the value of a variable like $wgStylePath?

Many thanks

How to combine regular expression so that you get the number of contributors per article ? (Extension:contributors)
I would like to use a reg ex to get from:    > the number of users (here is 5).

So that i could use : in a Reg Ex to get the number of contributors in Article.


 * Then, how to get an average on every articles or articles from a special cat ? Thx!

What have I do?
I had to start new MediaWiki 1.15.0rc1 Installation but received:


 * 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.6 installed
 * Found database drivers for: MySQL SQLite
 * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
 * Have XML / Latin1-UTF-8 conversion support.
 * Session save path (/var/lib/php/session) appears to be valid.
 * PHP's memory_limit is 32M.
 * Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching.
 * 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/www/name_of_site.com/www
 * Script URI path: Installing MediaWiki with php file extensions
 * Environment checked. You can install MediaWiki.

Fatal error: Call to undefined function taint in /usr/local/www/name_of_site.com/www/config/index.php on line 1905

Does MediaWiki have access counter function?
I want to know that how many times is every page accessed. Can every page show its access times as the home page（main page）do? For example, japanese edition home page show "このページは 1 回アクセスされました. "(English: This page is accessed 1 times.)

If MediaWiki has this function, how do I configure it? If not, do I need to modify MediaWiki's source? How?


 * Wiki Environment:
 * MediaWiki 1.14.0
 * PHP 5.2.9 (apache2handler)
 * MySQL 5.1.33

Thanks & Best Regards ZhuZengyang

Default text
I am using and I would like to know one thing:
 * MediaWiki Version 1.16 alpha r 58683
 * PHP 5.2.8 (Apache2Handler)
 * and MySQL 5.1.34 - log

As an administrator for my private wiki, I would like to make it such that every time a new page is created in the main namespace, some default text shows, for example:


 * User 1 types in New Page and that page does not exist. He clicks on Create This Page and the text that shows up in the edit box is This is example text

Any ways of doing this in the MediaWiki: Namespace?

Deathgleaner 02:08, 8 November 2009 (UTC)

Mediawiki Link Regex

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.11 (apache2handler)
 * MySQL version: 5.0.86-log
 * URL:

I'm trying to create a bot for Mediawiki, but I'm having the hardest time with some regex. I was hoping somebody might be able to help me with my coding, or better yet, might know of a website with some regex geared towards Wikipedia, considering the many bots written for it.

What I'm looking to do with my regex pattern is to convert:

Link => Link Link => Link Link => Link Links => Links => =>

And do nothing to:



Le link Linko

What I have is:

$contents=$input; $contents=preg_replace("/\[\\.]+\]\]/iU","",$contents); $contents=preg_replace("/\[\[[^:\|]+\|([^:\{\}\|]+)\]\][^\[\/i","$1",$contents); $contents=preg_replace("/\[\[([^:]+)\]\]/iU","$1",$contents); $output=$contents;

And while it does an ok job, I'm noticing its a little loosely written, and sometimes takes out large chunks of code, leaves behind random brackets, and takes out spaces between words.

Any help is greatly appreciated.

—Gpaper 15:45, 9 November 2009 (UTC)

Enabling API so users don' t have to log in repeatedly

 * MediaWiki version: 1.15.0
 * PHP version: 5.2.10 (apache2handler)
 * MySQL version:  5.0.77-log

After a server crash our users now have to log in repeatedly. I tried enabling API using this line in our LocalSettings.php $wgGroupPermissions['*']['writeapi']   = true; That doesn't stop the issue Any help??
 * URL: http://newsroom.gazette.com

Pula Davis The Gazette, Colorado Springs

—209.177.133.254 18:40, 11 November 2009 (UTC)
 * Write API has nothing to do with your problem, API is not for humans at all. See and  for your problem. Max Semenik 07:57, 22 November 2009 (UTC)

Substing text added in EditFormPreloadText

 * MediaWiki version: 1.15
 * PHP version: 5
 * MySQL version:
 * URL: not yet released

Hi, I've an extension with this peace of code: $wgHooks['EditFormPreloadText'][] = 'addcategory';

function addcategory(&$text) {	global $wgParser;

if(isset($_GET['category'])) {		$cname = $_GET['category']; $wnew = $_GET['new'];

if ($wnew == 1) {			$temp1 = "\n"; $text .= $temp1; }		return true; }	return false; } when I use it i get the text in the new article that is

I'd like to have the subst executed. How can I do that?

—Maiocchim 16:53, 13 November 2009 (UTC)

Favicon
I added the line  to my LocalSettings.php. The reason I didn't use  as recommended in Manual:$wgFavicon is because my LocalSettings.php didn't have a $wgScriptPath defined, notwithstanding what it says in Manual:$wgScriptPath, and I was reluctant to add it because I don't know what other consequences that may have. Obviously I also uploaded a file "favicon.ico" to that same root directory where LocalSettings.php is located. Why then don't I see the favicon? Let's assume my browser works ok. Debresser 19:52, 14 November 2009 (UTC)
 * First, MediaWiki wouldn't work with no $wgScriptPath at all, so a sane default is used. Second, take a look at page source, if it's   , there's no chance it will work, because links need either an explicit protocol specification or path relative to site root (/favicon.ico), in the latter case current protocol will be assumed. Third, you should really use the same protocol for all stuff on the page. Summarizing: just drop the favicon to the server root, remove its variable from LocalSettings and it will work. Max Semenik 20:41, 14 November 2009 (UTC)
 * I did as you said. Which brought me back to my initial state. net result: all I have done is add the favicon to the root directory. But it doesn't show. And yes, the icon is of 16x16 format. Debresser 20:56, 14 November 2009 (UTC)
 * I don't see favicon.ico at http://bstcenter.org/, or your wiki is located on a subdomain? The icon should be in the server root, not where MediaWiki is installed. Max Semenik 15:16, 15 November 2009 (UTC)

Now I see the favicon. Don't know what happened. Debresser 01:19, 17 November 2009 (UTC)

How to install MediaWiki for the Oracle database
We have to install mediawiki on a windows server 2003, apache server and oracle database, but unfortunately i did not find any documentation that can help me proceed forward with this install. Please help me. Thanks!! —68.42.95.121 03:18, 24 November 2009 (UTC)
 * MediaWiki version: 1.15
 * PHP version: 5.3.1
 * As of version 1.15 can the whole process of installing MediaWiki on Oracle be done with web installer, as you would do with mysql. Libs have to present in php configuration so that installer identifies that you actually have Oracle installed. Installer also takes care of user and privileges. However in 1.15 there are still alot of bugs concerning Oracle database abstraction. I would recomend using svn build or waiting for 1.16 release. I courently have svn build on two production-level instances at revision 59168 and i haven't had any problems with it. If you have any issues or need some additional help, you can contact me on the mails in my user-page. freakolowsky