Toll Free: 1 (888) 979-9321
Locally: 1 (561) 841-1832
 
Monday 10AM - 6PM
Tuesday 10AM - 6PM
Wednesday 10AM - 6PM
Thursday 10AM - 6PM
Friday 10AM - 6PM
Saturday Premium Support Only
Sunday Premium Support Only
*All times are Eastern Time.
Knowledgebase
T_FUNCTION error
Posted by Ryan Walsh on 06 January 2014 09:04 AM

If you are receiving this error...

PHP Parse error: syntax error, unexpected T_FUNCTION

You will need to contact your host and ask for them to  make sure the PHP version of the server is updated to PHP 5.3.0 or higher. 

If you have ensured your server's PHP version is at least 5.3.0, or you have a dedicated server or VPS, and are still receiving this error, please send us over your root access and WP URL and login information so we can debug the issue. 

If you are using HostGator, this can be done by adding these lines to your htaccess file...

#Use PHP 5.3

AddHandler application/x-httpd-php53 .php

For information on how to do this with BlueHost, please go here...

https://my.bluehost.com/cgi/help/447

(1 vote(s))
Helpful
Not helpful

Comments (0)