texxasrulez / calendar

GNU Affero General Public License v3.0
15 stars 14 forks source link

Unexpected identifier when connecting the first time on the Calendar #26

Open ericxuo opened 1 year ago

ericxuo commented 1 year ago

Hi,

I've just installed the plugin texxasrulez/calendar and I get this error when I enter in the Calendar menu : image

When I have a look in the Roundcube logs, I see : [03-Nov-2023 12:46:35 UTC] PHP Parse error: syntax error, unexpected identifier "this", expecting variable or "{" or "$" in /usr/share/roundcubemail-1.6.4/plugins/calendar/drivers/caldav/caldav_driver.php on line 170

Do you have any idea about this issue ?

This "might" come from the fact that I had some errors during the database creation : Creating database schema... ERROR: [1050] Table 'calendar_oauth_states' already exists (SQL Query: /* I think I had already installed this plugin quite a long time ago and then uninstalled it. But the databases were still there (and I don't know how to remove them as each time I try I get an error message telling me it is used by another one, so it is not possible to remove it).

Regards.

Xuo.

CodeShakingSheep commented 12 months ago

I run into the exact same error after installing the plugin (dev-master).

[12-Nov-2023 11:36:51 UTC] PHP Parse error:  syntax error, unexpected 'this' (T_STRING), expecting variable (T_VARIABLE) or '{' or '$' in /var/www/roundcube/plugins/calendar/drivers/caldav/caldav_driver.php on line 170

I had never installed it before. How can I make it work?