If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Linux/Unix Server / "This webpage has a redirect loop" on new install of 1.5.3

"This webpage has a redirect loop" on new install of 1.5.3

Started by vroy on 5 Aug 2014, 12:09 PM · Views: 3,762

Results 1 to 10 of 10
5 Aug 2014, 12:09 PM
#1
vroy avatar

vroy

New Zenner

Join Date:
Jan 2005
Posts:
7
Plugin Contributions:
0

Post #1 by vroy

I just installed a fresh version of zen cart but when I try and view the store, the following message is displayed instead of the store.

"This webpage has a redirect loop"

I did not receive any error messages during the install and can not see any errors in the log files.

I however can log in via admin and use all the administration functions. ( I just can't see anything on the store page - https://www.touringkarts.com

Some of the many things I tried to no avail
delete everything and reinstall zen-cart-v1.5.3
delete everything and reinstall zen-cart-v1.5.3-(hotfix1)-07192014
change the permission on every folder to 777
delete all .htaccess

SPECS below
zen-cart-v1.5.3-(hotfix1)-07192014
PHP Version 5.3.28
HTTP Server: Apache
Server OS: FreeBSD 8.3-RELEASE-p11

I would appreciate any pointers or help before I jump in front of a bus.
regards
Vic

5 Aug 2014, 2:10 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #2 by stevesh

Try clearing your browser cache and all cookies first.

5 Aug 2014, 2:18 PM
#3
vroy avatar

vroy

New Zenner

Join Date:
Jan 2005
Posts:
7
Plugin Contributions:
0

Post #3 by vroy

stevesh:

Try clearing your browser cache and all cookies first.

Hi Stevesh
I cleared the all the cache and cookies in both IE and Chrome.
In Chrome I get the message - "This webpage has a redirect loop"
In IE I get "This page can’t be displayed"
If I get rid of index.php the browser shows the filenames in the directory.

5 Aug 2014, 2:32 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #4 by lat9

You could try turning on the autoload debug. Edit /includes/application_top.php and change

/**
 * boolean if true the autoloader scripts will be parsed and their output shown. For debugging purposes only.
 */
define('DEBUG_AUTOLOAD', false);

to

/**
 * boolean if true the autoloader scripts will be parsed and their output shown. For debugging purposes only.
 */
define('DEBUG_AUTOLOAD', true);

and then refresh the page. That will result in the Zen Cart startup initialization sequence being output to the screen so that you can see where it's looping. Be sure to change it back to false once you're finished!

5 Aug 2014, 11:39 PM
#5
vroy avatar

vroy

New Zenner

Join Date:
Jan 2005
Posts:
7
Plugin Contributions:
0

Post #5 by vroy

lat9:

You could try turning on the autoload debug. Edit /includes/application_top.php and change

/**

  • boolean if true the autoloader scripts will be parsed and their output shown. For debugging purposes only.
    */
    define('DEBUG_AUTOLOAD', false);
> to
> ```
/**
 * boolean if true the autoloader scripts will be parsed and their output shown. For debugging purposes only.
 */
define('DEBUG_AUTOLOAD', true);

and then refresh the page. That will result in the Zen Cart startup initialization sequence being output to the screen so that you can see where it's looping. Be sure to change it back to false once you're finished!

Thank you but logs are not being produced on the screen or on the server for Store related activities. I tried several browsers and computers. Strangely, I found log files for admin but none for the store.

I'm going to approach my Internet Service Provider for assistance. I'll update you if and when I learn more.

6 Aug 2014, 12:09 AM
#6
vroy avatar

vroy

New Zenner

Join Date:
Jan 2005
Posts:
7
Plugin Contributions:
0

Post #6 by vroy

FYI - I just installed v1.3.9 and it works fine.

6 Aug 2014, 2:12 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #7 by mc12345678

lat9:

You could try turning on the autoload debug. Edit /includes/application_top.php and change

/**

  • boolean if true the autoloader scripts will be parsed and their output shown. For debugging purposes only.
    */
    define('DEBUG_AUTOLOAD', false);
> to
> ```
/**
 * boolean if true the autoloader scripts will be parsed and their output shown. For debugging purposes only.
 */
define('DEBUG_AUTOLOAD', true);

and then refresh the page. That will result in the Zen Cart startup initialization sequence being output to the screen so that you can see where it's looping. Be sure to change it back to false once you're finished!

In making the changes made in accordance with ajeh's recommendations were they made to the files in the store's directory, or the store's admin directory? Further was the .htaccess in the store's directory still absent? Is the store installed in a subdirectory with a .htaccess one directory up? Without divulging the admin directory's path, is the admin directory only one folder deep from the store or deeper than that?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

6 Aug 2014, 1:31 PM
#8
vroy avatar

vroy

New Zenner

Join Date:
Jan 2005
Posts:
7
Plugin Contributions:
0

Post #8 by vroy

Thank you.

The problem was the thing between my chair and monitor :)

Somehow an incorrect index.php was in the root directory.

10 Aug 2014, 4:17 AM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #9 by mc12345678

vroy:

Thank you.

The problem was the thing between my chair and monitor :)

Somehow an incorrect index.php was in the root directory.

Yup, somehow I've done that once before too. :) Scratched head, shrugged and copied the correct one from a vanilla install. Luckily it was all on my local test server, but it happened none-the-less. :)

Glad you got it to work. Good luck.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

10 Aug 2014, 10:24 AM
#10
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,768
Plugin Contributions:
56

Post #10 by swguy

I had this problem once on the admin side in 1.5.3 because of an extra trailing / after the site name -

http://localhost/sitename//renamed-admin

Fixed by removing the extra / from admin/includes/configure.php.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.