Parse error after installing PDF Print E-mail
Written by Administrator   
Thursday, 13 March 2008 12:44

When you get a parse error like this:

 

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /..../..../plugins/content/flickrslideshows.php on line 36

 

Your website is running on PHP4. Please install PHP5 and add the following to the .htaccess file in the main directory of Joomla:

 

AddHandler application/x-httpd-php5 .php

 

This should solve the problem.

 

What if you cannot get PHP5 in any way:

 I'm sorry, but we don't support php4. You are allowed to make changes to the plugin to make it compattible to PHP4. The changes required are the result of differences in object oriented progamming in php4 and php5.

Object oriented programming in PHP4
http://www.php.net/manual/en/language.oop.php

Object oriented programming in PHP5
http://www.php.net/manual/en/language.oop5.php

Hope this helps.

Last Updated ( Thursday, 07 August 2008 13:29 )
 
 
 © 2007 J.J.A.Dik