WordPress.org

Ready to get started?Download WordPress

Forums

EWWW Image Optimizer
[resolved] PHP Parse error (9 posts)

  1. staze
    Member
    Posted 2 years ago #

    Getting the following after upgrading to 1.0.8.

    PHP Parse error: parse error in /WebServer/wp-content/plugins/ewww-image-optimizer/nextgen-integration.php on line 193

    http://wordpress.org/extend/plugins/ewww-image-optimizer/

  2. nosilver4u
    Member
    Plugin Author

    Posted 2 years ago #

    sounds like something is corrupted. Try deleting the plugin, and re-installing.

  3. staze
    Member
    Posted 2 years ago #

    hmm, seems unlikely, but I'll give it a shot. I reinstalled 1.0.7 and it worked fine.

    My thought was that I'm not using NGG, so the add_action may have been causing the issue.

    Will try manual upgrade rather than upgrade through wordpress.

  4. staze
    Member
    Posted 2 years ago #

    yup, same result. Manually deleted and readded the latest version, same exact result.

    And correction, it's line 192 that gives the error, which is funny, since that's a blank line.

  5. staze
    Member
    Posted 2 years ago #

    So, interestingly:

    PHP 5.3.10 shows no syntax errors with bulk.php, or the other php files.

    PHP 5.3.8 does.

    Both on Macs... one running 10.7.4, one on 10.6.8 respectively.

    Looking further.

  6. staze
    Member
    Posted 2 years ago #

    php -l on any of the php files in 1.0.8 gives me syntax errors...

    Not exactly sure why yet...

  7. staze
    Member
    Posted 2 years ago #

    Ah ha, found it.

    On line 28 of bulk.php you used a short open tag -- that is to say, only <? where it should be <?php -- as without short_open_tag enabled, it'll give a parse error, and go boom.

    Same thing on line 87 of nextgen-integration.php.

    ewww-image-optimizer.php is fine.

  8. nosilver4u
    Member
    Plugin Author

    Posted 2 years ago #

    thanks for catching that. I'll release 1.0.9 with the fix

  9. staze
    Member
    Posted 2 years ago #

    Cool, thanks! Already updated, and seems to work.

    Yay habits. =D

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.