Project:Support desk

From MediaWiki.org

Jump to: navigation, search
vde   This page is for questions relating to the MediaWiki software.

Welcome to MediaWiki.org's Support desk, the central on-wiki place to ask questions about the MediaWiki software! The greater purpose of this page is to make our Manual and other available help so good that you do not have to come here to ask questions, or if we know where the page is you are looking for, making that easier to find.

Before posting a question here, please check out the recommended communication possibilities, and also check that your question is not already answered elsewhere on this site (see box on the right).

Well, just as it is the case on most forums, questions on this page are unlikely to be answered very quickly, and may not get answered at all. Usually you have to wait a few days for a reply. If there are call backs from other users trying to solve your problem, please reply as specific as you can. In case you found a solution yourself in the meantime, please leave a short note, so that the thread can be closed.


[edit] Before Posting

[edit] Check that your question is not already answered elsewhere on this site

  • The MediaWiki Handbook (on meta.wikimedia.org) holds detailed information about setting up and using MediaWiki.
  • Project:Forum is where you should discuss issues about this site.
  • Sandbox is where you can test wiki editing, or use testwiki: for more extensive issues.

[edit] Is this the best place to ask your question?

Questions on this page are unlikely to be answered very quickly, and may not get answered at all. Please check out the recommended communication possibilities (particularly the MediaWiki-l mailing list) before posting and read carefully. There is no "official" forum, but there are some private ones that might be better places to ask your question, e.g. mwusers.com.


[edit] To post a new question

1. To help us answer your questions, please always indicate which versions you are using:

  • MediaWiki (reported by your wiki's Special:Version page)
  • PHP (likewise)
  • the database (likewise, e.g. MySQL 4.1)

2. To allow others to examine the issue, it's often neat to also state the URL of your wiki (if it's not locked down, intranet-only, or such).
3. Don't forget to sign your comments with --~~~~ at the end.
4. Now, please click the appropriate link below:

[edit] After Posting

[edit] Is your question answered?

If your question has been answered please place (RESOLVED) before the title of your thread, so our support staff will know to look over it. This also helps us when archiving.

[edit] Why are some topics marked as RESOLVED when they are not?

There are several reasons for marking a page as RESOLVED.
  1. If the user seeking support does not answer a member of the support team's questions seeking more information within a period of five days, the topic will be marked as RESOLVED as it cannot be solved.
  2. If the topic does not relate to MediaWiki software it will be automatically closed.
  3. If the user is seeking support for an unstable/unsupported version or MediaWiki or an unstable/unsupported extension, the topic may automatically be closed, as this Support Desk does not offer such support.
  4. If you do not submit your thread in the correct format (i.e., signing your thread, posting your report above your signature, reporting your version of MediaWiki/PHP/Database, telling us your URL, etc.) it can be deleted on the spot.
  5. If the users post seems resolved it may accidentally be marked as such, if this happens please move the page from the current archive back to the bottom of the support desk, but if your thread is in an archive older than the current, please just copy and repost it. Please note that as long as your topic follows these guidelines it will not be marked as RESOLVED.

[edit] Archiving topics

Topics are automatically archived when they have been inactive (ie no new posts) for three weeks. If a question you have asked is approaching this limit and still has not been answered, please post a 'bump' to prevent it being archived. Please do not 'bump' posts except to prevent archiving.

Contents



[edit] Installation/Legalities Support

[edit] Page Linking Help Needed

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!

[edit] Mediawiki Appliance Version 1.13.20 Problems

Downloaded rPath Mediawiki Appliance, Running it on VMwear PLayer but can't find the localsettings.php file to edit.

Can't find much documentation. Any help or documentation would be great!

[edit] HUGE Troubles in mediawiki 1.14.0

my bureau/admin account can not access Restricted special pages WHY?????????

MW 1.14.0 PHP Version 5.2.9 MySQL Version 5.0.67-community

What error message is given? Wikademia

[edit] Untitled

  • MediaWiki version: media wiki
  • PHP version:
  • MySQL version:
  • URL:

Hello! My name is Pilar and I'm an extranet oficer suporting now our extranet development project.One of the things we are thinking to add media wiki to our extranet as BT did. Now I couldn't find any information about whether media wiki can be implemented with a password regulated site as an extranet. Another question is can we get an media wiki expert some where to support with instalation and training us on how to manage the site? All this information here is quite heavy and difficult to understand for not developers minds.

You can post an advertisement for a MediaWiki consultant at MWusers.com. Dr. Eme
Manual:Preventing access. Max Semenik 08:56, 6 November 2009 (UTC)

[edit] Extension Licensing Guidelines

I was wondering if there were licensing guidelines for extensions. I am combined several extensions with MediaWiki and noticed that some of the extensions have licenses that are incompatible with other extensions (e.g. Affero v.3 with a majority of extensions under GPL v.2). There are also several extensions that have no license indicated--is there a default license if you are coding for combination with MediaWiki? I was wondering if there was already guidance or if there could be some written on these topics. Thanks.

[edit] Unable to view the php created

  • MediaWiki version: 1.11.0
  • PHP version: 5.2.5
  • MySQL version: -
  • URL:

I have installed PHP and also made the necessary changes to the IIS. Still I am unable to view the .php file I created in the C:\Inetpub\wwwroot folder. Everytime I try to view the file using the browse option I get an error saying I am unauthorised to view that page.

I do have administrative rights and installed it using the same.

Thanks in advance Maya

[edit] 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

[edit] mySQL database username

  • MediaWiki version: 1.15.1
  • PHP version: 5.2.9
  • MySQL version: 5.1.33

I am configuring MediaWiki, except the one part I am having problems with is when it is asking me for a database username and password and confirm password. Below that is the superuser account, which is root.


>>>Granting user permissions... Query "GRANT DELETE,INSERT,SELECT,UPDATE,CREATE TEMPORARY TABLES ON `wikidb`.* TO 'username'@'%' IDENTIFIED BY 'password' " failed with error code "Can't find file: 'user' (errno: 2) (localhost)". <<<<


But it will not let me continue the configuration unless I specify a user and password since it will not let me leave it blank.

I am installing on Windows XP, just need some help with this issue. I am not very familiar with databases, i know the root user account info, but it is asking for a username and password and confirm password.

Any help would be much appreciated.


homerm@rosedale.ca

[edit] What server variables are needed

My neywork admin needs to set server variables to allow the upload to be successful...

Trying to load to www.high12.org,

current php and all info can be seen at www.high12.org/phpinfo.php

currently receive "?"s when attempt to load php is made...admin requesting server settings needed

attempted to register for the forum but never receive conformation email...so hear i am.

[edit] What server variables are needed

My neywork admin needs to set server variables to allow the upload to be successful...

Trying to load to www.high12.org,

current php and all info can be seen at www.high12.org/phpinfo.php

currently receive "?"s when attempt to load php is made...admin requesting server settings needed

attempted to register for the forum but never receive conformation email...so hear i am.

[edit] Blank Page After Install

  • MediaWiki Version: 1.15.1
  • PHP Version: 5.2.11
  • MySQL Version: 5.1.35

I have tried the quick solution of placing:

$wgParserConf['preprocessorClass'] = 'Preprocessor_Hash';

in my LocalSettings.php file and still nothing. The 'LocalSettings.php' is in the parent directory and the /config directory has been deleted. The install went great, no errors, no signs of problems, but still I've got nothing.

Any help would be awesome!


Respectfully,

Bryan

Manual:Errors_and_Symptoms#You_see_a_Blank_Page. Max Semenik 08:49, 6 November 2009 (UTC)

[edit] Error message after upgrading

I have upgraded my wiki from an old version (not to old, maybe 1.13 but I didn't note because I never had any issues...) After installing successfully and moving the Localsettings.php, I have the following error:

Fatal error: Call to undefined method StringUtils::explode() in /home/hosted/usersSpace/1331/ftp/sebban.org/wiki/includes/parser/Parser.php on line 669

What can I do?

Thanks

Sam samonthewebecp(at)hotmail.com

Looks like messed up update, reupload the files. Max Semenik 08:51, 6 November 2009 (UTC)


[edit] Me Too

I have the EXACT same problem. I have tried to redownload and reupload new versions again and again. I've tried reinstalling the database three times as well. I can't figure this out. I have the same error:

Fatal error: Call to undefined method StringUtils::explode() in /var/www/html/wiki/includes/parser/Parser.php on line 669

I have tried to raise the memory limit to 32MB and also the php.ini to 32MB

Here is my dump:

PHP 5.0.4 installed

Found database drivers for: MySQL PostgreSQL

Warning: PHP's register_globals option is enabled. Disable it if you can.

MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities.

PHP server API is cgi-fcgi; using ugly URLs (index.php?title=Page_Title)

Have XML / Latin1-UTF-8 conversion support.

Session save path (/tmp) appears to be valid.

PHP's memory_limit is 8M. Attempting to raise limit to 20M... ok.

Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching.

Warning: shell_exec() has been disabled for security reasons in /var/www/html/wiki/config/index.php on line 2011

Warning: shell_exec() has been disabled for security reasons in /var/www/html/wiki/config/index.php on line 2011

GNU diff3 not found. Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. Found GD graphics library built-in. Installation directory: /var/www/html/wiki Script URI path: /wiki Installing MediaWiki with php file extensions Environment checked. You can install MediaWiki. Warning: exec() has been disabled for security reasons in /var/www/html/wiki/config/index.php on line 2102 Warning: array_map() [function.array-map]: Argument #2 should be an array in /var/www/html/wiki/config /index.php on line 2152 Warning: Invalid argument supplied for foreach() in /var/www/html/wiki/config/index.php on line 2153 Warning: Invalid argument supplied for foreach() in /var/www/html/wiki/config/index.php on line 2110 Generating configuration file... Database type: MySQL Loading class: DatabaseMysql Attempting to connect to database server as dieselbenz...success. Connected to mysql 4.1.14-standard; enabling MySQL 4.1/5.0 charset mode Database dieselbenz_info_-_db exists There are already MediaWiki tables in this database. Checking if updates are needed... Warning: you requested the mysql5-binary schema, but the existing database has the mysql4 schema. This upgrade script can't convert it, so it will remain mysql4. ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...already have interwiki table ...indexes seem up to 20031107 standards MediaWiki 1.15.1 Installation http://www.dieselbenz.info/wiki/config/index.php 1 of 3 11/16/2009 7:27 PM...hitcounter table already exists. ...have rc_type field in recentchanges table. ...have user_real_name field in user table. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. Already have pagelinks; skipping old links table updates. ...il_from OK ...have rc_ip field in recentchanges table. ...image primary key already set. ...have rc_id field in recentchanges table. ...have rc_patrolled field in recentchanges table. ...logging table already exists. ...have user_token field in user table. The watchlist table is already set up for email notification. ...watchlist talk page rows already present ...user table does not contain old email authentication field. ...page table already exists. ...have log_params field in logging table. logging table has correct log_title encoding. ...have ar_rev_id field in archive table. ...have page_len field in page table. revision timestamp indexes already up to 2005-03-13 ...rev_text_id already in place. ...have rev_deleted field in revision table. ...have img_width field in image table. ...have img_metadata field in image table. ...have user_email_token field in user table. ...have ar_text_id field in archive table. ...page_namespace is already a full int (int(11)). ...ar_namespace is already a full int (int(11)). ...rc_namespace is already a full int (int(11)). ...wl_namespace is already a full int (int(11)). ...qc_namespace is already a full int (int(11)). ...log_namespace is already a full int (int(11)). ...have img_media_type field in image table. ...already have pagelinks table. No img_type field in image table; Good. Already have unique user_name index. ...user_groups table already exists. ...user_groups is in current format. ...have ss_total_pages field in site_stats table. ...user_newtalk table already exists. ...transcache table already exists. ...have iw_trans field in interwiki table. ...trackbacks table already exists. ...wl_notificationtimestamp is already nullable. ...timestamp key on logging already exists. ...have ipb_range_start field in ipblocks table. Setting page_random to a random value on rows where it equals 0...changed 0 rows ...have user_registration field in user table. ...templatelinks table already exists ...externallinks table already exists. ...job table already exists. ...have ss_images field in site_stats table. ...langlinks table already exists. ...querycache_info table already exists. ...filearchive table already exists. ...have ipb_anon_only field in ipblocks table. Checking for additional recent changes indices... ...index `rc_ns_usertext` seems ok. ...index `rc_user_text` seems ok. ...have user_newpass_time field in user table. ...redirect table already exists. ...querycachetwo table already exists. ...have ipb_enable_autoblock field in ipblocks table. Checking for backlinking indices... Checking if pagelinks index pl_namespace includes field pl_from... ...index pl_namespace on table pagelinks seems to be ok Checking if templatelinks index tl_namespace includes field tl_from... ...index tl_namespace on table templatelinks seems to be ok Checking if imagelinks index il_to includes field il_from... MediaWiki 1.15.1 Installation http://www.dieselbenz.info/wiki/config/index.php 2 of 3 11/16/2009 7:27 PM...index il_to on table imagelinks seems to be ok ...have rc_old_len field in recentchanges table. ...have user_editcount field in user table. ...page_restrictions table already exists. ...have log_id field in logging table. ...have rev_parent_id field in revision table. ...have pr_id field in page_restrictions table. ...have rev_len field in revision table. ...have rc_deleted field in recentchanges table. ...have log_deleted field in logging table. ...have ar_deleted field in archive table. ...have ipb_deleted field in ipblocks table. ...have fa_deleted field in filearchive table. ...have ar_len field in archive table. ...have ipb_block_email field in ipblocks table. Checking for categorylinks indices... Checking if categorylinks index cl_sortkey includes field cl_from... ...index cl_sortkey on table categorylinks seems to be ok ...have oi_metadata field in oldimage table. ...usertext,timestamp key on archive already exists. ...usertext,timestamp key on image already exists. ...usertext,timestamp key on oldimage already exists. ...have ar_page_id field in archive table. ...have img_sha1 field in image table. ...protected_titles table already exists. ...have ipb_by_text field in ipblocks table. ...page_props table already exists. ...updatelog table already exists. ...category table already exists. ...category table already populated. ...have ar_parent_id field in archive table. ...have user_last_timestamp field in user_newtalk table. ...rev_parent_id column already populated. protected_titles table has correct pt_title encoding. Checking filearchive indices... Adding ss_active_users field to table site_stats...ok ...ss_active_users user count set... Adding ipb_allow_usertalk field to table ipblocks...ok Making pl_namespace, tl_namespace and il_to indices UNIQUE... ok Creating change_tag table...ok ...tag_summary table already exists. ...valid_tag table already exists. Deleting old default messages (this may take a long time!)...Done Checking site_stats row...ok. Purging caches...done. Finished update checks. Creating LocalSettings.php...

Installation successful! Move the config/LocalSettings.php file to the parent directory, then follow this link to your wiki. You should change file permissions for LocalSettings.php as required to prevent other users on the server reading passwords and altering configuration data.

Help! Darrellx 04:45, 17 November 2009 (UTC)

[edit] Updating MediaWiki installed via Synaptic

  • MediaWiki version: 1.13.3
  • PHP version: 5
  • MySQL version: Don't know, sorry
  • URL: Intranet

Hi at all, I've just installed MediaWiki via Synaptic on Ubuntu 9.04 but in there repository there is only the 1.13.3 version. How could I update MediaWiki, in this case? Or is there any repository to be added in my sources.list? —Airon90 17:01, 18 October 2009 (UTC)

If you use a package, you're dependent on that package for upgrades. There's nothing anyone here can do for you, unless you want help switching to a manual setup of MediaWiki. —Emufarmers(T|C) 18:20, 18 October 2009 (UTC)
Ubuntu 9.10 comes with MediaWiki 1.15.1. Max Semenik 08:52, 6 November 2009 (UTC)

[edit] Fatal error

  • MediaWiki version: 1.13.3
  • PHP version: 5
  • MySQL version: Don't know, sorry
  • URL: Intranet

Second problem, now that I installed MW it shows me a strange error when I try to save my changes:

Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 13 bytes) in /usr/share/mediawiki/includes/UserMailer.php on line 141

If I add only one or two character sometimes MW saves that changes. Why? --Airon90 11:10, 19 October 2009 (UTC)

Manual:Errors and Symptoms#Fatal error: Allowed memory size of nnnnnnn bytes exhausted (tried to allocate nnnnnnnn bytes). Max Semenik 08:54, 6 November 2009 (UTC)

[edit] (RESOLVED) I can't run pywikipediabot on my wiki

  • MediaWiki version: 1.16alpha
  • PHP version: 5.2.8
  • MySQL version: 5.0.82-community
  • URL: intranet

Hi, I have installed 5 months ago my wiki. I tried to run a python bot and it gives me

Microsoft Windows XP [Versión 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrador>"C:\Enciclopedia DG\pywikipedia\login.py
"
  File "C:\Enciclopedia DG\pywikipedia\login.py", line 66
    'en': u'Wikipedia:Registered bots',
                                     ^
SyntaxError: invalid syntax

What can I do? --MisterWiki 20:31, 12 November 2009 (UTC)

I had installed Python 3.1 and pywikipediabot just functions on Python 2.x, thanks Meta!!!. --MisterWiki 21:12, 19 November 2009 (UTC)

[edit] Path error following Installation

I had a little trouble getting my filemanager to move the localsettings.php file after the install finished, so I downloaded it, then uploaded it into the wiki directory. Then when I tried to load the page, I got the following error:

Warning: require_once(/home/cimaster/public_html/wiki/LocalSettings.php) [function.require-once]: failed to open stream: Permission denied in /home/cimaster/public_html/wiki/includes/WebStart.php on line 113

Fatal error: require_once() [function.require]: Failed opening required '/home/cimaster/public_html/wiki/LocalSettings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cimaster/public_html/wiki/includes/WebStart.php on line 113

I really don't know any php, and wouldn't know where to start, but I was a little encouraged to see a similar (unresolved) issue in the archives: "Localsettings changes ownership during installation" dated 9-25-09.

MARK

99.36.104.170 11:40, 31 October 2009 (UTC)

Make LocalSettings.php readable by the webserver. In your case, that probably means CHMODing it to 755 644. —Emufarmers(T|C) 12:06, 31 October 2009 (UTC)
This solution worked, though I was surprised because the installation instructions said to put strict permission of "600" on LocalSettings.php. Thank you very much.
This depends on your webserver configuration. If you are doing chmod 600, you also need to chown it. Manual:Config script mentions it, but probably you've seen it in another place? Tell us where so that we could fix it. Max Semenik 05:44, 20 November 2009 (UTC)

[edit] How to find the administrator profil created .Comment retrouver le profil administrateur

I'm not sure if the administrator profil has been created at the installation. Either not created or with a wrong userid.

How may I check if it has been created or create easily a new one? Is there an sql instruction to execute with Phpmyadmin on my mysql database?

Thank a lot. PASCAL P.S. excuse my bad english because I'm french.


IN FRENCH: en francais


Comment retrouver le profil administrateur créé lors de l'installation? existe t il un requete sql utilsable sur PHPMYADMIN MYSQL pour retrouver ce profil?

MERCI —91.165.244.36 09:36, 13 November 2009 (UTC)

Visit Special:Listusers on your wiki. If you see no administrator/bureaucrat accounts here, you can create one by running maintenance/createAndPromote.php. Max Semenik 05:41, 20 November 2009 (UTC)


[edit] MediaWiki System Support

[edit] Resolved: 404 when using short url

  • MediaWiki: 1.11.0
  • PHP: 5.2.5 (cgi-fcgi)
  • MySQL: 5.0.67.d7-ourdelta-log
  • URL: www.jainkosh.org

Hello, I have been trying to use short url for my wiki by following instructions at http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access but could not achieve the results. My server is Apache and my wiki is saved at htdocs\Mediawiki. I have tried saving the .htaccess file in htdocs\Mediawiki, htdocs\, htdocs\sample_html, htdocs\Mediawiki\sample_html, but it didn't work. Whenever I tried to go to www.jainkosh.org/wiki/Main_Page, it throws error 404, page not found. This is what I have put in my .htaccess file:

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

Can you please help me in getting this working?

Thanks a lot, Vikas

I tried the same settings on Godaddy.com server and it worked fine there. Somehow on my localhost it didn't work and was giving 404. Works great on the godaddy server.

[edit] Can I link files directly off my server to our wiki page, or must they be uploaded?

  • MediaWiki version:
  • PHP version:
  • MySQL version:
  • URL:

Is it possible for me to link files from my server to MediaWiki without uploading them. We have an extensive database of projects we would like to incorporate into the our wiki site but do not want to duplicate all those files by uploading them.

[edit] Permissions not working correctly

  • MediaWiki version: 1.15.1
  • PHP version: 5.2.9-1 (cgi-fcgi)
  • MySQL version: 5.0.24-community-nt
  • URL: Behind Firewall

I am having issues with users (including sysops) not beign able to edit, upload files, etc, when the $wgGroupPermissions['*'][value] = false. For instance, I want anonymous users to NOT be able to edit pages, but when I change the ['edit'] to FALSE, no one can edit pages. I have looked in the admin guides and forums and have not been able to find an answer as to why this is happening. Below is what I have for permissions set in my LocalSettings.php

$wgAddGroups['sysop'] = array( 'bot' );
$wgRemoveGroups['sysop'] = array( 'bot');
$wgGroupPermissions['sysop']['userrights'] = true;
$wgGroupPermissions = array( 'sysop' );
$wgGroupPermissions['sysop']['passwordresetself'] = true;
$wgGroupPermissions['sysop']['passwordreset'] = true;
$wgGroupPermissions['sysop']['move'] = true;
$wgGroupPermissions['sysop']['read'] = true;
$wgGroupPermissions['sysop']['edit'] = true;
$wgGroupPermissions['sysop']['viewedittab'] = true;
$wgGroupPermissions['sysop']['createpage'] = true;
$wgGroupPermissions['sysop']['createtalk'] = true;
$wgGroupPermissions['sysop']['userrights'] = true;
$wgGroupPermissions['sysop']['noratelimit'] = true;
$wgGroupPermissions['sysop']['block'] = true;
$wgGroupPermissions['sysop']['createaccount'] = true;
$wgGroupPermissions['sysop']['delete'] = true;
$wgGroupPermissions['sysop']['bigdelete'] = true;
$wgGroupPermissions['sysop']['deletedhistory'] = true;
$wgGroupPermissions['sysop']['undelete'] = true;
$wgGroupPermissions['sysop']['editinterface'] = true;
$wgGroupPermissions['sysop']['editusercssjs'] = true;
$wgGroupPermissions['sysop']['import'] = true;
$wgGroupPermissions['sysop']['importupload'] = true;
$wgGroupPermissions['sysop']['move'] = true;
$wgGroupPermissions['sysop']['patrol'] = true;
$wgGroupPermissions['sysop']['autopatrol'] = true;
$wgGroupPermissions['sysop']['protect'] = true;
$wgGroupPermissions['sysop']['proxyunbannable'] = true;
$wgGroupPermissions['sysop']['rollback'] = true;
$wgGroupPermissions['sysop']['trackback'] = true;
$wgGroupPermissions['sysop']['upload'] = true;
$wgGroupPermissions['sysop']['reupload'] = true;
$wgGroupPermissions['sysop']['reupload-shared'] = true;
$wgGroupPermissions['sysop']['unwatchedpages'] = true;
$wgGroupPermissions['sysop']['autoconfirmed'] = true;
$wgGroupPermissions['sysop']['upload_by_url'] = true;
$wgGroupPermissions['sysop']['ipblock-exempt'] = true;
$wgGroupPermissions['sysop']['blockemail'] = true;
$wgGroupPermissions['sysop']['markbotedits'] = true;
$wgGroupPermissions['sysop']['suppressredirect'] = true;
$wgGroupPermissions['sysop']['apihighlimits'] = true;
$wgGroupPermissions['sysop']['browsearchive'] = true;
$wgGroupPermissions['sysop']['deleterevision']  = true;
$wgGroupPermissions = array( 'user' );
$wgGroupPermissions['user']['read'] = true;
$wgGroupPermissions['user']['createpage'] = true;
$wgGroupPermissions['user']['createtalk'] = true;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['user']['viewedittab'] = true;
$wgGroupPermissions['user']['upload'] = true;
$wgGroupPermissions = array( '*' );
$wgGroupPermissions['*']['createaccount'] = true;
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = true;
$wgGroupPermissions['*']['createpage'] = true;
$wgGroupPermissions['*']['createtalk'] = true;
$wgGroupPermissions['*']['upload'] = true;
$wgGroupPermissions['*']['viewedittab'] = true;


—Rob Presley

You're repeatedly overwriting your variable:
$wgGroupPermissions = array( 'sysop' );
...
$wgGroupPermissions = array( 'user' );
...
$wgGroupPermissions = array( '*' );
Max Semenik 07:52, 21 November 2009 (UTC)

[edit] Signatures don't work properly on 1.15.1

Also asked here: http://en.wikipedia.org/wiki/Wikipedia_talk:Signatures#Invalid_links_in_signatures_-_MediaWiki_1.15.1.

I just realized that ~~~~ is creating links to SomeUserName and not User:SomeUserName. Is this a known MediaWiki bug? Is there a fix and/or workaround?

HELP! Anyone?

[edit] Something similar to early WikiWords?

  • MediaWiki: 1.14.0

Hey, I'm setting up a wiki right now and i need to know if it is possible to create variables/functions for strings in wiki articles and pages?

e.g.

wikipage
Some text on the page
And even more text.

So now i know for sure that ppl at my company filling the wiki will miss to add [[links]] to other pages from time to time. I just want to make sure that the links to other pages that exist will be created. So i need to know if it's possible (maybe using MagicWords) if i set the string text as a variable for the function [[text]]. I have no idea how to do that and if it is even possible :).

[edit] Navigating to a page and then pressing back during an edit loses edit

  • MediaWiki version: 1.15.1
  • PHP version: 5.3.0
  • MySQL version: 5.1.37
  • URL: N/A (localhost)

I'm using XAMPP 1.7.2 When I'm editing an article and then navigate to an new page and afterwards press back the content that I edited reverts to the version before the edit. Also when pressing back after pressing Show preview I get a session timeout error.

This doesn't happen on the official English Wikipedia.

Can you help me fix this?

79.179.55.171 11:24, 27 October 2009 (UTC)

[edit] More than 200 articles in Category View

I have two questions for MediaWiki Technician:

  1. Is it possible to view the Wikipedia categories for more than 200 articles in a category on one page without going to the next 200?
  2. Is it possible to display a self MediaWiki operated more than 200 articles in a category?

I ask because it specifically at the use of a categorytree would be clearer for my applications. Where there is a parameter, which can arise from eg 200 to 1000? Best wishes: --80.120.157.197 11:56, 4 November 2009 (UTC) (GT1976 from Austria - [1]) —80.120.157.197 12:03, 4 November 2009 (UTC)

[edit] Problem with saving Sites with Tables

  • MediaWiki version: 1.15.1
  • PHP version: 5.1.6
  • MySQL version: 5.0.45
  • URL: internal URL (not available for external users)

Hi,

i have a problem with saving tables in Mediawiki. When i set up a site with a table inside it will go up to 2 minutes when try to save changes. But if i set up the checkbox "Nur Kleinigkeiten wurden geändert" the changes will be saved in less than 5 seconds.

We are using the Prettytables in our Mediawiki.

There are no error messages in the logfiles. This problem is after we have updated our system to the new Version 1.15.1

Is there any way to solve this problem? Thank you in advance

Best regards Dirk

85.115.15.134 11:32, 5 November 2009 (UTC)

[edit] TOC/Numbered List Formatting Bug

There is a formatting bug when a left aligned TOC has a numbered list to its right. The indentations don't appear to occur and the numbers themselves are located within the TOC box.

I tried upgrading to 1.15.1 to see if it had been fixed but it looked the same. (I then went back to 1.12.0 because I was having trouble convincing 1.15.1 to allow page edits, but that's likely my issue)

Here's the simple code that my example page uses to test it:

''Special notice text''
{| align="left"
| __TOC__
|}
== Sample Section Heading ==

:#First item in an indented, numbered list
:#Second item in an indented, numbered list
:#Third item in an indented, numbered list

== Another Sample Heading ==

Blah, blah, blah

== Final Section Heading ==

Blah, blah, blah

216.199.48.59 15:58, 6 November 2009 (UTC)

[edit] creating a personal wiki

  • MediaWiki version: 1.15.1
  • PHP version: 5
  • MySQL version: 5
  • URL: 2dotnet.co.cc/wikien/

What should i do in order to allow users to create a personal wiki (i mean somthig like the service given by www.wiki-site.com) ?

Thanks ahead.

awad_nayif@yahoo.com


79.182.33.106 16:35, 14 November 2009 (UTC)

[edit] Wiki intermittently slow to load

G'day guys,

I have installed MediaWiki 1.15.1 and am finding that it is intermittently very (very) slow - often working fine, but othertimes taking up to three minutes to load a simple page.

My ISP has pointed me to its status page so I can see what versions of 'stuff' they are running - it is at http://www.netregistry.com.au/support/kb/questions.php?questionid=59 which shows that they are running Zend Accelerator.

I'm guessing I need to modify my LocalSettings.php to tell it to use Zend - any clues what I might add/change?

Any other tips greatly appreciated

Isanders 20:39, 16 November 2009 (UTC)

[edit] How to show search hits but hide page content?

  • MediaWiki version:  1.15.1
  • PHP version: 2.5.6
  • MySQL version: 5.0.67
  • URL:


Is there any way to display search hits to a page but hide the page content from unregistered users?

Bruce—130.76.32.181 23:23, 20 November 2009 (UTC)


[edit] MediaWiki Database Support

[edit] (Resolved) Wired Data after upgrading of Debian

After upgrading of debian 5.0 the whole wiki is getting wired. The databases tables itselfes look alright, and instaling a backupdatabase didn't help. What can i do ... ? Richard 212.51.25.1 Update: Upgrading from 1.11 to 1.14 didn't solve the problem.... Update2: Upgrading vom 1.11 to 1.14 with Database Update solved the problem. Everything up and running again :-). See "Upgrading Medawiki" for more information

[edit] [Solved] Database error when registered user or Admin try to modify Main page contents

Hello, I have a quite strange problem.

When a logged registered user or logged Admin try to modify the Main page contents he receive an error message: Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Can't contact the database server: Unknown error (sql.4copter.com))

Any non logged user can modify the main page ! Registered users and Admin when logged can access to their pages.

It is a bug !

If I click on the edit link on the left side of the Main page , the hyperlink is something like http://www.mysite.com/mediawiki/index.php?title=main_page&action=edit&section=1

But if I click on the "modify" tab on the top menu of the same page hyperlink is something like http://www.mysite.com/mediawiki/index.php?title=main_page&action=edit

Without the final part of link "&section=1" the page can be modified also by registred user and Admin.

Why solved ? where ? I experienced the very same problem.

I will hide editsection until a solution will be found.

[edit] ipblocks table corrupt?

  • MediaWiki version: 1.12
  • PHP version: 5.2.4
  • MySQL version: N/A
  • Postgresql version: 8.3.1
  • URL: N/A (intranet)

I receive the following message when trying to describe table ipblocks "ERROR: expected "[" to start datum, but got "4 [ 1 0 0 0 ]})}"; length = 0".

The reason I noticed this is because database dumps are now failing.

[edit] Sorry! This site is experiencing technical difficulties.

I get this error when editing any page. But saving a new page is functional. *******(sitename) has a problem Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Can't contact the database server: Unknown error (mysql6.000webhost.com)) '''Can any one please help?'''

Answer: there is a file in the main folder called 'LocalSettings.php'. This file contains your database username and password information. Check to make sure the credentials are correct - this solved my problem. I had a bad password.

[edit] Illegal mix of collations for operation after Upgrade

  • MediaWiki: 1.14.0 (upgrade from: 1.3.9)
  • PHP: 5.2.4 (apache2handler)
  • MySQL: 5.1.33-community
  • Url: test-machine @ home (Windows)

Live-Wiki (1.3.9) has charset=iso-8859-1 // (German)

I've got the following error on some pages: ... aus der Funktion „LinkBatch::doQuery“. MySQL meldete den Fehler „1271: Illegal mix of collations for operation ' IN ' (localhost)“.

I've upgraded via Web-Setup. Shell don't work. wgDBmysql5 is true ... false = no error, but i get problem with umlauts like äöü! The complete database has collation binary (manuelly set) and innodb (manuelly). After upgrade is sometimes innodb, myisam mixed or binary, latin1 mixed. I've tested some "install"-methodes (other settings) to upgrade - nothing work :(

What can i do?

[edit] Updating to 1.14

HI,

I upgraded to 1.14 today using ../maintenance/update.php and I have now an error when I want to view a page (in french) :

Erreur de syntaxe de la requête dans la base de données est intervenue. Ceci peut indiquer un bogue dans le logiciel. La dernière requête traitée par la base de données était :

   (Requête SQL cachée)

depuis la fonction « OutputPage::addCategoryLinks ». MySQL a renvoyé l’erreur « 1146 : Table 'wwmbxfdgchaton.wiki_page_props' doesn't exist (mysql5-7) »


Here my environment variables.

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

   * PHP 5.2.9 installed
   * Found database drivers for: MySQL PostgreSQL
   * PHP server API is cgi; using ugly URLs (index.php?title=Page_Title)
   * Have XML / Latin1-UTF-8 conversion support.
   * Session save path (/tmp) 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 ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
   * Found GD graphics library built-in.
   * Installation directory: /homez.150/wwmbxfdg/www/wiki
   * Script URI path: /wiki
   * Installing MediaWiki with php file extensions
   * Environment checked. You can install MediaWiki.
   *
     Generating configuration file...
   * Database type: MySQL
   * Loading class: DatabaseMysql
   * Attempting to connect to database server as wwmbxfdgchaton...success.
   * Connected to mysql 5.0.68-log; enabling MySQL 4.1/5.0 charset mode
   * Database wwmbxfdgchaton exists
   * Creating tables... done.
   * Initializing statistics...
   * Created sysop account JP.
   *
     Creating LocalSettings.php...
     Installation successful! Move the config/LocalSettings.php file to the parent directory, then follow this link to your wiki.
     You should change file permissions for LocalSettings.php as required to prevent other users on the server reading passwords and altering configuration data.


Thanks for your help.

[edit] How does the image system work?

  • MediaWiki version: 1.15.1
  • PHP version: 5.2.6
  • MySQL version: 5.0.51a  
  • URL: no can do

I have what should be a fairly simple question... I consider myself very well-rounded in mediawiki administration, but there is ONE thing that I cannot figure out how it works. Could anyone please explain where in the database images and files are linked to their physical file? Or direct me to the appropriate info. I have searched everywhere to figure out how this works but to no avail. I would like to know because porting a large amount of files or images would be made much easier if it could be batched in SQL.


Bsmithme 21:48, 28 October 2009 (UTC)

[edit] SQLite installed, but configure/index.php says no

  • MediaWiki version: 1.15.1
  • PHP version: $ php -v reports PHP 5.1.6 (cli) (built: Feb 26 2009 07:01:12)
  • MySQL version: ]$ sqlite3 -version reports 3.3.6

config/index.php reports "PHP 5.1.6 installed Could not find a suitable database driver!", yet SQLite is installed and supported by PHP:

$ php -i | grep -i ^configure | tr ' ' \\n | grep sqlite
'--without-sqlite'
'--with-pdo-sqlite=shared,/usr'

Is that sufficient? How can I test the database support independently, and/or diagnose why MediaWiki thinks it's not there? (I've never used PHP, famous as it is. I found several examples of PHP code to prove SQLite works, but none to display an error message when it doesn't.)

FWIW, I also put this in LocalSettings.php:

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

$wgDebugLogFile  = '/tmp/mediawiki.debug_log.txt';

Many thanks.

206.218.223.52 17:36, 30 October 2009 (UTC) jkl

After an IRC discussion, it looked like that PDO support was needed. Max Semenik 12:00, 31 October 2009 (UTC)

[edit] Database Syntax error - tables not available ---- DONE

  • MediaWiki version: previously 1.11, upgraded now to 1.15.1
  • PHP version: 5.2.3
  • MySQL version: 5.0.27


I recently upgraded to MediaWiki 1.15.1. I face the following issue when I click on the 'history' tab or some other links on the page:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

(SQL query hidden)

from within function "ChangeTags::listDefinedTags". MySQL returned error "1146: Table 'erwikidb.valid_tag' doesn't exist (localhost)".

and on other pages I get - from within function "IndexPager::reallyDoQuery (LogPager)". MySQL returned error "1146: Table 'erwikidb.tag_summary' doesn't exist (localhost)".

and so forth..

When I checked the database I found that the tables valid_tag and tag_summary weren't created at all. I have run the installer again on my server for a fresh installation of 1.15.1 and have run the update.php script several times, but the same error keeps popping up.

SOLN - Sorry, the error was in my database administration. I had to create a new user with same privileges, or use the superuser account


Srutsam 18:39, 6 November 2009 (UTC)

[edit] Database error - "MediaWikiBagOStuff::_doquery"


This is the error message:
Database error
From Z-Wiki, your global connection to relevancy.

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

 (SQL query hidden)

from within function "MediaWikiBagOStuff::_doquery". MySQL returned error "1030: Got error 134 from storage engine (mysql)". Retrieved from "http://www.zamboanga.com/z/index.php?title=Rawda_S._Mustafa"

--Kuhitkuhit 18:31, 10 November 2009 (UTC)

[edit] The whole wiki is down

  • Now the whole Wiki is down. Over 40,000 pages can't be accessed.
  • Nobody can login.
  • This is the message we get no matter where anyone goes.

Database error
From Z-Wiki, your global connection to relevancy.

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

(SQL query hidden)

from within function "MediaWikiBagOStuff::_doquery". MySQL returned error "1016: Can't open file: 'mz_objectcache.MYI' (errno: 145) (mysql)". Retrieved from "http://zamboanga.com/z/index.php?title=Main_Page"

Your database seems to be damaged. Refer to MySQL documentation on how to correct it, or restore from backup. Max Semenik 07:19, 11 November 2009 (UTC)
I resolved the problem by repairing the database. However, I suspect that the upload failure of images is causing this database corruption. This file was uploaded and there is an error: http://www.zamboanga.com/z/index.php?title=Image:Bolong_zamboanga_city_fun_in_sun_01.jpg

I think the easy solution is to delete this. But I do not how to delete this since I can't access the page at all. So, How do I delete a page without accessing it?

[edit] search finds some but not all pages

  • MediaWiki version: 1.13.2
  • PHP version: 5.2.6
  • MySQL version: 5.0.67-community-nt
  • URL: intranet only

My company has a MW installation that is working well for the most part. The only problem is that when searching, some words are not found in some articles that contain the word.

For example, searching for "xRon" or "boxing" or "Montreal" finds a list of articles that contain the word, but there is at least one article that contains all 3 of these words and that article is not in the search results. However, searching for "coupons" or "incentives" or "staples" does include this article in the search results.

I have tried the following:

What else can I do to get these articles found?

198.161.248.1 20:23, 16 November 2009 (UTC)


[edit] PHP Error Support

[edit] Move wiki to new server with current MW, Fatal PHP error

  • MediaWiki version: 1.13.3
  • PHP version: 5.1.6-20
  • MySQL version: 5.0.45-7
  • URL: Classified (very literally, not a joke! ;-) )
  • OS: RHEL5

I need to move a wiki (1.10.0) from one machine to another, and at the same time upgrade MW to 1.13.3 After untarring MediaWiki, copying the contants of /images and restoring the database, attempting to access the wiki results in an error:

[Tue Jan 20 19:48:14 2009] [error] [client 192.168.1.2] PHP Fatal error: require_once() [<a
href='function.require'>function.require</a>]: Failed opening required '/var/www/html2/wiki/
LocalSettings.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html2/wiki/
includes/WebStart.php on line 97
Copy this file from previous installation if it's absent, otherwise adjust its perissions to make it readable (most likely, 644). Max Semenik 09:06, 6 November 2009 (UTC)

[edit] Simple error in .php file

  • MediaWiki version: 1.14.0
  • PHP version: 5.2.4-2ubuntu5.5 (apache2handler)
  • MySQL version: 5.0.51a-3ubuntu5.4
  • URL: none

I'm trying out TurnKey MediaWiki (turnkey-mediawiki-2009.04-hardy-x86.iso). I changed my account (admin) language settings to Swedish, and got a PHP error from the file /usr/local/share/mediawiki/extensions/FCKeditor/FCKeditor.il8n.sv.php. I opened the file and found the error; whoever wrote the file must have copy-pasted everything, so that there was twice as much text as it should have been. I removed excess text, and the PHP error disappeared.

81.226.252.221 17:00, 18 October 2009 (UTC)

[edit] Resetting a User Login Password

  • MediaWiki version: 
  • PHP version: 
  • MySQL version: 
  • URL:

DONT KNOW HOW TO FIND THE VERSION NUMBERS


TRING TO CAHNGE A USERS FORGOTTEN PASSWORD USING THE FOLLOWING COMMAND

E:\www\wiki\maintenance>php changePassword.php --user=butch --password=melbournecup

AND GET THIS MESSAGE

PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone _set() function. In case you used any of those methods and you are still getting

this warning, you most likely misspelled the timezone identifier. We selected '

Australia/Melbourne' for '11.0/DST' instead in E:\www\wiki\LocalSettings.php on line 151 PHP Parse error: parse error, expecting `T_STRING' in E:\www\wiki\includes\Name space.php on line 49

ANY IDEAS WHATS WRONG?

Forsg 01:00, 23 October 2009 (UTC)

[edit] SourceForge - loss of session data

I've followed the directions as found here: http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Sourceforge.net but have been unable to have MediaWiki successfuly run on my SourceForge project web space. When I try to edit any settings I always get the error:

"Sorry! We could not process your edit due to a loss of session data. Please try again. If it still does not work, try logging out and logging back in."

In the above mentioned link for setting up MediaWiki on SourceForge I was unable to do the exact steps for creating a symbolic for the sessions or the images directory. I am using Putty on a Windows OS and it didn't have the 'symlink' command so I had to use instead "ln -s" which appeared to do the same thing. Other than that, I believe I followed the steps exactly. Well, I didn't create new database users, I just set the password for the ones which already existed.

I also did the optional configurations except for the SourceForge logo (which I will also do once the wiki is working.)

Any help is greatly appreciated!

99.225.181.21 13:34, 6 November 2009 (UTC)

[edit] Internal Error

  • MediaWiki version: upgraded to 1.15.1
  • PHP version: 5.2.3
  • MySQL version: 5.0.27

I get the following error when I click on certain links on my page in wiki.

Internal error From Electronic Resources Wiki Jump to: navigation, search

Expected attribute array, got something else in Xml::expandAttributes

Backtrace:

#0 D:\websites\Intranet_Lib\erwiki\includes\Linker.php(1042): Xml::expandAttributes(14) #1 D:\websites\Intranet_Lib\erwiki\includes\Parser.php(1403): Linker->makeExternalLink('http://libintra...', 'search the rela...', false, 'text', 14)

#2 D:\websites\Intranet_Lib\erwiki\includes\Parser.php(1053): Parser->replaceExternalLinks('

internalParse('
parse('
outputWikiText('
view()

#7 D:\websites\Intranet_Lib\erwiki\includes\Wiki.php(450): CategoryPage->view() #8 D:\websites\Intranet_Lib\erwiki\includes\Wiki.php(63): MediaWiki->performAction(Object(OutputPage), Object(CategoryPage), Object(Title), Object(User), Object(WebRequest)) #9 D:\websites\Intranet_Lib\erwiki\index.php(116): MediaWiki->initialize(Object(Title), Object(CategoryPage), Object(OutputPage), Object(User), Object(WebRequest)) #10 {main}

I did not have this problem when using MediaWiki 1.11

UPDATE: - I noticed a link between this error and my FCKEditor. If the editor is enabled then I get this error on some of the pages. If it's disabled then the pages work fine, but I can't use the editor. Any idea what I can do?


Srutsam 18:43, 6 November 2009 (UTC)

[edit] Blank page after saving a new Page or edited

  • MediaWiki version: 1.15.1
  • PHP version: 5
  • Postgresql version: 8.4
  • URL: private
  • installed extensions: Discussion, QPoll, WikEd, Gadgets


Just installed wiki for the first time it seems to be running OK. Except when creating or editing a page click save button and wiki returns a blank page, so no redirect ????

Yet the new page is created or it has the modifications.

thanks —JustinG 14:14, 13 November 2009 (UTC)

See blank page. Max Semenik 15:24, 13 November 2009 (UTC)


[edit] Uploading Support

.TMP File issue?


Mediawiki Version: latest, PHP version Latest mySQL latest --- When Users try to upload images onto the wiki, they get a error that states "Cannot find C:\WINDOWS\TEMP\PHP"X" Whereas X indicates a letter (currently PHPc.tmp) I've disabled Imagemagic(sp?) and I am still getting an error. Can I remote host the images and what tag would I use to embed it?

[edit] (SOLVED) Errors while deleting files/images

  • MediaWiki version: 1.15.1
  • PHP version: 5.0.4 (apache)
  • MySQL version: 4.1.21
  • URL: (intranet)

Error deleting file: Could not create directory "deleted/d/2/n" (or the like).

Hi, I have the problem that I get an error message when trying to delete images from our wiki. It says: "Error deleting file: Could not create directory "deleted/d/2/n" (or the like).

I found that the permissions of the ./images/deleted directory can not be changed to 777. Apparently it was made (or is owned) by another user. I have no root access, so I can't chown the directory.

I also tried to create another directory (del), set its permissions to 777. And then included in the LocalSettings.php  :

  $wgFileStore['deleted']['directory'] = "$wgUploadPath/del";
  $wgFileStore['deleted']['url'] = null; 
  $wgFileStore['deleted']['hash'] = 0;

This doesn't help either. Even worse, after trying to delete a file, it turned out that also the owner of del was changed...

Any suggestions?


-> I managed to resolve it myself, after browsing mediawiki and Google for the same problem. It turned out that Safe_Mode should be tunred off (search on Safe_Mode for instructions how to do that).

--- Gert-willem Romer ---

[edit] Upload Error

Cannot seem to upload any files or videos even after enabling it in the PHP source code. What could be the issue? Keep getting an error and need to be able to upload images. Hope you can help.

Here is the error that I get after trying to upload a file in the uploading utility page Internal error From Coolapedia Jump to: navigation, search

Could not create directory "public/a/a9".


Andrewjs1985 21:19, 28 September 2009 (UTC)

Here's my info:

  • MediaWiki version: 1.15
  • PHP version: 5.2.8 (cgi-fcgi)
  • MySQL version: 5.0.27-community-nt
  • URL: www.bioen.utah.edu/faculty/ADD/wiki

Ok I know that this error has been discussed a lot, but I've tried every solution that I've come across and nothing has helped in solving this issue for me. I receive the following error when I try to upload a file to the wiki:

  Could not rename file "C:\WINNT\Temp\php6F.tmp" to "public/Bryce.jpg". 

Due to security restrictions I can't set the "images" file to 777 but I have made it read/write available.Please any help would be greatly appreciated.

155.101.188.13 22:50, 12 October 2009 (UTC)

-Bryce

I just got this error. I solved it by CHMODing not just the images directory but it and all the sub-directories underneath it to 777 (but not the files which remain at 655). Doing the top level images directory alone to 777 was not enough. --Agrestis 14:51, 28 October 2009 (UTC)

[edit] Upload Zip Files

I need to be able to upload zip files and possibly a few other extension to my Wiki. I have searched and read pages but am still unable to work out how to do this. Please if you do have a solution for me include the file name that I would need to edit to change or add code into

[edit] how to transfer data from one mediawiki to a brand new mediawiki?

  • MediaWiki version:1.15 
  • PHP version: 5.1
  • MySQL version: 5
  • URL:

How do you transfer all data from on medai wiki to another new one?


63.239.65.9 17:59, 4 November 2009 (UTC)

[edit] image size vs image dimensions

  • MediaWiki version: MediaWiki: 1.6.12
  • PHP version: PHP: 4.3.11 (cgi-fcgi)
  • MySQL version: MySQL: 4.1.14
  • Server: Yahoo 
  • URL: http://www.zamboanga.com/z

My wiki creates server errors whenever image files are uploaded with dimensions larger than 1600x1200. Pages linke to the image page with an image file larger than 1600x1200 are also disabled and inaccessible.

So when the image page can't be accessed. I have to go to the image file itself and see what the dimension is, save it to my local drive, reduce the size to 1600x1200 and then re-upload it using the very same file name. The wiki then restores the image page and the linked pages. The size of the file does not seem to bother the image page. The size of the file can be 160,000 or over 1 meg as long as it does not exceed the dimensions of 1600x1200 the wiki will take it.

Even if the image file is only 560k but if it's 1700x1250 or anything over 1600x1200 the wiki will cause an error and the page will not be displayed even if the file was uploaded.

How and where do I go to correct this image size issue.

--Kuhitkuhit 21:54, 12 November 2009 (UTC)

[edit] after a (successful) file upload, the link to the file is not linked to the file (fixed)

  • MediaWiki version: 1.15.1
  • PHP version: 5.1.4 (apache2handler)
  • MySQL version: 4.0.21
  • URL: (internal only)

After successful upload of a file I edit a page and insert the Link to the file. After saving the Page, the link to the media file is red, and if i click on it, i get the option to upload the file, because it does not exist. If i upload the file again, the system says, that i can't upload that, because it already exists. But the link to the file stays red. The file is even in the recent changes list. But if i click on it: same thing. Sometimes 1-3 days later the link suddenly works. I tried cleanupImages.php, rebuildImages.php with no effect. —134.34.200.61 14:34, 17 November 2009 (UTC)

The problem was the cacheoption:

$wgMainCacheType = CACHE_ACCEL;

changing it to CACHE_NONE solved the problem.

[edit] Error on upload with mkdir() while using xampp

  • MediaWiki version: 1.15.1
  • PHP version: 5.1.2 (apache2handler)
  • MySQL version: 5.0.20-nt
  • URL: Only via Intranet

Dear Ladies and Gentlemen,

i'm using mediaWiki and tried to enable the uploads. Bad luck, i get an warning in GlobalFunctions.php on line 2015 (Warning: mkdir() [function.mkdir]: No such file or directory in C:\xampp\xampp\htdocs\mediawiki\includes\GlobalFunctions.php on line 2015. Additionaly i get this one:

Interner Fehler Das Verzeichnis „public/1/1e“ konnte nicht angelegt werden.

(Internal Error - The Directory could not be created.)

I use mediaWIKI on xampp on a Windows-Machine. So there is no possibility to do chmod. But the Windows-Right are given with fullaccess on the whole xampp-directory.

I tried to find a possibility to switch off the subdirectories and upload everything into 'images', but without any success. Who can i do that? Which script-function has to be changed therefor?

Best Regards, S. Weicht

Edit:

Ok, you are looking for a solution for hours. But after you post here, you will find the solution: Its just the safemode-Problem, bit without safemode. xampp on Windows seems to work the same way.

88.79.125.155 15:43, 19 November 2009 (UTC)


[edit] Image Support

[edit] Jpeg File Resolution 5000*5000 Pixel Bugs.Thanks

  • MediaWiki version: 1.11.1
  • PHP version: 5.1.33
  • MySQL version: 5.29
  • URL: Intranet

When I Upload Jpeg File Resolution 5000*5000 Pixel. The 'Special:Newimages' Can't Be Load (Blank Page), How Can I Solve ? Thanks.

Please Help, Hope Help.

See Blank page. Most likely, you're hitting memory and/or execution time limit. See relevant docs on how to tweak your PHP settings[2][3]. Max Semenik 17:32, 16 November 2009 (UTC)

[edit] Problems with uploading images

  • MediaWiki version: 1.9.3
  • PHP version: 5.2.6
  • MySQL version: 5.0.67
  • URL: [4]

Hi. I experience problems with uploading images via standard Wiki interface. Attempting to upload ANY image file I recieve system error message "emptyfile" (The file you uploaded seems to be empty. This might be due to a typo in the file name. Please check whether you really want to upload this file.)

Files I'm trying to upload are OK, that's for sure.

Any suggestions what the problem is ?

95.79.19.195 13:45, 12 September 2009 (UTC)

[edit] Link in framed images?

MediaWiki 1.14.0

PHP 5.2.9-2 (apache2handler)

MySQL 5.0.45-community-nt

I have a problem linking framed images. e.g.

[[File:XYZ.PNG|link=|none|frame|]]
or
[[File:XYZ.PNG|link="http://bla.com"|none|frame|]]

The image doesn't link to the target but still to the image's own page. If i remove the frame of the image it works fine. My question is if it's possible to have a framed image link to something else than it's own page?

--217.6.174.66 08:14, 29 October 2009 (UTC)


[edit] Images no longer appear

MediaWiki 1.15.1

PHP 5.2.9 (apache2handler)

MySQL 5.0.81-community

URL: http://www.evolution-rpg.com/wiki/index.php/Main_Page


I just finished upgrading my wiki to version 1.15.1. I've noticed that any images that are linked from off site, no longer appear by posting the url to the image. Does 1.15.1 allow the use of off-site images using just their url or is there another way image links should be formatted?


71.32.70.23 20:53, 14 September 2009 (UTC)

[edit] (RESOLVED) JPEG thumnailing errors (using GD)

  • MediaWiki version: 1.15.1
  • PHP version: 5.3.0 (apache2handler)
  • MySQL version: 5.1.39-log
  • URL: (internal)
  • OS: Red Hat RHEL4

Quite a few people seem to encounter this error message within a grey box:

Error creating thumbnail: Incomplete GD library configuration: missing function imagecreatefromjpeg

I had that issue, but after some hours, resolved it. Some PHP 4.x and 5.x versions of PHP have a bug where the libjpeg is detected but not enabled during the ./configure step; this is fairly prevalent on Red Hat/RHEL/CentOS systems. The fix for this (if you don't want to use ImageMagick) is to recompile PHP. First, find out (from phpinfo()) what the existing ./configure switches were, and add --with-jpeg-dir before --with-gd.

make clean
./configure --with-various-switches --with-jpeg-dir --with-gd --with-more-switches
make
make test
#switch to root
make install

Afterwards, restart the webserver (for Apache on Red Hat: service apache stop then service apache start ). To test, simply view the File:... page again (no need to upload again). For more information see the comments on PHP: imagecreatefromjpeg (function synopsis)

202.53.35.32 00:28, 9 October 2009 (UTC)

[edit] (Resolved) Image uploading/viewing causes internal server error/execution timeout with files bigger than 5kb

  • MediaWiki version: 1.15.1
  • PHP version: 5.2.9 (cgi-fcgi)
  • MySQL version: 5.0.67-userstats-log
  • URL: locked down

Basically everyone is unable to upload any large files to the wiki. I've checked all the php configurations for max post size/upload limit and they're all at 8M or higher and viewing the phpinfo confirms this (as does the limit shown on the mediawiki upload form). If i attempt to upload something with a size of about 5-10kb it works absolutely fine. However if I try to upload something that is 900kb, the upload form eventually times out with an Internal Server Error (enabling display_errors etc. in the LocalSettings.php has given no details thus far). The error shown in the server error log is:

[Sun Oct 11 04:38:48 2009] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.php, referer: http://wiki.xxx.com/index.php?title=Special:Upload

This is due to php running as a cgi binary instead of a php module. Usually a premature end of script headers indicates that no output was sent from php which means php encountered a max execution timeout. I've tried raising this timeout to 60 seconds from 30 but got the same problem.

Curiously, checking the http://wiki.xxx.com/index.php?title=Special:ListFiles shows the file DID upload correctly and I can view the file in it's physical path on the FTP. But if I then try to view this image on the wiki I get the same timeout/php error I described above. Again, just to remind you - files of 5-10kb work fine with no problems.

My last observation is that after the timeout has occurred, two processes are left hanging when viewing "top" via SSH. The processes are "convert" and "ulimit4.sh" which I have to manually kill.

I hope this helps you guys figure it out, thanks.

Edit - Interestingly enough, if I allow the page to start hanging (before the internal server error) and then kill the convert and ulimit4.sh processes then the page loads fine, but gives the error "Error creating thumbnail:" in the thumbnail box.

Ephialtes 11:45, 11 October 2009 (UTC)

Fixed it by setting $wgUseImageMagick = false; in LocalSettings.php to force it to use PHP GD instead. I tried this earlier but it was setting it true lower in the file, my bad! —Ephialtes 14:19, 11 October 2009 (UTC)


[edit] Formatting Support

[edit] How can I get my text to have a "right" alignment?

I can't figure out how to get text aligned to the right side of the page, despite searching the help pages for "alignment." Please help!

<div style="float:right;">YOUR TEXT HERE</div> Dr. Eme

[edit] Existing pages with table code doesn't work in mediawiki 1.13.2

  • MediaWiki version: 1.13.2
  • PHP version: 5.2.6
  • MySQL version: 5.0.51a
  • URL: localhost

I have upgraded mediawiki version 1.10.0 with 1.13.2. I have executed update.php and refreshLinks.php. But the pages which have table code has broken. The data is in text table. All the pages are working good with 1.10.0 version. But doesn't work with 1.13.2.

So, I have edited the page which was not working on 1.13.2 and copied the data from other system where it is working with 1.10.0 and saved the changes. but the page is not saving properly and it is removing the '|' and also placing some extra characters to the data.

Even the table format is good also the page is not getting displayed in tabular form.

It works good when i create a new page with table format.

Please help me that what's wrong with version 1.13.2 that doesn't support existing page table code? —The preceding unsigned comment was added by 208.88.84.10 (talkcontribs) 20:49, 31 December 2008. Please sign your posts with ~~~~!

I really need your help in finding this problem. Actually, it looks like there is some encoding problem some where with mediawiki version 1.13.2. This is corrupting the page display. If you are already aware of the problem then please let me know what could be the solution? —The preceding unsigned comment was added by 208.88.85.100 (talkcontribs) 18:21, 13 January 2009. Please sign your posts with ~~~~!

[edit] nowiki tags appear

  • MediaWiki version: 1.13.3
  • PHP version: 5.5
  • MySQL version: 5
  • URL:

Hi all,

I have a certain issue which makes < nowiki ></ nowiki > appear on the results of an mssql query below are the source

{{{1}}}

[edit] Fixed Issues

The table below lists all issues fixed since the last release. {{#mssql: 10.5.1.5 | WikiUser | Redmap | TrackPlus360 | Select [Issue Number], Subsystem, Build, Synopsis FROM ReleaseNotes WHERE (Project LIKE '{{{1}}}') AND ([Release Scheduled] LIKE '{{{2}}}') AND ([Release Scheduled] NOT LIKE [Release Noticed]) ORDER BY [Issue Number]}}

[edit] include a path and transfer a excel table

  • MediaWiki version: 1.13.2
  • PHP version: 5.2.0-8+etch13 (cgi-fcgi)
  • MySQL version: 5.0.32-Debian_7etch8-log
  • URL:

Hello I'm trying to include the path on the top of a site (example wiki>help>diskussions>). Are there a command?
I'm looking for a tool to transfer excel tabel in a wiki table?
Thanks for help —The preceding unsigned comment was added by 212.101.18.161 (talkcontribs) 08:23, 22 January 2009. Please sign your posts with ~~~~!

[edit] html dont show on the page

Hello, I was upgrading my wiki to a new version. Everything goes ok except one thing. On this page on may wiki http://elacd.carnet.hr/index.php/E-learning_alati_i_tehnologije there is one photo that is made by GIMP Imagemap plugin. Before was working just fine but now my wiki cant recognize the html code. So i suppose that somewhere i need to eneble that but where? tnx

[edit] keyboard changer

Like [ml.wikipedia.org] how to add a option to switch from inscript keyboard to phonetic keyboard ?

[edit] if statements in templates

I am trying to make a template where a variable being called by the page will determine the background color in a table in the template. Any advice on how to do this? Also can anyline link be to where I can find details in the if statement for MediaWikIi?


67.177.14.141 08:38, 1 November 2009 (UTC)

[edit] Multicol template

Hello. I'm experiencing problems with the templates, basically Multicol. I see any template must be edited within the site, but how? Should I edit a specific page called "Template:Multicol" containing the code or what else? Could you suggest me a tutorial bout this problem?

Kind Regards —151.92.83.45 08:40, 4 November 2009 (UTC)

[edit] TOC/Numbered List Formatting Bug

There is a formatting bug when a left aligned TOC has a numbered list to its right. The indentations don't appear to occur and the numbers themselves are located within the TOC box.

I tried upgrading to 1.15.1 to see if it had been fixed but it looked the same. (I then went back to 1.12.0 because I was having trouble convincing 1.15.1 to allow page edits, but that's likely my issue)

If the source is not visible, a copy is available at http://www.svalli.com/FormatBug.txt in plain wikitext.

216.199.48.59 15:52, 6 November 2009 (UTC)

[edit] Remove the Logo Entirely

  • MediaWiki version: 
  • PHP version: 
  • MySQL version: 
  • URL:

Product Version MediaWiki 1.15.1 PHP 5.2.9 (cgi-fcgi) MySQL 5.0.81-community-log

I would like the remove the logo entirely and raise the left hand side.

The FAQ says:

"If you want to remove the logo completely, comment out the wgLogo variable. Then set the column-one padding to a small value, such as 21:

  1. column-one { padding-top: 21px; }

You don't have to go edit the css file directly. You can go to <Your Wiki URL>?title=MediaWiki:Monobook.css. Hit edit and make your changes there. This has preference over the monobook main css."

However, when I go to that page, I am not able to edit at all. I just get:

"MediaWiki:Common.css From Wiki Jump to: navigation, search

Note - After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Command-R on a Macintosh); Konqueror: click Reload or press F5; Opera: clear the cache in Tools → Preferences; Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5. "

I would upload a pic, but it won't let me... You can see it here:

http://www.thesolarforum.com/wiki/?title=MediaWiki:Monobook.css


I am logged in as admin and member of admin group...or so it says.


173.117.129.203 06:32, 8 November 2009 (UTC)

[edit] Lifespan template

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

I need help making a template. I want to use this template to help standardize birth and death information, as well as prompt for desired information about individuals.

This template would go after a person's name on their page, such as: Jim Henson (born September 24th, 1936 in Greenville, Mississippi, died May 16th, 1990 in New York City at age 53)

This template collects the following variables:

  • birth year
  • birth month
  • birth day
  • birth location
  • death year
  • death month
  • death location

Desired outputs with random dates and numbers, include:

  • born January 1st, 2000 in San Francisco
  • born January 1st in San Francisco
  • born January in San Francisco
  • born 2000 in San Francisco
  • born January 2000 in San Francisco
  • born in San Fransisco
  • born January 1st, 2000
  • born January 1st
  • born January
  • born 2000
  • born January 2000
  • born January 1st, 2000 in San Francisco, 9
  • born January 1st in San Francisco, 9
  • born January in San Francisco, 9
  • born 2000 in San Francisco, 9
  • born January 2000 in San Francisco, 9
  • born in San Fransisco, 9
  • born January 1st, 2000, 9
  • born January 1st, 9
  • born January, 9
  • born 2000, 9
  • born January 2000, 9
  • born January 1st, 2000 in San Francisco, died December 31st, 2001 in New York City at age 1

and similar deviations

It should also automatically put the article into categories, such as:

  • Born in 2000
  • Died in 2001
  • Born January 1st
  • Died December 31st
  • Died at age 1
  • Born in San Francisco
  • Died in New York City
  • Born on January 1st, 2000
  • Died on December 31st, 2001
  • Capricorn

The variable input should be tolerant with possible including:

birth and death years:

  • 2000
  • 2001


birth and death months:

  • 1
  • 01
  • 12
  • January
  • December
  • Jan
  • Dec
  • JAN
  • DEC
  • JANUARY
  • DECEMBER
  • Jan.
  • Dec.
  • JAN.
  • DEC.

birth and death days:

  • 1
  • 1st
  • 01
  • 31
  • 31st


Gpaper 15:40, 9 November 2009 (UTC)

I've integrated MediaWiki with SMF, I've fixed almost all problems... the one that I can't fix is that the buttons above the content box aren't... above the box.. I've tried with position:absolute to move 'em and give 'em the proper position, but it changes from browser and browser and for every resolution is different!! Also, if you reduce the browser window they go out of the page! The CSS I used (wrong!!) is this:

#p-cactions { position: absolute; top: 17.8em; left: 37em; margin: 0; white-space: nowrap; width: 76%; line-height: 1.1em; overflow: visible; background: none; border-collapse: collapse; padding-left: 1em; list-style: none; font-size: 95%; }

...how can I have 'em in the proper position? Please, please help me!!!!

Lorenzone92 18:37, 12 November 2009 (UTC)

[edit] Using parameters on another site

  • MediaWiki version: 
  • PHP version: 
  • MySQL version: 
  • URL:

I have a problem, which I can't solve. I want to make a page or template with contact data, (name, address, telephone number, etc) and use some of that data on another page, for example only the telephone number. How do I define the parameters on the contact-page and how do I use them on another page? Thank you.P

[edit] Template re-use from Wikipedia

  • MediaWiki version: 1.15.1
  • PHP version: 5.3.0
  • MySQL version: 5.1.37
  • URL:

How can I use the Wikipedia Templates e.g. Template:Infobox in my wiki powered by mediawiki? —SamiIslam 13:03, 20 November 2009 (UTC)

[edit] page actins tabs got "unstuck"

  • MediaWiki version: 1.15.1
  • PHP version:  5.2.9 (apache)
  • MySQL version:  5.0.67-log
  • URL: http://wiki.mirchar.ru

Hello,

I've been working on my wiki and all was fine, until I tried to install a counter on the pages. I've added the counter code to Monobook.php, cleared the cahe and suddenly thhere appeared an emty space between the page actions tabs and the main content field. As you can see, the tabs are not attached to the main body as they should, but are floating several pixels above it. Or, rather, it's the main body that moved down a bit.

I removed the counter code, but it did not help. I dowloaded a fresh Monobook.php from SVN, then a fresn main.css for monobook (I've been altering mine, I know it's not very good, but I'm so bad at css I couldn't figure out how to work with common.css), then commented out all the extensions from Localsettings.php. Yet, the tabs are still floating in space.

Please help me out, what could the problem be?


Mirchar 08:05, 21 November 2009 (UTC)


[edit] Extension Support

[edit] (RESOLVED) EmbedImg Extension, Advice rather than tech help needed on Images

  • Product Version MediaWiki 1.14alpha (r45489)
  • PHP 5.2.4-2ubuntu5wm1 (apache2handler)
  • MySQL 4.0.40-wikimedia-log
  • www.trialworks.com/wiki

Hello, This is more of an "advice needed" post. I wanted to use the Upload/Image functions in MediaWiki but I believe I cannot... my webhost does not give me easy access to php.ini and I really don't want to go through the headaches of making them enable uploads in PHP, so I've kind of given up.

I did, however, download EmbedImg Extension and absolutely love it. It lets me take a address to an JPG or PNG file and paste it into the wiki, and in turn it displays the image (Rather than the path). The problem is that it's parameters only let me change size, but not location. I need to be able to align those images "right" with text, so that it all looks good. Aside from the extension, I got around the upload system by writing, in ColdFusion, an upload agent. It lets any of my users - in a super simple fashion - upload an image to the site and obtain the link, which then goes into the Wiki Article. It's really simple but very effective for my needs.

So now, I am just dealing with a formatting issue. It needs to be uber easy for my users. How would you guys/girls handle the alignment or would you really work on getting the Wiki upload stuff to work (btw, I feel my ColdFusion app is easier to use for my users than the Wiki stuff).

Karl @ www.trialworks.com/wiki Thanks!!

UPDATE: sorry to waste space, I think I've solved my little crisis with <div style="float: right;">

[edit] MediaWiki oes not find texvc - but texvc exist in the math folder !!!

  • MediaWiki version: 1.13.3
  • PHP version: 5.2.4
  • MySQL version: 5.0.51a
  • URL: not public ... local network

Hi there,

I need help, cause I tried serveral times to setup texvc for our MediaWiki. I downloaded and installed the latest version of OCaml and run the 3 steps:

  1. Change to the "math" sub-directory of your MediaWiki install
  2. Run 'make' (or 'gmake' if GNU make is not your default make). This should produce the texvc executable.
  3. Enable $wgUseTeX and $wgEnableUploads in your LocalSettings.php and everything should work.

I've seen no errors during the make but the MediaWiki does still not find the texvc !!! I checked the math folder and there is an texvc...

how can I resolve the problem ???

thank you !!!

Alex

I have some problem with mediawiki-1.13.3-42.fc10.x86_64 on fedora 10 x86_64 and resolved it from http://zaphod.lite.msu.edu/bugzilla/show_bug.cgi?id=5757.
The solution was to run texinfo rehash, and run fmtutil-sys --missing.

Ivan

[edit] How-to restrict access to a Special Page? (Resolved)

  • MediaWiki version: 1.13
  • PHP version:  5.0

Hi,

I'm using the extension http://www.mediawiki.org/wiki/Extension:UploadCSV where I can update pages with an CSV file. As this extension can easily cause vandalism, I want to restrict the access for just "administrators". Like when trying to access this page as a normal user: http://meta.wikimedia.org/wiki/Special:Block

I added:

$wgGroupPermissions['*']['uploadcsv'] = false; $wgGroupPermissions['sysop']['uploadcsv'] = true;

to LoaclSettings.php - but everyone can still access the page. Any ideas what I'm doing wrong?

Thanks, Chris


add to uploadCSV.php

// New user right - required to access Special:Maintenance $wgAvailableRights[] = 'uploadcsv';


function wfUploadCSVStart() {

       global $wgMessageCache, $ExtensionTitles, $wgOut, $wgUser;


# If the user doesn't have the required 'maintenance' permission, display an error if( !$wgUser->isAllowed( 'uploadcsv' ) ) { $wgOut->permissionRequired( 'uploadcsv' ); return; }


add to LocalSettings.php

$wgGroupPermissions['sysop']['uploadcsv'] = true;

[edit] Extension Licensing Guidelines

I was wondering if there were licensing guidelines for extensions. I am combined several extensions with MediaWiki and noticed that some of the extensions have licenses that are incompatible with other extensions (e.g. Affero v.3 with a majority of extensions under GPL v.2). There are also several extensions that have no license indicated--is there a default license if you are coding for combination with MediaWiki? I was wondering if there was already guidance or if there could be some written on these topics. Thanks.

[edit] unable to install chat on mediawiki

Hello everybody. I installed mediawiki on my linux ubuntu server 9.04 machine,is working very good, almost eveyone in LAN, is using. The backup process and recovery also was successful after many efforts.

Now I try to install chat extenstion on my mediawiki, but I receive error. I follow the structure in link below" http://www.mediawiki.org/wiki/Extension:Chat Also I installed . To download phpfreechat, I used the follwing link, and I downloaded on linux machine. Now I try to install it (phpfreechat) which now Is on my desktop(phpfreechat.php), but I cannot install using this command (sudo apt-get install phpfreechatx.x). It says, there is no package. Also I tried with root permission, as well. http://linux.wareseeker.com/Internet/phpfreechat-1.0-beta-11.zip/317847.


It's really appreciated to tell me the steps in more details.

Thanks in advance Mona Mortazavi IT-Specialist —Mona mrtzvi 16:56, 7 November 2009 (UTC)

[edit] Extension: DeleteBatch fails with ' Call to undefined method OutputPage::addWikiMsg() '

When the 'Delete batch of pages' link is clicked on I get the error:

Fatal error: Call to undefined method OutputPage::addWikiMsg() in C:\Program Files\EasyPHP 2.0b1\www\MediaWiki-1.5.2\extensions\DeleteBatch\DeleteBatch.body.php on line 85

I think it likely that I need to update my mediaWiki version; please could someone tell me what is the safest version to update to?

I tried updating to 1.15.1 - the download page said this was the latest version - but now I get:

Fatal error: Call to undefined method XmlSelect::addOptions() in C:\Program Files\EasyPHP 2.0b1\www\mediawiki-1.15.1\extensions\DeleteBatch\DeleteBatch.body.php on line 148

141.228.106.151 17:16, 16 November 2009 (UTC)


[edit] 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!

[edit] 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.

[edit] 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

[edit] 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() [<a href='function.session-start'>function.session-start</a>]:
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

[edit] 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


</* generated javascript */

what could be generating that character "<"?

sounds like HTML vs XHTML but how it could be fixed?

[edit] Including of path

Header created by EivindJ.
  • MediaWiki version: 1.13.2
  • PHP version: 5.2.0-8+etch13(cgi-fcgi)
  • MySQL version: 5.0.32-Debian-7etch8-log
  • URL:

Hello
I'm trying to include the path on the top on each page (example wiki>help>questions). What is the code that the path infix in the page?

thanks for help —The preceding unsigned comment was added by 212.101.18.161 (talkcontribs) 07:57, 22 January 2009. Please sign your posts with ~~~~!

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

[edit] 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:

  1. 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?
  2. 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?
  3. 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?
  4. Are there any good examples of public mediawikis sharing content in any of these ways with private ones?
  5. 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?


[edit] 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?

[edit] Completely Anonymous Editting (No IP)

  • MediaWiki 1.13.3
  • PHP 5.2.8 (cgi)
  • MySQL 5.0.67-community

Is there a way to allow complete anonymity? Or how about a system whereby an ID is shown instead of showing IPs?

[edit] Untitled

  • MediaWiki version: 1.14.0
  • PHP version: 5.2.8
  • MySQL version: 5.0

Remarque : Les versions de PHP et MySql sont celles fournies par Xampp 1.1.1.2

  • 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

[edit] 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: User1,user2,user3,user4,user5 ----> the number of users (here is 5).

So that i could use : {{contributors/Article}} 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!

[edit] 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

[edit] 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

[edit] 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. <Apache_dir/htdocs/>).

Buyun 14:02, 31 October 2009 (UTC)

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

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

[edit] Default text

I am using

  • MediaWiki Version 1.16 alpha r 58683
  • PHP 5.2.8 (Apache2Handler)
  • and MySQL 5.1.34 - log

and I would like to know one thing:

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)

[edit] 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
[[Complex link|Link]] => Link
[[A more complex link!|Link]] => Link
[[Link]]s => Links
[[File:Image.jpg|thumb|An example with a [[link]]]] => [[File:Image.jpg|thumb|An example with a link]]
[[Image:Image.jpg|thumb|An example with a [[link]]]] => [[Image:Image.jpg|thumb|An example with a link]]

And do nothing to:

[[File:Image.jpg|thumb]]
[[Category:Examples]]
[[fr:Le link]]
[[be-x-old:Linko]]

What I have is:

$contents=$input;
$contents=preg_replace("/\[\[[a-z]{2,7}:[^\|\.]+\]\]/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)

[edit] 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??

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 = "{{subst:Articolo Modello 1}}\n[[category:".$cname."]]";
			$text .= $temp1;
			}
		return true;
		}
	return false;
	}

when I use it i get the text in the new article that is

{{subst:Articolo Modello 1}}
[[category:categoria 1]]

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

Maiocchim 16:53, 13 November 2009 (UTC)

[edit] Favicon

I added the line $wgFavicon = "ftp.bstcenter.org/favicon.ico"; to my LocalSettings.php. The reason I didn't use $wgFavicon = "$wgScriptPath/favicon.ico"; 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 <link rel="shortcut icon" href="ftp.bstcenter.org/favicon.ico" />, 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)