cakephp logo

Cakephp - Parse error: syntax error, unexpected T_STRING

I was just trying out a Cakephp 1.3.x install with a vanilla Croogo CRM installation and got the following parse error when installing onto my MediaTemple hosting :-

Show Plain Text
PHP code
  1. Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR

This error relates to the PHP 4.X version not understanding the function declarations public, private and protected. What I had forgotten was the default fresh install under MediaTemple is PHP 4 for a new domain, don't ask me why but it is.

The simple solution is to put the following in the ../html/.htaccess file :-

Show Plain Text
Text code
  1. AddHandler php5-script .php
Filed under: Cakephp, Hosting  Tags: Mediatemple, Croogo

0 Responses to “Cakephp - Parse error: syntax error, unexpected T_STRING”

Sorry, comments have been closed for this post.