![]() |
Gateway time out CI 4.4.1 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Gateway time out CI 4.4.1 (/showthread.php?tid=90808) |
Gateway time out CI 4.4.1 - adleon73 - 05-07-2024 I have a project made on Codeigniter 4.4.1 + MySQL The setup is: Routes.php PHP Code: $routes->get('admin_start', 'Admin::index'); Controller: Admin.php PHP Code: <?php .htaccess Code: <IfModule mod_rewrite.c> Switching between these controllers: http://192.168.1.167/gym/admin_rutinas?id=70 or http://192.168.1.167/gym/admin_ejercicios or http://192.168.1.167/gym/admin_start I get a 504 Gateway timeout error after 5min waiting for response On the browser console the call is shown as pending, and never throws an error. I tried to change max_execution_time on PHP to 0 or -1 and I have the same behaivour The database has only a few records, so I don't think it is due to a long response from the server. I'm also having the same behaivour on my hosting. Could it be something related with the framework?, or it is just my code? Thanks. RE: Gateway time out CI 4.4.1 - ozornick - 05-08-2024 After a clean installation, does the default page work? How do you run the server? spark serve or via apache2? RE: Gateway time out CI 4.4.1 - adleon73 - 05-08-2024 Yes, the default page works. And everything works ok except when I switch between the mentioned controllers after two or more times The server runs via Apache2. Thanks. RE: Gateway time out CI 4.4.1 - adleon73 - 05-08-2024 Any ideas? RE: Gateway time out CI 4.4.1 - ozornick - 05-08-2024 Start with a simple one. Comment out the routes except for one + SQL call code and show an empty template. Then uncomment the requests. PHP Code: public function admin_rutinas() RE: Gateway time out CI 4.4.1 - kenjis - 05-09-2024 Try to use "Local Development Server". https://codeigniter4.github.io/CodeIgniter4/installation/running.html#local-development-server If your app works, the issue is your Apache configuration. |