Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress WordPress Theme Development WordPress Header and Footer Templates Porting existing headers and footers into WordPress

My site shows a ugly PHP warning.

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wpt_enqueue_style' not found or invalid function name in C:\wamp\www\wordpress\wp-includes\plugin.php on line 496.

Please, give me a solution.

2 Answers

Chris Shaw
Chris Shaw
26,662 Points

Hi Joy,

You have a typo which is instead of wp_enqueue_style you have wpt_enqueue_style, notice the t shouldn't be there after wp, remove that and you should be good to go.

Happy coding!

Thanks Chris... I jst cleared it up in my functions.php...