ErrorException: array_rand(): Second argument has to be between 1 and the number of elements in the array in /var/www/themes/yogik/single.php:5 Stack trace: #0 [internal function]: flight\Engine->handleError(2, 'array_rand(): S...', '/var/www/themes...', 5, Array) #1 /var/www/themes/yogik/single.php(5): array_rand(Array, 0) #2 /var/www/index.php(332): require_once('/var/www/themes...') #3 /var/www/vendor/mikecao/flight/flight/core/Dispatcher.php(167): {closure}('small-bathrooms...') #4 /var/www/vendor/mikecao/flight/flight/core/Dispatcher.php(143): flight\core\Dispatcher::callFunction(Object(Closure), Array) #5 /var/www/vendor/mikecao/flight/flight/Engine.php(322): flight\core\Dispatcher::execute(Object(Closure), Array) #6 /var/www/vendor/mikecao/flight/flight/core/Dispatcher.php(196): flight\Engine->_start() #7 /var/www/vendor/mikecao/flight/flight/core/Dispatcher.php(142): flight\core\Dispatcher::invokeMethod(Array, Array) #8 /var/www/vendor/mikecao/flight/flight/core/Dispatcher.php(48): flight\core\Dispatcher::execute(Array, Array) #9 /var/www/vendor/mikecao/flight/flight/Engine.php(65): flight\core\Dispatcher->run('start', Array) #10 /var/www/vendor/mikecao/flight/flight/core/Dispatcher.php(196): flight\Engine->__call('start', Array) #11 /var/www/vendor/mikecao/flight/flight/Flight.php(77): flight\core\Dispatcher::invokeMethod(Array, Array) #12 /var/www/index.php(349): Flight::__callStatic('start', Array) #13 {main}