eurofurence / crittersystem

Shift planning system for Eurofurence on-site departments forked from the Engelsystem which powers Chaos events.
https://critter.eurofurence.org
GNU General Public License v2.0
8 stars 1 forks source link

Internal error - possible responsible for the 503 #59

Closed RustyBraze closed 1 month ago

RustyBraze commented 2 months ago

Error in the logs for no aparent reason. Suspicious Rusty side: database is not able to keep-up with demand

Investigation is needed and of course, fix the function to not return crap

In the logs, shows an avalanche of entries for this error and the service becomes not available and later goes away...

Exception: theme_id(): Return value must be of type int, string returned
File: /var/www/includes/helper/legacy_helper.php:14
Code: 0
Trace:
#0 /var/www/includes/helper/legacy_helper.php(19): theme_id()
#1 /var/www/includes/helper/legacy_helper.php(25): theme()
#2 /var/www/includes/view/PublicDashboard_view.php(113): theme_type()
#3 /var/www/includes/view/PublicDashboard_view.php(33): public_dashboard_shift_render(Array)
#4 /var/www/includes/controller/public_dashboard_controller.php(67): public_dashboard_view(Array, Array, Object(Illuminate\Database\Eloquent\Collection))
#5 /var/www/src/Middleware/LegacyMiddleware.php(88): public_dashboard_controller()
#6 /var/www/src/Middleware/LegacyMiddleware.php(63): Engelsystem\Middleware\LegacyMiddleware->loadPage('public_dashboar...')
#7 /var/www/src/Middleware/RouteDispatcher.php(45): Engelsystem\Middleware\LegacyMiddleware->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#8 /var/www/src/Middleware/Dispatcher.php(65): Engelsystem\Middleware\RouteDispatcher->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#9 /var/www/src/Middleware/VerifyCsrfToken.php(29): Engelsystem\Middleware\Dispatcher->handle(Object(Engelsystem\Http\Request))
#10 /var/www/src/Middleware/Dispatcher.php(65): Engelsystem\Middleware\VerifyCsrfToken->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#11 /var/www/src/Middleware/ApiRouteHandler.php(54): Engelsystem\Middleware\Dispatcher->handle(Object(Engelsystem\Http\Request))
#12 /var/www/src/Middleware/Dispatcher.php(65): Engelsystem\Middleware\ApiRouteHandler->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#13 /var/www/src/Middleware/ErrorHandler.php(55): Engelsystem\Middleware\Dispatcher->handle(Object(Engelsystem\Http\Request))
#14 /var/www/src/Middleware/Dispatcher.php(65): Engelsystem\Middleware\ErrorHandler->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#15 /var/www/src/Middleware/TrimInput.php(38): Engelsystem\Middleware\Dispatcher->handle(Object(Engelsystem\Http\Request))
#16 /var/www/src/Middleware/Dispatcher.php(65): Engelsystem\Middleware\TrimInput->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#17 /var/www/src/Middleware/AddHeaders.php(24): Engelsystem\Middleware\Dispatcher->handle(Object(Engelsystem\Http\Request))
#18 /var/www/src/Middleware/Dispatcher.php(65): Engelsystem\Middleware\AddHeaders->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#19 /var/www/src/Middleware/ETagHandler.php(22): Engelsystem\Middleware\Dispatcher->handle(Object(Engelsystem\Http\Request))
#20 /var/www/src/Middleware/Dispatcher.php(65): Engelsystem\Middleware\ETagHandler->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#21 /var/www/src/Middleware/SetLocale.php(43): Engelsystem\Middleware\Dispatcher->handle(Object(Engelsystem\Http\Request))
#22 /var/www/src/Middleware/Dispatcher.php(65): Engelsystem\Middleware\SetLocale->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#23 /var/www/src/Middleware/ExceptionHandler.php(31): Engelsystem\Middleware\Dispatcher->handle(Object(Engelsystem\Http\Request))
#24 /var/www/src/Middleware/Dispatcher.php(65): Engelsystem\Middleware\ExceptionHandler->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#25 /var/www/src/Middleware/SendResponseHandler.php(23): Engelsystem\Middleware\Dispatcher->handle(Object(Engelsystem\Http\Request))
#26 /var/www/src/Middleware/Dispatcher.php(65): Engelsystem\Middleware\SendResponseHandler->process(Object(Engelsystem\Http\Request), Object(Engelsystem\Middleware\Dispatcher))
#27 /var/www/public/index.php(23): Engelsystem\Middleware\Dispatcher->handle(Object(Engelsystem\Http\Request))
#28 {main}