wierd localhost error

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
invisibled
Forum Contributor
Posts: 112
Joined: Sun Apr 29, 2007 3:35 pm
Location: New Westminster

wierd localhost error

Post 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!
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Moved to Installation and Configuration.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
invisibled
Forum Contributor
Posts: 112
Joined: Sun Apr 29, 2007 3:35 pm
Location: New Westminster

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

You're welcome. And you are smart to not try to run that page in IE. It would require a restart. Nice...
Post Reply