We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Text Plugin Parse Error

Development and Programming

Jonathan Morgan's avatar
Jonathan Morgan
51 posts
16 years ago
Jonathan Morgan's avatar Jonathan Morgan

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…

       
Jonathan Morgan's avatar
Jonathan Morgan
51 posts
16 years ago
Jonathan Morgan's avatar Jonathan Morgan

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…

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
16 years ago
Ingmar Greil's avatar Ingmar Greil

Since this is a third party plugin, let me move this thread to the appropriate forum for you …

       
Jonathan Morgan's avatar
Jonathan Morgan
51 posts
16 years ago
Jonathan Morgan's avatar Jonathan Morgan

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!

       
Jonathan Morgan's avatar
Jonathan Morgan
51 posts
16 years ago
Jonathan Morgan's avatar Jonathan Morgan

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!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.