catalyst / moodle-auth_outage

Planned, graduated user and admin friendly moodle outages
https://moodle.org/plugins/auth_outage
17 stars 32 forks source link

Error when creating new planned outage #314

Open slaudel opened 1 year ago

slaudel commented 1 year ago

I'm playing around with your moodle plugin but couldn't get an outage planned. Everytime I try creating a new planned outage the following error occurs:

This is what is shown in the browser. Error: Unsupported operand types: array + string

The php log shows the following:

Apr 12 09:11:05 moodleapp1 php[112134]: Default exception handler: Fehler: Unsupported operand types: array + string Debug:
Apr 12 09:11:05 moodleapp1 php[112134]: Error code: generalexceptionmessage
Apr 12 09:11:05 moodleapp1 php[112134]: * line 72 of /auth/outage/edit.php: TypeError thrown

We are using PHP 8.0 with Moodle 3.11 on this instance.

jwalits commented 1 year ago

Also ran into this issue recently. It doesn't appear to be related to Moodle version or PHP Version.

When creating the outage, if we leave either of Warning Duration or Outage Duration to 0, it will produce that error.

I can bypass it for now, but just adding a note here - if/when we take a look at fixing this issue