• Hi,

    On upgrading from 2.0.7 to 2.1, I’m getting a 500 error which is breaking a whole WP install! The site is running on PHP5.4 (It’s on strange hosting where a PHP update would be a total pain, I really know it’s not ideal…)

    The error is:
    PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in …server_stuff/public_html/wp-content/plugins/coursepress/2.0/include/coursepress/data/shortcode/class-template.php on line 88

    Is this a PHP version issue or something else?!

    I can fix it by going back to 2.0.7 and all is happy.

    Any ideas and solutions very gratefully appreciated! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @jpc101,

    Hmm, it seems that the issue is indeed related to PHP 5.4 and older.

    I have forwarded this to our developers and they will look into this as soon as possible.

    Thanks for reporting this in! 🙂

    Best regards,
    Predrag

    Thread Starter jpcdesign

    (@jpc101)

    Thanks Predag 🙂

    Is there any ‘auto updating’ built into CoursePress as well? The last few days, even after I’ve put 2.0.7 back, when the built in wp_update_plugins cron, the plugin looks to have been auto updated and so crashed the site.

    I’ve disabled WP Crons and it didn’t update today! I’ve never had plugins auto update via the default update plugin cron before…

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @jpc101,

    No, CoursePress does not have any functions for auto-updating. Do you manage your sites in services like WPManage? Maybe that is reason that plugins is updating on your site.

    kind regards,
    Kasia

    Thread Starter jpcdesign

    (@jpc101)

    Hi Kasia (my mandolin is called Kaisa!!!).

    The 2.1.0.1 update was working until I logged out and then it all went wonky again! There’s this error message now:

    PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in …serverstuff/public_html/wp-content/plugins/coursepress/2.0/include/coursepress/view/front/class-student.php on line 6

    So I’m currently putting 2.0.7 back again…!!!

    I’m guessing that:
    add_action(‘coursepress_after_settings_username’, array(CoursePress_Helper_UI::class, ‘password_strength_meter’));

    needs to be:

    add_action(‘coursepress_after_signup_email’, array( ‘CoursePress_Helper_UI’, ‘password_strength_meter’));

    But I’ll let the devs push out a proper fix…

    Thanks for clarifying the updating issue. I thought it was unlikely to be CP doing the update. Very strange, I’ve never known plugins update themselves like it was doing. I’ll check with the host and see if they’ve got any strange force update thing configured in their cloudserver set-up…

    Best wishes,

    James

    • This reply was modified 8 years, 10 months ago by jpcdesign.
    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello James,

    I’m sorry for not checking your last message earlier! I send message to developer and she will check that.
    I will get back to you when I will have more info about that

    kind regards,
    Kasia

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Site breaks/500 Error on 2.1’ is closed to new replies.