rgauss/sugar-ical-patch — Issue #2: Undefined offset: in custom/include/iCals/iCal.php on line 282
Author: garyvdm
Created: 2011-12-21 12:34:53+00:00
State: open

I installed the ical module. When I try access the ical, I get a 500 error. If I look at the apache error log, I see:

[Wed Dec 21 14:10:45 2011] [error] [client 192.168.1.162] PHP Notice: Undefined index: num_months in /home/vhttpd/sugar.lsd.co.za/custom/include/iCals/HTTP_WebDAV_Server_iCal.php on line 141
[Wed Dec 21 14:10:45 2011] [error] [client 192.168.1.162] PHP Notice: Undefined variable: gmtTZ in /home/vhttpd/sugar.lsd.co.za/custom/include/iCals/iCal.php on line 272
[Wed Dec 21 14:10:45 2011] [error] [client 192.168.1.162] PHP Notice: Undefined offset: 1 in /home/vhttpd/sugar.lsd.co.za/custom/include/iCals/iCal.php on line 282
[Wed Dec 21 14:10:45 2011] [error] [client 192.168.1.162] PHP Notice: Undefined offset: 2 in /home/vhttpd/sugar.lsd.co.za/custom/include/iCals/iCal.php on line 282
[Wed Dec 21 14:10:45 2011] [error] [client 192.168.1.162] PHP Notice: Undefined offset: 3 in /home/vhttpd/sugar.lsd.co.za/custom/include/iCals/iCal.php on line 282
[Wed Dec 21 14:10:45 2011] [error] [client 192.168.1.162] PHP Notice: Undefined offset: 4 in /home/vhttpd/sugar.lsd.co.za/custom/include/iCals/iCal.php on line 282
[Wed Dec 21 14:10:45 2011] [error] [client 192.168.1.162] PHP Notice: Undefined offset: 5 in /home/vhttpd/sugar.lsd.co.za/custom/include/iCals/iCal.php on line 282

This repeats till the undefined offset approx 320000

Sugar Version 6.3.0 (Build 7004)
PHP Version: 5.3.2-1ubuntu4.11