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!

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 WordPress Hooks - Actions and Filters An Overview of Hooks in WordPress Working with $wp_filter

WP-Hooks Theme Not working after update

I recently updated the WordPress install for my local development copy of the WP-Hooks website for this course. Since then, whenever I go into the admin panel, the panel is blank. There are no menu items, just a black strip down the left side.

If I use the Customize option, when that window opens I see a page of repetition of the same error message: Warning: var_export does not handle circular references in C:\Users\Wil\Documents\Websites\www.wphooks.dev\wp-content\themes\wp-hooks\examples\export_wp_filter.php on line 2. This is repeated for each output.

Other than the WordPress update, nothing has changed. I am certain it is a problem with the sample theme, because when I switch to a different theme in the Customize window everything works as it should. I understand this is not a full theme, but I cannot continue with the course if I cannot use the admin panel. I am eager for any insights.

Sue Dough
Sue Dough
35,800 Points

Whats the error log say? Do you have wp-debug on?


Debug is on but not throwing an error; and there is nothing in the console log. The issue seems to be with Customize and WP-Admin.

UPDATE: When I changed the functions.php file to require example/wp_title.php instead of list_hooks.php the WordPress functionality comes back. So, it seems I can either list the hooks or see the admin tools.