Welcome Guest, Not a member yet? Register   Sign In
Codeigniter default uri problem
#11

[eluser]ChrisMiller[/eluser]
Ok it is failing in _validate_request() I found it by putting a log_message() by the two show_404() the point of failure is they very last show_404() right before it closes the function. A print out of the $segments is
Code:
Array ( [0] => index.php )
#12

[eluser]Derek Jones[/eluser]
Ok, I think I see where this one is heading.

What version of PHP?
Is it being run as an Apache module or a CGI process?
If hosted professionally, who is the host?
#13

[eluser]ChrisMiller[/eluser]
MediaTemple
PHP 4.4.8
#14

[eluser]Derek Jones[/eluser]
Yep, please see this bug report for details and a proposed solution. (mt) is one of the other confirmed hosts with this issue when PHP is run as a CGI process.
#15

[eluser]ChrisMiller[/eluser]
Took a quick look at it but like I said before CI v 1.5.3? or whatever the version before v1.6 works perfectly just like it should, I run several CI Installs and I only upgraded one version to test and make sure it works first and then I ran into the glitch so I didn't upgrade the rest of the scripts on the site.

http://station09.com/ - same server, same settings diffrent ci version
http://deuceswild42.com - same server, same settings diffrent ci version
#16

[eluser]Derek Jones[/eluser]
Yes, Chris, please notice the date and version of that bug report...
#17

[eluser]ChrisMiller[/eluser]
Well thanks everybody for the help it was far easier to just roll back to 1.5.4 as that works on my server perfectly, I will keep trying to fix it and maybe I will find out why its acting the way it is.
#18

[eluser]Derek Jones[/eluser]
Chris, assuming the problem is the same, and is does indeed sound like it, your fix is right there in the bug report. Skip down to my post on 3 February 2008 8:40am where the resolution for the reporting user's server is discussed. There's nothing difficult about it, though I can certainly see why you would want to wait for a released fix as opposed to maintaining even a minor hack to your installation. If you like, and since having another server for confirmation will aid me, you may email me (not PM please) FTP access to your domain where I can run some tests on an isolated file outside of your installation, or with your permission modify the file on your 1.6 installation of CI to regain the old functionality.
#19

[eluser]Derek Jones[/eluser]
Ok, you're experiencing both the issue of ORIG_PATH_INFO containing the full request URI and your .htaccess is changing your request for http://example.com/ into http://example.com/index.php/ (note the trailing slash). The latter is the main source of your difficulty. You'll notice that if you disable your .htaccess, then the request to your domain alone works fine.

After addressing that, you may wish to simply change your 'uri_protocol' config to REQUEST_URI for 1.6.0. CodeIgniter 1.6.1 will most likely include a change to ORIG_PATH_INFO processing that will allow you to go back to 'AUTO'. So again to summarize:

1) Your .htaccess is writing requests for the domain only to /index.php/
2) Switch to REQUEST_URI for compatibility with your server with CodeIgniter 1.6.0
#20

[eluser]ChrisMiller[/eluser]
Thank you very much for helping hash that all out, I will leave that account open if you need to test anything else out on a mediatemple server.




Theme © iAndrew 2016 - Forum software by © MyBB