Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
BenParticipant
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.
July 11, 2016 at 11:42 am in reply to: Cannot import into calendar ics (malformed response) #1138273BenParticipantI’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?
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)