Forums

php parse error on plugin on one server but not another (3 posts)

  1. worldwidewolfie
    Member
    Posted 2 years ago #

    This may be more of an installation question - not sure but there was a idre waqrning about posting plugin questions on the installation forum, so here I am.

    I have been happily running the 'Simple Image Widget' on one server (Windows 64-bit). When the site went live I moved it to a different server (Windows 32-bit) and exactly the same plugin refuses to activate - returning the following:

    Plugin could not be activated because it triggered a fatal error.

    PHP Parse error: parse error in C:\Websites\site.co.uk\wp-content\plugins\simple-image-widget\simpleimage.php on line 168

    I've reinstalled php so both are running the same version of php (5.2.9-2) but no change.

    I've deleted and reinstalled the widget but no luck. I tried (with very limited knowledge of php) to edit the plugin by removing the offending symbol - } - but fairly sure it was correct to start with so no joy.

    Has anyone encountered this or got any suggestions. The code is identical and previously worked.

    Many thanks.

  2. eeDragon
    Member
    Posted 2 years ago #

    I fixed this problem by editing the simpleimage.php file to use complete php tags "<?php" instead of shorthand php tags "<?" in a couple of places.

    Hope this helps.

    Norman http://www.gameofself.com

  3. vickio
    Member
    Posted 2 years ago #

    I have updated the php tag style in the plugin, so this should be fixed now.

    Chris

Topic Closed

This topic has been closed to new replies.

About this Topic