Warning: Attempt to read property "labels" on null in /home/timhatch/public_html/wp-content/themes/bridge-child/functions.php on line 37

Fatal error: Uncaught Error: Attempt to assign property "name" on null in /home/timhatch/public_html/wp-content/themes/bridge-child/functions.php:38 Stack trace: #0 /home/timhatch/public_html/wp-includes/class-wp-hook.php(324): cp_change_post_object('') #1 /home/timhatch/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/timhatch/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/timhatch/public_html/wp-settings.php(695): do_action('init') #4 /home/timhatch/public_html/wp-config.php(164): require_once('/home/timhatch/...') #5 /home/timhatch/public_html/wp-load.php(50): require_once('/home/timhatch/...') #6 /home/timhatch/public_html/wp-blog-header.php(13): require_once('/home/timhatch/...') #7 /home/timhatch/public_html/index.php(17): require('/home/timhatch/...') #8 {main} thrown in /home/timhatch/public_html/wp-content/themes/bridge-child/functions.php on line 38