I’ve been using Glen Swinfield’s ExpressionEngine Text Plugin for a while now, and it’s been working a treat until the other day when I had to move my site to a new server.
It’s now on a Mediatemple (gs) server, and for some reason I’m getting parsing errors from the plugin on any page where it is used:
Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/c05/h01/mnt/******/domains/mysite.com/html/admin/plugins/pi.gms_text.php on line 139
I’m also locked out of the Plugin Manager page, and I’m assuming it’s because of the same error.
I would really appreciate any ideas anyone has about fixing this! I’d rather not remove the plugin altogether because it’s used a significant amount throughout my site.
Many thanks in advance…
I’ve been using Glen Swinfield’s ExpressionEngine Text Plugin for a while now, and it’s been working a treat until the other day when I had to move my site to a new server.
It’s now on a Mediatemple (gs) server, and for some reason I’m getting parsing errors from the plugin on any page where it is used:
Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/c05/h01/mnt/******/domains/mysite.com/html/admin/plugins/pi.gms_text.php on line 139
Visit http://all-nations.co.za to see the issue for real.
I’m also locked out of the Plugin Manager page, and I’m assuming it’s because of the same error.
I would really appreciate any ideas anyone has about fixing this! I’d rather not remove the plugin altogether because it’s used a significant amount throughout my site.
Many thanks in advance…
I finally found a solution:
It seems that my new server has a different version of PHP and it was having problems with the following Function on line 139 of the Plugin file:
static function usage()
{
ob_start();
?>
I noticed after a while of staring at the file that a few lines beneath, Glen had kindly included a note:
If your php version is 4.x you need to remove the ‘static’ keyword from the usage function in the plugin file.
So I removed the word ‘static’ from line 139, so it now reads:
function usage()
{
ob_start();
?>
And the problem is solved!
I finally found a solution:
It seems that my new server has a different version of PHP and it was having problems with the following Function on line 139 of the Plugin file:
static function usage()
{
ob_start();
?>
I noticed after a while of staring at the file that a few lines beneath, Glen had kindly included a note:
If your php version is 4.x you need to remove the ‘static’ keyword from the usage function in the plugin file.
So I removed the word ‘static’ from line 139, so it now reads:
function usage()
{
ob_start();
?>
And the problem is solved!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.