User talk:Patheticcockroach

Hey dude with the funny nickname :) I think your Extension:IM Status is quite interesting, and to give it some more exposure, and to support more i18n, I just added it to the MediaWiki SVN. I also made a few minor patches, most significant I think is delaying the message loading. If you are serious about MediaWiki hacking, I would also recommend that you request commit access to the MediaWiki svn repo, by sending a short mail with a request to brion at wikimedia dot org, accompanied by a public key you can use with your subversion client. Cheers! Siebrand 20:19, 5 October 2008 (UTC)
 * Will do if I find something more to add to the extension ;) Patheticcockroach 07:19, 6 October 2008 (UTC)

Installation differculties
Hello, I'm new to the wiki stuff and I have problems to install your extension:RatingBar... I followed the install instructions but somehow it still doesn't want to work. The php_error.log is saying:

[09-Apr-2009 12:28:27] PHP Warning: require_once(C:\Inetpub\wwwroot\mediawiki/extensions/RatingBar/ratingbar.php) [function.require-once]: failed to open stream: Permission denied in C:\Inetpub\wwwroot\mediawiki\LocalSettings.php on line 282 [09-Apr-2009 12:28:27] PHP Fatal error: require_once [function.require]: Failed opening required 'C:\Inetpub\wwwroot\mediawiki/extensions/RatingBar/ratingbar.php' (include_path='C:\Inetpub\wwwroot\mediawiki;C:\Inetpub\wwwroot\mediawiki/includes;C:\Inetpub\wwwroot\mediawiki/languages;C:\Inetpub\wwwroot\mediawiki/extensions; C:\Inetpub\wwwroot\me diawiki/extensions/Ratings;.;C:\php5\pear') in C:\Inetpub\wwwroot\mediawiki\LocalSettings.php on line 282

I'm just a noob that needs help ^^ AndiRay 11:11, 9 April 2009 (UTC)
 * Looks like a permission problem. But on Windows (Windows Server I suppose?) I don't really know how to fix this. You need to make sure that all files in extensions/RatingBar/ can be read (and maybe executed too) by the user that runs your HTTP server and PHP. Patheticcockroach 12:26, 9 April 2009 (UTC)


 * Yes, it is a Windows Server... actually I first try new extensions on my laptop (just XP) before adding them to the Server (WinServer2008). I managed to install the Extension ArticleComments but when I try to install any Rating Extension I get the same error. Maybee it has to do with scriptfiles or something else, since ArticleComment ist rather "easy" (Some extensions can conflict with maintenance scripts, for example if they directly access $_SERVER (not recommended). http://www.mediawiki.org/wiki/Manual:Extensions Since alot of people dont seem to have a problem it is obviously my fault :( or everyone uses Linux... In XP you cant do chmod 0777 or whatever. Is there some way to give the LocalSettings.php the permission to access the file?  Thanks for answering so fast AndiRay 12:52, 9 April 2009 (UTC)


 * Sorry, I don't know enough about Windows Server to know how to fix this :( Patheticcockroach 11:32, 17 April 2009 (UTC)

Extension:RatingBar Error
Hi, First let me thank you for making the RatingBar extension for MediaWiki, it seems like a great extension. Unfortunately I'm experiencing a problem with it after I've followed the instructions and installed it. After I've added the RatingBar code to a page, whenever someone (either logged in or not logged in) clicks on it to submit a rating, the page displays the following error message:

Warning: mysql_fetch_array: supplied argument is not a valid MySQL result resource in /"path to my directory"/extensions/RatingBar/doqueries.php on line 76

The code in Line 76 of the file doqueries.php as referred to in the error message is: if( !$too_many_votes_with_ip && $action_id=="vote" && ( $uid>0 or $unique_check=='ip' or ( $line3 = mysql_fetch_array($query3) ) ))

Do you know what could be causing this error and how it could be fixed?

Thank you very much for your reply and help, I appreciate it. Sincerely, --Jonem 10:21, 17 April 2009 (UTC)
 * The warning when the user is not logged in is caused by a little mistake in the extension code, for this you need to change your PHP configuration (set "display_errors" to Off), until we find a fix. If you can't change your PHP configuration, you can try to replace "mysql_fetch_array($query3)" with "@mysql_fetch_array($query3)". The warning when the user is logged in is probably caused by a problem with your session name, $site_name isn't handled properly by version 1.0-rc1 of the extension. You may want to check this out, or post a link to a page on your wiki with the rating bar so I can figure out your session name cookie. Patheticcockroach 11:32, 17 April 2009 (UTC)

Thank you very much for the fast reply. I tried to replace "mysql_fetch_array($query3)" with "@mysql_fetch_array($query3)", this caused the error message to disappear but also made the voting function to not work (nothing happened when logged in user or not logged in user tried to vote). The strange thing is that even though I'm logged in, the same message as "you must login or register to vote" is displayed. I don't think the error would be caused by an error in the session name, since the name of the site is just one word. Here is a link to a page on my recently installed wiki with the rating bar: http://www.nicer.info/wiki/index.php?title=Testing Thanks once again for your help, I'm very grateful. Sincerely, --Jonem 13:10, 17 April 2009 (UTC)


 * In config.php, I think you should set:

$table_prefix						= 'nic2';		// Copy value from $wgDBprefix $site_name							= 'capiorse'; // Copy value from $wgSitename?? (not sure about this!)
 * These parameters are needed for the extension to be able to compute your session cookie name (which in your case is capiorse_nic2_session). No session cookie name = can't read the session = can't get the user name = the user can't vote ;) Patheticcockroach 14:10, 17 April 2009 (UTC)