osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

The mystierious "page that does not redirect properly"

This is a discussion on The mystierious "page that does not redirect properly" within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Oh, Great is the power of oscMax 2.0! And great is the mystery of the "page that does not redirect ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 05-08-2008, 07:54 AM
Member
 
Join Date: Mar 2008
Posts: 33
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
Unhappy The mystierious "page that does not redirect properly"

Oh, Great is the power of oscMax 2.0! And great is the mystery of the "page that does not redirect properly" (so says firefox) when I tried to login to my admin. It seems that this problem was discussed before, but the threads do not seem to end with anyone resolving their issues (booo!)

Basically, I just switched from a shared account to a dedicated server...and migrated my website. I had to:
1. Change the includes/configure.php so that it would work with my new server.
2. Modify the .htaccess file to make the catalog work because I was getting the error "register globals has gotta be ON".
So I modified it this way: I stuck this phrase in the .htaccess file

php_value register_globals 1

The catalog then worked..Yeah!

And Then I went to admin/includes/configure.php and made changes for my new server....and wala! I cannot get into admin because admin/index.php is redirecting me to admin/login.php which is redirecting me to admin/index.php and on and on untill firefox angrily gives me the message "page that Does not Redirect Properly!! The server is redirecting this page in a way that will never complete. You are hereby banished to an eternity of redirection!" Ok, so I paraphrased it a little.

So the solution:

What is it?

Please , please help release me from redirection limbo!


J
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-08-2008, 10:35 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: The mystierious "page that does not redirect properly"

As a workaround until you figure out the problem, just go directly to login.php for the admin url and you should be fine.

Check both your /catalog .htaccess and the /catalog/admin .htaccess files for any mod_rewrite rules, redirects, or DirectoryIndex statements. That is usually the culprit.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-08-2008, 12:35 PM
Member
 
Join Date: Mar 2008
Posts: 33
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
Default Re: The mystierious "page that does not redirect properly"

Hummm....so far going directly to admin/login did not work...still tried to redirect me to...and back, and forth, and back....zzzz!

I'm checking the other stuff now...

J
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-08-2008, 12:48 PM
Member
 
Join Date: Mar 2008
Posts: 33
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
Default Re: The mystierious "page that does not redirect properly"

mmm...nope, all rewrite rules etc are commented out...cannot figure it...grrrr....I have had this problem for 3 days. Well, one thing, I did not put OSCMax into a special "catalog" file. Its just right on top...make any difference ?

J
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 05-08-2008, 01:07 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: The mystierious "page that does not redirect properly"

Could be a bad path set in the admin configure.php file. Check the apache error logs to see where it is trying to redirect, and any 404 errors, etc and post them here.

Please post your configure.php files (both of them) without the database info so we can take a look.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 05-08-2008, 03:51 PM
Member
 
Join Date: Mar 2008
Posts: 33
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
Default Re: The mystierious "page that does not redirect properly"

Well, right now I'll give you the what the error log is saying:

Fri May 09 15:28:26 2008] [error] [client (ip number)] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:') in /usr/local/www/vhosts/url.net/httpdocs/admin/includes/application_top.php on line 136

It says the same thing over and over. Next I will post the configure files.

***********************includes/configure.php*********

//This is the main configure file under includes/configure.php
//It works for the catalog.
<?php
/*
osCMax v2.0, Open Source E-Commerce Solutions
osCommerce Documentation by OSCdox :: osCommerce and osCMax documentation

Copyright 2006 osCMax2005 osCMax

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.url.net/'); // eg, cPanelŽ - should not be empty for productive servers
define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.url.net');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '');
define('DIR_WS_HTTPS_CATALOG', '');

//define('DIR_WS_IMAGES', 'images/');
//experiment to see what works better for Dynamic MoPics module
define('DIR_WS_IMAGES', 'images/');
//End experiment

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/usr/local/www/vhosts/url.net/httpdocs/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', '*******');
define('DB_SERVER_PASSWORD', '******');
define('DB_DATABASE', '*******');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?> *****************admin/includes/configure.php**************

<?php
/*
osCMax v2.0, Open Source E-Commerce Solutions
osCommerce Documentation by OSCdox :: osCommerce and osCMax documentation

Copyright 2006 osCMax2005 osCMax, 2003 osCommerce

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.url.net/'); // eg, cPanelŽ - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://www.url.net/');
define('HTTPS_CATALOG_SERVER', 'https://www.url.net/');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', ''); // where the pages are located on the server
define('DIR_WS_ADMIN', 'admin/'); // absolute path required
define('DIR_FS_ADMIN', '/usr/local/www/vhosts/url.net/httpdocs/admin/'); // absolute pate required
define('DIR_WS_CATALOG', '/usr/local/www/vhosts/url.net/httpdocs/'); // absolute path required
define('DIR_FS_CATALOG', '/usr/local/www/vhosts/url.net/httpdocs/'); // absolute path required
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
//define('DIR_FCKEDITOR', DIR_FS_CATALOG . 'FCKeditor/');
//define('DIR_WS_FCKEDITOR', DIR_WS_CATALOG . 'FCKeditor/');
//Patch for FCKeditor
define('DIR_FS_FOREDITOR', '/usr/local/www/vhosts/url.net/httpdocs/');
define('DIR_WS_FOREDITOR', '');
define('DIR_FCKEDITOR', DIR_FS_FOREDITOR . 'FCKeditor/');
define('DIR_WS_FCKEDITOR', DIR_WS_FOREDITOR . 'FCKeditor/');

// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', '*****');
define('DB_SERVER_PASSWORD', '*****');
define('DB_DATABASE', '******');
define('USE_PCONNECT', 'false'); // use persisstent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>




OK....thanks for looking at these files for me...Any help is great!

J
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 05-09-2008, 11:35 AM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 201
Thanks: 10
Thanked 26 Times in 14 Posts
Rep Power: 7
JohnW will become famous soon enoughJohnW will become famous soon enough
Default Re: The mystierious "page that does not redirect properly"

Well, I'm no expert but I've learned a lot through mistakes and if you've been fighting this for 3 days we can give this a shot.

Try replacing the appropriate lines in /includes/config.php

Code:
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
  define('HTTP_SERVER', 'http://www.url.net'); // eg, http://localhost - should not be NULL for productive servers
  define('HTTPS_SERVER', 'https://www.url.net'); //
  define('ENABLE_SSL', false); // secure webserver for checkout procedure?
  define('HTTP_COOKIE_DOMAIN', 'www.url.net');
  define('HTTPS_COOKIE_DOMAIN', 'www.url.net');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('DIR_WS_HTTP_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
See if that works.
__________________
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 05-09-2008, 01:03 PM
Member
 
Join Date: Mar 2008
Posts: 33
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
Default Re: The mystierious "page that does not redirect properly"

humm...includes/configure.php works...but admin/includes/configure.php is what does not work..is that what you are referring to???


Thanks!

J
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 05-09-2008, 02:14 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: The mystierious "page that does not redirect properly"

The catalog configure.php looks wrong to me. John's changes are the correct configuration, but "if it ain't broke..."

The admin configure.php looks all wrong to me, too. None of the paths are correct. The error message in your error logs confirms that your paths are not matching the server.

Here is what I would start with:

PHP Code:
define('HTTP_CATALOG_SERVER''http://www.url.net');
define('HTTPS_CATALOG_SERVER''https://www.url.net');
define('ENABLE_SSL_CATALOG''false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT''/usr/local/www/vhosts/url.net/httpdocs/admin/'); // where the pages are located on the server
define('DIR_WS_ADMIN''/admin/'); // absolute path required
define('DIR_FS_ADMIN''/usr/local/www/vhosts/url.net/httpdocs/admin/'); // absolute pate required
define('DIR_WS_CATALOG''/'); // absolute path required
define('DIR_FS_CATALOG''/usr/local/www/vhosts/url.net/httpdocs/'); // absolute path required 
Make the above changes, and it will either work, or if not, check the error logs for the next round of errors, and post them here.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.

Last edited by michael_s; 05-09-2008 at 02:16 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 05-09-2008, 03:21 PM
Member
 
Join Date: Mar 2008
Posts: 33
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
Default Re: The mystierious "page that does not redirect properly"

Ok, it works...here was the fix: I had to edit the .htaccess file (the main one) with this:

php_flag register_long_arrays On

3 days banging my head...and it was over in 2 minutes!

I will, however, edit my admin/includes/configure.php per your suggestions for better form.

Thanks for sharing my headache...and I really hope everyone out there learns their lesson to make sure long_arrays are On in their php.ini files until a version of OSC comes along without the long arrays being used. Maybe this thread will save someone four days of headache...and save the smart people on this board from having to waste time rescuing the perishing OSCMax users because they jumped in without knowing how to swim!!

Haha...

Ok, Thanks again everybody....

J
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to jack_strit For This Useful Post:
MindTwist (06-17-2008)
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Clicked "Buy Now" Button Going to Wrong Page walt osCommerce 2.2 Modification Help 3 05-29-2007 04:14 PM
make link like "prod descriptin-buy now button" on another page bobcast osCommerce 2.2 Modification Help 1 02-11-2007 06:59 AM
Remove "QTPRO" for "Option Type Feature" adam71o osCMax v2 Customization/Mods 3 01-10-2007 10:32 AM
"Price" and "Add to Cart" button inside midwestwebsites osCMax v2 Customization/Mods 3 11-14-2005 05:13 AM
Define main page error - "file not writeable" mark754 osCMax v1.7 Discussion 4 01-16-2004 10:18 AM


All times are GMT -8. The time now is 09:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax