Guest Posted August 17, 2018 Share Posted August 17, 2018 I just installed the responsive version of oscommerce and the site itself comes up fine, but when I try to go to the admin page, I get "The page isn’t redirecting properly" in Firefox or just "This page can’t be displayed" in IE. Any idea what would be going on? Link to comment Share on other sites More sharing options...
MrPhil Posted August 17, 2018 Share Posted August 17, 2018 Usually it means that you messed up your .htaccess file, and the URL rewrites are going into a loop. Link to comment Share on other sites More sharing options...
Guest Posted August 18, 2018 Share Posted August 18, 2018 I looked at the .htaccess file in the Admin folder and every line in it starts with #, so the one in that particular folder is basically empty. I haven't had a chance to dig much at all yet. What I have noticed is that the link I clicked on is on the "New Installation Finished" page where it has the green button for "Online Store (Frontend)" and the blue button for "Administration Tool (Backend)" - in other words, I haven't modified or done ANYTHING other than setup the software through the initial setup - says that I am going to index.php in the Admin directory and the page that is giving me the error is the login.php page in the Admin directory. So it is seeing the file and sending me over to login since I'm not already logged in, it just can't bring that page up for whatever reason. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted August 18, 2018 Share Posted August 18, 2018 Could be anything but check the simple things first. 1) Make sure you have renamed the install directory or removed it. 2) Check to make sure you are using the corect name for the admin! I know sounds silly but people do rename admin during install and then forget what they used ( i've done that a few times 😊 3) Make sure you check you config files to see they are pointing to the corect paths for admin. 4) Clear you browser cache to make sure corect authentication is beeing used. 5) Check to make sure you are using corect username and password for admin. 6) Then try loging in direcctly from the browser not the page. https://www-anyoldsite-com/youradminame. See what that gives you? do you get to an authentcation window or not. 7) check error log and see if it has any clues. Link to comment Share on other sites More sharing options...
Guest Posted August 18, 2018 Share Posted August 18, 2018 Here is a link to the login page http://www.fcsavings.com/help.html I made it a separate page so I can delete the page after I'm done and not show my admin directory to everyone in the future. I hadn't done anything at all yet. The install directory was still there, I have now deleted it. I'm not getting to a point to be able to put in an admin name or password. This is the first time I've tried using oscommerce, so I'm not sure what the config files need to be. I have tried it from multiple browsers and multiple computers. Thanks for the help with the limited knowledge I'm able to provide. I figured it usually just works once the installation is done since it has to be able to connect to the database and run scripts and all in order to do the installation. Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 18, 2018 Share Posted August 18, 2018 Please post your admin/includes/configure.php file after removing the last few lines with the login credentials. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
♥JcMagpie Posted August 18, 2018 Share Posted August 18, 2018 Silly question but have you checked to see if you have set cookies to accepted in your browser? Link to comment Share on other sites More sharing options...
♥JcMagpie Posted August 18, 2018 Share Posted August 18, 2018 Should look like this for normall root store. <?php define('HTTP_SERVER', 'https://www-somedomain-com'); define('HTTPS_SERVER', 'https://www-somedomain-com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/youradmin'); define('HTTPS_COOKIE_PATH', '/youradmin'); define('HTTP_CATALOG_SERVER', 'https://www-somedomain-com'); define('HTTPS_CATALOG_SERVER', 'https://www-somedomain-com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home/somedomain/public_html/'); define('DIR_WS_ADMIN', '/youradmin/'); define('DIR_WS_HTTPS_ADMIN', '/youradmin/'); define('DIR_FS_ADMIN', '/home/somedomain/public_html/youradmin/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home/somedomain/public_html/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'www-somedomain-com'); define('DB_SERVER_USERNAME', 'YourUsername'); define('DB_SERVER_PASSWORD', 'YourPassword'); define('DB_DATABASE', 'somedomain_store'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); define('CFG_TIME_ZONE', 'Europe/London'); ?> Link to comment Share on other sites More sharing options...
Guest Posted August 18, 2018 Share Posted August 18, 2018 <?php define('HTTP_SERVER', 'http://www.fcsavings.com'); define('HTTPS_SERVER', 'http://www.fcsavings.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/SavingsAdmin'); define('HTTPS_COOKIE_PATH', '/SavingsAdmin'); define('HTTP_CATALOG_SERVER', 'http://www.fcsavings.com'); define('HTTPS_CATALOG_SERVER', 'http://www.fcsavings.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '//BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/'); define('DIR_WS_ADMIN', '/SavingsAdmin/'); define('DIR_WS_HTTPS_ADMIN', '/SavingsAdmin/'); define('DIR_FS_ADMIN', '//BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/SavingsAdmin/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_FS_CATALOG', '//BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', '*****'); define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '*****'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); define('CFG_TIME_ZONE', 'America/Chicago'); ?> Link to comment Share on other sites More sharing options...
Guest Posted August 18, 2018 Share Posted August 18, 2018 And yes, the browser is set to accept cookies. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted August 18, 2018 Share Posted August 18, 2018 Inspecting your site I get slightly diferent paths to your admin. \\boswinfs01\home\users\web\b511\ez.dazzlingd\FCSavings.com\SavingsAdmin define('DIR_FS_DOCUMENT_ROOT', '//BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/'); http://www.fcsavings.com/SavingsAdmin/test.php is what chrome reports Post you other file seeing as that is working and compare the paths. /home/FCSavings.com/public_html/includes/configure.php As its a redirect problem also try doing it with the .htaccess in root disabled just to be sure nothing silly is in that. Link to comment Share on other sites More sharing options...
Guest Posted August 18, 2018 Share Posted August 18, 2018 This is the configure.php from the includes folder in the root of FCSavings.com <?php define('HTTP_SERVER', 'http://www.fcsavings.com'); define('HTTPS_SERVER', 'http://www.fcsavings.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_FS_CATALOG', '//BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', '*****'); define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '*****'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); define('CFG_TIME_ZONE', 'America/Chicago'); ?> I renamed the .htaccess file in the root and got the same result. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted August 18, 2018 Share Posted August 18, 2018 No not spoted anything that jumps out in that. Try with the root .htaccess removed. If still no luck and nothing shows it could just be that the install got corrupted, As its just a fresh install try doing it again. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted August 19, 2018 Share Posted August 19, 2018 Your running on a windows server it may be worth talking to your host just to check if there are any IIS redirects setup on the server that may be conflicting with osC. They do offer official osC on there servers so they should have some idea if any confilcts can occure. Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 19, 2018 Share Posted August 19, 2018 18 hours ago, FCSavings said: define('HTTP_COOKIE_PATH', '/SavingsAdmin'); define('HTTPS_COOKIE_PATH', '/SavingsAdmin'); define('HTTP_CATALOG_SERVER', 'http://www.fcsavings.com'); define('HTTPS_CATALOG_SERVER', 'http://www.fcsavings.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '//BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/'); define('DIR_WS_ADMIN', '/SavingsAdmin/'); define('DIR_WS_HTTPS_ADMIN', '/SavingsAdmin/'); define('DIR_FS_ADMIN', '//BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/SavingsAdmin/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_FS_CATALOG', '//BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/'); Should be define('HTTP_COOKIE_PATH', '.SavingsAdmin'); define('HTTPS_COOKIE_PATH', '.SavingsAdmin'); define('HTTP_CATALOG_SERVER', 'http://www.fcsavings.com'); define('HTTPS_CATALOG_SERVER', 'http://www.fcsavings.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com'); define('DIR_WS_ADMIN', '/SavingsAdmin/'); define('DIR_WS_HTTPS_ADMIN', '/SavingsAdmin/'); define('DIR_FS_ADMIN', '/BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/SavingsAdmin/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_FS_CATALOG', '/BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/'); Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Guest Posted August 20, 2018 Share Posted August 20, 2018 JcMagpie - that's where I'm at now. I deleted everything and uploaded & installed and still have the same problem. So I contacted the host to see if they have any ideas. They have to "escalate it to level 3 support" or something like that, and will get back to me within 24 - 48 hours. Jack_mcs - I tried your changes and I get the same results. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted August 20, 2018 Share Posted August 20, 2018 Sorry I should have made it clear the first time, the problem is probably with the files you downloaded and unziped. Download a clean copy and install from that. https://github.com/gburton/Responsive-osCommerce Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 20, 2018 Share Posted August 20, 2018 3 hours ago, FCSavings said: Jack_mcs - I tried your changes and I get the same results. I question the use of "/BOSWINFS01/HOME/" in the file. Any I have ever seen on a Linux server starts with "/home" but since you have that in the shops configure file and you said that was working, it might be right, though you should ask your host to be sure. If you don't get it resolved, please post both the shops and admin .htaccess files. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
♥JcMagpie Posted August 20, 2018 Share Posted August 20, 2018 39 minutes ago, Jack_mcs said: Any I have ever seen on a Linux server starts with Based on this I suspect he beeing hosted on a windows server. Link to comment Share on other sites More sharing options...
Guest Posted August 20, 2018 Share Posted August 20, 2018 I just downloaded from your link, deleted everything and reuploaded and went through the setup again - same problem. I am on a windows server because a long time ago I coded in asp with access database and I still have a site that I haven't updated to something better. Link to comment Share on other sites More sharing options...
Guest Posted August 20, 2018 Share Posted August 20, 2018 root directory .htaccess # $Id$ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # 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> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # php_value session.use_trans_sid 0 # php_value register_globals 1 <IfModule mod_headers.c> Header unset ETag </IfModule> FileETag None ## EXPIRES CACHING ## ## https://gtmetrix.com/leverage-browser-caching.html ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType text/css "access plus 1 month" ExpiresByType application/pdf "access plus 1 month" ExpiresByType text/x-javascript "access plus 1 month" ExpiresByType application/x-shockwave-flash "access plus 1 month" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType application/javascript "access plus 1 year" ExpiresDefault "access plus 2 days" </IfModule> ## EXPIRES CACHING ## Admin Folder .htaccess file # $Id$ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # 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> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # php_value session.use_trans_sid 0 # php_value register_globals 1 Link to comment Share on other sites More sharing options...
♥JcMagpie Posted August 20, 2018 Share Posted August 20, 2018 Nothing in that should be causing a redirect. I havent used a windows server in a long time so not going to be much use to you.😊 I do know they can have redirect issue as many have it set at server level for IIS redirects. You need to talk to your host as they will need to run a trace on the IIS redirect loop you are geting lost in. They then should be able to pin down the cause. Without access to your site or server not much more I can recomend. I take it you had no errors loged in your root error_log file? Link to comment Share on other sites More sharing options...
♥JcMagpie Posted August 20, 2018 Share Posted August 20, 2018 I'm suspecting that the sessios are beeing messed up by the windows server! Try turning them off and see what happens. enableSessionState is set to false in webconfig, Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 21, 2018 Share Posted August 21, 2018 4 hours ago, JcMagpie said: Based on this I suspect he beeing hosted on a windows server. I, too, haven't worked on a Windows server in some time but as I recall, the path was always an absolute path, like d:\user... Maybe that is different, or no longer the case, with some servers. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Guest Posted August 21, 2018 Share Posted August 21, 2018 All I see in the log file is 92.109.41.26 - - [19/Aug/2018:08:18:51 -0500] "GET /FCSavings.com/SavingsAdmin/login.php HTTP/1.1" 302 201 "-" "Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/68.0.3440.106+Safari/537.36" repeated 21 times in 2 seconds one time, 38 times in 5 seconds another time, etc. except that the first line is index.php instead of login.php. I haven't heard back from the host yet - I need a different host. The last time I had an issue, it took 3 days for them to get back to me. You get what you pay for. I did try the enambleSessionState and it didn't seem to make a difference. I also played with the configure file - if I take out the entire define('DIR_FS_DOCUMENT_ROOT', '//BOSWINFS01/HOME/users/web/b511/ez.dazzlingd/FCSavings.com/'); line both in the store and the admin configure files and it doesn't make any difference. So to make sure it was reading those files, I took out the define('DB_SERVER..." line and then it says it can't connect to the database. So it is reading the files. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.