• We are getting a TypeError when we try to use this Google Calendar iCal feed with the Events block that comes with the Coblocks plugin. The feed validates, and I have been unable to isolate which event in the feed is triggering the error.

    Error message: 

    Uncaught exception ‘TypeError’ with message ‘DateTimeZone::__construct(): Argument #1 ($timezone) must be of type string, DateTimeZone given’ in /code/wp-content/plugins/coblocks/includes/ical-parser/class-coblocks-ical.php:2653

    in DateTimeZone::__construct called at /code/wp-content/plugins/coblocks/includes/ical-parser/class-coblocks-ical.php (2653)
    in CoBlocks_ICal::parse_ex_dates called at /code/wp-content/plugins/coblocks/includes/ical-parser/class-coblocks-ical.php (1372)
    in CoBlocks_ICal::process_recurrences called at /code/wp-content/plugins/coblocks/includes/ical-parser/class-coblocks-ical.php (769)
    in CoBlocks_ICal::init_lines called at /code/wp-content/plugins/coblocks/includes/ical-parser/class-coblocks-ical.php (622)
    in CoBlocks_ICal::init_file called at /code/wp-content/plugins/coblocks/includes/ical-parser/class-coblocks-ical.php (648)
    in CoBlocks_ICal::init_url called at /code/wp-content/plugins/coblocks/src/blocks/events/index.php (37)
    in coblocks_render_coblocks_events_block called at /code/wp-includes/class-wp-block.php (258)
    in WP_Block::render called at /code/wp-includes/blocks.php (1484)
    in render_block called at /code/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php (190)
    in WP_REST_Block_Renderer_Controller::get_item called at /code/wp-includes/rest-api/class-wp-rest-server.php (1193)
    in WP_REST_Server::respond_to_request called at /code/wp-includes/rest-api/class-wp-rest-server.php (1041)
    in WP_REST_Server::dispatch called at /code/wp-includes/rest-api/class-wp-rest-server.php (431)
    in WP_REST_Server::serve_request called at /code/wp-includes/rest-api.php (424)
    in rest_api_loaded called at /code/wp-includes/class-wp-hook.php (324)
    in WP_Hook::apply_filters called at /code/wp-includes/class-wp-hook.php (348)
    in WP_Hook::do_action called at /code/wp-includes/plugin.php (565)
    in do_action_ref_array called at /code/wp-includes/class-wp.php (418)
    in WP::parse_request called at /code/wp-includes/class-wp.php (813)
    in WP::main called at /code/wp-includes/functions.php (1336)
    in wp called at /code/wp-blog-header.php (16)
    in require called at /code/index.php (17)
Viewing 1 replies (of 1 total)
  • Plugin Support Aleksandar

    (@gdalex)

    Hey @eizzumdm,

    Thanks for reaching out!

    Have you tried testing with different calendar feeds, and confirmed the issue appears regardless of the feed?

    It’s possible there’s something wrong with the feed itself. If the issue persists with all feeds, have you tried disabling all other plugins/themes on the site, and testing again?

Viewing 1 replies (of 1 total)
  • The topic ‘Type Error with Events Block’ is closed to new replies.