Menu

Import Error

2004-10-14
2013-01-14
  • Nobody/Anonymous

    When trying to import a ics file :

    PHP Parse error:  parse error, unexpected T_PRIVATE, expecting ']' in /space/webroot/www/tmp/webcal/import_handler.php on line 263

    and :

    PHP Parse error:  parse error, unexpected T_PRIVATE, expecting ']' in /space/webroot/www/tmp/webcal/import_ical.php on line 224

    I had to change

    $Entry[Private] to $Entry["Private"] in import_handler.php

    and

    $fevent[Private] to $fevent["Private"] in import_ical.php

    I'm using PHP5 and Apache 1.3

     
    • Nobody/Anonymous

      I can't import Mozilla generated icalendars, it output a parse error.
      You can try with this one :
      http://www.mozilla.org/projects/calendar/caldata/FrenchHolidays.ics

      again PHP5 and Apache 1.3

       
    • Nobody/Anonymous

      I experienced the PRIVATE problem too. It's a reserved word in PHP5. I changed mine to $Entry[Access]

      -Ray

       
    • Nobody/Anonymous

      I believe this issue was already fixed in CVS.

       

Log in to post a comment.