Project:Support desk/old

Thumb and pixel options have no effect when embedding images
I am running MediaWIKI 1.9.3 on IIS6, PHP 5.2.1, MySQL 4.1.22, and everything working as expected including ImageMagick.

But when I embed an image into an article and use the |thumb or |200px options with the image they have no effect. The |frame option works perfectly, as do |right, |left, etc. and the alt text options.

To confirm ImageMagick works, if I access a category that contains images, ImageMagick successfully thumbnails these automatically (when I put a typo into the $wgImageMagickConvertCommand value, this thumbnailing fails with an appropriate error), so I know this works OK.

Just can't understand why the |thumb and |200px options don't work - do these even use the ImageMagick convert application?

Can anyone help find the cause of this, or know a fix please?

Thanks, Ben.

I have also the same problem when I resize images like "image:learn.jpg|300px" it doesn't show any image (thumbs) and doesn't give me any error ...just an empty rectangle of the thumb size (300px) with X sign at the top left of that empty rectangle !!! .... I tried something I found in one of the forums, to commented these lines (in \wiki\includes\Image.php):

And instead add this : $cmd = $wgImageMagickConvertCommand. " -quality 85 -background white -geometry {$width} ". ($this->imagePath). " " . ($thumbPath); It works with them but didn't work with me!!!
 * 1) $cmd = $wgCustomConvertCommand;
 * 2) $cmd = str_replace( '%s', $src, str_replace( '%d', $dst, $cmd ) ); # Filenames
 * 3) $cmd = str_replace( '%h', $height, str_replace( '%w', $width, $cmd ) ); # Size

directory I found thumbs with the sizes I've tried on. and the whole directory that contains the the "convert" ....    which is the right path to the thumb
 * I'm sure that the converter works because when I opened the image/thumb
 * I gave permission for both the IUSR_* and IWAM_* on both the Image directory
 * and when I view the source of the page, the path of the thumb is

waiting for your help regards, Butmah

Similiar problem for me. Error message in place of the thumbnail: "/usr/bin/convert: Unrecognized option (-thumbnail)"
 * SuSE Linux 8.2 (Shared Hosting, no root access)
 * Apache/1.3.36 (Unix) PHP/5.2.0 with Suhosin-Patch FrontPage/5.0.2.4803 mod_fastcgi/mod_fastcgi-SNAP-0404142202 mod_ssl/2.8.27 OpenSSL/0.9.6i
 * MySQL 5.0.22
 * Path ImageMagick 5.5.4: /usr/bin/, Path Convert (ImageMagick): /usr/bin/convert
 * MediaWiki 1.9.3, AddHandler php-fastcgi .php .php4

Upload and everything else goes. Strange is that I use a MediaWiki 1.6.5 system on the same hosting where thumbnailing works. I was not able in the last hours to find a solution even searching all the web and are now frustrated.

Thanks for indications. Chrus. 2007-04-29

High CPU usage
I'm using Mediawiki on "Second Life Italia" website (secondlifeitalia.com), it's working fine but CPU usage on the web server is TOO high. Any page request require 20%-50% on w3wp.exe; same situation with Apache for Windows (httpd.exe). On the other hand, MySQL load is really low and at normal levels. Turning caching on/off seems to change anything. What I can do? Thank you in advance.


 * User:Robchurch/Performance tuning discusses installing APC, which might be helpful. robchurch | talk 00:58, 24 May 2007 (UTC)

How can i find out the most searched words on my mediawiki site?
I need to get a report of what words, and how many times a word has been used for searchs during a period of time! Is that possible?

I've been looking aroung for addons or some sort of report but no luck yet.

Regards

Andy

Error in Setup.php
Hi all,

I have a problem. I get this error on the top of the page: "Warning: Invalid argument supplied for foreach in /data/web/mysite/www/wiki/includes/Setup.php on line 94" Please help me, what can be the problem? --Erdsiger 09:12, 14 May 2007 (UTC)


 * What is line 94 of /data/web/mysite/www/wiki/includes/Setup.php in your case? robchurch | talk 15:30, 17 May 2007 (UTC)

These are the lines: 87 # Useful debug output 88 if ( $wgCommandLineMode ) { 89 	wfDebug( "\n\nStart command line script $self\n" ); 90 } elseif ( function_exists( 'getallheaders' ) ) { 91 	wfDebug( "\n\nStart request\n" ); 92 	wfDebug( $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . "\n" ); 93 	$headers = getallheaders; 94 	foreach ($headers as $name => $value) { 95 		wfDebug( "$name: $value\n" ); 96 	} 97 	wfDebug( "\n" ); 98 } elseif( isset( $_SERVER['REQUEST_URI'] ) ) { 99 	wfDebug( $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . "\n" ); 100 } --Erdsiger 15:31, 18 May 2007 (UTC)

Internal Error: #1033 / Database.php on line 708 and 825
Hi, I'm suddenly getting an error (despite not changing anything inside the DB beyond people editing or adding entries and nothing in the files inc. database.php):

Original exception: exception 'DBQueryError' with message 'A database error has occurred Query: SELECT value,exptime FROM `objectcache` WHERE keyname='DBNAME:messages-hash' Function: MediaWikiBagOStuff::_doquery Error: 1033 Incorrect information in file: './DBNAME/objectcache.frm' (localhost) ' in /DBLOCATION/includes/Database.php:708 Stack trace:
 * 1) 0 /DBLOCATION/includes/Database.php(665): Database->reportQueryError('Incorrect infor...', 1033, 'SELECT value,ex...', 'MediaWikiBagOSt...', false)
 * 2) 1 /DBLOCATION/includes/BagOStuff.php(396): Database->query('SELECT value,ex...', 'MediaWikiBagOSt...')
 * 3) 2 /DBLOCATION/includes/BagOStuff.php(296): MediaWikiBagOStuff->_doquery('SELECT value,ex...')
 * 4) 3 /DBLOCATION/includes/BagOStuff.php(236): SqlBagOStuff->_query('SELECT value,ex...', 'DBNAME...')
 * 5) 4 /DBLOCATION/includes/MessageCache.php(206): SqlBagOStuff->get('DBNAME...')
 * 6) 5 /DBLOCATION/includes/MessageCache.php(442): MessageCache->load
 * 7) 6 /DBLOCATION/includes/GlobalFunctions.php(420): MessageCache->get('mainpage', true, true)
 * 8) 7 /DBLOCATION/includes/GlobalFunctions.php(379): wfMsgGetKey('mainpage', true, true, true)
 * 9) 8 /DBLOCATION/includes/GlobalFunctions.php(328): wfMsgReal('mainpage', Array, true, true)
 * 10) 9 /DBLOCATION/includes/Title.php(275): wfMsgForContent
 * 11) 10 /DBLOCATION/includes/Wiki.php(74): Title::newMainPage('mainpage')
 * 12) 11 /DBLOCATION/index.php(17): MediaWiki->checkInitialQueries
 * 13) 12 {main}

Exception caught inside exception handler: exception 'DBUnexpectedError' with message 'Error in fetchObject: Incorrect information in file: './DBNAME/page.frm' (localhost)' in /DBLOCATION/includes/Database.php:825 Stack trace: Paths renamed for security reasons. When I check out the DB and try to repair it (doesn't work btw) I see that the table objectcache is giving out an SQL #1033 error. Does anyone have any ideas on how to fix this? 84.67.189.245 14:23, 15 May 2007 (UTC)
 * 1) 0 /DBLOCATION/includes/MessageCache.php(315): Database->fetchObject(false)
 * 2) 1 /DBLOCATION/includes/MessageCache.php(252): MessageCache->loadFromDB
 * 3) 2 /DBLOCATION/includes/MessageCache.php(442): MessageCache->load
 * 4) 3 /DBLOCATION/includes/GlobalFunctions.php(420): MessageCache->get('databaseerror', true, false)
 * 5) 4 /DBLOCATION/includes/GlobalFunctions.php(379): wfMsgGetKey('databaseerror', true, false, true)
 * 6) 5 /DBLOCATION/includes/Exception.php(18): wfMsgReal('databaseerror', Array)
 * 7) 6 /DBLOCATION/includes/Database.php(212): MWException->msg('databaseerror', 'Database error')
 * 8) 7 /DBLOCATION/includes/Exception.php(109): DBQueryError->getPageTitle
 * 9) 8 /DBLOCATION/includes/Exception.php(76): MWException->htmlHeader
 * 10) 9 /DBLOCATION/includes/Exception.php(95): MWException->reportHTML
 * 11) 10 /DBLOCATION/includes/Exception.php(171): MWException->report
 * 12) 11 /DBLOCATION/includes/Exception.php(205): wfReportException
 * 13) 12 [internal function]: wfExceptionHandler(Object(DBQueryError))
 * 14) 13 {main}


 * Since posting this I dropped the table and recreated it to the correct structure. Of course it's now empty, and I'm getting a different 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 "User::loadFromDatabase". MySQL returned error "1033: Incorrect information in file: './DBNAME/user.frm' (localhost)".

The user.frm part of the error changes randomly between user.frm, job.frm and page.frm

Any ideas? It seems there's a whole bunch of questions on here and very little in the way of support. Do we take it that mediawiki is unsupported software? I'll encourage people to avoid using it if that's the case.

Spider (Swish-E or other external program) Authentication on MediaWiki
Hello -- I am attempting to use Swish-E to spider a local MediaWiki-based intranet that uses default database authentication to access its pages. I am trying to figure out a way to authenticate the spider (so it can proceed with the spider job) without having to whip up something special inside of the wiki (the installation doesn't "belong" to me). (The spider software saves cookies, btw).

The MediaWiki login page uses a POST method -- a GET-based alternative may work, but can't find any info on it.

Does anyone have any advice as to an approach?

thanks Robin

User.php customisation
I've added some checks on user credentials to loadFromDatabase in Users.php, but right at the start of that function, there's this check: if ( $this->mDataLoaded ) { return; } I'm returning at this point every time - even masquerading as different users and even at the first login after a reboot!. This variable is set further down the function, but I can't find out how it's reset - obviously I could do some dirty hacking, but I'd prefer to get a better understanding of what's going on and "do the right thing".

I'd be grateful for some enlightenment!

How to Dump Raw Wiki text from an Extension??
Does anyone know how to output RAW Wikitext from an Extension? Basically in the edit secton of a wiki page i have 3 headers and then I want to call an extension and have it output a 4th header. I want all 4 headers to be in the page's table of contents. I am able to display the header that the extension returns but it doesnt show up in the table of contents.. Any ideas?? Ex.)

Problems with language transalations
I upgrade mediwiki from 1.9.1 into 1.10.1 and when I am openning special pages I see some messages in polish and some in english (file with messages has correct transalation for polish but it is not show to me!)

Anybody meet such problem and knwo how to solve it?

Is it possible build a structured wiki with the MediaWiki application?
We are evaluating MediaWiki as a possible candidate for managing the documents of our projects (we are a small University lab). We like the "wikiness" of Mediawiki, it is fast, simple, traceable and very elegant. Our goal is to have several projects with collaborative documents, with separate editors in each. But we don't know if it is possible to structure minimally the contents with Mediawiki (like TWiki do). For instance, assign editors, contributors and readers to each project (we have 5/6 project every two years).

Best regards, M. F. Technical University of Catalonia (www.upc.es)


 * What do you mean by "structure"? It sounds like you are talking about access control; Basically, MediaWiki is designed to be open, not restrictive, and access control is contrary to the concept of a wiki. Restricting access is possible to some extend, but see Manual:Preventing access for the gory details. -- Duesentrieb ⇌ 10:27, 20 May 2007 (UTC)


 * Thanks Duesentrieb for your wiki aswer. Our work is a colaborative research (and open to all comunity when it is finished) but it needs some basic access control when this work is not concluded or non-tested. A question that is important to me is how to prevent that a mediawiki category can be readed for non-registerd users?

MediaWiki and SAML
I am researching if MediaWiki might be suitable for a central wiki service at the University of Oslo. I have searched the help sites and forums, but can't find any info relating to SAML (http://en.wikipedia.org/wiki/SAML). I need to know if Mediawiki works with SAML v. 2.0. Has this been tried anywhere?

Searching for IP Addresses
Hi,

we use mediawiki for internal documentation. Is there a way to search for ip addresses? I know, there are lots of them, but the dot between the numbers splits up my searchstring. So, if i search for 192.168.1.1 there is found everything, what contains "192", "168" and "1". :-(

Any hints for me?

regards, Michael

Can't get access to SVN - Need CheckUser
I can't get access to the SVN. Does anyone know why this is? I have tried using TortoisSVN and also Subversion but both are not working. Am I doing something wrong? I am trying to get the checkuser page, as I need to know an IP address of a user that is posting on my wiki Any help is much appreciated Thanks


 * You will need to provide details of what you're trying to do and any errors you are encountering. robchurch | talk 23:42, 23 May 2007 (UTC)

Why are "my contributions" pages empty?
I noticed that all my "my contributions" pages on my wiki are empty. What could be the problem? The "Recent changes" page is working properly.

I am using MediaWiki 1.10, MySQL 5, PHP 5 and I've made my wiki "private" whereby only the sysop can creat accounts and only logged-in users can view/edit pages.

Any advice, hints or comments would be greatly appreciated!

Show images from Wikipedia Server
Hi! I have established MediaWiki, have loaded Wikipedia's dump into a database, but I can not adjust, that images showed to the user from a site Wikipedia's server (require and loading should be made browser). How I can make it? Thank you! (NetPerson)

Is there such a thing as a trouble free upgrade???
I'm running:
 * MediaWiki: 1.6.10
 * PHP: 4.3.11 (apache2handler)
 * MySQL: 4.1.19-standard

and want to upgrade to a new dedicated server with all the latest versions of the above three. I'm scared to death. Upgrades sound impossible. Has anyone ever done a smooth upgrade? Any tips on where to find info on this upgrade would be insanely appreciated. The php4 platform to php5 platform seems especially touchy. Help Please.

Wikipedia Image Dumps
Where can I get wikipedia Image dumps.

The links and torrents specified in the wiki are either defective or inaccessible. It seems that there is no available image dumps at the moment. Scraping pages is the only option and this will choke wikipedia bandwidth.

Embedded objects. Is it possible?
Is there any way to embed objects like videoclip from Youtube, video.google, etc. into a mediawiki document (or maybe using one of others wiki-engines)  ? I mean that I want to see in my wiki document inner window with a first frame of videoclip and button "Start". When user clicks on thas bar clip playing begins directly on the page without loading site containing this clip.

For example I got html string from youtube for arbitrary clip that can be embedded in html :   

Is it possible? --Makondo 23:15, 23 May 2007 (UTC)


 * Perhaps try one of the YouTube extensions. — color probe — Talk  — Contribs  ☼  08:38, 27 May 2007 (UTC)

How to add an entry to the log?
I am currently using the debug facility to show what my customised login routines are doing, but now that they're almost working, I'd just like to add an entry to the change log with appropriate details if access is denied. I've looked around, searching on log and logging, but although I've found the format of the logging table, I can't find out how to add an entry to the log. I'd appreciate being told how to do it! Thanks in advance.

hey may i know how to add side bars in media wiki

Problems...
During the last day or two, I can't edit or preview any block of text that is longer than 500 characters or so, either with or without logging in. When I press "save", I have to wait for five minutes, until the well-known "wikipedia error" message finally appears. I can start a new section (like I do now) but I can't reply to any discussion or edit any article that is longer than two or three lines. It's the same in Opera, Firefox, and IE. The problem affects only Wikimedia projects; I may still post (and preview my messages) in Google Groups. I have to reduce my contributions drastically as long as the glitch persists. What may be the problem? --Ghirlandajo 17:23, 24 May 2007 (UTC)

External access problems
I've just installed MediaWiki and it works fine within my local network. However when I try and access the Wiki externally from work I can get access by going to the ip address and then ~jamessutton/wiki/index.php/Main_Page but if I try and get access by going to the ip address and then ~jamessutton/wiki/ without the index.php?Main_Page I get redirected to www.james-sutton.local. Does anyone know why I get redirected to this local network name on my iMac? My ip address gets generated dynamically so I was wondering whether this might be the cause.

session.save_path read/write/exe errors
I am trying to install MediaWiki 1.10 on a Fedora Core Server and I keep getting the good old error

"Your session save path appears to be invalid or is not writable. PHP needs to be able to save data to this location in order for correct session operation. Please check that session.save_path in PHP.ini points to a valid path, and is read/write/execute for the user your web server is running under."

I have checked the session.save_path and the folder it points to and they are setup correct. The file has read/write/exe privs (777) and I still get this error. Any ideas.

I have the same problem at my server and I just commented out section where this is checked. It's in config/index.php and starts with else { # Something not right? Halt the installation so the user can fix it up dieout( "Your session save path appears to be invalid or is not writable. ... } Installation proceeds and wiki seems to work ok (well I have problem with edit link, which is producing blank page, but I don't think it's because of session.save_path)


 * The check added at install time is a bit dubious in some special cases, and will be corrected or turned into a conventional warning. robchurch | talk 18:19, 28 May 2007 (UTC)

Reloading
I have installed Mediawiki 1.6.10 because of the PHP 4 compatible server. And it's a free server, and they have a software not to allow users to hide their ad banner on the top of the page. So Mediawiki is constantly reloading, because it wants a whole window. I heard that at e107 there is a command, which is causing the same problem:

if(parent.frames[0]) { parent.location.href = self.location.href; }

But I couldn't find similar among 1.6.10 files. What should I do now?


 * In your file, find the following:

// Un-trap us from framesets if (window.top != window) window.top.location = window.location;
 * And remove it. After that, clear your cache (ctrl+f5, shift+f5 or some other key combination), then things should work properly. — color probe — Talk  — Contribs  ☼  15:05, 26 May 2007 (UTC)

Oh yes, thank you very much! And have a nice day! :-D


 * After I thought everything is going fine, I had to realize that I exported the XML files from a 1.9.3 Mediawiki system, and it's not compatible with the 1.6.10. And I'm using a Hungarian version of 1.6.10, and there are many small bugs, and the translation is incomplete at all despite 1.9.3 is really much better. Is there a chance to create an improved version of Mediawiki for PHP 4 servers? I know that it's not the least technology, but many server hosts don't like to update their system to PHP 5, telling that it's not enough stable (even though they're not true at all).

Wiki site works, but edit, history etc. produces empty page
I installed MediaWiki and it seems to work well, but when I click on edit, history, lock and delete, the link produces empty page. How can I determine what went wrong and get more detailed info about it? And it's version 1.10.0.


 * A completely blank page usually implies a fatal error caught and suppressed by PHP, or possibly the web server software. Check the Apache and PHP error logs to see what's happening. robchurch | talk 18:17, 28 May 2007 (UTC)

How one creates predefinitions?
How one creates predefinitions? (or templates)


 * A template is just a page and is created in the normal manner, however, templates exist in the "template" namespace, rather than the article namespace. For example, the template "foo" would be located at Template:Foo. robchurch | talk 18:16, 28 May 2007 (UTC)

article counter
how can I get access to the actual article-counter in categories? I would like to use this number in an 'info-box' without correcting it manually each time it changes. something like ...--Ullipurwin 15:27, 27 May 2007 (UTC)


 * There's no magic word that fulfills that function in core. It would be quite straightforward to write a parser function extension to do it, although one should consider the performance implications on a large wiki. robchurch | talk 18:15, 28 May 2007 (UTC)

wiki db transfer from one computer to another
I had set up a personal wiki on my old computer, using the tutorial from Lifehacker (http://lifehacker.com/software/wikipedia/geek-to-live-set-up-your-personal-wikipedia-163707.php). Recently, that computer got seriously infected with a nasty virus/worm, and is going to be reformatted in due course. However, I don't want to do that until I'm sure that I've transferred the data from my personal wiki, if I can help it. I have copied the entire wamp folder (which contained the mywikipedia folder) to my new computer, but thus far I've been unable to get it to run on my new computer. If somebody could help me out, I would really appreciate it. If you want to e-mail me instead of trying to get it taken care of here, my address is MrCheshire01 @ yahoo.com.


 * See Manual:Moving a wiki. robchurch | talk 18:11, 28 May 2007 (UTC)

On a website!
I installed Mediawiki without realizing it would put it on my machine. I want to put it on my website, for all to see on the Internet. How should I do this by means of Filezilla? -Homfrog


 * The method is the same, but steps need to be executed on the server upon which MediaWiki is to be run. Upload the files to the web server and run the installation script there via the browser. robchurch | talk 18:13, 28 May 2007 (UTC)

Fatal error: Cannot access protected property OutputPage::$mParserOptions [...]/OutputPage.php on line 47
I get this error if i try to do anything on my newly installed wiki, including clicking on any of the menu links, logging in, or starting a new page. I followed all the instructions in the installation manual and the installation was completed succesfully according to the installation script. Anyone have any idea what might cause this? --81.170.158.69 14:45, 28 May 2007 (UTC) /Kristofer


 * This could be the result of a broken PHP extension such as eAccelerator. robchurch | talk 18:10, 28 May 2007 (UTC)


 * Turned eAccelerator off, fixed it. Anyone know of any good instructions on how to use eAccelerator with WikiMedia. I read through the memcache part of the manual, but i found no usefull information there. Thanks for the help. --81.170.158.69 20:03, 28 May 2007 (UTC) /Kristofer

About Frontpage of website mediawiki.org
Hello i tried and installed mediawiki on my site (www.cheplo.com) i liked this too much. on frontpage of mediawiki website there are three boxe (called hubbox) i tried to find related code or material for that so i can implement that on my website... so please anybody help me for that hubbox ( three boxes that have users,administrator,dev field with computer ,terminal and greenboard icon respectively) so please help me to implement this thing on my website. my email address is chheplo(at)chheplo.com or admin(at)chheplo.com

thank you , regards,

pratik desai


 * Please have a look at the Main Page, click the "view source" tab, then you'll notice in there, scroll down, watch out for Template:Main page (that is the approriate template) and look up how it is done there. It's a rather simple table structure. Have a look at Help:Templates in addition if you are not yet used to embedding pages or templates in other pages. Good luck :-) -- :Bdk:  00:27, 29 May 2007 (UTC)

SVN Access
I can't get access to the SVN through http access. I have tried firefox, IE, Subverion and TortoiseSVN and they all fail. With the browsers I get 404 errors and with the programs I get PROPFIND errors. Does anyone know what I'm doing wrong? I'm trying the address http://svn.wikimedia.org/viewvc/mediawiki/trunk/

How to import posts articles from other forums
How can i import articles and posts from other forums or blogs (wordpress or sth) totaly automating the process, which can work as a bot, a extentions that can work like automatic content filler..