Support » Plugins » [Plugin: Image Widget] Parse error

  • I get this after trying to update:
    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/avparadise/blog/wp-content/plugins/image-widget/image-widget.php on line 24

Viewing 7 replies - 1 through 7 (of 7 total)
  • I have just downloaded this and when I tried to activate it I got the same message.

    I am getting the same error on my Media Temple hosting account, works fine on a generic Linux server though.

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/c00/h00/mnt/000000/domains/example.com/html/wp-content/plugins/image-widget/image-widget.php on line 24

    I just ran into the same problem in my development area. Looks like the upgrade requires PHP5. Line 24 contains the PHP keyword “public” which is PHP5 syntax.

    Mike

    I just upgraded to the latest version of image widget and it won’t activate. Looks like I’m getting the same fatal error.

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/content/p/h/o/phoney36/html/counselingstories/wp-content/plugins/image-widget/image-widget.php on line 24

    Any help yet on this topic?

    Paul

    I just ran into the same problem in my development area. Looks like the upgrade requires PHP5. Line 24 contains the PHP keyword “public” which is PHP5 syntax.

    That was totally the problem, thanks Mike. I thought I was running PHP5 on Media Temple, turns out each domain can run 4 or 5, and some were running PHP4. I switched to 5 and the plugin works just fine!

    I’ve just fixed this in release 3.1.5. Thanks for all the help. Please upgrade and if it work, click the “Works” button on the plugin page. Thanks!

    starwyze

    (@starwyze)

    It’s six months later, 09/2010, and I just tried to upgrade, lost everything, and got the error message:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /hsphere/local/home/starwyze/anewmind.net/blog/wp-content/plugins/image-widget/image-widget.php on line 285

    Really like the widget. Please help. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Image Widget] Parse error’ is closed to new replies.