tags:

views:

11

answers:

1

I am seeing this error in a file called functions.php:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'

I just installed a new theme in wordpress, I don't know much php.

Is this something I can fix easily?

+1  A: 

It means the syntax of the file is invalid for the version of PHP you're running it on. It probably means your version of PHP is outdated, i.e. the theme requires PHP5 and you're running on PHP4.

That, or it's a poorly developed theme that has syntax errors.

deceze
from the command line on this shared hosting account, can I check the version of php?
Blankman
@Blankman Probably simply `php -v`. But the version that's invoked from the command line and the one the webserver uses *may* be different. Place a file which contains only [`phpinfo();`](http://php.net/phpinfo) in your webroot and look at it in the browser to get accurate information.
deceze