• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Updating CI 2.2.1 to 3.0 404 Not Found issue

#1
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.
Thanks,
Jatin Soni
Reply

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

#3
(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?
Thanks,
Jatin Soni
Reply

#4
Hi,

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.