Nintendude Posted August 12, 2010 Posted August 12, 2010 Hey Guys, So here is the issue. Had the admin working fine on the site and went to log in yesterday and now the login brings me back to the login.php screen and ask me to log in again. It should redirect to the index.php file. here is the /admin/includes/configure.php file define('HTTP_SERVER', 'http://MYDOMAIN'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://MYDOMAIN'); define('HTTPS_CATALOG_SERVER', 'https://MYDOMAIN'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/www/MYDOMAIN/'); // where the pages are located on the server define('DIR_WS_ADMIN', 'admin/'); // absolute path required define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT.'admin/'); // absolute pate required define('DIR_WS_CATALOG', ''); // absolute path required define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT); // 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 our database connection define('DB_SERVER', 'MYSERVER'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'USERNAME'); define('DB_SERVER_PASSWORD', 'PASSWORD'); define('DB_DATABASE', 'DATABASE'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' re-dumped the database and the users and passwords exist to, it just makes no sense. I searched the forums but the posts regarding this similar issue are ancient anyone else come across this and resolved the issue. Please any help or suggestions would be greatly appreciated. Please help so I can finish this already!!
Nintendude Posted August 12, 2010 Author Posted August 12, 2010 Tried changing the configure file over and over and still no luck. Think it could be server side? Hey Guys, So here is the issue. Had the admin working fine on the site and went to log in yesterday and now the login brings me back to the login.php screen and ask me to log in again. It should redirect to the index.php file. here is the /admin/includes/configure.php file define('HTTP_SERVER', 'http://MYDOMAIN'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://MYDOMAIN'); define('HTTPS_CATALOG_SERVER', 'https://MYDOMAIN'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/www/MYDOMAIN/'); // where the pages are located on the server define('DIR_WS_ADMIN', 'admin/'); // absolute path required define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT.'admin/'); // absolute pate required define('DIR_WS_CATALOG', ''); // absolute path required define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT); // 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 our database connection define('DB_SERVER', 'MYSERVER'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'USERNAME'); define('DB_SERVER_PASSWORD', 'PASSWORD'); define('DB_DATABASE', 'DATABASE'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' re-dumped the database and the users and passwords exist to, it just makes no sense. I searched the forums but the posts regarding this similar issue are ancient anyone else come across this and resolved the issue. Please any help or suggestions would be greatly appreciated. Please help so I can finish this already!!
Jan Zonjee Posted August 12, 2010 Posted August 12, 2010 Tried changing the configure file over and over and still no luck. Think it could be server side? Have you checked the url in the form part of the login page? If you are on http and it directs to https it might be that. Or perhaps you use a domain.com where you use a www.domain.com in the form and you have a .htaccess that chops of the www but loses the HTTP POST variables in the process.
Nintendude Posted August 13, 2010 Author Posted August 13, 2010 not sure, I called my hosting company and there does not seem to be an issue there as the report logs are not showing any errors. PHP Sessions are being created to so thats not it either. Have you checked the url in the form part of the login page? If you are on http and it directs to https it might be that. Or perhaps you use a domain.com where you use a www.domain.com in the form and you have a .htaccess that chops of the www but loses the HTTP POST variables in the process. Please help so I can finish this already!!
Jan Zonjee Posted August 13, 2010 Posted August 13, 2010 not sure, I called my hosting company and there does not seem to be an issue there as the report logs are not showing any errors. PHP Sessions are being created to so thats not it either. Well, it is nice weather so it is not the cold either...
Nintendude Posted August 17, 2010 Author Posted August 17, 2010 Well this has me very baffled. Does anyone know a solution to this issue? Could it be the version of PHP running on my server. Odd thing is that the Development server our webmaster is working on everything works fine. Well, it is nice weather so it is not the cold either... Please help so I can finish this already!!
Jan Zonjee Posted August 17, 2010 Posted August 17, 2010 Well this has me very baffled. Does anyone know a solution to this issue? Probably, but we are not psychic here. If you can only tell us that this works fine and that works fine, can't give answer to our question, but only keep telling us you can't login ... We cannot see the page you are seeing, we can't see the code of your login.php etcetera. How the heck do you think we can tell you what the problem is? Read tea leaves? Ouija board? Crystal ball?
Nintendude Posted September 28, 2010 Author Posted September 28, 2010 Probably, but we are not psychic here. If you can only tell us that this works fine and that works fine, can't give answer to our question, but only keep telling us you can't login ... We cannot see the page you are seeing, we can't see the code of your login.php etcetera. How the heck do you think we can tell you what the problem is? Read tea leaves? Ouija board? Crystal ball? Well sorry for being so vague. Figued out the problem so will post my solution here incase anyone else has the same problem in the future. After over a month with nothing working, and hosting company not being able to help and web developer clueless, I figured it out myself with a few more hours of google searching. I figured out that I’d incorrectly (?) Define the webserver and path parameters for e.g.: define(‘HTTP_SERVER’, ‘http://localhost/catalog’); define(‘DIR_WS_HTTP_CATALOG’, ‘/’); I changed it to: define(‘HTTP_SERVER’, ‘http://localhost’); define(‘DIR_WS_HTTP_CATALOG’, ‘/catalog/’); Now everything works flawlessly. Hope this helps the community in the future. Please help so I can finish this already!!
Guest Posted November 8, 2010 Posted November 8, 2010 Well sorry for being so vague. Figued out the problem so will post my solution here incase anyone else has the same problem in the future. After over a month with nothing working, and hosting company not being able to help and web developer clueless, I figured it out myself with a few more hours of google searching. I figured out that I’d incorrectly (?) Define the webserver and path parameters for e.g.: define(‘HTTP_SERVER’, ‘http://localhost/catalog’); define(‘DIR_WS_HTTP_CATALOG’, ‘/’); I changed it to: define(‘HTTP_SERVER’, ‘http://localhost’); define(‘DIR_WS_HTTP_CATALOG’, ‘/catalog/’); Now everything works flawlessly. Hope this helps the community in the future. I had the same problem, things where weird logging in after I passwd secured the admin directory I remember changing the config file then forgot I guess when it no longer worked. In a pinch remember what was the last thing you did.:)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.