datasektionen/skywhale

Internal server error

Closed this issue · 0 comments

This line:

if (property_exists($row, 'acceptance_stop') && $row->acceptance_stop !== null)

gives the following error:

[2023-02-27 09:30:03] local.ERROR: First parameter must either be an object or the name of an existing class (View: /app/resources/views/answer-nomination.blade.php) {"userId":647,"exception":"[object] (ErrorException(code: 0): First parameter must either be an object or the name of an existing class (View: /app/resources/views/answer-nomination.blade.php) at /app/app/Models/Election.php:209, ErrorException(code: 0): First parameter must either be an object or the name of an existing class at /app/app/Models/Election.php:209)

Causing a 500 Internal server error at https://val.datasektionen.se/nomination/answer.

I believe this happens when someone has been nominated to a position that was then removed.