• Resolved Jonathan Stegall

    (@jonathanstegall)


    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)
    • This topic was modified 4 years, 3 months ago by Jonathan Stegall. Reason: update stack trace
Viewing 7 replies - 1 through 7 (of 7 total)
  • I’m seeing this fill up my logs as well.

    Hello, I’m seeing this right now and it’s broken my ability to view events in a single page, will only show fill calendar. Did you ever figure this out? I am getting the “raw” as well for the warning.

    Thread Starter Jonathan Stegall

    (@jonathanstegall)

    No, I haven’t been able to figure anything out. I’ve just been checking here and this known issues link every few days to see if it shows up.

    Thread Starter Jonathan Stegall

    (@jonathanstegall)

    I’d like to note that this issue still happens in 5.1.6. I haven’t seen it mentioned on the known issues page, so wanted to try and make sure it gets noticed.

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @jonathanstegall

    I’m sorry to hear that you are still experiencing this issue.

    I have unfortunately not been able to replicate this issue with the most recent version of our plugin and a default WordPress theme.

    As a first step, can you try a quick test and see if the functionality works as expected with a bare WordPress install? A bare install is basically a default WordPress theme like Twenty Twenty and no other plugins besides ours installed. You may want to consider trying this out on a staging site so that you don’t have to switch things around on your live site.

    I hope that helps!

    Thanks,
    Jaime

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help.

    therealgilles

    (@chamois_blanc)

    I am seeing the warning too. Here is a trace if that helps:

    E_WARNING: DateTime::__construct(): Failed to parse time string (raw) at position 0 (r): The timezone could not be found in the database
    
    in DateTime::__construct called at .../public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Date_Utils.php (1272)
    in Tribe__Date_Utils::build_date_object called at .../public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Date_Utils.php (1309)
    in Tribe__Date_Utils::is_valid_date called at .../public_html/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 .../public_html/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 .../public_html/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 .../public_html/wp-content/plugins/the-events-calendar/src/functions/template-tags/event.php (135)
    in tribe_get_event called at .../public_html/wp-content/plugins/events-virtual/src/Tribe/Meetings/Zoom/Password.php (193)
    in Tribe\Events\Virtual\Meetings\Zoom\Password::update_password_from_zoom called at .../public_html/wp-content/plugins/events-virtual/src/Tribe/Meetings/Zoom_Provider.php (181)
    in Tribe\Events\Virtual\Meetings\Zoom_Provider::check_zoom_meeting called at .../public_html/wp-includes/class-wp-hook.php (287)
    in WP_Hook::apply_filters called at .../public_html/wp-includes/class-wp-hook.php (311)
    in WP_Hook::do_action called at .../public_html/wp-includes/plugin.php (544)
    in do_action_ref_array called at .../public_html/wp-includes/class-wp.php (758)
    in WP::main called at .../public_html/wp-includes/functions.php (1285)
    in wp called at .../public_html/wp-blog-header.php (16)
    in require called at .../public_html/index.php (17)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘DateTime::__construct(): Failed to parse time string (raw)’ is closed to new replies.