Re: apple's ical & squirrelmail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/4/07, Peter Teunissen <lists@xxxxxxxxxxxxxxx> wrote:
>
> On 4-mei-2007, at 13:59, Paul Lesniewski wrote:
>
> > On 5/3/07, Peter Teunissen <lists@xxxxxxxxxxxxxxx> wrote:
> >> Hi all,
> >>
> >> I'm wondering if and how I can add .ics files from Apple's iCal
> >> (OSX 10.4.9)
> >> to my calendars with the shared calendar plugin. I cannot seem to
> >> get it to
> >> work:
> >>
> >> - I publish my iCal calendar as an .ics on my webdav server. When
> >> trying to
> >> access it with shared calendars as "http://foo.bar/
> >> mycalender.ics", I get no
> >> error, but no calender is added.
> >
> > access it using what functionality in the plugin?  is your PHP error
> > reporting set to show ALL errors to the screen?  see posting
> > guidelines to verify
>
> OK, details:
>
> calendar from iCal 2.0.5 on OSX 10.4.9
> Squirrelmail 1.4.4 php4 and apache2 on debian linux Sarge 3.1
> Plugin: shared calendar 2.0.1, compatibility, calendar file backend
>
> I do the following:
> 1. click the 'calendar' link in the top menu bar
> 2. type 'http://foo.bar/mycalendar.ics' in the 'Address' field in the
> 'add external calendar' section. And click 'go'
>
> Then, using the debugger plugin I get the following screen:

The debugger will stop on the first notice or error or warning, which
may not be the actual error causing your problem.  However, it is
always good to solve each one.

> Notice: Undefined index:  query in /usr/share/squirrelmail/plugins/
> calendar/functions.php on line 1769

This probably isn't your problem, but to fix this, open that file,
find that line.  It should appear like:

$head = "HEAD ".@$url_info['path']."?".@$url_info['query']."
HTTP/1.0\r\nHost: ".@$url_info['host']."\r\n\r\n";

Change it to:

$head = 'HEAD '.(isset($url_info['path']) ? $url_info['path'] :
'').(isset($url_info['query']) ? '?' . $url_info['query'] : '')."
HTTP/1.0\r\nHost: ".(isset($url_info['host']) ? $url_info['host'] :
'')."\r\n\r\n";


I didn't test this myself, so feedback appreciated.

 -Paul



> Stack Trace:
>
> get_headers()
> /usr/share/squirrelmail/plugins/calendar/functions.php
> line 1769
>
>      get_headers("http://webdisk.onemanifest.net/Peter.ics";, "1")
>      /usr/share/squirrelmail/plugins/calendar/functions.php
>      line 224
>
>          loadexternalcalendar("http://webdisk.onemanifest.net/
> Peter.ics")
>          /usr/share/squirrelmail/plugins/calendar/list_calendars.php
>          line 80
>
>
> My browser information:
>    Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/419
> (KHTML, like Gecko) Safari/419.3
>
> My web server information:
>    PHP Version 4.3.10-20
>    PHP Extensions (List)
>      * 0 = zip
>      * 1 = yp
>      * 2 = xmlrpc
>      * 3 = xml
>      * 4 = wddx
>      * 5 = tokenizer
>      * 6 = sysvshm
>      * 7 = sysvsem
>      * 8 = sysvmsg
>      * 9 = standard
>      * 10 = sockets
>      * 11 = shmop
>      * 12 = session
>      * 13 = posix
>      * 14 = pcre
>      * 15 = overload
>      * 16 = mime_magic
>      * 17 = mbstring
>      * 18 = iconv
>      * 19 = gettext
>      * 20 = ftp
>      * 21 = filepro
>      * 22 = exif
>      * 23 = dbx
>      * 24 = dba
>      * 25 = ctype
>      * 26 = calendar
>      * 27 = bz2
>      * 28 = bcmath
>      * 29 = zlib
>      * 30 = openssl
>      * 31 = apache2handler
>
> SquirrelMail-specific information:
>    Version:  1.4.4
>    Plugins (List)
>      * 0 = message_details
>      * 1 = delete_move_next
>      * 2 = abook_take
>      * 3 = compatibility
>      * 4 = unsafe_image_rules
>      * 5 = user_special_mailboxes
>      * 6 = view_as_html
>      * 7 = html_mail
>      * 8 = listcommands
>      * 9 = show_headers
>      * 10 = calendar_file_backend
>      * 11 = notes
>      * 12 = bookmarks
>      * 13 = vkeyboard
>      * 14 = avelsieve
>      * 15 = password_forget
>      * 16 = calendar
>      * 17 = debugger
>
> My IMAP server information:
>    Server type:  cyrus
>    Server info:  * OK [HIDDEN] Cyrus IMAP4 v2.1.18-IPv6-
> Debian-2.1.18-1+sarge2 server ready
>    Capabilities:  IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-
> REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN
> MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE
> STARTTLS LOGINDISABLED AUTH=NTLM AUTH=OTP AUTH=DIGEST-MD5 AUTH=CRAM-
> MD5 ANNOTATEMORE
>
> >
> >> - when I try to add the .ics directly with the import calendar
> >> feature, it
> >> results in the page taking a long time to refresh and then nothing.
> >
> > see above.  you don't have errors set to display it seems.
> >
> >> The shared calender plugin does work however, since I can add new
> >> empty
> >> calenders with the "Add Personal Calender" button.
> >>
> >> What am I missing?

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux