Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /home/swissmarkets/sites/swissmarkets.com/releases/20201224123134/web/app/themes/swissmarkets/functions.php:495
Stack trace:
#0 /home/swissmarkets/sites/swissmarkets.com/releases/20201224123134/web/app/themes/swissmarkets/template-category-event.php(12): get_event_posts(2)
#1 /home/swissmarkets/sites/swissmarkets.com/releases/20201224123134/web/wp/wp-includes/template.php(686): require('/home/swissmark...')
#2 /home/swissmarkets/sites/swissmarkets.com/releases/20201224123134/web/wp/wp-includes/template.php(643): load_template('/home/swissmark...', false)
#3 /home/swissmarkets/sites/swissmarkets.com/releases/20201224123134/web/wp/wp-includes/general-template.php(167): locate_template(Array, true, false)
#4 /home/swissmarkets/sites/swissmarkets.com/releases/20201224123134/web/app/themes/swissmarkets/category-event.php(2): get_template_part('template-catego...')
#5 /home/swissmarkets/sites/swissmarkets.com/releases/20201224123134/web/wp/wp-includes/t in /home/swissmarkets/sites/swissmarkets.com/releases/20201224123134/web/app/themes/swissmarkets/functions.php on line 495