WordPress calais pluging gives: Parse error: syntax error, unexpected
I recently updated my blog to wordpress 2.5
While I was working on it, I took a look at various plugings available, and I thought I’d try WP Calais Archive Tagger and WP Calais Auto Tagger.
As soon as I tried to activate them, they immediately gave errors:
Parse error: syntax error, unexpected xxxxxxx
where xxxxxxx indicates lots of technical info 🙂
I figured I’d send Dan Grossman an email, asking for advice.
To his credit, he quickly replied, indicating it was a problem with running PHP5 code in a PHP4 environment, and suggested changing .htaccess, or a setting in the website control panel.
Since my cpanel, had no such setting, I did a bit of research, and found that I needed to add 1 line to the .htaccess file in the blog folder:
AddHandler application/x-httpd-php5 .php
Since I discovered that PHP5 can be very different from PHP4, I also double checked all the existing plugins, and the blog in general.
in the end, everything worked well, with no compatibility problems anywhere.