• Resolved LJ

    (@phrasewrite)


    First off, let me congratulate, thank you (I’ve already donated and others should!) for this splendid plugin.

    I’ve installed it on a new website and this is the first time I have encountered any error issues. I’ve dug around trying to figure out what might be triggering this and now turn back to you.

    Here’s the error
    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in wp-content/plugins/promotion-slider/index.php on line 46

    Looking at line 46 in the index.php for the plugin is not giving me any clues.

    Do you have any direction for me?

    This is a very basic WP site. The only change I have made is replacing the php includes for name and description in the header area of the page template with coded text and a url. But I replaced those files with the original to test again, and the same error happens.

    Standing by for any and all insight/guidance and thank you again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter LJ

    (@phrasewrite)

    More info, I tested it on Twenty Ten 1.2 theme and I receive the same error. Linux server is PHP 5 at Godaddy.

    Plugin Author Micah Wood

    (@woodent)

    Line 46 in index.php should have the word ‘private‘ in it. Change this to ‘var‘ and see what happens.

    Do you know the exact version of PHP that is running (i.e. 5.1.3)?

    Thread Starter LJ

    (@phrasewrite)

    Hi –

    Thank you for the quick response. SO I changed line 46 to

    var $post_type = ‘ps_promotion’,

    And that didn’t do the trick. Then I changed it back to

    private $post_type = ‘ps_promotion’,
    and reloaded it, and that didn’t work

    Then I called Godaddy and asked they upgraded the PHP version to 5.2.14

    This took care of it.

    Thank you for asking about which version of 5 was on our server because this made me curious enough to find out if there was a better version available. Who knew?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Promotion Slider – activation fatal error unexpected t_string’ is closed to new replies.