Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating new planned outage #314

Open
slaudel opened this issue Apr 12, 2023 · 1 comment
Open

Error when creating new planned outage #314

slaudel opened this issue Apr 12, 2023 · 1 comment

Comments

@slaudel
Copy link

slaudel commented Apr 12, 2023

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
Copy link
Contributor

jwalits commented Jun 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants