I need help with a parse error from my S2member plugin update

Parse error: syntax error, unexpected ‘[’ in /home/content/78/8103878/html/bibleplan/wp-content/plugins/s2member/includes/classes/cache.inc.php on line 56

My Wordpress host takes me to the file manager line 56 but doesn’t know what to do there. Can I delete the line? Can I delete the plugin from the file manager without problems? Please advise.

I’m currently facing exactly the same problem, can’t login to Wordpress to try and fix it either as all I’m getting on every page of the website is this parse error.

Any help appreciated.

Just install the newest version by FTP and site will be back up. There was a problem in s2M, which creates such effect for PHP versions older than 4.0, it depends of what PHP version runs your hosting. Now s2M version 160424 is fixed.

Hi Krum,

This sounds promising. My host server takes me on my File Manager to the exact line of the problem. But they can’t help me from there. Do I remove the plugin somehow and then install an older one? Please advise me.

Thanks for your help.

Gene

So long as you have s2member’s deletion safeguards active, just delete the s2Member folder and then install the new one.

You can perform the installation either through FTP or in the usual way from within WordPress.

Hi Tim,

How can I check to see if my deletion safeguards are active? Can I check on my other web site that I didn’t install the upgraded plugin that crashed my site? Where exactly to I find these safe guards?

Thanks for your help.

Gene

See s2Member → General Options → Plugin Deletion Safeguards for more information. But they are enabled by default so, if you didn’t touch them, they will be active.

@Genesipprell: Delete your /wp-content/plugins/s2member directory with all the content, you can use FTP or File manager, as you prefer. Or ask hosting admins to delete it. This will unlock your site. Then go to dashboard and install s2M again. That’s all. You should have all your settings, but it’s good to check.

Thanks Krum. It worked.

I really appreciate it.