User:Simsong/Calendar-BugsAndFeatureRequests

Note:: This is the bug and feature request list for Hex2bit's calendar, which I have taken over.

=Bugs=
 * Doesn't work properly under some MediaWiki 1.11 installations (but works under others)
 * Works count:
 * Dooesn't work count: XXXXX
 * Line 430 of Calendar.php has a typo of the $this variable as $his
 * Partly works on a Win 2k3 server running Apache 2.2.* and MW 1.11.*. When I named the directory "cal" I got the error "The requested URL /wiki/extensions/Calendar/CalendarAdjust.php was not found on this server." It doesn't seem to like other directory names. Aside from that, it works for me. --Barista 15:55, 4 February 2008 (UTC)
 * Also, when I create an event, it appears on the calendar as a link, but the link goes to the Main Page, not the one for the calendar entry. It looks like the software is feeding an empty url. When I hover over the link, the browser's status bar reads  http://www.example.com/wiki/index.php?title=  --Barista 17:23, 4 February 2008 (UTC)
 * Getting the same thing, error log says it's not getting the title on line 529 of Calendar.php $title is giving an object reference rather than a string of the title. Probably a horrible fix as I am not a programmer and not very familiar with php, but after lots of playing around and dumping the object with var_dump I made it work with the following:


 * line 558 from:
 * to
 * to


 * line 564 from:
 * to
 * to


 * I think there is a problem with the getTitle returning the object reference rather than the correct uri title.
 * Thanks. I changed the code as you recommended and now it works. --Barista 14:42, 12 February 2008 (UTC)
 * I'm glad it worked, I know accessing the variable out of the object is bad practice and it should get a real fix. --Bill, 25 February 2008


 * Easier Fix
 * line 543 from:
 * to
 * to

ie... change the $title varaible to contain the article title rather then the article object id


 * Installs fine, looks normal. "Add Event" link takes me to a page that cannot be displayed.
 * I experienced this running on MW 1.11.0 on IIS. I was able to fix by removing the references to the $wikiRoot variable in the CalendarAdjust.php file.  It appears $wikiRoot was not getting set correctly.  So for example, instead of require_once( $wikiRoot . '/includes/Defines.php' ); use require_once( '../../includes/Defines.php' );  In addition, as noted by someone else, I also had to change the order to load LocalSettings.php BEFORE ProfileStub.php.
 * Working well in 1.11.1 after the $his typo is fixed but may cause problems if using extensions using profiling functions because LocalSettings.php is included before includes/ProfilerStub.php ; loading them in the right order solves the problem. Using ISO-8601 dates formating in calendar pages titles would be appreciated. --Menelos 2008-03-12 CEST

=Feature Requests=
 * Put calendar entries in their own namespace
 * Put all calendar entries for a single date in a single entry
 * Merge in calendar entries from an SQL database