Project:Support desk/Sections/Miscellaneous

__NEWSECTIONLINK__

= Miscellaneous (unsorted) Issues =

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!

Cannot Create Pages
I'm using Mediawiki 1.6 and whenever I or any of my users click "save page" it leads us to a blank screen and our browser reads "done".

As far as I can see, all the permissions are in place, so I'm really not sure what to do.

---

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

Can't Get Short URLs To Work Properly

 * MediaWiki version: 1.15.0
 * PHP version: 5.2.8
 * MySQL version: 5.0.81 Community
 * URL: (where the URLs should be) or  (where the MW installation is)

Hi- I use Joomla on my main public_html directory as a CMS and then installed my wiki to /wiki. I wanted to let people access the site through /staff but have MediaWiki installed to /wiki. I put the following into my .htaccess file on my public_html directory under all of the Joomla required-things:

RewriteEngine On RewriteRule ^staff/(.*)$ /wiki/index.php?title=$1 [PT,L,QSA] RewriteRule ^staff/*$ /wiki/index.php [L,QSA]

and I also added the following lines to the almost very bottom of my LocalSettings.php file:

$wgScriptPath = "/wiki"; $wgArticlePath = "/staff/$1"; $wgUsePathInfo = true;

I am doing something wrong at all or is there another setting I need to change somewhere to let it work? I've already cleared the cache on my browser if they is the problem. Also, the URL redirection is working, but for some reason, there is no content where I am redirected to. For example, if I go to my install, I get redirected to the proper directory and the short URL there but when I get there, I get a 404 error. Please help!

Thanks. —Gmd8 15:21, 4 July 2009 (UTC)

Xml class forms

 * MediaWiki version: 1.14
 * PHP version: 5
 * MySQL version:
 * URL:

I see an example on page 306 of the MediaWiki book by Daniel Barrett. I would like to explore more uses of the MediaWiki Xml class particularly for implementing more forms. I cannot find any documentation for the class. Is there documentation, in particular for the implementation of forms? Is there a better way to do forms on wiki pages similar to the example I mention? I am interested in features like the select1 element of XForms.

—149.173.6.51 17:37, 15 July 2009 (UTC)

How Do I change the owner of a page ?
Product	Version
 * MediaWiki	1.14.0
 * PHP	5.2.9-1 (isapi)
 * MySQL	5.1.32-community
 * URL: Not available externally.

To get my Wiki kickstarted, I created many pages myself. Now that the community is growing, I want to change the owner of many of those pages - such that they get notifications when others contribute to the page, rather than me. How Do I change the owner of a page ?

—JonandEl 09:53, 16 July 2009 (UTC)

Rendering difference between php versions?
Migrating from
 * MediaWiki version: 1.14
 * PHP version: 5.2.9 (cgi)
 * MySQL version: 5.0.67-community
 * url: http://mw9.fhmusictech.com/wiki/Template:Box

To:
 * MediaWiki version: 1.14
 * PHP version: 5.1.6 (apache2handler)
 * MySQL version: 5.0.45
 * url: http://mw.fhmusictech.com/wiki/Template:Box

The same exact content renders slightly differently between these two installations, placing the end of a template inside of the closing tags of template's contents (like a bulleted list's closing tag ends up outside of the template closing text) on the page above. Is this normal or did I install something incorrectly? I just copied both the files and the database to the new server

thanks

—71.141.241.143 10:21, 16 July 2009 (UTC)


 * Is HTML Tidy compiled in both PHP versions? Happy ‑ melon 10:57, 16 July 2009 (UTC)
 * Ah, no it is not compiled on the new server (php 5.1.6). We are planning to upgrade the php installation, i'll make sure the admin compiles that into the executable. thanks --71.141.241.143 12:09, 16 July 2009 (UTC)

External user creation

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.5 (apache)
 * MySQL version: 5.0.41-community
 * URL: private

I want to create users remotely,9 with a script that has access to the database, what is the best way to do so? Write n encrypt script etc so that the data is thesame as when somebody registers via the wiki, or user the classes from the wiki?

Kind regards

Frank

—89.146.16.136 10:29, 17 July 2009 (UTC)

WAMP & MediaWiki

 * MediaWiki version: 1.5.8
 * PHP version: 5.2.9
 * MySQL version: 5.1.32
 * URL: Internal

I am trying to setup MediaWiki with WAMP and I am unable to get the email setting configured properly. I keep getting the following error:

Error sending mail: mail [function.mail]: Failed to connect to mailserver at "mail.domain.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set

My ISP's SMTP server requires SSL auth. Is that's what causing the problem?

Thank you, —207.188.29.244 23:36, 21 July 2009 (UTC)

Previous and Next icons linking to pages rather than the icon page

 * MediaWiki version: 1.11.0
 * PHP version: 5.2.0
 * MySQL version: 5.0.33
 * URL: Internal system

I want to provide navigation. I have a template and two icons (an up arrow (Image:UP.JPG) and a down arrow (Image:Down.JPG)). When I click on the value beside the icon I am taken to the correct page but if I actually click on the icon I get taken to the page Image:Up.JPG.

Not sure how to include the actual code?

—193.130.71.68 09:03, 22 July 2009 (UTC)

Change sent by IRC before available by API
I built a bot framework that has to request a page when it was changed. So it listens at irc.wikimedia.org and gets the rcids from there. But I got the following error multiple times: {"query":{"badrevids":{"62525671":{"revid":62525671}}}} So I set a little delay, and it worked. Would it be possible to change the behaviour so that the message comes when the article is available? —TheJH 11:03, 23 July 2009 (UTC)
 * URL: de.wikipedia.org

How to read protect pages so that they can be read by administrators only ?

 * MediaWiki 1.15.0
 * PHP 5.2.9 (apache2handler)
 * MySQL 5.1.33-community


 * URL: (local)

I want to read protect some pages in media wiki, so that these pages can only be viewed by an administrator. for example, it would be useful if i could define a category that can only be read by administrators. is there an easy way to solve this?

—80.153.148.74 07:58, 24 July 2009 (UTC)

How to create a wikibot?
Hi, I need a wikibot that can find certain words in th code then change them. For instance i've recently been 'chain posting' Some info boxes for media... But accidently been putting instead of  So would anyone know of a script i could use to make a bot go through and change them all.. Thanks. ALSO: I know I can do a redirect on the GPNL Until i change them by hand but I have done the redirect so I am just waiting to say if theres a bot that can change it also it is for future reference. —Prentice5 14:07, 25 July 2009 (UTC)
 * MediaWiki version: 1.15.1
 * PHP version: 5.2.10
 * MySQL version: 5.1.36
 * URL: wiki4games.com

How to get an url from an uploaded file?

 * MediaWiki version: 1.14
 * PHP version: 5.2.0
 * MySQL version: 5.0.32
 * URL: n/a

Is it possible to get an url from an uploaded file via php function (e.g. in an extension)?

Example:

$image = "File:ImageName.jpg"; $url  = getUrlFromImage($image);

$url should now be something like this: http://your.mediawiki.org/images/9/9a/ImageName.jpg

Is this possible?

—79.206.49.18 07:16, 28 July 2009 (UTC)


 * Can the API help here? -- Dr DBW |  talk  04:14, 5 August 2009 (UTC)

Handling TIFF and RAW
Hi all, I get some result in handling TIFF images on MediaWiki and the correspondent NEF (Nikon Raw - formally a TIFF with special tags); all these modifications has been implemented on my own test MediaWiki but I'd like to disclose everything to other developers to evaluate if may be a part of future releases of MW and/or get some hints about. What do you think will be the correct place to discuss about and eventually post the code?--Fpiraneo 17:37, 29 July 2009 (UTC)


 * where is the code implimented? Is it an extensions?  Or part of the main MediaWiki code?  Probably best to look at Developer hub and find something from there. -- Dr DBW  |  talk  04:17, 5 August 2009 (UTC)

(Republic of Kanto wiki) Template:Infobox Election (from Wikipedia) transclusion snag

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.10 (cgi)
 * MySQL version: 5.0.81-community
 * URL: http://republicofkanto.exofire.net/wiki/Main_Page

I am trying to transclude Wikipedia's Template:Infobox Election to this wiki for use in micronational elections. However, it is not appearing as it does on Wikipedia, instead showing almost all the code, which does not happen on Wikipedia's version. I have held off on transcluding the documentation at the moment.

—CJMiller 21:12, 31 July 2009 (UTC)


 * Links to the template you are copying and the template you have created would be a good start, so that people can look at them. -- Dr DBW |  talk  04:19, 5 August 2009 (UTC)

Wamp, Mediawiki, Email
* MediaWiki version: 1.15.1 * PHP version: 5.2.9 (apache2handler) * MySQL version: 5.1.32-community-log * URL: http://edrivetracking.com/w

I can't seem to connect to email no matter what i do. 90% of time i get following error.

Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\w\includes\UserMailer.php on line 119

Fatal error: require_once [function.require]: Failed opening required 'Mail.php' (include_path='C:\wamp\www\w;C:\wamp\www\w/includes;C:\wamp\www\w/languages;.;C:\php5\pear') in C:\wamp\www\w\includes\UserMailer.php on line 119

After first time i did some research and tried the following array

$wgSMTP => array( 'host' => "mail.domain.com", 'IDHost' => "domain.com", 'port' => 25, 'auth' => false, );

I also tried with authentication

the only change i've seen is when i log with my admin account i get

Login error A password reminder has already been sent, within the last 24 hours. To prevent abuse, only one password reminder will be sent per 24 hours.

but this does not happen with any other account. all other accounts just give the first error i described.

—[JD] Jdmckinstry 20:02, 4 August 2009 (UTC)

display media files by category as list

 * MediaWiki version: 1.15.0
 * PHP version: 5.2.9 (cgi)
 * MySQL version: 5.0.81-community
 * URL:

Is it possible to sort media files so that only a specific category will be listed? I would like to get the same output as provided by "Special:ListFiles" but limited to a specific category.

Thank you.

—Duchampfan 04:43, 5 August 2009 (UTC)