Forums

[Plugin: Profile Pic] Fatal error on activation (10 posts)

  1. aahhh82
    Member
    Posted 3 years ago #

    Whenever I try to activate the plugin, I keep getting the following fatal error:
    "Parse error: syntax error, unexpected $end in C:\Inetpub\wwwroot\blog\wp-content\plugins\profile-pic\profile-pic.php on line 852"

    I looked up the line number in the file, but it's the last line. Is there something I'm missing? I'm using WP 2.6.2.

    Any response you can give asap would be greatly appreciated.

  2. latitudes
    Member
    Posted 3 years ago #

    I just tested v.0.9.0 in WP 2.6.2 - works like a charm.

    In my experience, I usually only see the "unexpected $end" error when my ftp program fails to completely upload a file. Maybe try deleting the plugin from your plugins folder, download the .zip again, unzip it, and re-upload it. See if that solves the problem...

    LMK

  3. aahhh82
    Member
    Posted 3 years ago #

    I'll give it a shot though I don't suspect that will do much. I already updated to the lates version of the plugin when I encountered it at first, which was a redownload and unzip of the files. I'm also just hosting this locally on an internal network, so no ftping is being done.

  4. aahhh82
    Member
    Posted 3 years ago #

    nope, just tried redownload and unzip. still didn't work.

  5. latitudes
    Member
    Posted 3 years ago #

    hrm, what version of PHP?

  6. aahhh82
    Member
    Posted 3 years ago #

    PHP 5

  7. latitudes
    Member
    Posted 3 years ago #

    Okay, my best guess is that your php configuration may not like the short <? type of php opening bracket (its an option in the php.ini, enabling short_tags). I've updated the plugin (not a new version release, just made some source code changes) so that the plugin no longer requires short_tags enabled. go ahead and download it again. LMK if that works.

  8. chayner
    Member
    Posted 3 years ago #

    There was an additional <? without the <?php on line 92.

    Once that was changed, it loaded without a problem.

    Thanks!

  9. latitudes
    Member
    Posted 3 years ago #

    thanks, I included that change in 0.9.1!

  10. aahhh82
    Member
    Posted 3 years ago #

    Not sure if it was the latest plugin fixes or my upgrade to WP 2.7, but it actives just fine now. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic