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

Nicolas Torres
Nicolas Torres
1,607 Points

Why am I getting this this error message?

I recently created a child theme for twenty seventeen and activated it while on my live admin. I then realized I should pick a better theme to customise and activated zerif-lite. However after I did this and clicked somewhere on the live admin I got this message:

Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /home/nicoelkp/patternsessions.com/wp-content/themes/zerif-lite/inc/jetpack.php on line 1

Now every time I type my URL 'patternsessions.com' into my browser I get the same message. Could someone tell me how to fix this?

2 Answers

I'd try to isolate the problem by narrowing down "suspects." What I'd do in that situation is either activate another theme (the older Wordpress Themes), deactivate jetpack, reinstall a fresh zerif-lite... etc.

Nicolas Torres
Nicolas Torres
1,607 Points

I fixed this by deleting the Zerif theme out of my child theme folder so that theme was the problem. Thanks!

Good to hear! Goodluck dude!