FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirect Loop error
#1
I had my form all working great. I went to make the site live today and thought I would submit the form to test again as it has been a couple weeks. I get the following error:
Redirect Loop

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

The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

* Have you disabled or blocked cookies required by this site?
* NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.

I hadn't changed anything from when it was working a couple weeks ago. And I was just changing the indextest to index for the site being live. So nothing was touched - it just doesn't work.

I am running MacOS 10.5.6, Firefox 3.0.10

This also doesn't work under Safari, and I am running VMware Fusion running windows Vista and doesn't under that either for Firefox.

I cannot login to the admin as it give me the same loop error.

I have done some searching and tried every way to delete cookies, etc from Firefox and nothing works. I have tried it on a couple other macs and nothing.

What do I do or what can I check?
Reply
#2
Hi Pete,

Did you recently upgrade? I don't suppose you know what version you're running? (You can check your database if you're not sure: look for the program_version setting in the "ft_settings" table).

Do you know if your hosting provider changed anything - new PHP version, MySQL version, moved your content to a different location?

- Ben
Reply
#3
Ben,
I am not aware of my hosting provider changing anything. And I did not update it at all. Here is some of the info:
1.0.0-beta-20090404
2009/04/28

php version: 4.4.9
mySQL - 5.0.67

I guess of course the host could have changed something.
thanks,
pete
Reply
#4
Hi Pete,

There was a problem with that version that's fixed in the next release which sounds *related* to this, but I didn't think the problem was so severe... still it's worth checking out.

Try manually edit your [form tools root]/index.php file. There, on line 12 you should see this line:
PHP Code:
header("location: {$g_pages[$login_page]}"); 

Change it to this:
PHP Code:
header("location: {$g_root_url}{$g_pages[$login_page]}"); 

Then try logging in again.

Let me know how it goes! If it all works, I'd suggest upgrading your installation to the latest version. There have been a few bug fixes since the version you're running.

- Ben
Reply
#5
Hi Ben,
I downloaded the latest version (Form Tools Core (2.0.0-beta-20091012) and running into this exact issue.

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

The fix you mentioned has already been integrated into the new package:
=> Manually edit your [form tools root]/index.php file
header("location: {$g_pages[$login_page]}");

Any ideas? Thanks for your time.

(Jun 10th, 2009, 7:41 PM)Ben Wrote: Hi Pete,

There was a problem with that version that's fixed in the next release which sounds *related* to this, but I didn't think the problem was so severe... still it's worth checking out.

Try manually edit your [form tools root]/index.php file. There, on line 12 you should see this line:
PHP Code:
header("location: {$g_pages[$login_page]}"); 

Change it to this:
PHP Code:
header("location: {$g_root_url}{$g_pages[$login_page]}"); 

Then try logging in again.

Let me know how it goes! If it all works, I'd suggest upgrading your installation to the latest version. There have been a few bug fixes since the version you're running.

- Ben
Reply
#6
Has this been resolved? If it has, what was the solution? I have installed Formtools on 3 of my other sites and never had a problem. Now I'm running into this issue.

"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."

This error is happening while trying to go through the setup, right after entering the database information and clicking next. I do accept cookies.

I am using Version 2.0.2
Please help.
After further investigation, On step 4 of the installation, it creates the config.php file which includes the database information. I checked if the file was created and it was, and also had the correct information listed.

The error is when it tries to go to step 5. It freezes as if not knowing what to do next. I believe the next step is to create the Admin account, but it never gets to that screen.
Reply
#7
I experienced this as well. For me the issue was with permissions. Giving the web user (apache) write access to the formtools/ directory fixed it.
Reply
#8
Thanks BigCity.

Funnily enough, *I* ran into this error recently as well. For me, it was the $g_root_dir setting was incorrect. Curious.

- Ben
Reply
#9
Thanks Ben...

I experienced this same issue. I had to change my IIS 7 permissions and once I did, the issue went away. Would be helpful for the error message to let you know this is a permissions issue and not a looped redirect.

Thanks for posting to the form. I was able to track down the issue based on everyone's response.

Thanks,

Doug
Reply
#10
Hi Mossberg - I totally agree. I had to stare at it for a few minutes to figure out the source of the problem. I'll log this as a bug.

- Ben
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)