• I just updated the “Share This” pluging and now I get the following error code when I attempt to access my site.

    Parse error: syntax error, unexpected T_DNUMBER in /home/cbcrockv/public_html/wp-content/plugins/share-this/sharethis.php on line 32

    I went into the cPanel and according the code edit screen, line 32 has the following:
    $_stversion=7.0.1;

    This is our church’s website and it’s down until I figure this out. I can’t even get in to disable the plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • FTP into your site (or whatever file management application your host provides) & delete the wp-content/plugins/share-this folder.

    Yep, something is wrong with the update. As esmi said, FTP and delete or rename the plugin. But don’t try to install it again. I tried and got the same error again.

    Thank God I have a testing site!!!

    Looks like they forgot to enclose the plugin version string in quotes at line 32…

    Simply add single or double quotes around the plugin version for a quick fix.

    Hope this helps!

    Edit:
    This –> $_stversion=7.0.1;

    Should be like this –> $_stversion=’7.0.1′; or $_stversion=”7.0.1″;

    Thread Starter G Hinson White

    (@g-hinson-white)

    Hey guys; thanks so much for the prompt responses. I put quotes around the version number but then I got an error for line 34 so I just deleted the plugin folder. Problem solved.

    Thanks again.

    Well I inspected the rest of the code following line 32 and didn’t find anything problematic. I upgraded the plugin to the same version as yours and got the same issue, but I recognized the problem immediately since I’m a PHP developer. If deleting the plugin fixed your issue that’s ok. Just wait for a newer version and retry or find an older one.

    P.S.
    If you wan’t to give it a try once more…

    Please make sure:
    you kept the variable name as $_stversion,
    you kept the = sign after that.
    have wrapped the version number in single or double quotes (don’t mix single with doubles)
    and finished the line with the semicolon symbol ;

    $_stversion=’7.0.1′;

    or

    $_stversion=”7.0.1″;

    Also don’t copy-paste from this thread it might include extra characters from formatting etc. Do it manually!

    ??

    Worked for me, thanks!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘syntax error with " Share This" plugin’ is closed to new replies.