Warning: Undefined array key 0 in /home1/websev14/public_html/vendor/sgtpqdt/Model/Product.php on line 253

Warning: foreach() argument must be of type array|object, null given in /home1/websev14/public_html/vendor/sgtpqdt/Model.php on line 33
Slim Application Error

Slim Application Error

The application could not run because of the following error:

Details

Type: ValueError
Code: 0
Message: array_rand(): Argument #1 ($array) cannot be empty
File: /home1/websev14/public_html/controller/site.php
Line: 399

Trace

#0 /home1/websev14/public_html/controller/site.php(399): array_rand(Array)
#1 /home1/websev14/public_html/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): {closure}(Object(Slim\Psr7\Request), Object(Slim\Psr7\Response), Array)
#2 /home1/websev14/public_html/vendor/slim/slim/Slim/Routing/Route.php(363): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Psr7\Request), Object(Slim\Psr7\Response), Array)
#3 /home1/websev14/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\Routing\Route->handle(Object(Slim\Psr7\Request))
#4 /home1/websev14/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request))
#5 /home1/websev14/public_html/vendor/slim/slim/Slim/Routing/Route.php(321): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request))
#6 /home1/websev14/public_html/vendor/slim/slim/Slim/Routing/RouteRunner.php(74): Slim\Routing\Route->run(Object(Slim\Psr7\Request))
#7 /home1/websev14/public_html/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Slim\Routing\RouteRunner->handle(Object(Slim\Psr7\Request))
#8 /home1/websev14/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process(Object(Slim\Psr7\Request), Object(Slim\Routing\RouteRunner))
#9 /home1/websev14/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Slim\Psr7\Request))
#10 /home1/websev14/public_html/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request))
#11 /home1/websev14/public_html/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(Slim\Psr7\Request))
#12 /home1/websev14/public_html/index.php(31): Slim\App->run()
#13 {main}
Go Back