Fatal Error on PHP 8+
-
Hi!
After updating to PHP 8 (any version) I got an error “Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given” in “wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php:504”
The issue is in the function “tribe_get_event_cat_slugs”, the “get_the_terms” function returns false for while getting terms and that boolean causes a fatal issue in PHP 8+ while being passed in the “array_filter” function.
To fix this issue a check if the “$terms” variable is false on line 496 should be added.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Fatal Error on PHP 8+’ is closed to new replies.