After a new installation (xibo-cms v. 2.1.2) I loged in with the first admin user, I created during the installation. I did nothing else then authorizing a test display (debian linux client) and wanted to schedule some test layout, but got only an “unexpected error”, trying to access the schedule view
the trace:
#0 [internal function]: Slim\Slim::handleErrors(2, ‘count(): Parame…’, ‘/opt/xibo-cms-2…’, 132, Array)
#1 /opt/xibo-cms-2.1.2/lib/Controller/Schedule.php(132): count(false)
#2 [internal function]: Xibo\Controller\Schedule->displayPage()
#3 /opt/xibo-cms-2.1.2/vendor/akrabat/rka-slim-controller/RKA/Slim.php(79): call_user_func_array(Array, Array)
#4 [internal function]: RKA\Slim->RKA{closure}()
#5 /opt/xibo-cms-2.1.2/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#6 /opt/xibo-cms-2.1.2/vendor/slim/slim/Slim/Slim.php(1355): Slim\Route->dispatch()
#7 /opt/xibo-cms-2.1.2/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#8 /opt/xibo-cms-2.1.2/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#9 /opt/xibo-cms-2.1.2/lib/Middleware/Actions.php(150): Slim\Middleware\MethodOverride->call()
#10 /opt/xibo-cms-2.1.2/lib/Middleware/Theme.php(36): Xibo\Middleware\Actions->call()
#11 /opt/xibo-cms-2.1.2/lib/Middleware/WebAuthentication.php(131): Xibo\Middleware\Theme->call()
#12 /opt/xibo-cms-2.1.2/lib/Middleware/CsrfGuard.php(63): Xibo\Middleware\WebAuthentication->call()
#13 /opt/xibo-cms-2.1.2/lib/Middleware/State.php(120): Xibo\Middleware\CsrfGuard->call()
#14 /opt/xibo-cms-2.1.2/lib/Middleware/Storage.php(48): Xibo\Middleware\State->call()
#15 /opt/xibo-cms-2.1.2/lib/Middleware/Xmr.php(37): Xibo\Middleware\Storage->call()
#16 /opt/xibo-cms-2.1.2/vendor/slim/slim/Slim/Slim.php(1300): Xibo\Middleware\Xmr->call()
#17 /opt/xibo-cms-2.1.2/web/index.php(129): Slim\Slim->run()
#18 {main}
Adding a ‘Display Group’ and assigning the test display doesn’t change anything.
looking into lib/Controller/Schedule.php, I replaced line 132
if (count($displayGroupIds) > 0) {
with
if ($displayGroupIds && count($displayGroupIds) > 0) {
and the schedule page stared.
Any ideas? Seems like a bug to me.
Remarkably: After accessing the page once, the page worked until I removed the browser cache, even after I reverted the change to lib/Controller/Schedule.php