Appointments plugin throwing fatal error after upgrade

Just upgraded appointments+ and am now getting the following error:
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/content/j/a/m/jamikal/html/wp-content/plugins/appointments/appointments.php on line 4920

  • Milan

    Hello @James,

    I hope you are having a good day and thanks for asking us. :slight_smile:

    Cause of this error is php version your site is using currently. Now to solve this issue you can do two things.

    #1) Update php version to php 5.3 or later
    #2) Edit core file of plugin and do suggested below changes. ( Note: Changes won't be preserved when plugin gets updated so you need to keep its backup before you start updating plugin )

    Now somehow if you are not able to update your php version please follow below steps to solve issue,

    #1) Open file /wp-content/plugins/appointments/appointments.php of your site and go to line no 4920. you'll see something like this,

    $installer::uninstall();

    replace that with

    $installer->uninstall();

    You'll need ftp credentials to change file on your host. :slight_smile:

    I hope this helps you.

    Please let me know if there is anything else I can help you with.

    Cheers,
    Milan Savaliya.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.