DateTime::__construct(): Failed to parse time string (raw)
-
I’m seeing an E_WARNING occur pretty in my logs (I’m running 5.1.5 of the plugin and WordPress 5.5). I haven’t been able to reproduce it locally, but here’s the stack trace I’m seeing on the live server.
in DateTime::__construct called at /var/www/wp-content/plugins/the-events-calendar/common/src/Tribe/Date_Utils.php (1272) in Tribe__Date_Utils::build_date_object called at /var/www/wp-content/plugins/the-events-calendar/common/src/Tribe/Date_Utils.php (1309) in Tribe__Date_Utils::is_valid_date called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Models/Post_Types/Event.php (116) in Tribe\Events\Models\Post_Types\Event::build_properties called at /var/www/wp-content/plugins/the-events-calendar/common/src/Tribe/Models/Post_Types/Base.php (115) in Tribe\Models\Post_Types\Base::get_properties called at /var/www/wp-content/plugins/the-events-calendar/common/src/Tribe/Models/Post_Types/Base.php (146) in Tribe\Models\Post_Types\Base::to_post called at /var/www/wp-content/plugins/the-events-calendar/src/functions/template-tags/event.php (135) in tribe_get_event called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Template/Excerpt.php (72) in Tribe\Events\Views\V2\Template\Excerpt::Tribe\Events\Views\V2\Template\{closure} called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Template/Excerpt.php (126) in Tribe\Events\Views\V2\Template\Excerpt::avoiding_filter_loop called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Template/Excerpt.php (73) in Tribe\Events\Views\V2\Template\Excerpt::maybe_filter_excerpt_more called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Hooks.php (463) in Tribe\Events\Views\V2\Hooks::filter_excerpt_more called at /var/www/wp-includes/class-wp-hook.php (287) in WP_Hook::apply_filters called at /var/www/wp-includes/plugin.php (206) in apply_filters called at /var/www/wp-includes/formatting.php (3845) in wp_trim_excerpt called at /var/www/wp-includes/class-wp-hook.php (287) in WP_Hook::apply_filters called at /var/www/wp-includes/plugin.php (206) in apply_filters called at /var/www/wp-includes/post-template.php (427) in get_the_excerpt called at /var/www/wp-includes/post-template.php (392) in the_excerpt called at /var/www/wp-content/themes/minnpost-largo/template-parts/content-excerpt.php (35) in require called at /var/www/wp-includes/template.php (725) in load_template called at /var/www/wp-includes/template.php (672)
So it seems to be running – at certain times only – when
get_the_excerpt
is called by my theme.There’s a similar error leading to /the-events-calendar/src/views/v2/default-template.php. The stack trace there, if it’s helpful, looks like this:
in DateTime::__construct called at /var/www/wp-content/plugins/the-events-calendar/common/src/Tribe/Date_Utils.php (1272) in Tribe__Date_Utils::build_date_object called at /var/www/wp-content/plugins/the-events-calendar/common/src/Tribe/Date_Utils.php (1309) in Tribe__Date_Utils::is_valid_date called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Models/Post_Types/Event.php (116) in Tribe\Events\Models\Post_Types\Event::build_properties called at /var/www/wp-content/plugins/the-events-calendar/common/src/Tribe/Models/Post_Types/Base.php (115) in Tribe\Models\Post_Types\Base::get_properties called at /var/www/wp-content/plugins/the-events-calendar/common/src/Tribe/Models/Post_Types/Base.php (146) in Tribe\Models\Post_Types\Base::to_post called at /var/www/wp-content/plugins/the-events-calendar/src/functions/template-tags/event.php (135) in tribe_get_event called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Repositories/Event.php (1436) in Tribe__Events__Repositories__Event::format_item called at /var/www/wp-content/plugins/the-events-calendar/common/src/Tribe/Repository.php (862) in Tribe__Repository::first called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Views/Traits/With_Fast_Forward_Link.php (46) in Tribe\Events\Views\V2\Views\Day_View::get_fast_forward_link called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Views/Day_View.php (243) in Tribe\Events\Views\V2\Views\Day_View::setup_messages called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php (1384) in Tribe\Events\Views\V2\View::setup_template_vars called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Views/Day_View.php (175) in Tribe\Events\Views\V2\Views\Day_View::setup_template_vars called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php (597) in Tribe\Events\Views\V2\View::get_html called at /var/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Template_Bootstrap.php (260) in Tribe\Events\Views\V2\Template_Bootstrap::get_view_html called at /var/www/wp-content/plugins/the-events-calendar/src/views/v2/default-template.php (18) in include called at /var/www/wp-includes/template-loader.php (106) in require_once called at /var/www/wp-blog-header.php (19) in require called at /var/www/index.php (17)
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘DateTime::__construct(): Failed to parse time string (raw)’ is closed to new replies.