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 WordPress Theme Development WordPress Header and Footer Templates The header.php and footer.php Files

Vladimir Miletic
Vladimir Miletic
6,201 Points

Hi there, I have a problem with Header and Footer testing

Hi, after I did all coding for Header and Footer, I recerive some table error on my wordpress.

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wpt_theme_style' not found or invalid function name in C:\Users\vladda\Documents\Websites\www.mywp.dev\wp-includes\class-wp-hook.php on line 298

Call Stack

Time Memory Function Location

1 0.0051 195688 {main}( ) ..\index.php:0 2 0.0061 197712 require( 'C:\Users\vladda\Documents\Websites\www.mywp.dev\wp-blog-header.php' ) ..\index.php:17 3 0.2644 15269336 require_once( 'C:\Users\vladda\Documents\Websites\www.mywp.dev\wp-includes\template-loader.php' ) ..\wp-blog-header.php:19 4 0.2816 15523304 include( 'C:\Users\vladda\Documents\Websites\www.mywp.dev\wp-content\themes\vmiletictheme\index.php' ) ..\template-loader.php:74 5 0.2816 15523320 get_header( ) ..\index.php:1 6 0.2816 15523840 locate_template( ) ..\general-template.php:45 7 0.2819 15524040 load_template( ) ..\template.php:647 8 0.2823 15542128 require_once( 'C:\Users\vladda\Documents\Websites\www.mywp.dev\wp-includes\theme-compat\header.php' ) ..\template.php:688 9 0.2857 15551792 wp_head( ) ..\header.php:46 10 0.2857 15551840 do_action( ) ..\general-template.php:2589 11 0.2857 15552256 WP_Hook->do_action( ) ..\plugin.php:453 12 0.2857 15552304 WP_Hook->apply_filters( ) ..\class-wp-hook.php:323 13 0.2857 15553528 call_user_func_array:{C:\Users\vladda\Documents\Websites\www.mywp.dev\wp-includes\class-wp-hook.php:298} ( ) ..\class-wp-hook.php:298 14 0.2857 15553728 wp_enqueue_scripts( ) ..\class-wp-hook.php:298 15 0.2857 15553792 do_action( ) ..\script-loader.php:1296 16 0.2857 15554216 WP_Hook->do_action( ) ..\plugin.php:453 17 0.2858 15554264 WP_Hook->apply_filters( ) ..\class-wp-hook.php:323 18 0.2858 15554848 call_user_func_array:{C:\Users\vladda\Documents\Websites\www.mywp.dev\wp-includes\class-wp-hook.php:298} ( ) ..\class-wp-hook.php:298

Does, anybody knows how to fix this issue?

Thank you,

Vladimir

Vladimir Miletic
Vladimir Miletic
6,201 Points

Unfortunately, I can not post a screenshot.