Support » Plugin: The Events Calendar » What’s tribe_catch_and_throw and why is it on non-TEC pages?

  • Some TEC function called tribe_catch_and_throw() has hijacked seemingly all other functions on my website.

    It’s turning what would normally be notices into into PHP Fatal error: Uncaught RuntimeExceptions, but more importantly it’s running on pages that have nothing to do with TEC.

    How do I make it stop?!

    (And of course, its not in the Function documentation, since that hasn’t been updated in 5+ months).

    • This topic was modified 1 year, 2 months ago by justlevine.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Also noticing this issue. Seems like the restore_error_handler() on line 1214 of \common\src\Tribe\Date_Utils.php is not restoring the original error handler properly after switching it two lines above.

    Good catch @josephparsley – i commented out both set_error_handler and restore_error_handler for now. No idea what other effects this might have but it seems to be working for now.

    This remains an issue in 4.9.0.2.

    This continues to be an issue in the latest version — the tribe_catch_and_throw() function is catching non-TEC-related errors and throwing a fatal error, regardless of the error’s initial severity.

    This escalates notices and warnings into fatal errors, which is pretty unacceptable. Obviously you don’t want these things in your code if they can be avoided but an edge case that wouldn’t normally cause a visible issue causes the site to fail.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘What’s tribe_catch_and_throw and why is it on non-TEC pages?’ is closed to new replies.