Forums / Installing on a Linux/Unix Server / Firefox has detected that the server is redirecting the request for this address in a

Firefox has detected that the server is redirecting the request for this address in a

Locked

Started by ship on 12 Jun 2006, 9:58 PM · Views: 25,515

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
12 Jun 2006, 9:58 PM
#1
ship avatar

ship

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Firefox has detected that the server is redirecting the request for this address in a

This is what Firefox says. IE just hangs forever.

The web host is running php 5.1.1.

I have installed zencart v1.3.0.1 .

I have successfully installed on another server at this web hosting company but that server is only running php 4.4.1.

It works fine for customer cart login but the admin login form/page will not come up.

I have reloaded admin folder, sub folders and files. I have went over the configure.php with a fine tooth comb.

Is php 5.1.1 a problem?

I have been spinning my wheels for days and days on this and I need to get this up?

Appreciate any ideas very much!! :cry:

12 Jun 2006, 10:45 PM
#2
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,929
Plugin Contributions:
3

Re: Firefox has detected that the server is redirecting the request for this address in a

hard to say. I have ZC running on php5.1.2 with no problems. Although we do say that ZC tentativley supports php 5+, I would be loathe to advise anyone to rely on that.

I would say that you problem is unlikely to be simply a php5 problem, but may be a php.ini prroblem. A lot more info would help :)

12 Jun 2006, 11:56 PM
#3
ship avatar

ship

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

Thanks for the response.

The php5 configuration can be seen at:

https://host454.ipowerweb.com/phpinfo.php

It appears to be failing on the logon.php when it calls application_top.php.

I set debug on in application_top.php and get the following output when I try and go to admin:

actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/class.base.php');
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/class.notifier.php');
actionPoint=>0 $zco_notifier = new notifier();
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/sniffer.php');
actionPoint=>0 include('includes/classes/logger.php');
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/shopping_cart.php');
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/products.php');
actionPoint=>0 include('includes/classes/table_block.php');
actionPoint=>0 include('includes/classes/box.php');
actionPoint=>0 include('includes/classes/message_stack.php');
actionPoint=>0 include('includes/classes/split_page_results.php');
actionPoint=>0 include('includes/classes/object_info.php');
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/class.phpmailer.php');
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/class.smtp.php');
actionPoint=>0 include('includes/classes/upload.php');
actionPoint=>10 include('includes/init_includes/init_file_db_names.php');
actionPoint=>10 include('includes/init_includes/init_database.php');
actionPoint=>10 include('/home/armoredb/public_html/armoredb/includes/version.php');
actionPoint=>20 include('includes/init_includes/init_db_config_read.php');
actionPoint=>30 include('includes/init_includes/init_gzip.php');
actionPoint=>30 $sniffer = new sniffer();
actionPoint=>40 include('includes/init_includes/init_general_funcs.php');
actionPoint=>40 include('includes/init_includes/init_tlds.php');

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/armoredb/public_html/armoredb/includes/autoload_func.php:94) in /home/armoredb/public_html/armoredb/includes/functions/sessions.php on line 100
actionPoint=>60 include('includes/init_includes/init_sessions.php');
actionPoint=>70 include('includes/init_includes/init_languages.php');
actionPoint=>80 include('includes/init_includes/init_templates.php');
actionPoint=>90 $zc_products = new products();
actionPoint=>90 include('includes/functions/localization.php');
actionPoint=>100 $messageStack = new messageStack();
actionPoint=>120 include('includes/init_includes/init_special_funcs.php');
actionPoint=>130 include('includes/init_includes/init_category_path.php');
actionPoint=>140 include('includes/init_includes/init_errors.php');

Warning: Cannot modify header information - headers already sent by (output started at /home/armoredb/public_html/armoredb/includes/autoload_func.php:94) in /home/armoredb/public_html/armoredb/admin/includes/functions/general.php on line 34

Thanks again and if the above helps you any please let me know.

I have put up one zen-cart site and added mod's and changes. Not sure why I am having so much trouble just getting to the admin login.

13 Jun 2006, 4:13 AM
#4
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Firefox has detected that the server is redirecting the request for this address in a

Based from your phpinfo.php file,

session.use_trans_sid 1

should be changed to:

session.use_trans_sid 0

This can be done from your .htaccess file. You can find an example under the admin's root folder from the Zen Cart package you downloaded. :wink2:

This should give you a hint by resolving this issue.

13 Jun 2006, 4:14 AM
#5
fluffytigger avatar

fluffytigger

Zen Follower

Join Date:
Dec 2005
Location:
My Own Fluffy Place, Pangea
Posts:
377
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

Is this is a complete fresh install? You can try doing a complete fresh install or a migration? I have both migration and fresh test of ZC on PHP 5.1.4 on mine and it's working fine.

Oh yeah, noticed your host got ZE1 compatability to Off, what happen if you set that to On?

Yeah! I'm small! I'm Fluffy! Stick tongue out

13 Jun 2006, 7:09 PM
#6
ship avatar

ship

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

I added these two lines to the end of the /armoredb/admin/.htaccess file

php_value zend.ze1_compatibility_mode on
php_value session.use_trans_sid 0

This made no difference and I have spent many many many moons on this and I am still stuck.....

Any more ideas? Is my .htaccess value syntax above correct for Apache 2 and php5?

Thanks many!!!!!

13 Jun 2006, 7:34 PM
#7
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,929
Plugin Contributions:
3

Re: Firefox has detected that the server is redirecting the request for this address in a

Hi,

Its possible that your host has the server configured to not allow local .htaccess files.

In the subject line of this thread, the firefox error is cut off, can you post the error in the body of a reply.

Also PM sent :)

13 Jun 2006, 7:56 PM
#8
ship avatar

ship

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

Full text of the firefox 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.

It gives me a button to "Retry" but same results.

Firefox makes about 10 attempts before it gives up.
IE 6 just spins its wheels forever.

Thanks .... I will check with IPOWER to see if they will ues the .htacess files or not.

Again thanks to everybody!!

Ship:smile:

13 Jun 2006, 8:06 PM
#9
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Firefox has detected that the server is redirecting the request for this address in a

You may wanna do a search on ipower

I seem to recall them having some weird server settings

Zen cart PCI compliant Hosting

13 Jun 2006, 8:49 PM
#10
fluffytigger avatar

fluffytigger

Zen Follower

Join Date:
Dec 2005
Location:
My Own Fluffy Place, Pangea
Posts:
377
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

You can test any htaccess setting by putting a php file with

<?php phpinfo(); ?> in the body, just call that in a subdir and it will show PHP. There is a column (right) that will show you the LOCAL settings you have if you've set it using htaccess. Any php switcheroo you put in htaccess will show up in the local column if you've successfully applied it.

Also, is this a PHP error or an Apache error? Redirection error are usually apache from what I understand (I've had a few of those when I was writing redirect rules).

A url to the actual page in question might help if we can see the error.

Yeah! I'm small! I'm Fluffy! Stick tongue out

13 Jun 2006, 9:53 PM
#11
ship avatar

ship

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

Thanks!

Yes the local values show up in phpinfo if I execute it in a script at or below where I put the htaccess file.

Thanks again :smile: :smile:

14 Jun 2006, 4:53 PM
#12
ship avatar

ship

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

Thanks!

The url is: armoredbrandusa.com/armoredb/admin

Thanks again.... and yes I did what you said and my changes in .htaccess are showing up in phpinfo and I guess I can assume that they are being acted on but ....

14 Jun 2006, 5:07 PM
#13
ship avatar

ship

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

With the admin/.htaccess set as follows: I commented out zend compat it did not help but neither did php_value session.use_trans_sid 0

apache/conf/httpd.conf file)

The following makes adjustments to the SSL protocol for Internet

Explorer browsers

<IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule>

Fix certain PHP values

#<IfModule mod_php4.c>

php_value session.use_trans_sid 0

php_value register_globals 1

#</IfModule>

to turn off register_globals

php_value register_globals 0

php_value zend.ze1_compatibility_mode on

php_value session.use_trans_sid 0

With debug true in application_top.php this is the output access admin:

actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/class.base.php');
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/class.notifier.php');
actionPoint=>0 $zco_notifier = new notifier();
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/sniffer.php');
actionPoint=>0 include('includes/classes/logger.php');
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/shopping_cart.php');
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/products.php');
actionPoint=>0 include('includes/classes/table_block.php');
actionPoint=>0 include('includes/classes/box.php');
actionPoint=>0 include('includes/classes/message_stack.php');
actionPoint=>0 include('includes/classes/split_page_results.php');
actionPoint=>0 include('includes/classes/object_info.php');
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/class.phpmailer.php');
actionPoint=>0 include('/home/armoredb/public_html/armoredb/includes/classes/class.smtp.php');
actionPoint=>0 include('includes/classes/upload.php');
actionPoint=>10 include('includes/init_includes/init_file_db_names.php');
actionPoint=>10 include('includes/init_includes/init_database.php');
actionPoint=>10 include('/home/armoredb/public_html/armoredb/includes/version.php');
actionPoint=>20 include('includes/init_includes/init_db_config_read.php');
actionPoint=>30 include('includes/init_includes/init_gzip.php');
actionPoint=>30 $sniffer = new sniffer();
actionPoint=>40 include('includes/init_includes/init_general_funcs.php');
actionPoint=>40 include('includes/init_includes/init_tlds.php');

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/armoredb/public_html/armoredb/includes/autoload_func.php:94) in /home/armoredb/public_html/armoredb/includes/functions/sessions.php on line 100

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/armoredb/public_html/armoredb/includes/autoload_func.php:94) in /home/armoredb/public_html/armoredb/includes/functions/sessions.php on line 100
actionPoint=>60 include('includes/init_includes/init_sessions.php');
actionPoint=>70 include('includes/init_includes/init_languages.php');
actionPoint=>80 include('includes/init_includes/init_templates.php');
actionPoint=>90 $zc_products = new products();
actionPoint=>90 include('includes/functions/localization.php');
actionPoint=>100 $messageStack = new messageStack();
actionPoint=>120 include('includes/init_includes/init_special_funcs.php');
actionPoint=>130 include('includes/init_includes/init_category_path.php');
actionPoint=>140 include('includes/init_includes/init_errors.php');

Warning: Cannot modify header information - headers already sent by (output started at /home/armoredb/public_html/armoredb/includes/autoload_func.php:94) in /home/armoredb/public_html/armoredb/admin/includes/functions/general.php on line 34

Again many thanks .... I would like to move on and get this resolved. I need to put up a retail site and if the ipower config is the issue I may just run into it again.

Ship:smile:

15 Jun 2006, 4:07 PM
#14
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

In the page that you are on when you get the error look for white space (blank lines or spaces) before the opening or after the closing php tag. If you find any remove them.

Vger

15 Jun 2006, 5:10 PM
#15
ship avatar

ship

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

Thanks for the input and yes I had already checked that out.

Ship:down:

15 Jun 2006, 10:01 PM
#16
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

It's just that you are getting the 'Headers already sent' error, and that is invariably caused by white space. I'd go through all files which may be affected (files which are 'included' on that page also) and check again for white space.

Vger

16 Jun 2006, 4:15 AM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Firefox has detected that the server is redirecting the request for this address in a

Actually, the "headers already sent" notices in the middle of the debug output are a direct result of the debug output being sent to the screen. They are not the problem here.

What is your webserver errorlog and even the activity log saying when this symptom occurs?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Jun 2006, 2:46 PM
#18
ship avatar

ship

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

Since debug is only confusing the issue, I turned it off.

I did get a response from the IPOWER web hoster. They admitted that they do not act on my local .htaccess settings. Apparently even though the phpinfo results show that my .htaccess overrides are being recognized they are not being acted on.

I am afraid that the other zencart site that that I put on live which is working on another of their servers on php4 instead of php5 will stop working once they upgrade that server. Even then php4 vs php5 may not be the issue.

Thanks for all the input and hope to still resolve this. If I do I will publish it on this forum so that if the same problem occurs for someone else they can benefit from my experience.

Ship

16 Jun 2006, 3:57 PM
#19
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

If they've done something like upgrading to PHP 5, and then also putting it on Safe Mode, and then upgrading to MySQL 5 as well then that would be a scenario for disaster for any dynamic php based site.

Vger

23 Jun 2006, 12:03 AM
#20
ship avatar

ship

New Zenner

Join Date:
Jun 2006
Posts:
12
Plugin Contributions:
0

Re: Firefox has detected that the server is redirecting the request for this address in a

Thanks to all who tried to help me through this.

The shared host provider worked with me but could not attempt to make server side changes without risking everyone else.

I moved the zencart application to a VPS and I had no problems getting it to all work.

I will eventually have at least 4 zen cart installations/sites running on the VPS and it was a much better solution than running 4 different spaces on shared hosts.

Again thanks!

Bill:smile: :yes: :thumbsup: