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 TextPHP code
- 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 TextText code
- AddHandler php5-script .php