From: marthter <mar...@ya...> - 2008-04-14 21:04:28
|
Paul Lesniewski wrote: > On Mon, Apr 14, 2008 at 8:00 AM, marthter <mar...@ya...> wrote: > >> Hello list, >> >> For anyone using the beta version of the shared calendars plugin >> (version which acts as a WebDAV server for calendars)... maybe you can >> help me with this... >> >> when I click the new "subscribe" link that the beta version provides >> beside each calendar, it tells me that to subscribe or publish, I should >> use this address: >> >> https://webmail.mydomain.com/plugins/calendar/dav.php.ics?calID=sm_cal_20080327T030136Z >> >> >> I use that in Sunbird as follows: >> - click New Calendar >> - choose On the Network, and click Next (as opposed to the other choice, >> On My Computer) >> - for Format, choose iCalendar (as opposed to CalDAV) and for Location >> use the above address (I've tried both http and https), and click Next >> - give it a Name like "SM mycal" and a Color and click Next >> - type my SquirrelMail username and password in the pop-up and click OK >> - then here's the troublesome part: >> >> a pop-up comes up with the title "An error has occurred" and the message >> "There has been an error reading data for calendar SM mycal. It has >> been placed in read-only mode, since changes to this calendar will >> likely result in data-loss. You may change this setting by choosing >> 'Edit Calendar' " and it has a Details... and OK buttons. If I click >> the Details... button it says: >> >> Error number: ICS_NO_ERROR >> Description: [Exception... "Component returned failure code: 0x804a0100 >> [calIICSService.parseICS]" nsresult: "0x804a0100 (<unknown>)" >> location: "JS frame :: file:///usr/lib/sunbird/js/calIcsParser.js :: >> ip_parseString :: line 60" data: no] >> >> >> If I just paste that subscribe address directly into a browser, I get a >> browser pop-up "Enter username and password for 'SquirrelMail Calendar' >> at https://webmail.mydomain.com" and I put in my SquirrelMail username >> and password. Then it takes me to a page with the SquirrelMail logo, >> and an error message: >> >> Error (in red) >> Error connecting to IMAP server: . >> -1 : >> Go to the login page (blue link) >> >> Any ideas what would cause this? Or suggestions on getting around this >> problem? >> > > Watch your mail server log file when you try to test again. See why > the IMAP server was not reachable. What log events coincide with your > test? > > When I do my SquirrelMail login from the normal login page, I get this in my /var/log/messages: Apr 14 16:23:26 gauss bincimap-up[24468]: connection from 127.0.0.1 Apr 14 16:23:26 gauss bincimapd[24469]: <martin> authenticated Apr 14 16:23:26 gauss bincimapd[24469]: <martin> logged off - bodies:0 statements:3 Apr 14 16:23:26 gauss bincimap-up[24468]: shutting down - read:135 bytes, wrote:469 bytes. Apr 14 16:23:26 gauss bincimap-up[24471]: connection from 127.0.0.1 Apr 14 16:23:27 gauss bincimapd[24472]: <martin> authenticated Apr 14 16:23:27 gauss bincimap-up[24473]: connection from 127.0.0.1 Apr 14 16:23:27 gauss bincimapd[24472]: <martin> logged off - bodies:0 statements:10 Apr 14 16:23:27 gauss bincimap-up[24471]: shutting down - read:503 bytes, wrote:1931 bytes. Apr 14 16:23:27 gauss bincimapd[24474]: <martin> authenticated Apr 14 16:23:27 gauss bincimapd[24474]: <martin> logged off - bodies:15 statements:4 Apr 14 16:23:27 gauss bincimap-up[24473]: shutting down - read:413 bytes, wrote:11453 bytes. When I put this calendar subscribe URL in my browser and put my SquirrelMail user/pass in the browser pop up: https://webmail.mydomain.com/plugins/calendar/dav.php.ics?calID=sm_cal_20080327T030136Z I get no log messages in /var/log/messages nor /var/log/secure nor /var/log/maillog (where other smtp In the webserver error log, on the other hand, it looks like this is the problem: [Mon Apr 14 16:52:38 2008] [error] [client 76.76.76.76] PHP Notice: Undefined variable: squirrelmail_default_language in /usr/share/squirrelmail-1.5.1/plugins/calendar/dav.php.ics on line 134 [Mon Apr 14 16:52:38 2008] [error] [client 76.76.76.76] PHP Notice: Undefined variable: force_username_lowercase in /usr/share/squirrelmail-1.5.1/plugins/calendar/dav.php.ics on line 197 [Mon Apr 14 16:52:38 2008] [error] [client 76.76.76.76] PHP Notice: Undefined variable: imapServerAddress in /usr/share/squirrelmail-1.5.1/plugins/calendar/dav.php.ics on line 205 [Mon Apr 14 16:52:38 2008] [error] [client 76.76.76.76] PHP Notice: Undefined variable: imapPort in /usr/share/squirrelmail-1.5.1/plugins/calendar/dav.php.ics on line 205 My SquirrelMail configuration accesses the Imap server (on the same machine) fine for all other purposes so I'm not sure why these would be detected as undefined. Any tips appreciated. Martin |