Jump to content

Project:Support desk/Flow/2011/08

Add topic
From mediawiki.org
This page is an archive.
Please ask questions on the current support desk.

Get notification when s.th. is has been written on Discussion pages.

Hello, is it possible to receive a notification (email, msg, etc.) when a user makes changes on the discussion page? Does not matter, on what discussion page the changes werde made. 194.180.1.201 (talk) 07:43, 1 August 2011 (UTC)

That's an interesting question. You can always go to Special:RecentChanges and confine your results to the namespace 'Talk' (='Discussion'), which will show you the most recent changes that have been made to any page in this namespace.
If you like, it's also possible to transclude the contents of Special:RecentChanges and adjust the number of days or the number of changes shown per page (see this page here for further information), but there's nothing in the documentation that I could find about filtering the list on the basis of a particular namespace.
Hope that helps Cavila 18:30, 2 August 2011 (UTC)

[RESOLVED] Nested collapsible tables

This is a nested collapsible table, with all boxes collapsed by default:

In Wikipedia (and here) it works great. But in Wikiversity, when I open the main box, the child boxes get opened as well, which is quite disturbing. Is there a way to solve this? Lipedia 15:14, 1 August 2011 (UTC) (v:User:Lipedia) Lipedia (talk) 15:14, 1 August 2011 (UTC)

Collapsible tables is a user script developed and maintained by users of Wikimedia wikis. I guess that Wikiversity copied a script from Wikipedia (or MediaWiki.org) in the past but has not updated to the latest version. I've went ahead and updated it for you.
It might take a few minutes/hours for the new version to take effect. If it doesn't help, please report back here. Krinkle 01:28, 2 August 2011 (UTC)
Yeah! :) Lipedia 13:04, 2 August 2011 (UTC)

(Solved) What is the easiest way to restore a Searchindex?

Summary:

  1. Is there a maintenance script or other method to rebuild the full Searchindex?
  2. Does a MySQL restore also restore the Searchindex?
    • If so, how does one get around the MySQL bug mentioned in the previous thread?

Details:

  • Environment:
    • PHP version 2.3.0, mysql Ver 14.14 Distrib 5.1.53, SQLite 2.8.17, all from the openSuSE 11.4 (current) distribution.
    • openSuSE has SQLite 3.7.5 as well as 2.8.17. I have no idea why it chose the earlier version. Is it safe to install the newer one?
    • The mediawiki install also warned: Connected to mysql 5.1.53-log; You are using MySQL 4.1 server, but PHP is linked to old client libraries ...
  • First option: rebuild the Searchindex.
    • I restored with dumpBackup into an SQLite database. (Was this a bad idea?)
      • The restored pages appear to be intact, but searches find nothing. Words I know are on the pages are not found.
      • There is an updateSearchIndex.php file in maintenance, but its documentation page says it only works on Special:Recentchanges. There is nothing that I can find which allows me to mark all pages as "Recentchanges."
    • Would the importDump have restored the Searchindex if I had used MySQL instead of SQLite?
    • I also tried looking inside the SQLite database to confirm that the index was empty.
      • MediaWiki has created a file "dbase.sqlite"
      • The structure is documented in Manual:Searchindex table (Why are the instructions only for 1.18 and 1.19? 1.17.0 is the current donwload.)
      • I attempted to confirm that the search table was empty.
      • When I type "sqlite dbase.sqlite" SQLite replies:
        • "Unable to open database "dbase.sqlite": file is encrypted or is not a database"
      • I have located /wiki/includes/db/DatabaseSqlite.php but it appears only to open the database. How can I access the database from sqlite on the command line?
  • Second option: restore the full mysqldump backup.
  • My alternative is to persevere at doing a restore of the MySQL dump.
    • The problem here is that earlier versions of MediaWiki used an index structure for which the present MySQL reports "Specified key was too long; max key length is 1000 bytes"
    • The error message gives a line number. The "offending" SQL is:
      CREATE TABLE ddmscategorylinks (
        cl_from int(8) unsigned NOT NULL default '0',
        cl_to varchar(255) binary NOT NULL default '',
        cl_sortkey varchar(86) binary NOT NULL default '',
        cl_timestamp timestamp(14) NOT NULL,
        UNIQUE KEY cl_from (cl_from,cl_to),
        KEY cl_sortkey (cl_to,cl_sortkey),
        KEY cl_timestamp (cl_to,cl_timestamp)
      ) TYPE=MyISAM;
      
  • This is the second "CREATE TABLE" command in the dump. Either this one has a problem, or encountering this caused MySQL to process the previous one.
  • The same table, in a fresh MediaWiki 1.16.5 install dumps as:
DROP TABLE IF EXISTS `ddmscategorylinks`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ddmscategorylinks` (
  `cl_from` int(10) unsigned NOT NULL DEFAULT '0',
  `cl_to` varbinary(255) NOT NULL DEFAULT '',
  `cl_sortkey` varbinary(70) NOT NULL DEFAULT '',
  `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  UNIQUE KEY `cl_from` (`cl_from`,`cl_to`),
  KEY `cl_sortkey` (`cl_to`,`cl_sortkey`,`cl_from`),
  KEY `cl_timestamp` (`cl_to`,`cl_timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
/*!40101 SET character_set_client = @saved_cs_client */;
  • To my untutored eyes, the SQL looks the same, except int(8) became int(10) in 'cl_from', and the timestamp became more complex. It is certainly possible that the /*! comments change something fundamental, but that is beyond my understanding.
  • Is there something in maintenance or elsewhere that can reformat my "old" MySQL dump?
  • As you can see, this attempt to rebuild the index has become a maze.
    • Can someone please suggest a reliable path through the maze?
  • Finally, when creating the MySQL-based wiki, I took the default InnoDB engine.
    • In looking through MediaWiki manual pages, I have found both InnoDB and MyISAM recommended as the preferred database, on different manual pages.
    • Is there a reason to prefer one of them in this case?
  • Thanks in advance for any advice you can provide! Docduke (talk) 15:51, 1 August 2011 (UTC)
Search index is rebuilt with rebuildtextindex.php, you can also rebuild everything with rebuildall.php. Also, you need to decide what you use MySQL or SQLite. Regarding SQLite: we use its 3rd version, so command-line client is called sqlite3. Max Semenik 01:41, 2 August 2011 (UTC)
  • Max: Thanks very much for the help! I now feel much more in control.
    • rebuildtextindex.php is certainly fast enough for me, and it appears to have done the job perfectly!
    • The SQL dump that restored those unindexed pages is 233 MiB.
    • The script indexed those 1726 pages in about 40 seconds on a 3-year-old Athlon.
  • Here are some more answers that may help others with similar problems.
    • Manual: Maintenance scripts is a page that collects the scripts mentioned above, and most or all of the other maintenance scripts, sorts them into categories, and describes their purposes in various levels of detail. I found it from "What Links Here" applied to the above pages.
  • I have been using openSuSE for about 15 years. Its current release, Version 11.4, appears to be suffering from lack of attention to detail. The MediaWiki installer warned of old libraries being linked to PHP (see Environment above), and one piece of confusion I encountered is that their default install put in the libsqlite3 libraries, but only the sqlite2 command-line application. The sqlite3 app is on the distribution DVD, but it was not installed by default.
  • It may be time to move to another Linux distro. One thing I will miss if there is no equivalent, is the YaST2 Software Manager. I have tried several other distro live CDs, and do not see a comparable graphical software update tool.
Wikipedia runs on Ubuntu, many of our developers use it, too. Its pros include recent versions of packages related to MW - note, however, that we don't recommend to use MW itself from packages. Max Semenik 10:51, 3 August 2011 (UTC)

Can't upload non-image files - $wgFileExtensions set

Hi! I'm using MediaWiki 1.17.0 with PHP 5.2.17 and having problems getting the upload file feature to work with files other than images. I read Manual:Configuring file uploads. I enabled some extensions, disabled Mime check (worth a try) and emptied the blacklist (for testing):

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ppt', 'pdf', 'psd', 'mp3', 'xls', 'xlsx', 'swf', 'doc','docx', 'odt', 'odc', 'odp', 'odg', 'mpp');
$wgVerifyMimeType = false;
$wgFileBlacklist = array();

The upload screen indeed claims I could upload all these file types, but when I try to upload an xlsx or odt, it's not working (message about allowed file types turns red as if I was uploading a forbidden file). File size is not an issue since the images that work are larger than the documents. Did I forget to configure something? 46.5.22.135 (talk) 17:58, 1 August 2011 (UTC)

I think in versions prior to 1.18, xlsx and odt files will be considered zip files (because technically they are). You may have to remove application/zip from $wgMimeTypeBlacklist as well.
Note, allowing arbitrary file uploads may open you up to some security issues, especially on pre 1.18 versions when allowing office formats Bawolff (talk) 14:30, 2 August 2012 (UTC)

(Resolved) Change "Mediawiki Mail" sender name

Good afternoon, I have been surfing into FAQs and manuals for a while but I'm not able to find a solution...I'm trying to change the sender name of outgoing e-mails from my fresh mediawiki installation (1.17) but I can't find the way, could you please help me?

Best regards,

Mark 15.195.201.86 (talk) 20:08, 1 August 2011 (UTC)

Manual:$wgPasswordSenderName Peachey88 22:39, 1 August 2011 (UTC)
Thank you very much Peachey :-)
Regards,
Mark 15.195.201.86 18:42, 2 August 2011 (UTC)

(Still open) Count articles that belong only to two (or three) specific categories

Hello,

we are using the following versions: MediaWiki 1.16.5 PHP 5.2.4-2ubuntu5.17 (apache2handler) MySQL 5.0.51a-3ubuntu5.8

I want to create a statistics of our wiki about the number count of articles that belong to a range of categories, e.g. all articles that belong to the categories "Artists" and "1999" and then a separate count of articles that belong to "Artists" and "1998", so that I can see later in a table how many artists per year we have already in our database.

I tried MAGIC WORDS (PAGESINCATEGORY) and also DPL, but they didnt help.

Any ideas?

UPDATE: My wiki is www.rockinchina.com, in case you want to see it. I didnt put up dedicated pages, because as per the above it doesnt work at all. 82.113.99.51 (talk) 20:19, 1 August 2011 (UTC)

Can you be clearer about exactly what you tried and exactly how it didn't work?
This should be possible with a combination of PAGESINCATEGORY and ParserFunctions. For instance,
{{#expr:{{PAGESINCATEGORY:Help}} + {{PAGESINCATEGORY:MediaWiki_Introduction}}}}
yields 173 —Emufarmers(T|C) 22:00, 8 August 2011 (UTC)
Dear Emufarmer, sorry for the late reply.
Let's take the following example:
Category:Artist has > 1800 pages out of which e.g.
400 pages also belong to Category:1998
300 pages also belong to Category:2000
Category:1998 has in total 3000 pages, out of which only 400 pages are belonging also to Category:Artist
Category:2000 has in total 1000 pages, out of which only 300 pages are belonging also to the Category:Artist
I need a possibility to show the following logical expression:
JOINT (ARTIST;1998)
JOINT (ARTIST;2000)
which should result in 400 and 300 respectively.
Thanks for your help,
Max 89.204.137.67 19:57, 29 August 2011 (UTC)

403 Forbidden on LocalSettings.php set up

I installed MediaWiki 1.17 on my Awardspace account. When I go to my mediawiki page here and click the "complete the installation" button, I get

"You don't have permission to access /mw-config/index.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."

Can someone please help me? I also get this on 1.16. 68.100.32.159 (talk) 23:51, 1 August 2011 (UTC)

There is a number of reasons why you are getting this response. It may be that your port 80 is being used by another application. Did you install wamp previously? First I would clear out temp files cookies ect. on toolsm internet options.
Test port 80 by left click on the wamp icon in the tray hover over apache move over to services on the menu click on test port 80 that will show you what is using port 80. Regards Ron Barker 19:40, 4 August 2011 (UTC)
I cleared my temp files and cookies. In wamp, it says my port 80 is being used by: Apache/2.2.17 and PHP/5.3.5
I went again to my mediaiwki set up page, and I still had the 403 error.
Could it be something with my account with awardspace? Also, I still get the 403 error on my other computer if that means anything. X66x66 22:15, 5 August 2011 (UTC)
Make sure no other program conflicts with Wamp such as IIS, SQL, Skype, Zonealarm, firewall/antivirus, NOD32, Eset, any web related program including Remote Desktop, Teamviewer ...
To disable Internet Information Services (control panel>uninstall programs> turn widows features on or off> uncheck internet information services)
If using Skype, open Skype > Tools > Options > Advanced > Connection then uncheck "use port 80..." restart Wamp then Skype
Also, in folder C:\WINDOWS\System32\drivers\etc, open file hosts and delete anything in this file and have only this line below and nothing else
127.0.0.1 localhost
Restart computer, then restart Wamp Ron Barker 10:47, 6 August 2011 (UTC)
Did you really read what he wrote? It's on Awardspace, not localhost. Max Semenik 10:55, 6 August 2011 (UTC)
Max,
No I didn't, sorry.
I think maybe the best place to ask would be http://forum.awardspace.com/viewforum.php?f=46 Ron Barker 11:01, 6 August 2011 (UTC)

List of most frequent search terms

I seem to remember from wayyyyyyy back that there was a way to display the most frequent or top search terms within the installation. (Not the search terms that brought people to the site, but the searches that people type in the local Search box in the mediawiki installation.) Anyone have any ideas? I've been looking here and in wikipedia help for half and hour and give up. Elf (talk) 17:03, 2 August 2011 (UTC)

Extension:SearchLogEmufarmers(T|C) 17:44, 2 August 2011 (UTC)
Excellent! Thanks. Elf 18:14, 2 August 2011 (UTC)

How to decrease Mediawiki's server load

For the last weeks I had around ~700 visitors per day, and today my hoster blocked the site due to overload. The hosting supports 600 mb RAM, maximum permissible load of 72 cp (I don't know what that means) and pretty enough space. So, what do I have to do? Do I have to try this? I still didn't it because as memcached requires more RAM I'm not sure if that is about lowering the burden over server. Beznogim (talk) 17:34, 2 August 2011 (UTC)

All of the options on that page will help. —Emufarmers(T|C) 17:46, 2 August 2011 (UTC)

Problem with MathJax Extension

I installed MathJax extension. The problem is that the math formula sometimes renders correctly and sometimes it does not. For example, see the following urls, that are the same page: http://webdocs.cs.ualberta.ca/~behsaz/algorithms/index.php/Template and http://webdocs.cs.ualberta.ca/~behsaz/algorithms/index.php?title=Template

--Babak Babak.behsaz (talk) 02:48, 3 August 2011 (UTC)

Changing preferences for all new and existing users

Is it possible to set a preferences flag for all existing users and also default it to "on" for all new users that will be created?

I'm particularly interested in "Auto-Number Headings".

I looked through the extensions and found nothing current that can do this, and there doesn't seem to be a way to change another user's preferences from any of the Special pages that I could see.

Running mediawiki 1.17.0.

Thanks! 72.5.239.5 (talk) 19:36, 3 August 2011 (UTC)

$wgDefaultUserOptions + userOptions.php. Max Semenik 03:34, 4 August 2011 (UTC)

FCKeditor - Strict Standards: Declaration of FCKeditorParserOptions::getSkin()

Hi I'm getting following error on MediaWiki 1.17.0 with 1.17 FCKeditor and getting the following error; PHP 5.3.6 (apache2handler) Strict Standards: Declaration of FCKeditorParserOptions::getSkin() should be compatible with that of ParserOptions::getSkin() in C:\mediawiki\extensions\FCKeditor\FCKeditorParserOptions.body.php on line 3

Is there is a solution for this? Boomramada (talk) 03:47, 4 August 2011 (UTC)

Hi,
I getting exactly the same error.
Strict Standards: Declaration of FCKeditorParserOptions::getSkin() should be compatible with that of ParserOptions::getSkin()
in C:\xampp\htdocs\mediawiki\extensions\FCKeditor\FCKeditorParserOptions.body.php on line 3
I found that the function parameter of FCKeditorParserOptions::getSkin() and ParserOptions::getSkin() is different. It makes the PHP compiler complaint (may be a compilier options can disable the check).
Just change the getSkin function parameter on FCKeditorParserOptions.body.php to the following will fix the error.
function getSkin( $title = null ) Chris lai 04:34, 16 August 2011 (UTC)

Permissions for Groups 'Customers'

Hi,

Our site has been set-up so an Admin user, creates an account before you can log in. I have put all the users into Employees and Customers groups. I want to stop the customers editing any of the web pages, I have tried a few things but nothing seems to work, any suggestions? Below is my code...

# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;

# Create user groups
$wgGroupPermissions['group']['right'] = true /* or false */;
$wgGroupPermissions['Employees']['read'] = true;
$wgGroupPermissions['Customers']['read'] = true;
$wgGroupPermissions['Customers']['edit'] = false;
$wgGroupPermissions['Guests']['read'] = true;
$wgGroupPermissions['Documentation']['read'] = true;

81.174.165.239 (talk) 11:19, 4 August 2011 (UTC)

It seems you have to grant edit right to the "Employees" group explicitly:
$wgGroupPermissions['Employees']['edit'] = true; 95.167.125.206 12:21, 4 August 2011 (UTC)

An "I just installed MediaWiki via MacPorts, now what?" landing page

I was thinking it would be nice if such a page existed that's catered towards this specific segment of the population. I just installed it locally and want to play around with it. Specifically, create dummy templates to see how it all works, as opposed to just a single sandbox page at en.wikipedia.org. Some suggestions for such a page:

  • Start up a MacPorts installed MediaWiki
  • Do initial configurations so that I can use it as a user
  • Optionally, configure on-boot launch
  • Optionally, configure how to hook it up to System Preferences Sharing applet

So it would be nicer if it wasn't just assistance for me, but a landing page to assist others as well. I am unfortunately running Mac OS X Lion 10.7.0, a.k.a. "the early adopters of Apple products are beta testesrs" edition. --Bxj 14:06, 5 August 2011 (UTC)

You're the first person I've ever encountered who mentioned having installed MediaWiki via MacPorts, so that's a very specific segment of the population indeed. :-)
Most of what you're asking for sounds like information the MacPorts people should provide to you. The documentation on this site is focused on MediaWiki proper. —Emufarmers(T|C) 21:42, 5 August 2011 (UTC)
Anecdotal evidence aside, if only there were a site that easily allowed articles to be collaborated upon, right? It still doesn't change the fact that a landing page would be helpful. I'm here because the MediaWiki install via MacPorts ends with printing out a URL for this website. I will lurk the MacPorts site some more, but 9 out of 10 my bet is that the proper place for documentation is here.--Bxj 04:11, 6 August 2011 (UTC)
Guides for installing MediaWiki with a package are tolerated on this site, if not exactly welcomed (see software bundles). All the things you asked about are done at the level of the package, not MediaWiki, so I think it makes sense for the package maintainers to document them. But nobody will object if you create Manual:Running MediaWiki on MacPorts (I'll review it for you, too). —Emufarmers(T|C) 05:29, 6 August 2011 (UTC)

1.19alpha math error - MathRenderer::_recall". Database returned error "1146:

I installed 1.19alpha and downloaded the math extension and followed the instructions on its installation. OS: OS X Lion Server Installed software

Product Version MediaWiki 1.19alpha PHP 5.3.6 (apache2handler) MySQL 5.5.14

Installed extensions

Parser hooks Math (Version 1.0) Render mathematical formulas between ... tags Tomasz Wegrzanowski, Brion Vibber and others Extension functions MathHooks::setup Parser extension tags <gallery>, ,<nowiki>and<pre>Parserfunctionhooksanchorencode,basepagename,basepagenamee,defaultsort,displaytitle,filepath,formatdate,formatnum,fullpagename,fullpagenamee,fullurl,fullurle,gender,grammar,int,language,lc,lcfirst,localurl,localurle,namespace,namespacee,ns,nse,numberingroup,numberofactiveusers,numberofadmins,numberofarticles,numberofedits,numberoffiles,numberofpages,numberofusers,numberofviews,padleft,padright,pagename,pagenamee,pagesincategory,pagesize,plural,protectionlevel,special,subjectpagename,subjectpagenamee,subjectspace,subjectspacee,subpagename,subpagenamee,tag,talkpagename,talkpagenamee,talkspace,talkspacee,uc,ucfirstandurlencodeAnyattempttoinclude<math>xy=1 generates the following error:

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 "MathRenderer::_recall". Database returned error "1146: Table 'dobb.dobbmath' doesn't exist (127.0.0.1)".

Any help would be appreciated... 115.70.51.13 (talk) 14:29, 5 August 2011 (UTC)

It looks like the instructions neglect to mention that you need to run update.php after installing the extension. I've updated the instructions. —Emufarmers(T|C) 21:38, 5 August 2011 (UTC)
Thanks for this, running php update.php from the terminal fixed thing and generated the math table.
But now I am back at the perennial problem of dealing with Failed to parse(PNG conversion failed... etc., problem.
I will return to reading the docs and try to fix this... but if I am missing something then I would embrace enlightenment on this issue. 115.70.51.13 06:18, 6 August 2011 (UTC)
There are 2 different methods to display math on the web -using images or using MathJax (successor of JsMath) which is javascript renderer. I used both and I definitely prefer MathJax.
You can either use mediawiki extension (I have not tested it) or just to hack skins see here.
Instead of the cloud you can use your own MathJax installation (Pro: configure to your needs).
See also here
HTH
Victor Ivrii 14:39, 4 December 2011 (UTC)

1.17.0 won't unlock from read-only mode

Greetings,

I just upgraded out staging mediawiki instance from 1.16.5 to 1.17.0. The upgrade seemed to go fairly well, but it won't come out of read-only mode. The message is this:

'The database has been automatically locked while the slave database servers catch up to the master'

This seems to be from LoadBalancer.php, relating to master/slave database servers. At least, that's the only place I could find this string in the documentation.

The problem is, replication is fully up-to-date. 0 seconds behind master, no obvious failures. Other things are hosted on that database cluster, so if there was some kind of global failure I'd have expected to see it by now.

Mediawiki 1.17.0 PHP 5.2.9 MySQL 5.1.52 (master and slave)


How does LoadBalancer.php check to see if the slave is up-to-date? Is there a way I can run the script manually? If I knew how it was making this decision I might be able to fix it...

Any other ideas?

Thanks, Jake 72.201.38.234 (talk) 18:18, 5 August 2011 (UTC)

A single page load causes RAM and CPU usage to shoot up

Any time that I load a page on any of my wikis, including a clean install, the RAM and CPU usage shoot up. Here's as much info as I can provide:

CPU Usage stats

pidginet pidgi.net 36.0 /usr/bin/php /home/pidginet/public_html/wiki/index.php

pidginet pidgi.net 14.0 /usr/bin/php /home/pidginet/public_html/wiki/index.php

pidginet pidgi.net 13.0 /usr/bin/php /home/pidginet/public_html/index.php (there's also a wiki in this directory, btw)

Apache error log

[Fri Aug 05 16:26:10 2011] [error] [client 76.172.146.110] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/File:Emolga_-_Dream_World.svg

[Fri Aug 05 16:26:10 2011] [error] [client 76.172.146.110] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/index.php, referer: http://www.pidgi.net/wiki/File:Emolga_-_Dream_World.svg

[Fri Aug 05 16:26:10 2011] [error] [client 76.172.146.110] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/File:Emolga_-_Dream_World.svg

[Fri Aug 05 16:33:22 2011] [error] [client 99.181.164.173] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/Main_Page

[Fri Aug 05 16:33:22 2011] [error] [client 99.181.164.173] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/Main_Page

[Fri Aug 05 16:33:22 2011] [error] [client 99.181.164.173] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/Main_Page

[Fri Aug 05 16:33:24 2011] [error] [client 99.181.164.173] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/Main_Page

[Fri Aug 05 16:33:24 2011] [error] [client 99.181.164.173] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/Main_Page

[Fri Aug 05 16:33:28 2011] [error] [client 99.181.164.173] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/Main_Page

[Fri Aug 05 16:45:56 2011] [error] [client 99.181.164.173] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/Special:ListFiles

[Fri Aug 05 16:45:56 2011] [error] [client 99.181.164.173] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/Special:ListFiles

[Fri Aug 05 16:45:56 2011] [error] [client 99.181.164.173] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/pidginet/public_html/wiki/load.php, referer: http://www.pidgi.net/wiki/Special:ListFiles

Site stats

http://files.pidgi.net/statbox.png

The host (GreenGeeks) has had me try everything, and they've given up. They thought it was an extension, but since this occurs on a clean install too, that can't be.--Immewnity 14:00, 6 August 2011 (UTC)

generateSitemap Syntax Error Line 129

MediaWiki 1.16.5 PHP 5.2.17 (cgi-fcgi) MySQL 5.0.91-log

From the root directory of my site, I am using the following code:

 php maintenance/generateSitemap.php \
--fspath sitemap \
--server http://actualrelativename.net \
--urlpath http://actualservername.com/wiki

Regardless of how I set up that code, i get the following error: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /maintenance/generateSitemap.php on line 129

Has anyone else seen this? I'm admittedly new to this, and have been unable to resolve the issue on my own.

Thanks! Rdy2dve (talk) 16:15, 6 August 2011 (UTC)

Your system is configured so that PHP4 is the handler for php. Try php5 instead. Max Semenik 16:50, 6 August 2011 (UTC)

[Resolved]Getting Collapse to work

I have two Wiki's,

  • MediaWiki 1.17.0
  • PHP 5.2.17 (cgi-fcgi)
  • MySQL 5.1.52

My newest challenge is "Collapse". I helped build another little farm, before starting my own here and had the same difficulties. I have ( I think ) all the needed templates, the one I'm using to test with is {{Collapse top}} and {{Collapse bottom}} and I do have {{Collapse}}. I use some navboxes on my site such as this one Template:ProjectNav, these are the reason I'd like to have them Collapsible but, I can now use the box alone to encase large threads and so on.

As far as .js and .css I have everything I have come across I think. I have a gut feeling this is a common issue and maybe a secret key no one thinks of. If anyone has a couple minutes and can scan through, maybe something obvious to you. Any and all help or thoughts will be greatly appreciated.

While posting this question I found this Nested collapsible tables does this have anything to do with my problem ? I notice en-WP does not have a page MediaWiki:Navigation.js or is this page just for Wikiversity ? - FlightTime (open channel) 21:41, 6 August 2011 (UTC)

Wikiversity uses a custom set up for their scripts. That issue is not related, and should not be used as example for your wiki.
Thank you for your time, this has been a frustrating issue to get answers for. I have to admit though your phrase "remove everything" scares me a bit, did you mean remove everything pertaining to collapse ? I will try your fix (there's always undo :P). Sorry just had to spit that before going on. I'll cross my fingers :). Again thanx for your time and help.
Very good :). It works. Well it does in my user monobook .js and .css. not in common.js or site wide. I'm sure it will if I clear out (as you said) everything but, there's other stuff there I need and pick through it..... IDK But thank you very much I have a good start. Your the first person to give workable advise in this "collapsing" journey :) Mlpearc powwow 02:04, 9 August 2011 (UTC)
I see a bunch of other problems caused by the copy and paste you did to your Common.js, various failures because you're copying things that either depend on other things, things you most likely don't want or needed but copied en-mass, and things that don't work outside Wikipedia/Wikiversity.
If you read this between 1 and 10 hours, I'll probably be online on IRC (What IRC?). If I don't respond right away, just leave the chat open in a tab, I'll probably be away-from-keyboard and come back in 30 minutes or so. On IRC it's much easier to trial-and-error.
If you're familiar with IRC and have an "IRC client" installed, go to irc://irc.freenode.net/mediawiki, or use the online web-browser client here (Enter your username, crack the captcha and Connect).
Seeya there Krinkle 12:57, 9 August 2011 (UTC)

How could this instruction be achieved?

How could this instruction be achieved: "Any editions done by users would only be finalized and appeared under the permission of site administrators" Raya2017 (talk) 10:42, 7 August 2011 (UTC)

Extension:FlaggedRevs (or Extension:Approved Revs, if you prefer) —Emufarmers(T|C) 20:25, 7 August 2011 (UTC)

Browsing categories by letter

This template and similar ones on Wikipedia provide a convenient way to browse a category by letting it start on a particular numeral or letter. An example on this site is http://www.mediawiki.org/wiki/Category:All_extensions.

The template worked for me in MW 1.16, but it stopped doing so in MW 1.17 (for no apparent reason). Manually adding &from=M (for M) to the URL achieves nothing unfortunately.

How do we go about enabling it again? Cavila 14:02, 7 August 2011 (UTC)

I worked it out myself. Both here and on Wikipedia, the templates add the string &from= to the page name or URL followed by the initial letter/numeral requested. However, I found that the string which needs to be added is &pagefrom= rather than &from= (if you click on "next 200", that's what it using as well). I can't tell why that should be different on my site - it may be an extension changing the configuration, or it may be that WP and this site are using modified versions of MW 1.17. In any event, I expect that all I need to do now is to correct the template.
Regards, Cavila MW 1.17, MySQL 5.1.57, Php 5.2.17 09:48, 9 August 2011 (UTC)
In my case, this solution was almost immediately followed by database corruption (in the searchindex table to be precise). Hopefully (and probably), it was just an unfortunate case of one problem queuing up for another. Cavila MW 1.17, MySQL 5.1.57, Php 5.2.17 11:49, 9 August 2011 (UTC)
I can't see any possible way this could cause db corruption. Probably an unfortunate coincidence.
The from= links should work again in 1.18, it was an oversight they don't in 1.17. Bawolff 00:22, 16 November 2011 (UTC)
Yes, just sheer coincidence, but that's fixed by now. Thanks for responding. Cavila MW 1.17, MySQL 5.5.16, Php 5.3.8 12:04, 16 November 2011 (UTC)

list of deleted pages

does mediawiki keep a list of the deleted pages ? if yes, is it possible to access this through the API ? Or does one have to go through the list of users, and for each user, access the list of pages they deleted ? 84.179.62.197 (talk) 15:17, 7 August 2011 (UTC)

Chronological sorting of category articles

Hello!

I'm setting up a personal Wiki with lots of articles which should be sorted by the year of their publishing. I tried using the year as a sorting key when defining a category, like this:

[[Category:Test|2010]]

but at the Category page, the article got sorted under "2". What I would like, however, is that the sections be the whole year, like so: 2010, 2009...

Can anyone help me with some ideas? Is this even doable?

Thanks in advance! 93.152.182.41 (talk) 19:10, 7 August 2011 (UTC)

Hi 93.152.182.41. A discussion relevant to your question has recently taken place in this thread.
There's an extension in the pipeline, called Extension:CategorySortHeaders, which may help you. Although it is intended for a future version of MW (1.19), a patch is available to make it work for MediaWiki 1.17, too (the latest stable release). Cavila MW 1.17, MySQL 5.1.57, Php 5.2.17 19:37, 7 August 2011 (UTC)
Thank you very much, Cavila!
I will try this extension later today. 93.152.182.41 05:11, 8 August 2011 (UTC)

Main page table design

Does anyone have any instructions on how to create tables like the one on the main page?!

It could serve as a template to newbies like myself! 90.197.7.107 (talk) 21:02, 7 August 2011 (UTC)

Are you referring to the sectional departments ? like news, Did you know etc... Mlpearc powwow 03:38, 8 August 2011 (UTC)
Yes! That would be great. The coding is so complicated! 94.185.232.226 10:52, 8 August 2011 (UTC)
I have set up a template your welcome to use. This is for the whole page [1]. Then I use antoher page as a template within each section, [2] so I can change a section or a couple and so on. Hope this helps in your situation. Cheers Mlpearc powwow 01:53, 9 August 2011 (UTC)

Add a chat tab for Vector skin?

The Chat extension adds a chat tab on the monobook skin, but it doesn't for Vector. I know that adding tabs are possible, like where edit and delete are. The chat pages are on a "&action=chat" page similar to how delete is. Can someone help me do that? Either with CSS or java?

If it matters, I have mediawiki 1.16.5 and PHP 5 X66x66 (talk) 21:23, 7 August 2011 (UTC)

This file contains HTML or script code that may be erroneously interpreted by a web browser.

MediaWiki: 1.17.0
PHP: 5.3.6 (cgi-fcgi)
MySQL: 5.5.15
I continue receiving this message even after scouring the internet for ways to disable or get past it. It is occuring on ANY files I try to upload. JPG's, PNG's, SVG's - you name it, it's not working.
I have set the following variables in my LocalSettings.php config file, but they have not resolved the issue.
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'psd', 'ai', 'docx', 'doc', 'xlsx', 'xls', 'xml', 'xsl', 'xslt', 'zip' );
$wgStrictFileExtensions = false;
$wgCheckFileExtensions = false;
$wgFileBlacklist = array('exe' );
$wgMimeTypeBlacklist = array( );
$wgVerifyMimeType = false;
Thanks in advance for help. 50.81.170.145 (talk) 22:54, 7 August 2011 (UTC)
Replying to myself - I had saved the files in an improper way, apparently. I tried downloading and saving them again and this time it worked. 12.145.177.110 20:14, 8 August 2011 (UTC)
All you need to do to resolve the problem is to:
$wgDisableUploadScriptChecks = true;
in your LocalSettings.php file. Swarnava (talk) 19:30, 15 November 2012 (UTC)
No, this advise is wrong and plain dangerous. Do not follow it!
Setting $wgDisableUploadScriptChecks to true will disable upload checks for HTML/JavaScript. Basically it will allow all users, who may upload files, to upload arbitrary HTML and JavaScript contents. Having custom HTML and JavaScript code in your wiki is a security threat for you and your users. And worst of all: The questioner does not even want to upload HTML or JavaScript! He wants to upload images! $wgDisableUploadScriptChecks does not even influence how MediaWiki behaves when non-HTML/JavaScript files are uploaded!
This advise does not help in any way except that it opens a security vulnerability! 88.130.112.51 13:27, 5 February 2014 (UTC)
I got the same error message this morning. Turns out I was trying to upload an SVG file that had a linked image associated with it. Once I embedded the image, it uploaded nice n easy. But as long as the SVG file only contained a link to the image, it was never going to be able to upload successfully. Quick embed, resave, and problem solved. For me. For this file. For now. 108.184.203.211 12:30, 5 February 2014 (UTC)
You can just zip it and upload it zipped 213.140.195.25 (talk) 12:56, 6 March 2020 (UTC)

Multilingual SVG

SVG format is ready to contain text in multiple languages. The specification describes "systemLanguage" attribute. Now I would like to see this feature to be supported in MediaWiki (I'm talking about Wikipedia and especially - Wikimedia Commons).

I would like to see that PNG previews could be generated with use of "uselang" URL parameter in Commons.

So the users would not have to maintain multiple versions of one SVG. There is a typical situation when someone creates translation of some SVG, then the original version develops further, but the translation stays as it was, and those branches fork. BPK 01:34, 8 August 2011 (UTC)

Yes, support for multilingual SVGs would be great, especially for Wikimedia Commons. Probably, a bug requestling support for this shoule be filled in bugzilla. Oh, I see there is a bug called Support for multilingual SVGs there already - am not sure if this is what we need though. Kozuch 14:15, 22 August 2011 (UTC)

How can I make a personal mediawiki that's blindingly fast?

  • MW is part of my life, it's my notebook and the overflow for my own brain.
  • I want a personal mediawiki only I can access
  • I want it to be insanely fast, with as little noticeable 'lag' as possible. So it's more like a desktop app than a network app.

What's the best way to do this?

  1. Hire a third party webhost (slow, right?)
  2. Install a VM appliance with MW (done, but still seems slow)
  3. Build a dedicated server just for my personal wiki. (seems overkill)

Advice? Inquisitive idgit (talk) 12:37, 8 August 2011 (UTC)

Have you seen Manual:Performance tuning? Max Semenik 13:02, 8 August 2011 (UTC)

How to create a tabbed page within the body of the wiki page ? S.O.S

Hi, Need guidance around how a tabbed page could be created within the body of a wiki page. My installation of mediawiki doesnt have any related extensions that I could use.

Eagerly await response ! Prshntmr (talk) 13:18, 8 August 2011 (UTC)

Looking for an output exactly like here -> w:en:Wikipedia_tutorial
My mediawiki version is 1.15.1 Prshntmr 13:20, 8 August 2011 (UTC)

Getting an error message when trying to access any other page besides the main page

The error that I am getting is Fatal error: Class 'SkinLGWikiTemplate' not found in /home/content/87/6292287/html/wiki/skins/LGWiki.php on line 23. I tried to change skins on my account but it gave me this error. I tried to change it back to the default skin but it won't let me. Is there anything that I can do to fix this? Thanks! 70.247.252.101 (talk) 03:28, 9 August 2011 (UTC)

I believe it will fall back to the default skin if you remove the broken one. If not, you can do the equivalent of http://www.mediawiki.org/w/index.php?title=Special:Preferences&useskin=monobookEmufarmers(T|C) 23:34, 9 August 2011 (UTC)
What if I can't access my account period? I had tried to switch everything to default when I had the chance but it wouldn't let me. Now I can't even log in with out getting this error. I can't even access my account to change my preferences. I don't have the access to fix the broken skin. I know the administrator and we are trying to get this resolved. I don't think he knows how to solve it though. Is there anything I can do or I can tell him to try to do? I appreciate the help in finding a resolution to my problem. 75.41.186.173 02:13, 10 August 2011 (UTC)
The userOptions.php maintenance script would allow the administrator to change your account's settings. —Emufarmers(T|C) 19:10, 10 August 2011 (UTC)
Thanks for the help! The problem has been resolved. 70.250.214.170 15:09, 11 August 2011 (UTC)

how mediawiki find eAccelerator

versions: mediawiki-1.17.0, php-5.3.6 env: linux, using php-fpm

problems: when installing mediawiki, i got a warning: cannot find eAccelerator... but from <?php phpinfo(); ?> output, i can see eaccelerator config: " This program makes use of the Zend Scripting Language Engine: Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator " and " eAccelerator support enabled Version 0.9.6.1 Caching Enabled true Optimizer Enabled true Check mtime Enabled true Memory Size 16,777,144 Bytes Memory Available 776 Bytes Memory Allocated 16,776,368 Bytes Cached Scripts 181 Removed Scripts 0 "

so, how mediawiki to find out eAccelerator, or how to config about this issue

thanks 113.78.244.158 (talk) 06:38, 9 August 2011 (UTC)

I don't think recent versions of eAccelerator work with MediaWiki. Use APC instead. —Emufarmers(T|C) 23:32, 9 August 2011 (UTC)

Problems with Thumbails - Update from 1.9 to 1.1x

I have several internal LAMP Wiki Installations. One of them is the mediawiki Version 1.9. I have to update it to 1.1x. My last try is to Update to 1.10.4. The update was without Problems execpt: No Images!

in 1.9 the Images are stored in wiki/images, after the Update he creates the thumbnail directories like wiki/images/thumb/5/5a/FILENAME.PNG/ but this directory is empty. On the wiki pages I have the errormessage



Error creating thumbnail: convert: unable to open image `/var/www/mediawiki-1.10.4/images/5/5a/American_Threads.PNG': No such file or directory. convert: unable to open file `/var/www/mediawiki-1.10.4/images/5/5a/American_Threads.PNG'. convert: missing an image filename `/var/www/mediawiki-1.10.4/images/thumb/5/5a/American_Threads.PNG/800px-American_Threads.PNG'.



the directory /var/www/mediawiki-1.10.4/images/5/5a/American_Threads.PNG not exist, but /var/www/mediawiki-1.10.4/images/thumbs/5/5a/American_Threads.PNG

In the LocalSettings.php are the variables enabled
$wgEnableUploads = true;
$wgUploadPath = "$wgScriptPath/images";
$wgUseImageResize = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgHashedUploadDirectory = true;

have someone an Idea was is wrong?

kind regards
Manuel
PS: www-data (apache user) and "others" has full rights (777) 87.193.237.134 (talk) 11:03, 9 August 2011 (UTC)

Coord on Marathi Wikipedia

I hope I am in the right place for this discussion. Since last few days, I have witnessed error in displaying Coordinates (mr:साचा:Coord/display/title) in all Marathi articles. For example, in mr:शाँज-एलिजे the Coordinates should be displayed in title not inline. I have checked and rechecked for error in all Template:Coord subtemplates, but nothing seems to have changed there. Using Template:Coord tag displays coordinates twice. e.g. mr:पॅरिस.

Any help would be appreciated.
Abhijitsathe 15:45, 9 August 2011 (UTC)

Strict Standards error in mediawili - pls help

getting the below error when installed and configure media wiki 1.14 PHP - 5.2 MYSQL - 5.0.26 ldapauthenticationversion - 1.2 a

ERROr -Strict Standards: Declaration of LdapAuthenticationPlugin::authenticate() should be compatible with that of AuthPlugin::authenticate() in D:\Apache2.2\htdocs\mediawiki\extensions\LdapAuthentication.php on line 65

Strict Standards: Declaration of LdapAuthenticationPlugin::setPassword() should be compatible with that of AuthPlugin::setPassword() in D:\Apache2.2\htdocs\mediawiki\extensions\LdapAuthentication.php on line 65

Strict Standards: Declaration of LdapAuthenticationPlugin::addUser() should be compatible with that of AuthPlugin::addUser() in D:\Apache2.2\htdocs\mediawiki\extensions\LdapAuthentication.php on line 65

Strict Standards: Declaration of LdapAuthenticationPlugin::initUser() should be compatible with that of AuthPlugin::initUser() in D:\Apache2.2\htdocs\mediawiki\extensions\LdapAuthentication.php on line 65


Warning: Cannot modify header information - headers already sent by (output started at D:\Apache2.2\htdocs\mediawiki\extensions\LdapAuthentication.php:65) in D:\Apache2.2\htdocs\mediawiki\includes\WebResponse.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at D:\Apache2.2\htdocs\mediawiki\extensions\LdapAuthentication.php:65) in D:\Apache2.2\htdocs\mediawiki\includes\WebResponse.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at D:\Apache2.2\htdocs\mediawiki\extensions\LdapAuthentication.php:65) in D:\Apache2.2\htdocs\mediawiki\includes\WebResponse.php on line 16

Please advise to rectify the errors. Kirubachander (talk) 03:50, 10 August 2011 (UTC)

You should ask about this on the talk page for the extension you're using (Extension:LDAP Authentication, I assume). —Emufarmers(T|C) 19:11, 10 August 2011 (UTC)

Add users using php login

I have created a site where there are 3 main sections, 1 is content made by the users, 1 is mediawiki and 1 is phpBB, however at present each of these sections has their own registration, I have made a custom email confirmed registration for the users section, but I would like to input the values into the mediawiki database and phpBB. Any help, ideas how I can achieve this? Jon12345~mediawikiwiki (talk) 09:15, 10 August 2011 (UTC)

Kindly respond my below-mentioned question briefly

Dear Sir, Hi, Kindly respond my below-mentioned question briefly: If we prefer that in the "Extension: FlaggedRevs", " pending changes " just be appeared for the "Admin", and not to be appeared for the rest esp. users and viewers of website, what we have to do? which changes and modifications should be done to achieve above preference. Thanks in advance I'm eagerly awaiting for your assistance in this regard Sincerely Yours Raya2017 (talk) 11:01, 10 August 2011 (UTC)

Discussion right control

hello mw-fans, i want to restrict the discussion-rights for user-group "xyz" so that a user can start a new discussion-threat by using "+"-tab, but is not allowed to edit discussions. Any ideas or solutions? 87.151.167.122 (talk) 12:22, 10 August 2011 (UTC)

what does "deleted" mean in API:Deletedrevs?

hi, I've got a question about the API:Deletedrevs module as I couldn't find it in the help pages:

when exactly is a revision considered "deleted" and will be listed by this module? when all it's added chars are deleted by future revisions (detected via a DIFF) or if it was reverted during a rollback? or something else? 129.13.72.198 (talk) 22:00, 11 August 2011 (UTC)

A deleted revision is a revision which has been deleted. If a page has 10 revisions and the page is deleted, it results in 10 (new) deleted revisions. Since the revisions of deleted pages (and individually deleted revisions) are not visible to normal users you need the deletedhistory right, which on most sites is available to admins and such. MrBlueSky 13:21, 12 August 2011 (UTC)

Updating wikipages with cURL

I need to automatically update wiki pages. I would like to use cURL to post updates. Has anybody done this? 174.46.232.2 (talk) 03:20, 13 August 2011 (UTC)

Yes. People do it all the time. Hundreds of bots on Wikipedia sites make automated edits through Python, PHP and other programming languages.
This is done through the API. Krinkle 21:09, 14 August 2011 (UTC)

Warning: escapeshellarg() has been disabled for security reasons

MediaWiki 1.16.0

       PHP 	5.3.6 (cgi-fcgi)
       Database 5.1.56-log MySQL

http://www.nifrpg.net/wiki/index.php?title=Main_Page

Whenever we try to upload an image, we get this error: Warning: escapeshellarg() has been disabled for security reasons in /*****/*****/public_html/*****/includes/GlobalFunctions.php on line 1473 and the image doesn't upload. In place of where the image should appear, the following is there instead: Error creating thumbnail: Unable to run external programs in safe mode. How do we fix this please? 173.23.136.23 (talk) 06:39, 13 August 2011 (UTC)

Your ISP has the safe_mode setting enabled. Learn more here.
In short, yes, MediaWiki will work under safe mode but you're better off contacting your ISP and asking them to disable safe_mode. You might have to look for another host, at worst. I configure things myself, so I recommend Linode. Frozen Wind 07:31, 13 August 2011 (UTC)
Thank you :) 173.23.136.23 07:35, 19 August 2011 (UTC)
My ISP has disabled some php functions, a.o. passthru() and escapeshellarg(). This has to do with the risk of running these functions in combination with user-supplied arguments. So, in my case, this warning has nothing to do with the safe_mode setting in php.ini. My ISP claims that most security breaches could be traced back to the misuse of these functions. Security is, of course, also in our interest. I wonder how other ISP's can guarantee security, while leaving commands like passthru(), shell_exec(), and exec() open for user-supplied arguments. 82.169.100.51 09:22, 10 April 2012 (UTC)
Other hosts configure their systems properly. Maybe they can also invest more money into qualified personal, maybe because their customers pay more or because they work more efficiently; reasons may vary. 88.130.101.246 11:15, 10 April 2012 (UTC)

Images were not displayed

Hello together, I have a problem with my mediawiki 1.17.0 installation herer: http://pic-projekte.de/wiki/

My problem: I can upload images without errors but I can not open the images in the browser and so the images were not displayed in my articles. When i try to adress a image directly (for example: http://www.pic-projekte.de/wiki/images/f/f4/64_39.png) i get this message:

Forbidden You don't have permission to access /wiki/images/f/f4/64_39.png on this server. Apache Server at www.pic-projekte.de Port 80

The folder (and all subfolders including the files) are set to chmod 777. Please help my I am totaly confused :(

You can also contact me here: NicoME(at)gmx.de


Edit: a) I guess I have Mysql: 5.0.84 an PHP: 5.2.17 b) The problem (or the error message) is also there when I try to run the update.php after i added an extension 88.70.64.177 (talk) 15:00, 13 August 2011 (UTC)

I have deleted the .htaccess file in the directory: /wiki/images now I can see the images. But that can not be the solution, or?
Further: I tried to delete the .htaccess file in the directory where update.php file is - same problem same solution? - no! The update.php can now be opend but I only get a blank page. 88.70.76.128 19:35, 13 August 2011 (UTC)
update.php is not supposed to be run from the web, it's for shell use only. Max Semenik 19:38, 13 August 2011 (UTC)

Unable to dertermine IP

I'm getting this error on a lot of pages..

Internal error

Unable to determine IP

Backtrace:

  1. 0 /home/x66x66/public_html/wiki/includes/specials/SpecialVersion.php(366): wfGetIP()
  2. 1 /home/x66x66/public_html/wiki/includes/specials/SpecialVersion.php(47): SpecialVersion->IPInfo()
  3. 2 /home/x66x66/public_html/wiki/includes/SpecialPage.php(559): SpecialVersion->execute(NULL)
  4. 3 /home/x66x66/public_html/wiki/includes/Wiki.php(254): SpecialPage::executePath(Object(Title))
  5. 4 /home/x66x66/public_html/wiki/includes/Wiki.php(64): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
  6. 5 /home/x66x66/public_html/wiki/index.php(117): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
  7. 6 {main}

Can anyne help??


I also get

  1. 0 /home/x66x66/public_html/wiki/includes/User.php(1155): wfGetIP()
  2. 1 /home/x66x66/public_html/wiki/includes/User.php(1392): User->getBlockedStatus(false)
  3. 2 /home/x66x66/public_html/wiki/includes/User.php(1409): User->isBlocked(false)
  4. 3 /home/x66x66/public_html/wiki/includes/Title.php(1091): User->isBlockedFrom(Object(Title))
  5. 4 /home/x66x66/public_html/wiki/includes/EditPage.php(418): Title->getUserPermissionsErrors('edit', Object(User))
  6. 5 /home/x66x66/public_html/wiki/includes/EditPage.php(322): EditPage->getEditPermissionErrors()
  7. 6 /home/x66x66/public_html/wiki/includes/EditPage.php(271): EditPage->edit()
  8. 7 /home/x66x66/public_html/wiki/includes/Wiki.php(553): EditPage->submit()
  9. 8 /home/x66x66/public_html/wiki/includes/Wiki.php(70): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
  10. 9 /home/x66x66/public_html/wiki/index.php(117): MediaWiki->performRequestForTitle(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
  11. 10 {main}

on edit pages

I'm trying up upgrade now to 1.17, to see if its an ipv6 problem, but I can't even do that.

  1. 0 /home/x66x66/public_html/wiki/includes/User.php(1537): wfGetIP()
  2. 1 /home/x66x66/public_html/wiki/includes/db/Database.php(683): User->getName()
  3. 2 /home/x66x66/public_html/wiki/includes/db/DatabaseSqlite.php(147): DatabaseBase->query('CREATE VIRTUAL ...', 'DatabaseSqlite:...', true)
  4. 3 /home/x66x66/public_html/wiki/includes/installer/Installer.php(636): DatabaseSqlite::getFulltextSearchModule()
  5. 4 /home/x66x66/public_html/wiki/includes/installer/Installer.php(387): Installer->envCheckDB()
  6. 5 /home/x66x66/public_html/wiki/includes/installer/WebInstallerPage.php(369): Installer->doEnvironmentChecks()
  7. 6 /home/x66x66/public_html/wiki/includes/installer/WebInstaller.php(250): WebInstaller_Welcome->execute()
  8. 7 /home/x66x66/public_html/wiki/mw-config/index.php(46): WebInstaller->execute(Array)
  9. 8 /home/x66x66/public_html/wiki/mw-config/index.php(14): wfInstallerMain()
  10. 9 {main}

How do I fix this?! Please help me X66x66 (talk) 22:48, 13 August 2011 (UTC)

What is your web server and PHP version? What does the following one-liner .php file output on your server?
<?php var_dump( $_SERVER['REMOTE_ADDR'] ); Max Semenik 21:21, 14 August 2011 (UTC)

Deleted pages

How do I allow non-admins (non-sysops) to [view and restore deleted pages] and [delete pages]? 125.235.96.1 (talk) 13:03, 15 August 2011 (UTC)

See Manual:User rights. delete, undelete, deletedhistory, and deletedtext rights are what you need. Max Semenik 17:53, 15 August 2011 (UTC)

tableedit installation

I am trying to install tableedit extension for my wiki.

I have installed Apache, mysql,myphpadmin,mediawiki succesfully which are working fine. I am new to mediawiki and php as well. Can anyone please explain me how to install tableedit extension given on the link

http://www.mediawiki.org/wiki/Extension:TableEdit

I have downloaded the extension and extracted into the extension folder of mediawiki. After that I am not getting what I have to do.

many Thanks. 146.162.240.241 (talk) 14:55, 15 August 2011 (UTC)

I still have this doubt. Request someone to please reply. 146.162.240.242 08:51, 17 August 2011 (UTC)
  • Add the following lines to your LocalSettings.php file: (making sure the paths are correct)
# TableEdit extension
require_once( "$IP/extensions/TableEdit/TableEdit.php" );
Krinkle 17:21, 24 August 2011 (UTC)

plz help me

i want show only the (Special pages) for admin only for admin what should i do Raya2017 (talk) 20:05, 15 August 2011 (UTC)

I do not quite understand, do you only want admins to see Special:SpecialPages? I don't think this is actually possible. TBloemink 20:17, 15 August 2011 (UTC)
Actually, it can be done with an extension like Lockdown. —Emufarmers(T|C) 21:38, 15 August 2011 (UTC)

Need advanced editing option (extention)

I'm unable to find the extention that wikipedia uses for their page editing, i would very much like to add the interface to add ref,images,new lines... that the stock version of mediawiki doesnt offer. can anyone help me out and tell me what's the name of the extention ? 82.166.27.80 (talk) 09:10, 16 August 2011 (UTC)

You need: Extension:CharInsert Kersti 10:05, 16 August 2011 (UTC)

MySQL 5.5 and MW 17 - ENGINE vs TYPE

Howdy-

It appears that at least as of MW 17, there is a problem with running it on top of MySQL 5.5.

According to MySQL:

The older TYPE option was synonymous with ENGINE. TYPE was deprecated in MySQL 4.0 and removed in MySQL 5.5. When upgrading to MySQL 5.5 or later, you must convert existing applications that rely on TYPE to use ENGINE instead.

The "update.php" script in MW 17 (at least) still attempts to use TYPE, and thus fails when attempting to perform an update of an older wiki install.

I haven't found anything that would imply that this is fixed in newer versions of MW, and if MySQL has been warning of this change since 4.0, there doesn't seem to be much of an excuse on MW's side :-) 67.203.88.38 (talk) 09:11, 16 August 2011 (UTC)

A culprit appears to be upgrade1.5_php, although the primary problem appears that the update.php script will not sanity-check the db version against the value of $wgDBTableOptions specified in LocalSettings.php.
Pretty stinky... 67.203.88.38 09:24, 16 August 2011 (UTC)
What version were you upgrading from? —Emufarmers(T|C) 12:06, 17 August 2011 (UTC)

Skinning; Skin drived from Monobook, Change text color in area with blue Background

I made up a new skin derived from monobook and changed the background color to a dark blue outside the main text area. Now I want to change the text color to white and the links to yellow (existing) and orange (not existing page, but I don't know how.

RESOLVED $wgUseSharedUploads causes trouble

Hi...

I'm running four interwikis sharing one pool wiki for the media files. After upgrading from 1.16 to 1.17 I'm getting an error, when I set $wgUseSharedUploads = true; in the LocalSettings.php of each interwiki.

Here is the error:

Warning: mysql_real_escape_string() expects parameter 2 to be resource, null
given in /html/wiki/en/w/includes/db/DatabaseMysql.php on line 318

Warning: mysql_real_escape_string() expects parameter 2 to be resource, null
given in /html/wiki/en/w/includes/db/DatabaseMysql.php on line 318

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in
/html/wiki/en/w/includes/db/DatabaseMysql.php on line 23

A database query syntax error has occurred. This may indicate a bug in the
software. The last attempted database query was: 
BEGIN
from within function "DatabaseBase::begin". Database returned error "0: ". 

Debug data:
Start request 

GET /wiki/Main_Page 
HTTP HEADERS: 
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png,
image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1 
Accept-Encoding: gzip, deflate 
Accept-Language: en,de;q=0.9,de-DE;q=0.8 
Cache-Control: no-cache 
Connection: Keep-Alive 
Cookie: database_3UserID=1; database_3UserName=Till+Kraemer;
database_3Token=1d8916427743c36ef3936c5f20a8c9e3; awc_startTime=20110814185359;
database_3_session=2bauhg71ti53lp57pfhqage6q2;
__utma=162725736.456536178.1297683604.1313346115.1313410956.169;
__utmb=162725736.37.10.1313410956; __utmc=162725736;
__utmz=162725736.1313410956.169.53.utmcsr=pool.domain.com|utmccn=(referral)|utmcmd=referral|utmcct=/wiki/Main_Page 
Host: en.domain.com 
Referer: http://en.domain.com/wiki/Till_Kraemer 
User-Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.9.168 Version/11.50 

CACHES: APCBagOStuff[main] APCBagOStuff[message] FakeMemCachedClient[parser] 
Unstubbing $wgParser on call of $wgParser::setFunctionHook from
SimpleSecurity::__construct 
Unstubbing $wgOut on call of $wgOut::_unstub from wfDebug 
Unstubbing $wgContLang on call of $wgContLang::getMagic from MagicWord::load 
LocalisationCache: using store LCStore_DB 
Unstubbing $wgMessageCache on call of $wgMessageCache::get from wfMsgGetKey 
Unstubbing $wgLang on call of $wgLang::getCode from MessageCache::get 
User: got user 1 from cache 
Connecting to 111.222.333.444 database_3... 
Connected to 111.222.333.444 database_3. 
User: loading options for user 1 from override cache. 
User: logged in from session 
User: loading options for user 1 from override cache. 
MessageCache::load: Loading en... got from global cache 
Use of MessageCache::addMessages is deprecated. [Called from
call_user_func_array in (internal function)] 
Use of MessageCache::addMessage is deprecated. [Called from setupSEOParserHooks
in /html/wiki/en/w/extensions/Add_HTML_Meta_and_Title.php at line 57] 
Fully initialised 
Title::getRestrictionTypes: applicable restriction types for Main Page are
edit,move,readOutputPage::checkLastModified: CACHE DISABLED 
User::isBlockedFrom: enter 
User::isBlockedFrom: asking isBlocked() 
User::isBlocked: enter 
User::getBlockedStatus: checking... 
IP: 555.666.777.888 
Block::load: '', '1', 1 
Article::view using parser cache: no 
Class SkinMonobook not found; skipped loading 
Article::view: doing uncached parse 
User::isBlockedFrom: enter 
User::isBlockedFrom: asking isBlocked() 
User::isBlocked: enter 
User::getBlockedStatus: already loaded. 
SiteStats::loadAndLazyInit: reading site_stats from slave 
SQL ERROR: 
User::isBlockedFrom: enter 
User::isBlockedFrom: asking isBlocked() 
User::isBlocked: enter 
User::getBlockedStatus: already loaded. 
Title::getRestrictionTypes: applicable restriction types for Main Page are
edit,move,read

It's very brutal, because no images show up, except for the pool wiki. I'm about to try MW 1.18 alpha, because I have no idea how to fix this and I really need the images.

Any help is more than appreciated!

Thanks + cheers, Till Kraemer (talk) 19:48, 16 August 2011 (UTC)

P.S.: Is it possible to downgrade from 1.17 to 1.16? And if so, do I have to change the databases in some way? Till Kraemer 05:53, 17 August 2011 (UTC)
If needed I could walk you through on how to use it, but it's probably easiest to use $wgForeignFileRepos since the SharedUploads method has been deprecated (although it should still work).
You may also come by on IRC to ask for help. Krinkle 17:32, 24 August 2011 (UTC)
Thanks for your help!
I added the following to LocalSettings.php:
$wgForeignFileRepos[] = array(
    'class' => 'ForeignDBRepo',
    'name' => 'pool',
    'url' => "http://pool.domain.com/w/images",
    'directory' => '/html/wiki/pool/w/images/',
    'hashLevels' => 2, // This must be the same for the other family member
    'dbType' => $wgDBtype,
    'dbServer' => $wgDBserver,
    'dbUser' => $wgDBuser,
    'dbPassword' => $wgDBpassword,
    'dbFlags' => DBO_DEFAULT,
    'dbName' => 'pool_db_username',
    'tablePrefix' => '',
    'hasSharedCache' => false,
    'descBaseUrl' => 'http://pool.domain.com/w/index.php/Image:',
    'fetchDescription' => false
);
...and ended up getting the same error :(
I also tried to use LocalRepo:
$wgForeignFileRepos[] = array(
   'class'                    => 'LocalRepo',
   'name'                     => 'pool',
   'url'                      => 'http://pool.domain.com/w/images',
   'hashLevels'               => 2, // This must be the same for the other family member
   'pathDisclosureProtection' => 'paranoid',
   'descBaseUrl'              => 'http://pool.domain.com/wiki/Image:',
   'scriptDirUrl'             => 'http://pool.domain.com/w',
   'fetchDescription'         => true, // Optional
);
...but no images showed up :|
I'm gonna try to find you on #MediaWiki.
Thanks + cheers, Till Kraemer 09:32, 27 August 2011 (UTC)
This is my config. and it works perfectly. Hope this helps.
$wgForeignFileRepos[] = array(
   'class'                   => 'ForeignAPIRepo',
   'name'                    => 'shared',
   'apibase'                 => 'http://You're site.whereever/w/api.php',
   'fetchDescription'        => true, // Optional
   'descriptionCacheExpiry'  => 43200, // 12 hours, optional (values are seconds)
   'apiThumbCacheExpiry'     => 43200, // 12 hours, optional, but required for local thumb caching
);
Mlpearc powwow 17:32, 27 August 2011 (UTC)
I was scared to use ForeignAPIRepo, because it says "Access through ForeignDBRepo is faster than through ForeignAPIRepo", but you're right, it works perfectly. Thanks a lot! Cheers, Till Kraemer 09:24, 28 August 2011 (UTC)
Glad to help. Mlpearc powwow 17:33, 28 August 2011 (UTC)
I wrote a bug report here: https://bugzilla.wikimedia.org/show_bug.cgi?id=31943 204.101.78.248 18:51, 25 October 2011 (UTC)

plz help me

i want show only the (Special pages) for admin only for admin what should i do Raya2017 (talk) 23:16, 16 August 2011 (UTC)

i want to change the layout of mediawiki.(look and feel)

hi,

i have latest version of mediawiki and i m trying to change footer(powered by mediawiki) url by skin.php file but nothing is reflecting to me.so pls provide me useful suggestions, how can i change the layout of the page.

i also want to change the location of search bar and button texts and size, suggest me from where i can do all these changes easily. 115.111.227.254 (talk) 06:00, 17 August 2011 (UTC)

Search bar and links in menu can you change on page mediawiki:sidebar on your wiki wargo 17:59, 24 August 2011 (UTC)

Как включить возможность отображения внешних картинок?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


109.172.40.77 10:33, 17 August 2011 (UTC)

Manual:$wgAllowExternalImages. Max Semenik 10:42, 17 August 2011 (UTC)
Извините, но как мне быть, если я не имею доступа к директориям сервера? Мой вики-сайт на wikkii. 109.172.40.77 08:33, 18 August 2011 (UTC)
Тогда попросите владельцев сервера. Вручную - никак. Max Semenik 09:44, 18 August 2011 (UTC)
В таком случае вопрос исчерпан и его можно удалять. 109.172.40.77 12:34, 18 August 2011 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do I format an outputted date from semantic forms extension in media wiki?

Hi there,

I'm a bit new to this but I have successfuly built myself a wiki using the semantic form extension and it all seems to be working. I am literally about to tear my hair out though because I don't seem to be able to find any information about how to format a date form my database. I have a property called review date which [has type:date] but it will only show as 2013/12/11 when I want it to show as 11th December 2013. Can anyone direct me to a page that explains how to do this? I would be eternally grateful.

Cheers. Everythingevolves (talk) 13:12, 17 August 2011 (UTC)

ParserFunctions to the rescue!
{{#time: d F Y | 2013/12/11 }} → 11 December 2013 —Emufarmers(T|C) 13:33, 17 August 2011 (UTC)
Great, but I'm still having problem integrating the Pasrser Function with my property in my template. How do I Parse this Wednesday 13 May 2026 with this [[Date for review::{{{Date for review}}}]]  ?
Everytime I try it in different ways I just end up with "Error Invalid time" or it displays as I want but with a warning triangle that says the date format isn't recognized. Everythingevolves 14:47, 19 August 2011 (UTC)

Template Template:Traduction/référence, on fr.wikipedia.org

Hello, everybody!

Would someone, linked to your team of experts, be in position to increase the number of idiomatic references contained in the current (French) template → Traduction/référence (on fr.wikipedia.org), as already requested (in French) → w:fr:Discussion utilisateur:Euphonie#R.C3.A9f.C3.A9rentiel multilingue and → [3].

Currently, the aforesaid template → Traduction/référence (on fr.wikipedia.org) cannot contain more than two idiomatic references.

Nevertheless, in some cases, it appears that, sometimes, one wp translation, into French, is compiled from several international wp sources → [4].

In the aforesaid example, this translation, in French → [5], is duly compiled from several international wp pages, as well as several international wp references: it.wp, en.wp, de.wp, and la.wp.

Until now, no one, in the French team, seems to have been be in position (nor having had enough time at their disposal) to solve this technical issue. This is the main reason, which motivates this current request towards you.

Thank you beforehand!

Hope to hear from you soon!

In the meantime, I remain

Yours faithfully!

euphonie bréviaire
August 17, 2011, 15:32 (CEST) Euphonie (talk) 13:32, 17 August 2011 (UTC)

Archive box / Autoarchiv

I want the function of automaticly archiving of diskussion pages with use of the template w:en:Template:Archive_box . But simply copy and paste into my wiki doesn't work. Do I need a bot to make it work?

What do I need to install Archive box?

Yours --14:07, 17 August 2011 (UTC)

I found some hints, that installing pywikipedia-bot would help. But this is very complicated if someone does not know how to operate python. Is there anywhere a -out-of-the-box solution for windows? --79.226.52.168 07:18, 18 August 2011 (UTC)
And additionally, how can I monitor this thread via RSS like before liquid threads? --79.226.52.168 14:10, 17 August 2011 (UTC)

Wikipedia-style template documentation

I have Semantic Mediawiki and tried to copy the pages directly from Wikipedia, but the results are unsatisfying. Yes, I don't understand how it works, if I did, I won't ask. Is there any manual how to install wikipedia-style template documentation like here? Thanks. Beznogim (talk) 21:15, 17 August 2011 (UTC)

home page layout.

how to format home page layout of mediawiki, pls provide me help..... 115.111.227.254 (talk) 04:31, 18 August 2011 (UTC)

I don't know if this will help you or what you are looking for but, here is my Main page which only has one call on it for Template:Main page header. Then each section has it's own page Main Page/Notices and Main Page/Other projects and so on. Hope this helps or at least gives you some ideas. Cheers. Mlpearc powwow 22:07, 18 August 2011 (UTC)

mailserver error.

i m facing this error msg while e-mail confirmation activity-

Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() Retrieved from "http://localhost/wiki-1/index.php/Special:ConfirmEmail"

Pls provide me the needful help. 115.111.227.254 (talk) 05:18, 18 August 2011 (UTC)

How to manage two diff. group users separately.

hi,

  i have created two diffrent groups in mediawiki.and i have added some users in that groups.

now i want that one group mambers don't have any rights to access another group. in short i want saparate-separate rights for every group. pls provide me the needfull solution as soon as posible. Kunwar vibhu (talk) 11:35, 18 August 2011 (UTC)

Cannot upload any files

Hello,

I just installed mediawiki 1.17 (PHP 5.3.6, IIS 7.5, MySQL 5.1.48), everything is running fine, but I'm not able to upload any files.

Each time I receive the error message "The uploaded file is empty...", in german "Die hochgeladene Datei ist leer...". I already changed the access rights of the image and temp folders, but nothing helped, the problem persists.

Anyone who might help me?

Thanks in advance! 80.152.156.85 (talk) 13:50, 18 August 2011 (UTC)

Users can't log in after migrating wiki to a new server.

Here's some info up front: MediaWiki 1.15.1 PHP Version 5.3.2-1ubuntu4.9 PostgreSQL 8.3.10 (Hosted on a different server.)

Our wiki is currently running on a rickety old server so I'm trying to migrate it to a new server. It seems to have worked but every time someone tries to log in it tells them they entered the wrong password. I still have the old copy up and running and logging in there is not an issue. It may be important to not that the database is hosted on a separate server that isn't changing. What would be some good things to check in order to troubleshoot this problem? 141.129.1.48 (talk) 19:35, 18 August 2011 (UTC)

i don't understand what should i do for show only the (Special pages) for admin

Raya2017 (talk) 21:37, 18 August 2011 (UTC)

i don't understand what should i do for show only the (Special pages) for admin

i want show only the (Special pages) for admin only for ( group admin ) what should i do Raya2017 (talk) 21:40, 18 August 2011 (UTC)

I read this in a earlier thread don't remember if it was you or not but, you can use Extension:Lockdown It looks like you can restrict your whole wiki. Mlpearc powwow 03:29, 19 August 2011 (UTC)

Installing "Hooks"

MyWiki

  • MediaWiki 1.17.0
  • PHP 5.2.17(cgi-fcgi)
  • MySQL 5.1.52

I have installed Extension:DeletePagePermanently and is working fine, my problem is the "DeletePagePermanently" interface tab only shows up in Monobook and not in Vector. I found a fix on the extension talk page Here but, I've never installed a "Hook" and I have no idea where this is placed. The extension php folder contents are on the extension page, would this hook be C/P into one of those or does it need it's own folder ? - FlightTime (open channel) 22:11, 18 August 2011 (UTC)

foldable list

Hi there.

Is there any possibility to make a foldable list?

  1. Main 1
    1. something
      1. something other
      2. something other
      3. something other
  2. Main 2
    1. something new
    2. something new 2
      1. something other new
      2. something other new

I only want to see Main 1 and Main 2. If I click on Main 1, it should show all items from the next level. I am using:

MediaWiki 1.16.1 PHP 5.3.6-pl0-gentoo (apache2handler) MySQL 5.1.51 195.37.62.87 (talk) 08:32, 19 August 2011 (UTC)

API: Behavior of &export in combination with &revids

Hello everybody,

when trying to use the export and revids parameters together in a query via api.php, e.g. via http://en.wikinews.org/w/api.php?action=query&revids=1274311&export&exportnowrap&format=xml, one would expect to get the given revision in a format similar to the export generated via Special:Export as a result.

However, the &export part of the query only seems to retrieve the most current revision of the corresponding article, despite the given revid. Is this behavior a feature (i.e. intended) or a bug?

Cheers, Soccer-holic (talk) 15:36, 19 August 2011 (UTC)

how can change (create account)

what extensions will how can change (create account) I want in the page of (create account) ask question more from users

i want (from user) ask  we more questions

for Example your phone your email email tow second for Confirm and Etc. and i want how can Added Question (photo Erratic) with ( Log in)

 user in the ( Log in) Question photo Raya2017 (talk) 19:30, 19 August 2011 (UTC)

Short URL question

Hello,

I've successfully installed short URLs using .htaccess on my shared host. the address is something like this www.abc.com/wiki/Main_Page.

The code I used for htaccess was the following:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.*)$ /index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ wiki/ [L,QSA]
RewriteRule ^/*$ /wiki/ [L,QSA]

Now then, what if I wanted the nice part of the url to be 'abc' instead of 'wiki'. What would I change above (I'm aware I'd have to change the LocalSettings.php too).

Thanks. 90.204.161.228 (talk) 16:22, 20 August 2011 (UTC)

Replace all "wiki" words to "abc" wargo 18:04, 20 August 2011 (UTC)

How to get the number of revisions of a wikipedia page?

Anyone know how to get the number of revisions of a wikipedia page using mediawiki API? I have read this API documentation, but can't find the related API: API:Properties

It should return the number of revisions like the one displayed in this page: ToolServer 114.79.29.253 (talk) 05:46, 21 August 2011 (UTC)

Adding Adsense into articles only/Включение Adsense только в страницы со статьями

Hello. Since my wiki's attendance grows terrifyingly fast it is very possible that in a couple of months paying for the server can become really problematic. So I decided to place ads for unregistreted users into articles. Here is the code, it is placed in Monobook.php right below FirstHeading:

<?php
global $wgOut;
if($wgOut->isArticle()) {
global $wgUser;
if(!$wgUser->isLoggedIn()) {

echo '

<script type="text/javascript"> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

';}} ?>

Registrated users don't see them, but for some reason ads appear only on pages having discussion pages and on discussion pages themselves, while pages without discussions don't have ads at all, which is absolutely inacceptable. What am I doing wrong? How to fix that? Beznogim (talk) 13:01, 21 August 2011 (UTC)

php auto_append_file setting breaks ResourceLoader javascript MediaWiki version 1.17.0

MediaWiki 1.17.0 / PHP 5.2.17 (apache2handler) / MySQL 5.1.57
http://petech.net63.net/w17/index.php/PeTechWiki_Home_Page

My hosting provider uses the php setting auto_append_file in order to insert html at the end of every php file served. This seems to be breaking the new Resource Loader (load.php), specifically javascript returned by the loader. This is causing various parts of the Wiki using javascript to not function or display correctly. The Wiki last worked ok using MediaWiki 1.15.1.

-- Canuckdev 17:20, 21 August 2011 (UTC)

Try setting $wgResourceLoaderDebug to true, however the best solution would be to run like hell from such "wonderful" hoster. Max Semenik 18:19, 21 August 2011 (UTC)
Thanks for your help Max.
I tried your tip, setting $wgResourceLoaderDebug to true, but it did not make any difference.
The hosting is free, so I can't complain too much.
I think it would be nice if the Resource Loader could be turned off.
I've created a script, http://petech.net63.net/test/showload.php, which shows the source (including the html injected by auto_append_file) of 2 css stylesheets and 1 javascript generated by the load.php script on the wiki home page.
Note, if you are using IE8 you will be prompted to open or save the text/plain output of the showload.php script. Canuckdev 17:53, 22 August 2011 (UTC)

Linking to a random page within a specified category

I have created a large wiki of information that uses a series of topical categories. Someone can use a category as an interest (say, of "Category:History, American Revolution" or "Category:Architecture, Gothic Revival").


As each of these categories has a number of entries (such as a long list of historical properties that are designed in the Gothic Revival style).


A am looking for a way that someone can specify the category, then receive a random page only within that category. So if someone is interested in pages dealing with Gothic Revival architecture, they will only see pages within Category:Architecture, Gothic Revival.


Is there any way of doing this? 74.64.99.5 (talk) 17:49, 21 August 2011 (UTC)

Is there any way of disabling the "This is a minor edit (what's this?)" link when you are editing a page? I've lost count of the number of times I've accidentally clicked on it whilst aiming for "Show preview" and lost a load of edits. If not, could it be moved somewhere else so this isn't a risk? Number 57 (talk) 18:13, 21 August 2011 (UTC)

The link isn't there by default. Someone has edited MediaWiki:Minoredit on your wiki. Also, take a look at w:MediaWiki talk:Minoredit. —Emufarmers(T|C) 03:03, 22 August 2011 (UTC)

Special:Export - categories with colons

It would appear that the Special:Export interface won't populate from a category that has a colon in it. On de.wiki I'm trying to get a full export of Kategorie:Wikipedia:Exzellent but as the cat is actually called "Wikipedia:Exzellent" it just returns to the page without having added any articles. Anyone know if it needs a character code or some other workaround to do this? Violetriga (talk) 23:04, 21 August 2011 (UTC)

That could be a bug. In any event, it will work if you enter the full name of the category (Kategorie:Wikipedia:Exzellent). —Emufarmers(T|C) 23:34, 21 August 2011 (UTC)

image filter referendum vote

This post by Revibot was moved on 2015-07-11. You can find it at Project:Village Pump/Flow/2011#h-image_filter_referendum_vote-2011-08-22T07:38:00.000Z. P858snake (talk) 08:18, 22 August 2011 (UTC)

Wiki is very slow

Folks,

I'm on a Bluehost shared hosting account. My wiki was working fine until today. When I try and log onto the website, the bottom of firefox keeps on saying 'Waiting for www.mywebsite.com', it takes about 3 mins for it to load then the same again for any page. Sometimes, I just get a blank page.

I don't know what this maybe a symptom of, could you please help? 94.185.232.226 (talk) 08:26, 22 August 2011 (UTC)

When I check my error log, I get something like this:
[19-Aug-2011 12:51:18] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for /hermes/bosweb/web026/x/x/skins/common/images/feed-icon.png in /home8/x/public_html/includes/resourceloader/ResourceLoaderFileModule.php on line 363
I did change host recently. 94.185.232.226 08:38, 22 August 2011 (UTC)
Fixed: I changed skin to something else. Vector slowed it down. 94.185.232.226 13:51, 22 August 2011 (UTC)

Downloading pages

I want to download all of the pages of a topic. Is there a way to do it without opening each page individually? Jagarcia14 (talk) 19:27, 22 August 2011 (UTC)

Trying to upload a doc file gives error: "Cannot upload this file because Internet Explorer would detect it as "application/msword", which is a disallowed and potentially dangerous file type."

Using v 1.17.0. Have successfully uploaded doc files in earlier version of mediawiki, upgraded without changing any settings and now is not working.

Any clues what can be wrong?

Rgs,

/N Nkq (talk) 18:48, 23 August 2011 (UTC)

The problem is that the mime type for Word Documents is in the "Blacklisted mime types" by default
If its just Word documents you want to allow, then add the following to your LocalSettings.php . If there is anything else you want to allow, just remove it from the array :
$wgMimeTypeBlacklist = array (
"text/html",
"text/javascript",
"text/x-javascript",
"application/x-shellscript",
"application/x-php",
"text/x-php",
"text/x-python",
"text/x-perl",
"text/x-bash",
"text/x-sh",
"text/x-csh",
"text/scriptlet",
"application/x-msdownload",
"application/x-msmetafile",
"application/x-opc+zip",
"application/vnd.ms-powerpoint",
"application/vnd.msexcel"
);
  1. The $wgMimeTypeBlacklist is the same as defined by default, except I removed
  2. "application/msword" to allow word docs ReadersDigestUK 13:25, 18 November 2011 (UTC)
Many thanks. I can now upload docx files. All I need to do now is work out how to open word docx files in the browser. I can work round this by doing what I used to do with pdf files, and that is click on properties and copy the url in there. Once again many thanks. Ron Barker (talk) 12:25, 3 May 2015 (UTC)
Just as a note, MS word documents can be dangerous to upload due to the faking-it-as-a-java-applet vulnerability (could allow someone to do evil things to your wiki), which is why they're on the blacklist. In 1.18 we started scanning such files for such issues better, so as of 1.18 MS word files are no longer blacklisted. Bawolff 14:32, 18 November 2011 (UTC)
Many thanks, I would love to upgrade if I could, but it is far too complicated for me to do that. The explanations on here and elsewhere pre-supposes that anyone wishing to upgrade know all about MediaWiki and php. I don't. I did manage to download and install MediaWiki and Wamp onto my pc, but I had nothing to loose if anything went wrong. The difference now is that by attempting to upgrade I could loose my wiki, and I cannot contemplate that,
Kind regards and thank you for the warning. Ron Barker (talk) 12:34, 3 May 2015 (UTC)

MediaWiki 1.17.0; PHP 5.2.10 (apache); MySQL 5.1.41-log.

I've followed instruction here and it didn't work. I move to an non-existing page named e.g. http://en.wikipedia.org/wiki/Apple%22_target%3D%22_blank. What's wrong? Das steinerne Herz (talk) 05:36, 24 August 2011 (UTC)

That page is outdated, no way that trick is gonna work on anything recent. See Manual:$wgExternalLinkTarget. Max Semenik 06:08, 24 August 2011 (UTC)
it's sad, I need it exactly to interwiki-links. Das steinerne Herz 10:53, 24 August 2011 (UTC)

Some pages truncated to last 4,435 bytes

I have installed MediaWiki on my linux platform, hosted by streamline.net. The wiki works okay, but when some pages are viewed (Community_Portal, User:, etc.), they are truncated to their last 4,435 bytes. I have checked in multiple browsers, increased the php memory limit to 64M and turned on php errors, all to no avail.

Can anyone assist?

MediaWiki v1.17.0 PHP v5.2.6 (cgi-fcgi) MySQL v5.0.77-log

My wiki URL is http://help.lexpos.com AlexMLexpos (talk) 10:08, 24 August 2011 (UTC)

Sorry! Just realised the DNS wasn't working externally for that wiki. Just fixed it. Please help! AlexMLexpos 14:16, 24 August 2011 (UTC)
Those pages don't actually exist. Perhaps your server is set to mangle 404s. You should take a look at the Apache error log, since it's not clear that you did so. —Emufarmers(T|C) 15:13, 24 August 2011 (UTC)
I don't have access to the apache error log, since it's a hosted server (with streamline.net). I have raised a support ticket with them to see if they're doing anything funky with the 404s. Will keep you posted. AlexMLexpos 15:54, 24 August 2011 (UTC)

RESOLVED Blank wiki page after system upgrade.

Hi.

After updating software in the server, wiki doesn't load anymore.

MediaWiki: 1.8 PHP: upgraded from 5.2.6.dfsg.1-1.+lenny3 -> 5.2.6.dfsg.1-1.+lenny13 MySQL: 5.0.51a System: debian lenny


wiki: http://phobos.martem.ee/wiki

Issue:

After upgrading servers software, mediawiki doesn't work anymore. It only shows a blank page.

I tried: To see PHP errors, add this to the very top of LocalSettings.php:

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

This didn't work.

Only when I added some 'echo' statements to LocalSettings.php I could see something printed to the screen, with the error: Fatal error: Class 'MWInit' not found in /var/lib/mediawiki/includes/Setup.php on line 305

This disappears when all echo statements are removed.


Any ideas, how to debug this issue?

-- Roland 195.50.208.34 (talk) 10:28, 24 August 2011 (UTC)

I assume that you have 1.18alpha, not 1.8. Your error looks like some files haven't been updated. Max Semenik 11:03, 24 August 2011 (UTC)
Thanks, you were correct.
After 'svn checkout http://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_18/phase3'
wiki seems to work again. 195.50.208.34 15:01, 24 August 2011 (UTC)

How to find user identity in MediaWiki

how to find user identity in mediawiki ,i dont know what code

can you see skins\Vector code line "619" and write for me what should write code.

because i want .show link just for admine

plz write for me code Raya2017 (talk) 11:37, 24 August 2011 (UTC)

I have no idea what you're asking. Can you clarify ? Krinkle 21:45, 24 August 2011 (UTC)
I believe he wants to mod the skin to display a link based on what user group/what permissions the user has. Peachey88 02:41, 25 August 2011 (UTC)
yes
can you help me for write this code
tanks for your help Raya2017 15:26, 25 August 2011 (UTC)
i want use code for hide link special page
and
show for admin Raya2017 15:23, 25 August 2011 (UTC)

#ask: when there is no value

Hi,

If Wildcards are written as "+" and allow any value for a given condition. For example, [[born in::+]] returns all pages that have any value for the property «born in». What is the wildcard for when there is no value? In the example below I am trying to find the pages where the review date is still blank - what should be where the (?) is in [[Date for review:: ]]

Thanks,

Rich

== Impact Assessments under consultation == {{#ask: [[Category:Equality Impact Assessments]] [[Date for review::?]] | ?Name of policy owner | ?Creation date | sort=Creation date | order=DESC | format = broadtable | limit=10 | mainlabel= Everythingevolves (talk) 11:57, 24 August 2011 (UTC)

You'd better ask this at Extension talk:Semantic MediaWiki. Max Semenik 15:03, 24 August 2011 (UTC)

IIS7 Permissions on Uploaded Images

Hello all,

I have MediaWiki up and running on Win2k8 Std R2 with IIS7 connected to a remote MySQL DB.

Within IIS7 I have Basic Authentication turned on so that employees visiting my Wiki have to use a Windows Domain username and password.

Everything was running fine until I sent the site to a few employees to test. They found that when the visited a site that had an embedded image, they have to continually type in their username/password. A further look into things find that while users have read access to the entire MediaWiki folder even Images, however on the actual Image files the only accounts with access are System, Administrator, IIS_IUSRS, and the individual domain account of the people that uploaded the image.

Any ideas? The permission tables are set to inherit from the previous folder, but the actual files just don't inherit...

Brian Ual-bashipman (talk) 15:14, 24 August 2011 (UTC)

Hi Brian,
I've setup something similar in the past, and I think the fix was to have the images folder (and all children, inheriting) readable (writable too if you want anyone to be able to upload) by the same group of windows users as you were authenticating against. I realise this seems like a sledgehammer solution, but it was the only thing that worked. If there's a better solution I'd be happy to hear it! Lawpjc 16:37, 20 September 2011 (UTC)

Category navigation not working anymore.

MediaWiki 1.17.0 PHP 5.2.6-1+lenny13 (apache2handler) MySQL 5.0.51a-24+lenny5

(see http://www.fountainpen.it/Speciale:Versione for more info)

The category item navigation that worked until 1.16, stopped working. I have some category used to classify images, with more than 200 images each one, like this:

http://www.fountainpen.it/Categoria:Foto

When clicking on next 200 or also using directly the prpposed link:

http://www.fountainpen.it/index.php?title=Categoria:Foto&filefrom=Aurora-RA2-OverlayEnamel-CapTop.jpg

just bring me on the same page. 217.133.96.194 (talk) 16:08, 24 August 2011 (UTC)

If you search the archives, you can see that I encountered much the same thing. What fixed things in my case was to upgrade the extension CategoryTree a second time (for 1.17). In fact, you should upgrade all extensions if you haven't done so already. Cavila MW 1.17, MySQL 5.1.57, Php 5.2.17 20:27, 24 August 2011 (UTC)

How to fix pages with invalid titles?

Issue: A change in namespaces after installing Extension:SematicForms caused the namespaces Form: and Property: to temporarilly disappear. Now the pages (formerly) in those namespaces seem to have lost their namespace and their pagenames start with a colon ":" which makes them pages with invalid pagenames. The single revisions of those pages are still accessible in their history but trying to edit or move those pages redirects you to a pagename without the colon ":", meaning to pagenames of pages that do not exist.

Question: Is there a way to fix this?

Example page: Formerly in namespace Form: http://www.entropiaplanets.com/w/index.php?title=:Planet_Info_Overview&oldid=22846

Versions:

  • MW 1.17.0
  • PHP 5.3.3
  • MySQL 5.0.77
  • SMW 1.6
  • SF 2.2.1


EDIT: Meanwhile I tried via the API but that doesn't work either. If I understand correctly the pagenames get 'normalized' before querying, meaning the leading colon ":" gets stripped before anything can happen. Help! 85.180.143.82 (talk) 20:51, 24 August 2011 (UTC)

Same problem here after changing a namespace. Is there any way to get the pages back? 87.154.132.171 17:52, 21 February 2012 (UTC)
Here in this wiki there are some pages on Namespaces. Go them through. I know that on one of them there was an explanation on what to do, if you wanted to move all pages out of a namespace (which I guess is what you want to/have to do). 88.130.90.133 18:22, 21 February 2012 (UTC)
Same problem here. Create a custom namespace, e.g. "Foo". Create "Foo:Bar" with content. Disable ns "Foo". Find page ":Bar" and have fun removing it. IIRC it didn't help to enable the custom ns again. Those pages are ghosts now. Subfader (talk) 19:04, 21 February 2012 (UTC)
Try cleanupTitles.php. Reach Out to the Truth (talk) 02:37, 22 February 2012 (UTC)

[RESOLVED] Renaming "Discussion" tabs

MediaWiki 1.17.0; PHP 5.2.10 (apache); MySQL 5.1.41-log.
How can I change "Discussion" to "SomethingNew" throughout my wiki? Das steinerne Herz (talk) 00:40, 25 August 2011 (UTC)

ok, I found out by myself. There's a folder "...wiki/languages/messages/" where one can find a file with translations into his language. So you just write there whatever you want. It's pretty funny indeed. Das steinerne Herz 05:22, 25 August 2011 (UTC)
DON'T DO THAT, your changes will be lost with the next update. See here for proper solution. Max Semenik 05:38, 25 August 2011 (UTC)
Thank you! Das steinerne Herz 03:46, 26 August 2011 (UTC)
Das perfeito dessa forma, grato Paulo. Paulo.Adati.Media.Wiki (talk) 19:06, 28 May 2014 (UTC)

What is the function of $wikiname

We have a wiki farm environment where each wiki link starts with a customer name such as vox.xyz.com;tox.xyz.com;sox.xyz.com etc. We want that when one redirects its url to particular customer link the name of the customer(vox,tox,sox, etc) will be visible in the page. How can the $wikiname variable(in LocalSettings.php) be used to do so? If it cant be used what is the method to do the above? 14.99.21.213 (talk) 05:19, 25 August 2011 (UTC)

If you have a wiki farm, you likely also have some central configuration file with a switch statement or wgConf, or some other method to set configuration per-wiki.
In there set/override $wgSitename depending on the wiki/context you're in. Krinkle 15:09, 26 August 2011 (UTC)

Is there any way (via extention or niffy hack) to set internal link on a word, but have it liked to a whoe other word ? for example if i want to link "The Clock" to "Clock", how can it be done ? 188.64.201.30 (talk) 07:31, 25 August 2011 (UTC)

[[Destination link|Displayed Test]]
For example: [[Clock|The Clock]] Peachey88 07:33, 25 August 2011 (UTC)

Wiki stopped after upgrading MySQL from 5.1.57 to 5.5.14

Hi all,

The versions I'm using are: XP Professional SP3 Apache 2.2.15 MySQL 5.5.14 PHP 5.2.13 Mediawiki 1.15.2

I've been forced to upgrade MySQL Server from 5.1.57 to 5.5.14 because of an upgrade to our company's main piece of software (OpenDental) and our wiki is giving the following error:

Edp-wiki has a problem Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Can't contact the database server: Access denied for user 'stuart'@'localhost' (using password: YES) (localhost))

I successfully upgraded from MySQL 5.0 to 5.1 a couple of months back and only had to add #skip-innodb to my.ini, and it worked a treat. Now I'm lost, and I thought it best to ask someone more knowledgeable before I put my foot in it!

I can't supply a link as the wiki isn't on the net.

Any help greatly appreciated Stu 80.38.87.47 (talk) 12:26, 25 August 2011 (UTC)

Give this user a permission to work with this database. Max Semenik 13:11, 25 August 2011 (UTC)
How do I do that? 80.38.87.47 13:30, 25 August 2011 (UTC)
http://dev.mysql.com/doc/refman/5.5/en/grant.html Max Semenik 14:00, 25 August 2011 (UTC)
Thanks Max, I've tried that, GRANT ALL ON wikidb.* TO 'stuart'@'localhost'; but the error remains the same. 80.38.87.47 14:16, 25 August 2011 (UTC)

Thumbnail error: "command not found"

When trying to render SVG thumbnails using imagemagick I get the following error, every time, no matter what I try:

Error creating thumbnail: sh: wmf2eps: command not found convert: Delegate failed `"wmf2eps" -o "%o" "%i"' @ delegate.c/InvokeDelegate/1060. convert: unable to open image `/tmp/magick-XXJtoQRZ': No such file or directory @ blob.c/OpenBlob/2481. convert: unable to open file `/tmp/magick-XXJtoQRZ': No such file or directory @ constitute.c/ReadImage/570. convert: missing an image filename `PNG:/home/combineoverwiki.net/httpdocs/w/images/thumb/5/56/Ravenholmsign.svg/256px-Ravenholmsign.svg.png' @ convert.c/ConvertImageCommand/2838.

MediaWiki version: 1.17.0

PHP: 5.2.6RC4-pl0-gentoo (apache2handler)

MySQL: 5.0.54-log

Any idea what might be causing it? It's been frustrating me. 81.141.71.93 13:35, 26 August 2011 (UTC)

I have installed Mediawiki and followed the directions to a T for adding a logo, and it still doesn't appear. here are all the ways I tried it. $wgLogo = 'http://www.nwldev.com/wiki65/skins/common/images/logo.png'; $wgLogo = 'common/images/logo.png'; $wgLogo = '/common/images/logo.png'; $wgLogo = "common/images/logo.png"; $wgLogo = "skins/common/images/logo.png"; $wgLogo = "../skins/common/images/logo.png";

I don't know what I'm doing wrong, but the logo won't show up.

Also on the skin, I downloaded gumaxdd skin, dropped it with the two php files into the skins folder. and tried this: $wgDefaultSkin = 'gumaxdd';

But the skin does not show up. Any help would be much appreciated. 63.133.185.114 (talk) 17:23, 26 August 2011 (UTC)

Upload your logo image to skins/common/images/logo.png and set in localsettings.php file:
$wgLogo = "{$wgStylePath}/common/images/logo.png";
wargo 17:30, 26 August 2011 (UTC)

Hi, Please help me out, strucking for lat 12 days to resolve this :

Using MySQL 5.5.8, PHP 5.3.5, Apache 2.2.17 and Mediawiki 1.17.0

My Aim : To hide / remove the "powered by Mediawiki" Icon from all pages

unsuccesful Action taken :

1) go to Search box in my wiki, type mediawiki:common.css, edit the page to add "#footer-icon-poweredbyico { display: none; }

2) also added "#footer-icon-poweredby {display: none; }

(note: common.css was not available initially and i have created it)

3) trying to fetch the below in skins/monobook.php to alter but this is not available there :

<?php

if($this->data[`poweredbyico']) { ?>

<?php $this->html('poweredbyico') ?>



Need your support to go further please. Rishi.comm - Mediawiki User, Thanks in Advance Rishi.comm (talk) 11:42, 27 August 2011 (UTC)

Hi
Try right clicking on the mediawiki icon, click on properties. This should reveal the url to the icon. Follow the url and delete it or save it for future use. This is where my mediawiki icon is stored.
mediawiki/skins/common/images/poweredby_mediawiki_88x31.png Ron Barker 12:21, 28 August 2011 (UTC)

Updating to 1.17

Site: www.videoville.org PHP: 5.2 MediaWiki: 1.17 MySQL: 5.0

To whom it may concern,

Thanks for reading! I'm attempting to upgrade from 1.15 to 1.17. When I hit 'php update.php', it says I'm running PHP 4.4.9, then aborts. Likewise I can't upgrade on the web because my database is too large. Help!

--Kevathens 71.56.104.42 (talk) 16:49, 27 August 2011 (UTC)

Try
php5 update.php wargo 16:53, 27 August 2011 (UTC)
Says '-bash: php5: command not found'
--Kevathens 71.56.104.42 17:29, 27 August 2011 (UTC)
Contact your host's support for explanations on invoking PHP5 from command line. Max Semenik 19:19, 27 August 2011 (UTC)
Thank you. 71.56.104.42 19:40, 27 August 2011 (UTC)

Table alignment

How do I set a table to align within text? i.e. I know how to make a table align to the left, centre, or right, but not how to make it so that will go the correct position amongst the text that surrounds it. Anthrcer (talk) 17:59, 27 August 2011 (UTC)

Cant edit main page

I just moved my wiki from another server. Everything seems to work fine, but there is one problem. When i try to edit the main page i get following message:

403 Forbidden

You don't have permission to access /wiki/index.php on this server.

I have migrated my wiki with Joomla, but i dont think that is the problem. 213.66.50.125 (talk) 18:30, 27 August 2011 (UTC)

Does your new server have mod_security? Max Semenik 19:17, 27 August 2011 (UTC)
I dont really know. Have to look that up with my provider.
Can that be the problem? Is there some way to work around that? 213.66.50.125 20:30, 27 August 2011 (UTC)

Is there a way to prevent certain words or phrases from being used in usernames?

Resolved

I checked this, but it looks like it only prevents account creation if the forbidden username matches a new username being created exactly.

What I am looking for is a way of preventing certain words from being able to be included in usernames entirely.

For example, if I want to prevent people from using the word stupid in their username I want to prevent the usernames 1stupid, xxStupidxx, or Looks Stupid from being created. I don't want to just prevent someone from making a username called Stupid.

MediaWiki Website User 21:27, 27 August 2011 (UTC)
How about using a blacklist with RegEx?  Hazard-SJ  ±  22:12, 27 August 2011 (UTC)
How do you do that? MediaWiki Website User 02:11, 28 August 2011 (UTC)
You could try the title blacklist extension.  Hazard-SJ  ±  03:46, 28 August 2011 (UTC)
And words entered into that would be prevented from being used in usernames at all, not just in the exact form?
So if I set idiot (or Idiot) from being used in a username, it would prevent the creation of usernames Idiot, uridiot, adminisidiotxx, or Big Idiot?
I saw in the extension page that you can use a file in the wiki to have the list of prohibited words, instead of a MediaWiki page? Is that possible? I would prefer that a list of prohibited words not be publicly accessible for obvious reasons.
I require users to confirm email before being allowed to edit, as a way of preventing spammers from editing. I'm currently under attack from a troll who uses account names as a way of posting obscenities and outing other users when I'm online at the same time as him, and he doesn't have time to confirm his email and spam the wiki before I ban him. I've set a maximum length for usernames, but apparently it's long enough for him to have his way. I've had to disable account creation twice because of him, and it's still disabled until I can figure out a way of dramatically reducing his ability for trolling. MediaWiki Website User 21:09, 28 August 2011 (UTC)
The list must be on the mediawiki page to work, unfortunately. The usernames that the regex blocks depends on the regex you use. A great page with regex help is here. Ajraddatz 22:47, 28 August 2011 (UTC)
How do I control the regex I use? After looking at the Wikipedia article, I'm guessing it's consecutive regex, the first example. MediaWiki Website User 22:53, 28 August 2011 (UTC)
The list does not need to be on a MediaWiki page. The extension page mentions how to use a file instead. —Emufarmers(T|C) 16:39, 29 August 2011 (UTC)
How do I create the regex that I want to use? MediaWiki Website User 18:20, 29 August 2011 (UTC)
I'm not an expert at Regex, but I'd assume User:[A-Za-z0-9_]*[Ii]diot[A-Za-z0-9_]* would work? Where are the RegEx experts? Or would User:[\x21-\x7E]*[Ii]diot[\x21-\x7E]* be better? Please await expert advice. Those were suggestions.  Hazard-SJ  ±  00:35, 9 September 2011 (UTC)
It doesn't have to be so complex. wikipedia:mediawiki:titleblacklist has a variety of examples, the simplest of which are pretty much self-explanatory. Take particular note of how to prevent account creation. Reach Out to the Truth 01:41, 9 September 2011 (UTC)

Installation works on LAN, fails to run online

Hello, I am having trouble accessing my mediawiki installation outside of my LAN. When I connect to my server via my internal ip it works perfectly however when I try to use my external ip when im outside of my network, it fails to load anything (the browser stays in a state of "connecting" without displaying any error messages).

I am using a router but I checked my port forwarding and it is fine. I can access other server folders except for the mediawiki one.

Here is the specs if it helps: 1. LAMP server under Ubuntu+Gnome running apache2 2. MediaWiki 1.15.5-3 3. PHP 5.3.5-1ubuntu7.2 4. MySQL 5.1.54-1ubuntu4

The documentroot is configured to run on the folder /var/lib/mediawiki but I did not touch any of the directories nor its permissions.

Please if anyone can help, I would greatly appreciate it. Thank you very much! W2zk (talk) 00:58, 28 August 2011 (UTC)

Are other web resources on your server accessible via the external IP? Can you access MediaWiki's static resources, such as skins/monobook/user.gif? On a side note, we don't recommend packaged MW, and 1.15 is outated and not supported (therefore, it misses latest security fixes). Max Semenik 05:10, 29 August 2011 (UTC)
The default folder (/var/www) works fine via the external IP, I can see its contents perfectly. I don't know how to access the static resources from the browser, can you please tell me how?
Actually I planned on updating awhile back but I've been so dedicated to resolving this situation that it constantly got pushed back lol but thanks for the reminder W2zk 01:15, 30 August 2011 (UTC)
After researching a little more, I think the problem is that I used the packaged MW. If I want to reinstall the entire mediawiki from scratch, how can I do so while keeping all the pages I already created? W2zk 02:35, 1 September 2011 (UTC)
Just point the installer at the existing database. Max Semenik 04:10, 1 September 2011 (UTC)
So after upgrading to mediawiki 1.17 and fiddling around for a few weeks, I got the site to work but not consistently. When viewed on my android phone (even if I am not viewing a mobile skin) it loads just fine but when I am trying to view from a computer with any browser, sometimes it works, sometimes it just times out. Please, can anyone help? W2zk 03:25, 23 September 2011 (UTC)

Issue upgrading to 1.16.5

site: videoville.org MySQL: 5.0 PHP: 5.2

Hello,

I'm attempting an upgrade to 1.16, but I ran into some trouble.

Error in fetchObject(): Table 'kholy.watchlist' doesn't exist (kholy.db.3007770.hostedresource.com)

Backtrace:

#0 /home/content/k/e/v/kevin90304/html/wiki/maintenance/updaters.inc(722): DatabaseMysql->fetchObject(false)
#1 /home/content/k/e/v/kevin90304/html/wiki/maintenance/updaters.inc(709): do_namespace_size_on('watchlist', 'wl')
#2 [internal function]: do_namespace_size()
#3 /home/content/k/e/v/kevin90304/html/wiki/maintenance/updaters.inc(1125): call_user_func_array('do_namespace_si...', Array)
#4 /home/content/k/e/v/kevin90304/html/wiki/config/Installer.php(1212): do_all_updates()
#5 /home/content/k/e/v/kevin90304/html/wiki/config/index.php(43): require('/home/content/k...')
#6 {main}

What's that?

Thanks 71.56.104.42 (talk) 01:41, 28 August 2011 (UTC)

I'm experiencing the same issue, which looks basically identical except for #2 of the backtrace which does not appear in mine. 122.60.174.109 23:12, 1 April 2012 (UTC)

Concerning: Certified Extension Testing Initiative (CETI)

As a nomination follow-up to the Usability Initiative; the Certified Extension Testing Initiative (CETI) is being proposed. Such an initiative will provide more opportunity for developers to function within the MediaWiki operating environment and give users a qualitative benchmark to base there usage.

Brief Overview-

The CETI project would establish two new classes of testers;

  • The Extension Inspector- basically a low-level bureaucrat or steward which focuses strictly on extension operability.

&

  • The Extension Sniffer- defined as a bot or automated process which sorts through the extension via the Resource Loader front-end extension.

All inspectors and sniffer description pages are recognized by indicia and the certified extension receives a registration tag to be place on the extension template, notifying the end user of its status and usability rating.

Once developed and has undergone its own testing phase, the CETI would be deployed as a kernel application, embedded in the MediaWiki source code and beginning its processes of overseeing new extensions; working through and with the Resource Loader extension.

The project as a whole would host volunteers, staff and administrative bodies and generate private contributions from coders and donations from the global software community; respectfully. It would continue to receive donations after the initial campaign on the basis that its helps support the development and safe deployment of open source software.

Summary-

Such an initiative program will improve programmibility as well as re-assert the Userability Initiative's prime directive. Please consider this nomination in establishing the next version release.

Habatchii 12:42, 28 August 2011 (UTC)

Err, what? Max Semenik 14:16, 28 August 2011 (UTC)
wut Johnduhart 18:01, 28 August 2011 (UTC)
The CETI Initiative for MediaWiki is best summarized as a peer review process for extensions committed by coders and deployed into SVN via the ResourceLoader extension.
Accordingly; most extensions will continue to be submitted without the CETI certification status until the project has been fully automated by sniffers and other commit buffer bots.
My nomination for consideration was intended for the project to be adopted by the MediaWiki ver1.19 release. Thus the need for an immediate collective of interests from the organization as a whole. Projects such as this have the potential to become very extensible, so the need for building precise and effective system-wide standards.
In deploying the project's raw end product, a full layout, timetable and roadmap will be needed. I am available for suggestion on how to approach this issue; the most logical approach would be to follow existing MediaWiki standards, respectfully. (refer to; Manual:Database layout) Notices and other modes of opportunity calls should be used to facilitate public awareness and organization-wide consensus. It would be most beneficial to maintain dialogue with the MediaWiki organizational standing directives in addressing this project.
Your comments and response are requested.
Habatchii- Habatchii 23:26, 28 August 2011 (UTC)
Again, what?
You're talking about reviewing and certifying extensions which is one thing and actually may be a reasonable concept, but then you say this: "...deployed into SVN via the ResourceLoader extension" and then link to the English Wikipedia's page on creating bots. It's not adding up, maybe you could join #mediawiki and we can talk about this? Johnduhart 23:55, 28 August 2011 (UTC)

Banning a troll who changes his IP address- Also, how do I find out a users' IP address?

I don't know anything about changing an IP address, so I don't know how hard it is. I recently used $wgAccountCreationThrottle to only allow one account to be created per IP address per day, but I know he just changes his IP address since I check the box for blocking it each time I've banned one of his accounts. I haven't actually tested this configuration yet, since account creation has been prevented since I've implemented it.

Could anyone explain to me how hard it is to changed an IP address, since I'm wondering how much this will slow him down.

Also, I'm wondering if I could use a range block to keep him from editing with any new accounts he creates. That would probably only work if new IP addresses can only be created within a certain range.

Where do I go to find the IP address of a user? MediaWiki Website User (talk) 21:38, 28 August 2011 (UTC)

First off, if you have problems with vandals who keep coming back I'd recommend installing the checkuser extension. That allows you to view a user's IPs, and which accounts are linked to an IP.
Vandals and trolls who come back with different IP addresses can do so with relative ease, through two major ways. The first is rotating through IPs in a "range", which can be done a variety of different ways. These are easy to deal with since you can block a range of IPs (see here, and use a rangeblock calculator found here). The second way is the use of an open proxy, which is a lot harder to stop since there are a lot of them out there and they are not usually part of a range. In cases of very bad vandalism with proxies, you could disable anonymous editing and account creation temporarily. Ajraddatz 23:02, 28 August 2011 (UTC)
I've had anonymous editing restricted since I set up the wiki; I wanted to have people log in and have accounts, to create a more personal community. I also currently have account creation blocked to anonymous users.
I just installed the checkuser extension, and I got an error when I tried to use it. I could try checking what it was again. MediaWiki Website User 23:26, 28 August 2011 (UTC)
When I installed CheckUser, I uploaded the file to the extensions folder, and added the line to the localsettings file. I also gave sysops the checkuser right. Was there something else I needed to do? The MediaWiki version I have is at least 1.16. MediaWiki Website User 23:45, 28 August 2011 (UTC)
You also need to configure the sql database for that one - further instructions are provided on the extension info page. The easiest way for me is the non-command prompt one, since I use Cpanel and can directly access the sql and add the files. Ajraddatz 01:09, 29 August 2011 (UTC)
Do I download the most recent versions of the files here and here? MediaWiki Website User 02:51, 29 August 2011 (UTC)
Yep, those are the ones. You'll then need to upload them onto the sql somehow - that depends on what method you use. The extensions page has good instructions on how to do that. Ajraddatz 03:20, 29 August 2011 (UTC)
Thank you. MediaWiki Website User 03:33, 29 August 2011 (UTC)
When I click on "download" it just takes me to a page of text. How do I download the files? MediaWiki Website User 15:00, 29 August 2011 (UTC)
You might need to manually create the two pages in the sql thing, and then copy and paste the text into them and save. That's what I needed to do. Ajraddatz 15:02, 29 August 2011 (UTC)
All I need to do is copy the text? MediaWiki Website User 15:05, 29 August 2011 (UTC)
I copied the text, and it looks like those files exist, but it seems to say that the table is empty. MediaWiki Website User 15:13, 29 August 2011 (UTC)
So this extension only works to record IP addresses from the time it was installed?
I got it to work BTW. MediaWiki Website User 19:34, 29 August 2011 (UTC)
No, actually, IPs are always stored for edits by accounts, but this extension displays the IPs used from edits within a time period (not sure how long that is). Ajraddatz 15:26, 31 August 2011 (UTC)

Migrating a wiki problem

I had to move my wiki from old hosting to a new one, and here are the results — the 404 page. I've seen this guide but I'm not sure what I've done wrong. I downloaded the whole database, exported mySQL dump via PHPMyAdmin, uploaded the database on a new host, imported the sql dump, edited the LocalSettings.php file. What have I done wrong? What haven't I done to make it work? Thanks. 83.142.212.224 (talk) 03:11, 29 August 2011 (UTC)

Did you move the files? —Emufarmers(T|C) 16:40, 29 August 2011 (UTC)
Well, the problem was just in the way I shortened my URLs. Thanks anyway. 83.142.215.26 18:15, 29 August 2011 (UTC)

Missing Namespace Tab Labels in Vector

The Vector skin typically has two namespace tabs in the upper left corner of the content area. By default they're "Page" and "Discussion". I'm setting up a wiki as a player resource for an online game, but I also have a second wiki setup for game staffers. They were both running 1.16, and I updated them both to 1.17. I realized that some of my extensions weren't going to work properly yet, so I rolled back to 1.16.5 in the mean time, and everything seems to work. In the process though, I'm somehow lost those Namespace tab labels on one wiki, but not on the other. I'm trying to figure out how this happened when I followed the same process with both.

The two installs have nearly identical LocalSettings.php files. The only differences are things like site name, SQL login creds (they share a table with different prefixes, but I use two different logins), and script path/article path. The only other difference is to restrict editing. The player wiki has:

$wgGroupPermissions['*']['edit'] = false;
$wgShowIPinHeader = false;
$wgGroupPermissions['*']['createpage'] = false;

while the staff wiki has:

$wgGroupPermissions['*']['read'] = false;
$wgShowIPinHeader = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgWhitelistRead = array("Special:Userlogin", "MediaWiki:Common.css",
"MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js",
"MediaWiki:Vector.css", "MediaWiki:Vector.js", "-");
$wgGroupPermissions['*']['edit'] = false;

$wgGroupPermissions['*']['createaccount'] = false;




I even tried deleting everything in the affected wiki's directory except for images, extensions, and LocalSettings.php, and then unpacking the tar.gz again and running the update script, and the problem persists. Is it something in the DB? Help me get my namespace labels back! 209.195.74.19 (talk) 13:52, 29 August 2011 (UTC)

I forgot to mention that the problem isn't just with the Page/Talk namespaces. In those namespaces the tabs are simply blank. If you go to Special:SpecialPages, the tab changes to (literally) read "& lt;vector-namespace-special& gt;". User pages show "User" in both tabs. The MediaWiki namespace shows "MediaWiki" in both tabs, and so on.
EDIT TO ADD: Apparently the problem is only in Vector, which is my site default. Switching to MonoBook fixes it. There's nothing in MW:Vector.css that affects it though (I tried blanking it out as a test, and anyway, both wikis have the same Common.css and Vector.css).
EDIT: Bump? 209.195.74.19 14:03, 29 August 2011 (UTC)
We've had the same problem at http://gamification.org. Would love to find a fix for it ASAP! Gamify 01:03, 31 August 2011 (UTC)
Also I have the same problem - upgraded to 1.17 and than I had, due to problem with diacritics to downgrade back to 1.16. http://www.enviwiki.cz . Probabably Vector skin is part of 1.17 installation and had overritten the Vector skin, but Vector is not part of 1.16 (in 1.16 Vector had to be installed as a additional extension) and during downgrade the Vector extension reamained in 1.17 version. Problem is, that now I had not found Vector extension for 1.16. Does anybody know, where to find it?
--Jirka Dl 19:37, 26 September 2011 (UTC)
Hm, probably my theory is wrong, I have another mediawiki, which was not upgraded to 1.17 and tabs are OK. I hade copied skin Vector + extension Vecotor to above mentioned wiki and nothing changed. So I have to use MonoBook :-( Jirka Dl 19:54, 26 September 2011 (UTC)
Hurrah, I got it - it is necessary to delete (or disable) from localsettings.php "#require_once("$IP/extensions/UsabilityInitiative/Vector/Vector.php");" and everything works now fine - see http://www.enviwiki.cz Jirka Dl 20:13, 26 September 2011 (UTC)
Im Sorry, but can you explain, what you mean?
I Still want to use vector...
--Dominik Sigmund Dominik Sigmund 11:53, 13 October 2011 (UTC)
The Vector extension you're using will not work in 1.17. You'll have to remove it, and perhaps replace it with the compatible version. If all you want is the skin though, you don't need the extension at all. Reach Out to the Truth 15:05, 13 October 2011 (UTC)
If you are using UsabilityInitiative, delete it from your extensions and download the Vector extension. It has the same utility as in UsabilityInitiative; it is now just a separate extension.
If you are doing an upgrade from 1.16.x or downgrading from 1.17, make sure you have the proper Vector.php file from the version in the skins folder. ProgramCeltic 16:36, 13 October 2011 (UTC)

How do I download the extension files to add to the database?

Resolved

I need to download the files here and here, but when I click the download link, it just takes me to a wall of text. How do I download the files? MediaWiki Website User (talk) 15:03, 29 August 2011 (UTC)

I don't know what method your using for extension install but, you can in stall these manually. Mlpearc powwow 18:29, 3 September 2011 (UTC)
just save the .zip file under your extensions folder. Most extensions on wikimedia have an installation guide, though it usually only involves unzipping the file in your extensions folder, and adding a line to your LocalSettings.php. If you do not hve subversion, then there is a link to download on the right side of your screen. 71.202.179.85 17:04, 5 September 2011 (UTC)

Validating markup?

Is there a better way to validate markup that eye balling / searching for tags? I just spent an unsuccessful half hour trying to locate the source of a stray table row that appears at the end of a div. board tc (talk) 16:59, 29 August 2011 (UTC)

http://validator.w3.org/ Max Semenik 17:02, 29 August 2011 (UTC)

Help with customizing Extension:TitleBlacklist

I would like to configure this extension so that the blacklist only applies to anonymous users and logged in users, but not to sysops. It only explains on the extension page how to make it apply to sysops. MediaWiki Website User (talk) 21:31, 29 August 2011 (UTC)

$wgGroupPermissions['user']['tboverride'] = false;
Add that to your LocalSettings.php Johnduhart 16:55, 30 August 2011 (UTC)
Thanks. Would you also be able to help me create a regex for the blacklist? MediaWiki Website User 18:43, 30 August 2011 (UTC)

cannot edit a page in wiki

I am participating in a wiki called www.openwaterpedia.com. I think it is built on MediaWiki 1.16.3. When I click "edit" tab, i get a message like this:

"You do not have permission to edit this page, for the following reason: You must confirm your e-mail address before editing pages. Please set and validate your e-mail address through your user preferences."

I have navigated to user preferences three times (over the last 3 days), and under email options I have been sure my email address is present and correct, and I have clicked on "confirm your email address".

The wiki then reports: "A confirmation code has already been e-mailed to you; if you recently created your account, you may wish to wait a few minutes for it to arrive before trying to request a new code. Openwaterpedia requires that you validate your e-mail address before using e-mail features. Activate the button below to send a confirmation mail to your address. The mail will include a link containing a code; load the link in your browser to confirm that your e-mail address is valid. "

No email was received with a confirmation code (and no, it is not in my Junk folder). I am under the impression,then, that until I get the confirmation code and acknowledge it by clicking on it, I will be unable to edit any pages.

Can anyone help me with this? 76.251.117.177 (talk) 05:07, 30 August 2011 (UTC)

Apparently, this wiki has incorrect email settings, contact its administrators to resolve this. Max Semenik 06:31, 30 August 2011 (UTC)

add Facebook "Like box"

i would like to add the extended like option in form of Like Box (http://developers.facebook.com/docs/reference/plugins/like-box/) there's no built in extention for this (not one that i found anyway) does anyone has any idea on how i can integrate it into my site ?! 82.166.27.80 (talk) 07:39, 30 August 2011 (UTC)

It's not yet built in, but I think that this is what you are looking for! TBloemink 08:11, 30 August 2011 (UTC)

How to get raw data of last patrolled version?

I tried "action=raw" and "stable=1" but I get the last unpatrolled version nonetheless. --188.109.189.87 188.109.189.87 (talk) 10:31, 30 August 2011 (UTC)

Help with confirm account extension- What am I supposed to substitute in this line?

mysql -h DB_HOST -u WIKIUSER -p WIKIDB < ConfirmAccount.sql

I need to add this, but what am I supposed to change? The directions are horribly vague. MediaWiki Website User (talk) 15:02, 30 August 2011 (UTC)

Unwanted angle brackets in Special:SpecialPages with new extension

I'm following along with the stub file in Manual:Special Pages, but I'm getting unwanted angle brackets in the page's entry on Special:SpecialPages.

Details

MediaWiki 1.17.0
PHP 5.2.17 (cgi-fcgi)
MySQL 5.1.53-log
Site here

Code

OSRSubscribe.php (main page)

 <?php
  
 # Alert the user that this is not a valid entry point to MediaWiki if they try to access the special pages file directly.
 if (!defined('MEDIAWIKI')) {
         echo <<<EOT
 To install my extension, put the following line in LocalSettings.php:
 require_once( "\$IP/extensions/MyExtension/OSRSubscribe.php" );
 EOT;
         exit( 1 );
 }
  
 $wgExtensionCredits['specialpage'][] = array(
         'name' => 'OSR Subscription Package',
         'author' => 'Alex Heyden',
         'url' => 'http://www.opensourcereligion.org/mediawiki/index.php',
         'description' => 'Maintains a record of users who choose to affiliate with certain wiki topics',
         'descriptionmsg' => 'OSRSubscribe',
         'version' => '0.0.0',
 );
  
 $dir = dirname(__FILE__) . '/';
  
 $wgAutoloadClasses['OSRCentralDirectory'] = $dir . 'OSRCentralDirectory.php'; # Location of the SpecialMyExtension class (Tell MediaWiki to load this file)
 $wgExtensionMessagesFiles['OSRSubscribe'] = $dir . 'OSRSubscribe.i18n.php'; # Location of a messages file (Tell MediaWiki to load this file)
 $wgSpecialPages['OSRSubscribe'] = 'OSRCentralDirectory'; # Tell MediaWiki about the new special page and its class name
 $wgSpecialPageGroups['OSRSubscribe'] = 'Subscriptions';
 ?>
 

OSRSubscribe.i18n.php

 <?php
 $aliases = array();
 $messages = array();
  
 $aliases['en'] = array(
         'OSRSubscribe' => array( 'OSRSubscribe', 'OSR Subscribe', 'OSR Subscription Package' ),
 );
  
 $messages['en'] = array(
         'OSRSubscribe' => 'OSR Subscriptions',
 );
 

OSRCentralDirectory.php (actual special page)

 <?php
 class OSRCentralDirectory extends SpecialPage {
         function __construct() {
                 parent::__construct( 'OSRSubscribe' );
                 wfLoadExtensionMessages('OSRSubscribe');
         }
  
         function execute( $par ) {
                 global $wgRequest, $wgOut;
  
                 $this->setHeaders();
                 $wgOut->setPageTitle('Subscription Central Directory');
  
                 # Get request data from, e.g.
                 $param = $wgRequest->getText('param');
  
                 # Do stuff
                 $output="Hello world!";
                 $wgOut->addWikiText( $output );
         }
 }
 

Thanks in advance for any help! 174.71.105.49 (talk) 17:36, 30 August 2011 (UTC)

Extract plaintext from mySQL

How can I get the wikitext, or better still, the actual page text, from the mySQL database: in the field where the wikitext should be, I just get something along the lines of [BLOB-44]? 79.69.203.53 (talk) 19:37, 30 August 2011 (UTC)

It sounds like you are using phpMyAdmin to browse the database. If this is the case, then browse to the table with the BLOb, click "+Options" (located just above the table) and check "Show BLOB contents", then click "Go". jonkerz 08:39, 2 September 2011 (UTC)

Database error 1054 :When Clicking Random Page

Hi I am getting the following error when clicking the Random page. Database error

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 "RandomPage::selectRandomPageFromDB". Database returned error "1054: Unknown column 'Array' in 'where clause' (localhost)".

I had my wiki in another server (version 1.6) and initially i installed a the latest media wiki version in the new server and they imported the sql database from the old server to the new server. After that I run the update.php both from the web browser and then from the command prompt.

Strangely I am getting the error in both old version and the new version. Can somebody help me with this. Kiran jkm (talk) 23:04, 30 August 2011 (UTC)

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I have recently installed a wiki for project management uses. However, the end-users report that they cannot create an account - the link for that appears to be missing. The link in the upper-right hand corner is "Log in", not "Log in/Create an Account" as it is on other wikis. I'm not sure where to start looking for the source of error. Is this a common problem? How should I go about trying to fix the problem? The wiki is located at http://www.tinorobotics.org/wiki. Ntlhui (talk) 03:25, 31 August 2011 (UTC)
It looks like you've removed the createaccount right from anonymous users. Check your LocalSettings.php file for $wgGroupPermissions['*']['createaccount'] = false;Emufarmers(T|C) 12:27, 31 August 2011 (UTC)
I am also having the same issues right now. I have checked my Localsettings.php file for this; $wgGroupPermissions['*']['edit'] = false; which is still present in my localsettings.php file. What else can I do?t Isaiahtoyin (talk) 14:34, 19 August 2019 (UTC)
I have gotten a way around it. Thanks Isaiahtoyin (talk) 15:00, 19 August 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hi,

in r81132 – http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/search/SearchPostgres.php?r1=80612&r2=81132&pathrev=81132&diff_format=u – you dropped support for “pre-8.3 search”. We’re currently using a hack where we have to set $prefix='default' even on PostgreSQL 8.3 because the Wiki search does not otherwise work:

https://evolvis.org/tracker/t_follow.php/1031

This is Mediawiki 1.15.x on Debian Lenny (PHP 5.2.6, PostgreSQL 8.3.14), which has been upgraded from a much older installation (hence, the old search “lemmatisations”). Links to the problem are included in the problem description in the above bugtracker item.

Now the aforementioned changeset removes support for this from MediaWiki, and before we can upgrade that, we must somehow fix (regenerate?) the search index. How to do this? mirabilos (talk) 08:26, 31 August 2011 (UTC)

Upload slow

Mediawiki: 1.17
MySQL Server: 5.1.49
PHP5: 5.3.3
Apache2: 2.2.16

My file upload is slow, but it works. Everything else is fast. To upload a file (16KB) it loads at least 1 minute. But the Wiki Server is in the same network, and copying it directly to the server is very fast. I also tried to reinstall everything, for nothing =( Any ideas?
.. sorry for my bad english... 213.188.248.242 (talk) 16:35, 31 August 2011 (UTC)

I found the problem: when I upload a file, it tries to connect to

http://commons.wikimedia.org/w/api.php?aisha1base36=j4xs0i3rn6unupzfn8bwcs2kyo54cfy&aiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&list=allimages&format=json&action=query&redirects=true


But the server stays behind a proxy und is only accessible from the local network. Can I turn this connections off or can I set the http proxy for mediawiki? 213.188.248.242 10:26, 1 September 2011 (UTC)
See $wgHTTPProxy or, if you don't need external images, disable $wgForeignFileRepos or $wgUseInstantCommons. Max Semenik 07:25, 2 September 2011 (UTC)

Word files not uploaded

I recently created a wiki using the simplescript application on hostmonster. Here's the content of the Special:Version page

MediaWiki 1.17.0 PHP 5.2.17 (cgi-fcgi) MySQL 5.1.58-community-log

and here's the URL http://www.midnightswan.com/home/index.php?title=Main_Page

I've only been working on this particular site for a day or so, but I've come across an error I've never met, and can't seem to overcome. Whenever I upload a word document, I get this message:

Files of the MIME type "application/msword" are not allowed to be uploaded.

I don't know exactly what went wrong, I'm assuming something with the $wgMimeTypeBlacklist (though I never used this in LocalSettings.php). The wiki works fine for pdf files. How can I allow my wiki to allow word files to be uploaded? 71.202.179.85 (talk) 16:52, 31 August 2011 (UTC)

it seems application/msword is blacklisted in $wgMimeTypeBlacklist in DefaultSettings.php
the provided comment reads:
# MS Office OpenXML and other Open Package Conventions files are zip files
# and thus blacklisted just as other zip files. If you remove these entries
# from the blacklist in your local configuration, a malicious file upload
# will be able to compromise the wiki's user accounts, and the user
# accounts of any other website in the same cookie domain.
adding something to Localsettings like
$wgMimeTypeBlacklist = array_diff($wgMimeTypeBlacklist, array('application/msword'));
will allow application/msword files to be uploaded. But malicious files can also be uploaded. 129.125.186.6 14:55, 26 September 2011 (UTC)

safe_image.php edit

How and where can I edit the hidden Logo of Mediawiki, that ist find under the safe_image.php? I have added a Facebook-Send-Button to my wiki and there where show this picture, but I want that there where show the Logo of my wiki.

Thanks Christopher 217.82.227.174 (talk) 17:28, 31 August 2011 (UTC)

Copy of wikipedia

Linux 2.6.32-28-server Apache 2.2.14 MySQL 5.1.41-3ubuntu12.10 Php 5.3.2-1ubuntu4.9

1st Link: Justine Joli 2nd Link: Justine Joli

Hi. I was litle playing about wikimedia, and I copy an article from wikipedia to my local wiki. Why is there a diference between the links? I've copyed all the needed templates, and styll nothing.

And why are there all those strange {#ifeq:|yes||}}{{#ifeq:|yes|}}{{#if:|{{#if:

Thanks for the solution. Aleksuu (talk) 22:54, 31 August 2011 (UTC)

You haven't set up short URLs, and you haven't installed ParserFunctions. —Emufarmers(T|C) 23:30, 31 August 2011 (UTC)
Short URLs dont even needed. I need just this ParserFunction.
Thank you very much.
Just 1 question. How can this "header" align to the right and text will came higher? Aleksuu 23:56, 31 August 2011 (UTC)