So I have been using CI4 for a while now but I took quite a long break.
When I recently continued, I started my web server and tried to go to my homepage('/') but it didn't load for 2s then 3s then 10s and finally I got a 504
Gateway Time-out error.The same thing happened with all other defined routes.Showing no errors whatsoever.The logs are literally empty.
However, when I tried an undefined route like /this-route doesnt-exist, I get 404 error just like Im supposed to.No gateway timeout error.
Also, this works:
$route->get('/test',function(){echo 'it works...';});
...for some reason.
But if I put a syntax error(delibrately) in the routes.php file no route works again.Noo defined route nor 404 nor 'function ' route.It just gives the 504 error again.
Please help.You guys are my only hope.Its creeping out like a virus or something