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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| ||||
| ||||
| 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
|
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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 |
|
#5
| ||||
| ||||
| 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
|
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| 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/');
__________________ John |
|
#8
| |||
| |||
| humm...includes/configure.php works...but admin/includes/configure.php is what does not work..is that what you are referring to??? Thanks! J |
|
#9
| ||||
| ||||
| 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:
__________________ Michael Sasek osCMax Developer
Last edited by michael_s; 05-09-2008 at 02:16 PM. |
|
#10
| |||
| |||
| 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 |
| The Following User Says Thank You to jack_strit For This Useful Post: | ||
MindTwist (06-17-2008) | ||
| Thread Tools | |
| |
| ||||
| 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 |