I’m using the events manager plugin and get a fatal error if i want to show a category from the events if they are no elements present.
[30-Jul-2021 12:09:05 UTC] PHP Notice: Trying to get property 'post_type' of non-object in /home/domains/(domainname).at-2104/public/htdocs/wp-content/themes/pro-child/func_cpt.php on line 263
[30-Jul-2021 12:09:05 UTC] PHP Fatal error: Uncaught Exception: Unable to load content from post. in /home/domains/(domainname).at-2104/public/htdocs/wp-content/themes/pro/cornerstone/includes/classes/content/class-content.php:54
Stack trace:
#0 /home/domains/(domainname).at-2104/public/htdocs/wp-content/themes/pro/cornerstone/includes/classes/content/class-content.php(25): Cornerstone_Content->load_from_post(NULL)
#1 /home/domains/(domainname).at-2104/public/htdocs/wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-front-end.php(374): Cornerstone_Content->__construct(0)
#2 /home/domains/(domainname).at-2104/public/htdocs/wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-front-end.php(125): Cornerstone_Element_Front_End->get_content(0)
#3 /home/domains/(domainname).at-2104/public/htdocs/wp-includes/class-wp-hook.php(301): Cornerstone_Element_Front_End->post_loaded()
#4 /home/domains/(domainname).at-2104/public/htdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#5 /home/dom in /home/domains/(domainname).at-2104/public/htdocs/wp-content/themes/pro/cornerstone/includes/classes/content/class-content.php on line 54
Categories:
Not empty event categroies like “auffuehrung” or “intern” shown correctly
Is it not possible to subdue the fatal error and show simply nothing?