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 trialCarla Thomas
Front End Web Development Techdegree Student 16,039 PointsFunctions.php is not functioning as expected
I am building a WordPress site and I am getting the following 'Fatal Error':
Fatal error: Function name must be a string in /home/liveish/public_html/carlathomas.us/wp-content/themes/duvalls cosmetology school_beta test 1.0/functions.php on line 27
Here is line 27. Can anyone see what the problem is? Is there something I am overlooking?
wp_enqueue_script( 'bootstrap_js', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), '', true );
Thanks in advance.
1 Answer
Zac Gordon
Treehouse Guest TeacherIt is possibly the line before that. Can you post the entire function that code is wrapped inside of. Sometimes with PHP errors the problem is on the line before.