CodeIgniter Forums
submit form and weird 404 error - 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: submit form and weird 404 error (/showthread.php?tid=68174)



submit form and weird 404 error - ciadvantage - 06-05-2017

I have the app running on CI 2.2.x and migrating over 3.1.4 and found this kinda
weird error

the post action = 'employee/process' and it has been working fine for few years under legacy 2.2
now as it is running 3.1.4 it caused error 404 as /employee/process not found!

The Employee.php class has surely contained the method 'process'

What is really happenning here?  IF anyone can tell, 

Thank you


RE: submit form and weird 404 error - pks11 - 06-05-2017

Which server are you using?
Make sure your htaccess rewrite rules are working.


RE: submit form and weird 404 error - stebo - 06-06-2017

What does your config/routes.php look like?


RE: submit form and weird 404 error - InsiteFX - 06-06-2017

Best thing to do here is to check your error log files to see what is causing the error.

Also make sure that you followed all the CodeIgniter 3x upgrade steps.

Make sure that you set the base_url in ./application/config/config.php

Make sure that Controllers and Libraries are ucfirst uppercase named.


RE: submit form and weird 404 error - ciadvantage - 06-06-2017

(06-05-2017, 10:29 PM)pks11 Wrote: Which server are you using?
Make sure your htaccess rewrite rules are working.

My bad,  I forgot to copy .htaccess from my old code over! my bad

Cheers