WordPress.org

Ready to get started?Download WordPress

Forums

MailChimp List Subscribe Form
Parse error: syntax error, unexpected T_STRING, expecting T_ (7 posts)

  1. waynerosso
    Member
    Posted 3 years ago #

    Keep getting the following message:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/wrosso/public_html/wp-content/plugins/mailchimp/miniMCAPI.class.php on line 162

    It completely shut down my blog and I could not get to my admin dashboard. I deleted the plugin via FTP and reinstalled. It would not reinstall and I keep getting the above message. I use it in conjunction with Autochimp.

    Can you please help?

    http://wordpress.org/extend/plugins/mailchimp/

  2. mc_jesse
    Member
    Posted 3 years ago #

    What version of PHP are you running? I didn't test v1.2.2 of the plugin against PHP4 and don't have that handy, so I'm going to guess that may be the issue. If that's the issue, you can download v1.2.1 and it should work.

    If not, it sounds like you somehow got an incomplete version of the plugin. I just downloaded it and am not getting any errors (with PHP5), so if that's the case a fresh download might fix it.

  3. waynerosso
    Member
    Posted 3 years ago #

    I'm running PHP5. It was working fine until this morning. I reinstalled several times from my wordpress dashboard and keep getting the same error. Any clue? It's also happening with the official Mailchimp plugin

  4. mc_jesse
    Member
    Posted 3 years ago #

    Ok, what version of PHP5?

    That file wasn't included until v1.2.2, so you can likely just go back to 1.2.1 assuming you just upgraded this morning. However it also doesn't have any syntax errors in the package available for download.

    It's also happening with the official Mailchimp plugin

    That statement makes me worry me that you are mixing multiple things up. The error message you posted is from our official plugin. That plugin is also the only one that will have that file.

  5. waynerosso
    Member
    Posted 3 years ago #

    Oops..sorry..my bad. Didn't mean to mix up.

    Will try 1.2.1

  6. waynerosso
    Member
    Posted 3 years ago #

    That did the trick! Thanks

    1.2.2 totally crashed my site.

  7. ldollar393
    Member
    Posted 3 years ago #

    On a client's site hosted on GoDaddy, I had no problems with the 1.2.2 version of the Mailchimp plugin when it was hosted on Windows. Switched to Linux last night and got this same parse error. Downgraded to 1.2.1 and it works just fine again. This post saved me tearing my hear out. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags