Slim Application Error

The application could not run because of the following error:

Details

Type: RuntimeException
Message: View cannot render `/pages/404.php` because the template does not exist
File: /home/ampebqe/vendor/slim/php-view/src/PhpRenderer.php
Line: 154

Trace

#0 /home/ampebqe/vendor/slim/php-view/src/PhpRenderer.php(62): Slim\Views\PhpRenderer->fetch('/pages/404.php', Array)
#1 /home/ampebqe/public_html/index.php(65): Slim\Views\PhpRenderer->render(Object(Slim\Http\Response), '/pages/404.php', Array)
#2 /home/ampebqe/vendor/slim/slim/Slim/App.php(491): {closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#3 /home/ampebqe/public_html/index.php(103): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#4 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#5 /home/ampebqe/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#6 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#7 /home/ampebqe/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(73): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#8 /home/ampebqe/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(122): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 /home/ampebqe/vendor/slim/slim/Slim/App.php(370): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#10 /home/ampebqe/vendor/slim/slim/Slim/App.php(295): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#11 /home/ampebqe/public_html/index.php(114): Slim\App->run()
#12 {main}