Ben

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Cannot import into calendar ics (malformed response) #1139670
    Ben
    Participant

    I discovered a code issue that might be causing this error.

    <b>Parse error</b>: syntax error, unexpected T_OBJECT_OPERATOR in <b>/wp-content/plugins/the-events-calendar-importer-ical/src/Tribe/Utils/Timezone_Parser.php</b> on line <b>104</b><br />

    
    if ( ( new DateTime( $definition->getProperty( 'DTSTART' ) ) )->format( "c" ) == ( new DateTime( $transition["time"] ) )->format( "c" ) && $transition["offset"] === $this->parseOffsetToInteger( $definition->getProperty( 'TZOFFSETTO' ) ) ) {

    format is being called on a non-date object.

    I changed to:

    if ( ( new DateTime( $definition->getProperty( 'DTSTART' )->format( "c" ) ) ) == ( new DateTime( $transition["time"]->format( "c" ) ) ) && $transition["offset"] === $this->parseOffsetToInteger( $definition->getProperty( 'TZOFFSETTO' ) ) ) {

    and was able to import my events.

    • This reply was modified 7 years, 10 months ago by Ben.
    in reply to: Cannot import into calendar ics (malformed response) #1138273
    Ben
    Participant

    I’m also running into the same issue from a Trumba ics feed. When I run it through a validator it fails and am wondering if that is the cause of it?

    http://severinghaus.org/projects/icv/?url=http%3A%2F%2Fwww.trumba.com%2Fcalendars%2Frankens_calendar.ics

Viewing 2 posts - 1 through 2 (of 2 total)