Page 1 of 1

wierd localhost error

Posted: Sun Apr 29, 2007 3:41 pm
by invisibled
so i just formatted my mac laptop, and i installed php5 and mysql. when i go into one of my sites on the local host i get this error
The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

* This problem can sometimes be caused by disabling or refusing to accept cookies.
the first thing i did was make sure cookies are enabled....and they are. The "accept cookies from sites" is checked and keep until is set to "until they expire".

now when i try and target a file in the browser other than the index.php it give me a not found error with this
The requested URL /invisibledesign/oncco/php/index.php was not found on this server.
so somthing weird is going on here and i can't seem to figure it out, any help or suggestions will be greatly appreciated!

Posted: Sun Apr 29, 2007 3:48 pm
by John Cartwright
Moved to Installation and Configuration.

Posted: Mon Apr 30, 2007 10:14 am
by pickle
I've experienced your first error before, when I had mod_rewrite installed & was redirecting a page request endlessly.

As for your second error - you're probably just looking in the wrong place. In your browser, do an 'Open File..' to open the file. That might give you a different path than what you're expecting.

Posted: Mon Apr 30, 2007 11:02 am
by RobertGonzalez
When you get that error that means that you are using a redirect that redirects you to a page that redirects you back to the redirecting page. It is a crazy loop of bounces that Firefox picks up pretty quickly.

For me, I ran into this most often with login pages that take you to a landing page when logged in, or to a form when not. Check your use of header() redirects. I'd bet that is the culprit.

Posted: Mon Apr 30, 2007 3:12 pm
by invisibled
THANK YOU!

that was stupid of me, i had a login script and I had the function that checked to see if you were logged in, in the database connection file so it was on everypage LOL.

Posted: Mon Apr 30, 2007 3:23 pm
by RobertGonzalez
You're welcome. And you are smart to not try to run that page in IE. It would require a restart. Nice...