Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Chad Passaro
Chad Passaro
1,089 Points

Creating default object from empty value in customizer-setup.php

Getting an error after added Customizer code from Customizer course. The error i am receiving is

Warning: Creating default object from empty value in C:\MAMP\htdocs\webTemplates\wp\wp-content\themes\FST-master\includes\customizer-setup.php on line 123

In the customizer-setup.php file line 123 is $wp_customize->get_section('nav')->panel = 'general_settings';

I was adding this code to a nightly install of wordpress (4.3) and thought that might be the issue but i have also tried it out on a 4.2.3 but received the same error.