Part of the EllisLab Network

Bug Report

Default Controller with Multiple Applications Bug

Date: 05/01/2007 Severity: Trivial
Status: Duplicate Reporter: ksheurs
Version: 1.5.3
Keywords:
Forum Thread: http://www.codeigniter.com/forums/viewthread/48102/

Description

Editor Note:  Unable to reproduce on Red Hat Linux or OS X.  I suspect this bug might be related to a path bug in the main bootstrap file, but on our systems it was not causing a problem.

This bug is happening whenever the bootstrap file is in a sub folder and not installed in the root directory. The problem occurs in the Router.php file (system/libraries/Router.php).  It is comparing the wrong strings. As a result, the default controller is not loaded.

Code Sample

See these two posts for elaborate code sample and recommended solution download:

http://codeigniter.com/forums/viewthread/48102/#232136
http://codeigniter.com/forums/viewthread/48102/P15/#232145

Expected Result

Actual Result

Comment on Bug Report

Page 1 of 1 pages
Posted by: ksheurs on 1 May 2007 6:54pm
no avatar

Just to clarify, the default controller does not load in this case.

Posted by: mediaslave on 2 May 2007 9:25am
no avatar

Thanks for getting this in the bug tracker.

Posted by: JAAulde on 2 May 2007 8:42pm
no avatar

I am not sure I understand this bug as is described...but I am running CI 1.5.3 and have a CI Front Controller (index.php) in a subdirectory of the doc root and am not having any problems…

Posted by: JAAulde on 3 May 2007 8:28am
no avatar

Ok...more info on my working subdir setup on default CI code here:

http://codeigniter.com/forums/viewthread/48102/P15/#251564

Posted by: ksheurs on 3 May 2007 10:53am
no avatar

thank you JAAuide. still having a problem though. please see this for more details:

http://codeigniter.com/forums/viewthread/48102/P15/#251626

Posted by: JAAulde on 3 May 2007 11:29am
no avatar

No problem ksheurs.

I am still unable to verify the existence of this bug, though.  Following the exact setup you gave in the post you linked to produces a perfect response for me from all forms of the URL.

Posted by: mediaslave on 3 May 2007 11:42am
no avatar

Question: including index.php/

Are you using .htaccess or not?  Not that it really matters, because from my tests it fails both ways.

If so, maybe they fixed it in CI 1.5.3, but doubtful since it is still open.

Regards.

Posted by: JAAulde on 3 May 2007 11:53am
no avatar

There was no .htaccess.  I mimicked ksheurs’ setup exactly as he (she?) described it.

Jim

Posted by: ksheurs on 3 May 2007 11:54am
no avatar

whoa whoa whoa...HE....hah jk...standby..testing this out again.

Posted by: JAAulde on 3 May 2007 12:01pm
no avatar

I think this may be Dreamhost related…
http://codeigniter.com/forums/viewthread/48102/P15/#251656

Posted by: ksheurs on 3 May 2007 1:50pm
no avatar

CI Team...we have went in somewhat of a circle, but it seams that this is still a bug. Please see:

http://codeigniter.com/forums/viewthread/48102/P30/#251717 to catch up.

Thank you,
Kevin

Posted by: JAAulde on 3 May 2007 2:01pm
no avatar

Kevin,

I don’t think we have come full circle yet, and I don’t 100% agree at this point that it is a bug versus a config conflict with whatever the host is doing.

That is why I got so involved in this--because the native code works perfect with your setup on my machine and because I don’t want to see a patch go into place that could possibly effect other things if this is a config conflict rather than a bug.

However, my concerns are noted, so I’ll back off.  wink

Thanks,
Jim

Posted by: ksheurs on 3 May 2007 2:06pm
no avatar

agreed

Posted by: section31 on 20 December 2007 10:23am
section31's avatar

What ever happened to this bug?  Everyone give up.  I also have this problem getting ci to work in a subdirectory.

Posted by: section31 on 26 December 2007 2:41pm
section31's avatar

Please mark this as resolved and apply the patch.

http://codeigniter.com/forums/viewthread/48102/P30/#332400

Posted by: Derek Jones on 30 January 2008 11:52am
Derek Jones's avatar

Supplanted by bug report #3191.

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?