Project:Support desk/Sections/Miscellaneous

__NEWSECTIONLINK__

= Miscellaneous (unsorted) Issues =


 * 1) REDIRECT == 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

Mistakenly created Mediawiki.org page

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

Please delete http://www.mediawiki.org/wiki/Powertech_Labs and the Category SDTC.

Sorry

—24.80.112.29 00:34, 23 October 2009 (UTC)

Removing large amount of spam user accounts
Our wiki's been dormant for a while, and lots of spam users have signed up for accounts. We've since implemented reCAPTCHA for signups, but would now like to remove all the old accounts. Googling reveals Extension:User Merge and Delete, but this is still a fair amount of work (we've got >1000 spam accounts). However, none of them have any contributions; is there a way to remove all accounts with no contributions? Or is there anything else we can do? Cheers, Alex Muller  10:10, 28 October 2009 (UTC)
 * MediaWiki version: 1.14.0
 * PHP version: 5.2.10-pl0-gentoo (apache2handler)
 * MySQL version: 5.0.70-log
 * URL: http://ystv.york.ac.uk/wiki/
 * I solved this using iMacros with Firefox - it's not a MediaWiki solution, but it worked. Here's my script:

VERSION BUILD=6240709 RECORDER=FX TAB T=1 TAB CLOSEALLOTHERS SET !DATASOURCE user.csv SET !DATASOURCE_COLUMNS 1 SET !LOOP 1 SET !DATASOURCE_LINE URL GOTO=http://ystv.york.ac.uk/wiki/index.php/Special:UserMerge TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://ystv.york.ac.uk/wiki/index.php/Special:UserMerge ATTR=NAME:olduser CONTENT= TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://ystv.york.ac.uk/wiki/index.php/Special:UserMerge ATTR=NAME:newuser CONTENT=Anonymous TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:http://ystv.york.ac.uk/wiki/index.php/Special:UserMerge ATTR=ID:deleteuser CONTENT=YES TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:usermergeform ATTR=VALUE:Mergeuser
 * Alex Muller  17:45, 28 October 2009 (UTC)

strange behavior of nl.wikt
I was trying to edit the page "delfstof" at nl.wiktionary and the server does not accept my edit, even though it accepts other changes. I do not know where to report this. Seems like a server problem


 * nl:wikt:Gebruiker:Jcwf

Jcwf 17:38, 28 October 2009 (UTC)

[[File:cannot open "my preference" page ... ]]

 * MediaWiki version: mediawiki-1.15.1
 * PHP version: php-5.3.0-Win32-VC6-x86
 * PostgreSQL version: postgresql-8.4.1-1-windows
 * URL: built within LAN, cannot access from Internet
 * Apache: apache_2.2.14-win32-x86-openssl-0.9.8k

I had just install MediaWiki (in Chinese) which can be accessed within a LAN, and I can create new users, access it with the newly created user, and it seems all working well except: while clicking the "My preferences" (in Chinese is "我的参数设置") on the TOP of the page, I just got a fault page displaying: Internet Explorer can not display the page ("Internet Explorer 无法显示该网页").

Is there anyone who can tell me how to solve this problem?

PS: The user running the apache service has the proper rights to read/write(executive) within the main web directive (i.e. ).

—Buyun 14:02, 31 October 2009 (UTC)

RESOLVED: New Entries Not Showing On Category Pages for Anonymous Users

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.11-pl0-gentoo (apache2handler)
 * MySQL version: 5.4.3-beta
 * URL: http://www.gateworld.net/wiki/Category:Universe

Since my sysop moved our site to a new host last week, newly-created wiki entries do not show up on the Category pages to which they have been added. This is only for anonymous users; when logged in, my editors and I can see them just fine.

At the above Category URL, for example, there are currently 65 entries. For anonymous users, only the 48 that were input before last week are visible (though the entries themselves may still be viewed via Search and direct linking).

Any idea why this is happening, and how I can fix it? (Not sure if it is move related, but the timing makes me suspicious.)

Thanks!

—81.151.5.143 22:39, 6 November 2009 (UTC)

EDIT (9 November 2009):

Problem fixed. I wasn't aware of MediaWiki's page caching function, which I just disabled with these instructions:

http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_completely_disable_caching.3F

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)


 * 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)