CodeIgniter Forums
Updating CI 2.2.1 to 3.0 404 Not Found issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: Updating CI 2.2.1 to 3.0 404 Not Found issue (/showthread.php?tid=1520)



Updating CI 2.2.1 to 3.0 404 Not Found issue - jatinsoni - 03-17-2015

Hello,

This is my fist issue have on the board. Hope I will get some guidance to resolve it. Thanks

I have updated Codeigniter from 2.2.1 to 3.0 (current version). So here Most things are working fine. However, I have to resolved some libraries and issue for customized devs.

Now, when I tried to access the page it is giving me 404 Not found error. I checked logs and found strange double slashes in the log path.

Code:
DEBUG - 2015-03-18 09:07:23 --> UTF-8 Support Enabled
DEBUG - 2015-03-18 09:07:23 --> Global POST, GET and COOKIE data sanitized
ERROR - 2015-03-18 09:07:23 --> 404 Page Not Found: ../modules/admin/controllers/dashboard//index

Please see list line of log ERROR just before index you will find double slashes.

Libraries I am using is HMVC and Ion Auth

Since I am using HMVC, I have moved and renamed the Ion Auth under application/modules folder. So finally it is like
Code:
application/modules/users/

Rest of my application is under modules/respective_sections. For example

Code:
Models
=====
application/modules/admin/

application/modules/admin/models/dashboard/Dashboard_model.php
application/modules/admin/models/hr/HR_model.php

Controllers
=======
application/modules/admin/controllers/dashboard/Dashboard.php
application/modules/admin/controllers/hr/HR.php

Views
====
application/modules/admin/views/dashboard/index.php
application/modules/admin/views/hr/index.php

Important:

I am able to access Ion Auth (users) pages without any error and also able to login, logout etc.. but it is just when try to access any admin section it is giving 404 error.

The system was working fine with CI earlier versions.


RE: Updating CI 2.2.1 to 3.0 404 Not Found issue - CroNiX - 03-18-2015

Did you upgrade HMVC to the version compatible with CI3 as well?


RE: Updating CI 2.2.1 to 3.0 404 Not Found issue - jatinsoni - 03-18-2015

(03-18-2015, 07:08 AM)CroNiX Wrote: Did you upgrade HMVC to the version compatible with CI3 as well?

Yes I did. If you check the link I have added in my post. I have downloaded from codeigniter-3x branch. Is there any other branch which I should use?


RE: Updating CI 2.2.1 to 3.0 404 Not Found issue - Markus_HH - 04-02-2015

Hi,

did you have a solution to this? I have the same problem Huh