-
Can't login to admin
Hi,
I had previously installed ZC 1.3.0.1 on my web host server and while I was still configuring my admin, payment, shipping, etc. I had an error with my sql database. In frustaration I deleted the database and completely reinstalled ZC to the newest 1.3.0.2 version. Since the reinstall I could not login to admin but the home page would display. After messing with it awhile I thought it might be something to do with the newest version so I deleted it and reinstalled version 1.3.0.1 and I still can't login to admin.
I search the forum and found the previous thread by "stevehare" concerning "login issues". I have checked out all of the suggestions in that thread but to no avail. I need help!
Thanks,
Brad
Here is my includes/configure.php file. I will follow with my admin/includes/configure.php
<?php
/**
*
* @package Configuration Settings
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
define('HTTP_SERVER', 'http://www.bigfruitwarehouse.com');
define('HTTPS_SERVER', 'https://www.bigfruitwarehouse.com');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
define('DIR_WS_PHPBB', '/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/www/bigfruitwarehouse.com/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'mysql2.freehostia.com'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', 'xxxxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxxxxx');
define('DB_DATABASE', 'braker_zencart');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/www/bigfruitwarehouse.com/catalog/cache');
?>
-
Re: Can't login to admin
Here is my admin/includes/configure.php file:
<?php
//
/**
*
* @package Configuration Settings
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
// Define the webserver and path parameters
// Main webserver: eg, http://localhost - should not be empty for productive servers
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
/*
* URLs for your site will be built via:
* HTTP_SERVER plus DIR_WS_ADMIN or
* HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
* HTTP_SERVER plus DIR_WS_CATALOG or
* HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
* ...depending on your system configuration settings
*/
define('HTTP_SERVER', 'http://www.bigfruitwarehouse.com');
define('HTTPS_SERVER', 'https://www.bigfruitwarehouse.com');
define('HTTP_CATALOG_SERVER', 'http://www.bigfruitwarehouse.com');
define('HTTPS_CATALOG_SERVER', 'https://www.bigfruitwarehouse.com');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/catalog/admin/');
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/home/www/bigfruitwarehouse.com/catalog/admin/');
define('DIR_FS_CATALOG', '/home/www/bigfruitwarehouse.com/catalog/');
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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'mysql2.freehostia.com'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', 'xxxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxxx');
define('DB_DATABASE', 'braker_zencart');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/www/bigfruitwarehouse.com/catalog/cache');
?>
-
Help - Can't login to admin
Can anyone give me some direction on this problem? Could this be a server issue?
Thanks,
Brad.
-
Re: Can't login to admin
On your Catalog ... if I view the CSS files in FireFox I am getting errors that look like permission errors ...
As to your admin ... peek at your database table for admin via phpMyAdmin and see what admin_name and admin_email is used ...
If they are correct, you should be able to send yourself a new password with the forgotten password ...
If the table is empty then we will need to give you a hand in getting a login added ...
-
Re: Can't login to admin
I have checked the admin table in the database and it has both the correct email address and admin login name. I tried the Resend Password but never got it. Could this be a server problem, as in the host doesn't have SMTP activated?
What do you mean by permission errors in the CSS files?
Thanks, Linda
-
Re: Can't login to admin
I forgot to add:
When I try to login the page starts to load, then stop part way through.
-
Re: Can't login to admin
FireFox has a handy dandy tool to peek at the CSS for the site ...
On your site, I get errors vs the CSS files ... example of part of what I see:
Quote:
CSS -
http://www.bigfruitwarehouse.com/catalog/
http://www.bigfruitwarehouse.com/catalog/
http://www.bigfruitwarehouse.com/cat...esheet_new.css
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator,
support AT freehostia DOT com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<HR>
<ADDRESS>Apache/1.3.33 Server at bigfruitwarehouse.com Port 80</ADDRESS>
</BODY></HTML>
As to your emails ... this could be an email issue ... but you are kind of in la la land right now ...
Paste this into the admin_pass for your good admin_name that has your email:
Quote:
351683ea4e19efe34874b501fdbf9792:9b
That is: admin
Login, and change your password to your own asap ...
-
Re: Can't login to admin
I pasted the admin_pass code and tried to login with "admin" as my password, but still no go. Ugh!
The really wierd thing about all of this, is that I had ZC install and working before all of this, but out of ignorance I messed my database up and started over. Hindsight, I could have repaired my database!
-
unable to login to admin
I have just installed Zen Cart; no problems, no warnings. Default shop shows fine but I cannot login to admin.
I have read all the posts that I could find on this forum but none have helped. I have used the 'resend password' feature and tried the new password but this did not help.
SSL in the configure.php files are set to false. When trying to login the status bar at the bottom of the screen just tells me it is waiting for a response from my domain which it never gets.
Should I delete everything and start again?
-
Re: unable to login to admin
check the file at admin/includes/configure.php and make sure the settings and paths are correct. If you can get to the cart and see the admin login, it might be a misspelling in the configure.php
-
Re: unable to login to admin
I cannot see anything wrong with configure.php
I'll probably try a re-install.
-
Re: unable to login to admin
Don't kill an ant with an atom bomb. Look to see if all files were uploaded to your site in the admin directory and make sure there are none that are 0 in size.
-
Re: unable to login to admin
No zero byte files in admin.
I carried out another check and I found that I was not waiting long enough. From the moment I clicked the login button to the admin page being displayed took about 3 minutes. Of course, it should be near enough instantaneous so something is amiss.
I do know that my hosting company is carrying out some maintenance but I am not convinced this is the reason.
Anyhow, now that I was in admin I was able to carry out another test and that was to see if I can add a product and for that product to show an image. This failed and I wasn't surprised. Last week I installed osCommerce and I could not get this program to display an image. I joined the osCommerce forum but no one was able to solve my problem. I installed osCommerce twice but no luck.
I was hoping that I may have more luck with Zen Cart but sadly, no.
Unless I am able to add an image then I 'm afraid I'll have to stay with my current e-commerce software.
-
Re: unable to login to admin
Unless you've personalized the admin page with a 5mb picture, it should pop up in 3 seconds:shocking:
Go to admin --> configuration --> Logging and turn the display parse time to true. That will tell you how long the system is taking to load or obtain data from the database.
Can you give us a link?
-
Re: unable to login to admin
In admin, see if turning off auto-update checking (if enabled) makes a difference. I forget where it is set.
That might be it. I turned mine off for this reason, and admin login is zingy now.
HTH
-
Re: unable to login to admin
Login again took over 3 mins. I turned on logging but not sure what to look for.
I cannot find anywhere that controls the checking for updates. The trouble is if I click anything within admin that causes the same effect as when I try to log in then I cannot do anything within admin for 3 mins. I am currently waiting for it to become responsive again.
I think I'll leave this for today and try again tomorrow.
-
Re: unable to login to admin
admin > config > my store > Show if version update available
-
Re: unable to login to admin
A re-install of Zen Cart has cured the login problem. Enters admin immediately. I still cannot add images, though. I'll create a new post for this.
-
Re: unable to login to admin
Quote:
Originally Posted by
septimus
I have just installed Zen Cart; no problems, no warnings. Default shop shows fine but I cannot login to admin. I have read all the posts that I could find on this forum but none have helped. I have used the 'resend password' feature and tried the new password but this did not help. SSL in the configure.php files are set to false. When trying to login the status bar at the bottom of the screen just tells me it is waiting for a response from my domain which it never gets. Should I delete everything and start again?
I have experienced the same identical problem. I can not login to the ADMIN page regardless of what I try. I have examined everything and can find no installation errors at all. This is EXTREMELY frustrating!
Ed Newbold
Columbus, OH
:censored:
-
Re: unable to login to admin
Ed -
Start by reuploading the Admin directory.
Can you login or create an account as a customer?
-
Re: unable to login to admin
Quote:
Originally Posted by
Kim
Ed -
Start by reuploading the Admin directory.
Can you login or create an account as a customer?
Yes, I can create a new customer account, and can login as that customer.
-
Re: unable to login to admin
I'm having the same problem after going through the forums and not having any luck with the alternative methods.
However after I fill in the forms with the correct details and hit the Login button, the page simply refreshes. If I put the wrong details in I'm given "You entered the wrong username or password." message. So obviously it registers that my pass is ok, but doesn't want to do anything about it.
phpMyAdmin 2.6.4
PHP 4.3.2
:frusty:
-
Re: unable to login to admin
Quote:
Originally Posted by
stabmag
I'm having the same problem after going through the forums and not having any luck with the alternative methods.
However after I fill in the forms with the correct details and hit the Login button, the page simply refreshes. If I put the wrong details in I'm given "You entered the wrong username or password." message. So obviously it registers that my pass is ok, but doesn't want to do anything about it.
phpMyAdmin 2.6.4
PHP 4.3.2
:frusty:
Yep. Me too! Same identical problem. I've been wrestling with this crap for 48 hours now, and STILL can't get in to do any administration whatsoever. And you, me and two others are ALL experiencing this problem! ALL of us reported 'normal' error-free installations, current version of Zen Cart, good PHP, Linux and MySql platforms. What the hell???
I'm starting to think this Zen Cart package is a LOT more hassle than it's worth!
:censored:
Ed Newbold
Columbus, OH
-
Re: unable to login to admin
What version php are you each using?
php 4.3.2 is rather ancient ...
Turn off the enable on the secure page in the:
/admin/includes/configure.php
Does it work now?
If not, post the file, from the server, without the username and password, for:
/admin/includes/configure.php
-
Re: unable to login to admin
Quote:
Originally Posted by
Ajeh
What version php are you each using?
php 4.3.2 is rather ancient ...
Turn off the enable on the secure page in the:
/admin/includes/configure.php
Does it work now?
If not, post the file, from the server, without the username and password, for:
/admin/includes/configure.php
http://enewbold.com/atest.php will show you my environment. Yes, it's version 4.3.2, but I have no control over that. The ISP admin has not yet updated the system.
What do you mean by "post the file" ? You want my url to the admin page? Like:
http://perfectcreationsonline.com/ca...dmin/login.php
-or- do you want the code posted for configure.php?
Thanks,
Ed
-
Re: unable to login to admin
-
Re: unable to login to admin
admin/includes/config.php
<?php
//
/**
*
* @package Configuration Settings
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// Main webserver: eg, http://localhost - should not be empty for productive servers
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
/*
* URLs for your site will be built via:
* HTTP_SERVER plus DIR_WS_ADMIN or
* HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
* HTTP_SERVER plus DIR_WS_CATALOG or
* HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
* ...depending on your system configuration settings
*/
define('HTTP_SERVER', 'http://perfectcreationsonline.com');
define('HTTPS_SERVER', 'https://perfectcreationsonline.com');
define('HTTP_CATALOG_SERVER', 'http://perfectcreationsonline.com');
define('HTTPS_CATALOG_SERVER', 'https://perfectcreationsonline.com');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/catalog/admin/');
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/web/script/enewbold/perfectcreationsonline.com/catalog/admin/');
define('DIR_FS_CATALOG', '/web/script/enewbold/perfectcreationsonline.com/catalog/');
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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'db.sabren.com');
define('DB_SERVER_USERNAME', 'xxxxxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxxxxxx');
define('DB_DATABASE', 'enewbold_db');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/web/script/enewbold/perfectcreationsonline.com/catalog/cache');
?>
-
Re: unable to login to admin
Ok below is my config file, I hope you don't mind me jumping back onboard for help here. Also I should probably mention that during the installation where asked to give the Physical path to your Zen Cart directory. Leave no trailing slash. I actually couldn't get this page work without giving as trailing slash - (Physical path is incorrect - was the warning I got prior to putting in a trailing slash)
/var/virtual/web/w1906/subdomain/shop/
So the install worked fine and the shop looks fine, but the log in just isn't happening.
To fix this I went into the admin/includes/configure.php file and amended the double slashes '//' within lines 60 and 61
define('DIR_FS_ADMIN', '/var/virtual/web/w1906/subdomain/shop//admin/');
define('DIR_FS_CATALOG', '/var/virtual/web/w1906/subdomain/shop//');
Again this didn't fix anything.
I appreciate your efforts here.
<?php
//
/**
*
* @package Configuration Settings
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// Main webserver: eg, http://localhost - should not be empty for productive servers
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
/*
* URLs for your site will be built via:
* HTTP_SERVER plus DIR_WS_ADMIN or
* HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
* HTTP_SERVER plus DIR_WS_CATALOG or
* HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
* ...depending on your system configuration settings
*/
define('HTTP_SERVER', 'http://shop.stabmag.com');
define('HTTPS_SERVER', 'https://shop.stabmag.com');
define('HTTP_CATALOG_SERVER', 'http://shop.stabmag.com');
define('HTTPS_CATALOG_SERVER', 'https://shop.stabmag.com');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/var/virtual/web/w1906/subdomain/shop/admin/');
define('DIR_FS_CATALOG', '/var/virtual/web/w1906/subdomain/shop/');
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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'XXXX');
define('DB_SERVER_PASSWORD', 'XXXX');
define('DB_DATABASE', 'stabmag_com_zencart');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/var/virtual/web/w1906/subdomain/shop/cache');
?>
-
Re: unable to login to admin
Hehehe... just what I thought: no answer to this obviously recurring problem! :lookaroun
As I have discovered there are so many people who encounter this problem, I don't understand why nothing concrete or definitive has been done to get it resolved! :censored:
Ed Newbold
Columbus, OH
-
Re: unable to login to admin
Ok, so in summary there has been no more responses to this thread so I guess there is no solution to this problem.
Thanks for the support and if anyone can recommend an alternative to Zen Cart I'd love to hear it.
No grudges held here, just moving on.
-
Re: unable to login to admin
Some servers do not work well as a subdomain ...
Have you tried installing Zen Cart as a subdirectory instead?
-
Re: unable to login to admin
Trying it now, thanks for the tip.
-
Re: unable to login to admin
Bah! It didn't work.
Thanks for your help anyway
-
Re: unable to login to admin
Quote:
Originally Posted by
septimus
I cannot see anything wrong with configure.php
I'll probably try a re-install.
I cannot see anything wrong with configure.php too!:smartalec:
-
Re: unable to login to admin
Quote:
Originally Posted by
stabmag
Bah! It didn't work.
Thanks for your help anyway
When you change it to a subdirectory ... what did you change your configure.php to read?
-
Re: unable to login to admin
Below is the new config file. I think it's all ok.
This is actually one of a few problems I'm having using PHP 4.3.2, so I'm looking into a new hosting provider that provides the latest PHP.
<?php
//
/**
*
* @package Configuration Settings
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// Main webserver: eg, http://localhost - should not be empty for productive servers
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
/*
* URLs for your site will be built via:
* HTTP_SERVER plus DIR_WS_ADMIN or
* HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
* HTTP_SERVER plus DIR_WS_CATALOG or
* HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
* ...depending on your system configuration settings
*/
define('HTTP_SERVER', 'http://www.stabmag.com');
define('HTTPS_SERVER', 'https://www.stabmag.com');
define('HTTP_CATALOG_SERVER', 'http://www.stabmag.com');
define('HTTPS_CATALOG_SERVER', 'https://www.stabmag.com');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/shop/admin/');
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/var/virtual/web/w1906/html/shop/admin/');
define('DIR_FS_CATALOG', '/var/virtual/web/w1906/html/shop/');
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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'xxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'stabmag_com_zencart');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/var/virtual/web/w1906/html/shop/cache');
?>
-
Re: unable to login to admin
It seems that logging into the admin pages with zen-cart-1.3.7.1 using PHP-4.3.2 is broken. After entering the correct login/passwd, it will just return back to the login page.
The issue has to do with the call to session_regenerate_id() from zen_session_recreate() in includes/functions/sessions.php (which is called from admin/login.php).
According to the php documentation for php, "Version 4.3.3: Since then, if session cookies are enabled, use of session_regenerate_id() will also submit a new session cookie with the new session id." See the documentation here:
That means that 4.3.2 does not submit a new session cookie with the new session id.
The fix provided by buraks78 in the comments in the link above seems to address the issue and fix the zen-cart login to the admin page.
Basically, add this directly after the call to session_regenerate_id() in includes/functions/sessions.php:
Code:
if(!version_compare(phpversion(),"4.3.3",">=")){
setcookie(
session_name(),
session_id(),
ini_get("session.cookie_lifetime"),
"/"
);
}
Herb.
-
Re: unable to login to admin
-
Re: unable to login to admin
I have edited my configure.php file so that it uses a subdomain instead of my orignal configuration.
ORIGINAL CONFIG:
define('HTTP_SERVER', 'http://skeg-protector.com');
define('HTTPS_SERVER', 'https://skeg-protector.com');
define('HTTP_CATALOG_SERVER', 'http://skeg-protector.com');
define('HTTPS_CATALOG_SERVER', 'https://skeg-protector.com');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/shop/admin/');
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');
CURRENT CONFIG:
define('HTTP_SERVER', 'http://shop.skeg-protector.com');
define('HTTPS_SERVER', 'https://shop.skeg-protector.com');
define('HTTP_CATALOG_SERVER', 'http://shop.skeg-protector.com');
define('HTTPS_CATALOG_SERVER', 'https://shop.skeg-protector.com');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '');
Now, when I try to log into admin using firefox, it doesn't give me bad user/pass message, but simply leaves me at the log in screen.
When I log in with IE it takes me into the admin area - no prob. It has the correct urls for all links and everything (http://shop.skeg-protector.com/admin/blah).
Any ideas as to why it would work with IE and not Firefox?
Thanks,
Paul
-
Re: unable to login to admin
OK....
I had to restart firefox and bang-o it works again.
sorry about that.
paul
-
Re: unable to login to admin
There's a clear cache addon for firefox that I find VERY useful. Looks like a little broom.
https://addons.mozilla.org/en-US/firefox/addon/1801
-
Re: unable to login to admin
I am having the same login problem.. So do I add this code to the config file? If so which config file?
if(!version_compare(phpversion(),"4.3.3",">=")){
setcookie(
session_name(),
session_id(),
ini_get("session.cookie_lifetime"),
"/"
);
}
AND/OR
do I use sub-domain to make it all work????
ANY help would be great..
Thanks,
Denny
-
Re: unable to login to admin
Have any of you thought to ask your hosts to upgrade their version of php? php4.4 fixed some nasty security problems ...
-
Re: unable to login to admin
Quote:
Originally Posted by
denny1
I am having the same login problem..
Denny,
There are 11 different people posting in this thread.
Can you please explain your specific problem to be sure we know which "same login problem" we're dealing with ?
A URL would help too, as well as your PHP version, your server operating system (windows/linux/home computer/etc)
-
Re: unable to login to admin
Quote:
Originally Posted by
stabmag
I'm having the same problem after going through the forums and not having any luck with the alternative methods.
However after I fill in the forms with the correct details and hit the Login button, the page simply refreshes. If I put the wrong details in I'm given "You entered the wrong username or password." message. So obviously it registers that my pass is ok, but doesn't want to do anything about it.
phpMyAdmin 2.6.4
PHP 4.3.2
:frusty:
I am having this prob as well now.... exactly as you've said above. I've installed zen-cart on another server and it worked fine, didn't do anything different this time, so I'm completely flummoxed...
-
Re: unable to login to admin
Less flummoxed now, as it appeared to be a cache problem in Firefox... flushed the cache and logged in ok...
-
Re: unable to login to admin
I can get to the store front and I can create an account and login to it. Everything seems to be working fine. When I try to access the admin it says I have entered the wrong username and password. I have checked and rechecked and I am entering the correct username and password.
Zen Cart will be installed on a Linux Red Hat Enterprise Linux 4 with PHP 5.2.x. Since I have never used Zen Cart I have installed it on another server for testing before installing it on the other server. The server I am using to test it on is a Linux with Redhat 9 and is only running PHP 4.3.11. I was told by the hosting company that PHP can not be upgraded on this old server. Is there anything I can do to get Zen Cart to run on the server with PHP 4.3.11 just for testing purposes?
Thanks for any help you can give me on this.
PHP Code:
<?php
//
/**
*
* @package Configuration Settings
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// Main webserver: eg, http://localhost - should not be empty for productive servers
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
/*
* URLs for your site will be built via:
* HTTP_SERVER plus DIR_WS_ADMIN or
* HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
* HTTP_SERVER plus DIR_WS_CATALOG or
* HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
* ...depending on your system configuration settings
*/
define('HTTP_SERVER', 'http://www.dennyg.com');
define('HTTPS_SERVER', 'https://www.dennyg.com');
define('HTTP_CATALOG_SERVER', 'http://www.dennyg.com');
define('HTTPS_CATALOG_SERVER', 'https://www.dennyg.com');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/animal/catalog/admin/');
define('DIR_WS_CATALOG', '/animal/catalog/');
define('DIR_WS_HTTPS_ADMIN', '/animal/catalog/admin/');
define('DIR_WS_HTTPS_CATALOG', '/animal/catalog/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/home/sites/www.dennyg.com/web/animal/catalog/admin/');
define('DIR_FS_CATALOG', '/home/sites/www.dennyg.com/web/animal/catalog/');
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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '******');
define('DB_SERVER_PASSWORD', '******');
define('DB_DATABASE', 'cart');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/sites/www.dennyg.com/web/animal/catalog/cache');
?>
PHP Code:
<?php
/**
*
* @package Configuration Settings
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
define('HTTP_SERVER', 'http://www.dennyg.com');
define('HTTPS_SERVER', 'https://www.dennyg.com');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/animal/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/animal/catalog/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
define('DIR_WS_PHPBB', '/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/sites/www.dennyg.com/web/animal/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '******');
define('DB_SERVER_PASSWORD', '******');
define('DB_DATABASE', 'cart');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/sites/www.dennyg.com/web/animal/catalog/cache');
?>
-
Re: unable to login to admin
Quote:
Originally Posted by
denny1
I can get to the store front and I can create an account and login to it. Everything seems to be working fine. When I try to access the admin it says I have entered the wrong username and password. I have checked and rechecked and I am entering the correct username and password.
Zen Cart will be installed on a Linux Red Hat Enterprise Linux 4 with PHP 5.2.x. Since I have never used Zen Cart I have installed it on another server for testing before installing it on the other server. The server I am using to test it on is a Linux with Redhat 9 and is only running PHP 4.3.11. I was told by the hosting company that PHP can not be upgraded on this old server. Is there anything I can do to get Zen Cart to run on the server with PHP 4.3.11 just for testing purposes?
Thanks for any help you can give me on this.
4.3.11 shouldn't be causing you this problem.
The problem with admin logins not processing is typically bad cookies.
Either they're being blocked by firewall software or browser configuration, or they're getting set to a domain name that doesn't match your admin area, or aren't getting set at all because of settings on the server.
Sometimes the PHP code might block it from happening properly, esp in older PHP versions, but 4.3.11 shouldn't be the problem AFIK.
If during installation you chose to ignore warning messages about PHP session settings, that could also be a problem.
Every time I've had the symptoms you describe it's been instantly resolved by flushing browser cache and/or turning off firewall software that was blocking session cookies.
How long has this been happening?
Did it ever work properly? How long ago?
-
Re: unable to login to admin
I just installed Zen Cart 24 hours ago. I have not been able to login to the Admin at all. I did not get any errors when I installed Zen Cart. The install went smooth.
I just cleaned out the browser cache. I set my browser to accept ALL cookies. I shut off Windows Firewall. I restarted my PC and I still have the problem. I am using IE7.
The server I am using is a virtual server. The database is under the domain of the primary domain of the server. I believe it is also under a different IP. Would this make a difference? What if I was to use a domain that I know is using the same IP as the primary domain the server is using?
Thanks for the help on this...
Denny
-
Re: unable to login to admin
Quote:
Originally Posted by
denny1
The server I am using is a virtual server. The database is under the domain of the primary domain of the server. I believe it is also under a different IP. Would this make a difference? What if I was to use a domain that I know is using the same IP as the primary domain the server is using?
I don't think changing the IP of your database would make any difference.
For kicks, do you happen to have Firefox installed to test in a different browser?
Can you upload the zc_install/techsupp.php file and post a link ?
-
Re: unable to login to admin
Here is the link..
dennyg.com/animal/catalog/zc_install_YIKS/techsupp.php
-
Re: unable to login to admin
create a new file, at /animal/catalog/admin/includes/local/ ... named configure.php
put only the following in it:
Code:
<?php // These are for DEBUG ONLY - not for a live shop
define('SESSION_RECREATE', 'False');
What happens when you attempt admin login ?
-
Re: unable to login to admin
No change.. It will not let me login..
-
Re: unable to login to admin
Is your cache folder writable by all ? (chmod 777)
/home/sites/www.dennyg.com/web/animal/catalog/cache
Does it make any difference if you change that /admin/includes/local/configure.php file and add this below the line already there?:
Code:
// this is also for DEBUG ONLY -- not for a live shop
define('SESSION_USE_FQDN', 'False');
-
Re: unable to login to admin
I just installed FireFox and it is doing the same as IE7.. Not letting me into the Admin but I can pull up the store and login..
-
Re: unable to login to admin
I checked the cache folder and it is ok. I added the line to the config file and uploaded it.. NO Changes.. Still does not work..
Should I try a NEW Install?
-
Re: unable to login to admin
A fresh install might help.
When you've been testing this, did you have the "www." in the URL, or just "dennyg.com" ? Does it make any difference either way ?
-
Re: unable to login to admin
I have tried both ways and it makes no difference..
-
Re: unable to login to admin
Truly bizarre, esp since the storefront works fine.
-
Re: unable to login to admin
As a test, try adding this to that /.../local/configure.php file:
Code:
// this is a DEBUG idea ONLY - not for a live shop
define('STORE_SESSIONS', '');
-
Re: unable to login to admin
You had quoted beerdawg earlier:
Quote:
Originally Posted by
beerdawg
It seems that logging into the admin pages with zen-cart-1.3.7.1 using PHP-4.3.2 is broken. After entering the correct login/passwd, it will just return back to the login page.
The issue has to do with the call to session_regenerate_id() from zen_session_recreate() in
includes/functions/sessions.php (which is called from admin/login.php).
According to the php documentation for php, "Version 4.3.3: Since then, if session cookies are enabled, use of session_regenerate_id() will also submit a new session cookie with the new session id." See the documentation here:
That means that 4.3.2 does not submit a new session cookie with the new session id.
The fix provided by buraks78 in the comments in the link above seems to address the issue and fix the zen-cart login to the admin page.
Basically, add this directly after the call to session_regenerate_id() in includes/functions/sessions.php:
Code:
if(!version_compare(phpversion(),"4.3.3",">=")){
setcookie(
session_name(),
session_id(),
ini_get("session.cookie_lifetime"),
"/"
);
}
Herb.
Quote:
Originally Posted by
denny1
I am having the same login problem.. So do I add this code to the config file? If so which config file?
Code:
if(!version_compare(phpversion(),"4.3.3",">=")){
setcookie(
session_name(),
session_id(),
ini_get("session.cookie_lifetime"),
"/"
);
}
AND/OR
do I use sub-domain to make it all work????
ANY help would be great..
Thanks,
Denny
You could still try it, even though your PHP version is newer than the 4.3.2 issue they mentioned.
Edit the file they mentioned:
/includes/functions/sessions.php
Find the text they mentioned:
session_regenerate_id();
Add the code they mentioned:
Code:
if(!version_compare(phpversion(),"4.3.3",">=")){
setcookie(
session_name(),
session_id(),
ini_get("session.cookie_lifetime"),
"/"
);
}
-
Re: unable to login to admin
And clear your browser cache and cookies.
-
Re: unable to login to admin
I added the third line to the config file.. NO change..
I added the code into the sessions file.. No change..
I cleared the cache and cookies.. No change..
I got all the emails form the store..
I tried it in both browsers..
Should I try a sub-domain?
-
Re: unable to login to admin
Do you mind sharing the admin username/password so I can try it from here ?
-
Re: unable to login to admin
I sent it in a Private Message
-
Re: unable to login to admin
Are you getting just a blind refresh of the page, or a message saying "you entered the wrong username or password"?
I'm getting the wrong username/password message.
It is case sensitive.
-
Re: unable to login to admin
"you entered the wrong username or password"
It should be in all lower case
-
Re: unable to login to admin
Quote:
Originally Posted by
denny1
I can get to the store front and I can create an account and login to it. Everything seems to be working fine. When I try to access the admin it says I have entered the wrong username and password. I have checked and rechecked and I am entering the correct username and password.
Hmmm ... you *did* say that, didn't you ...
And here I was thinking you had the same thing as the others. I need more coffee.
Let's do a password-reset first:
https://www.zen-cart.com/tutorials/index.php?article=2
-
Re: unable to login to admin
Quote:
Originally Posted by
denny1
Should I try a NEW Install?
I guess I should have said yes to this one ... because it would have forced the re-entry of a username/password :blink:
-
Re: unable to login to admin
Unbelievable!!! I made the changes to the DB and it let me in.. I just double checked my config file and it shows that I was using the correct UN and PW and the right case..
Should I go back and undo the changes I made to the sessions file and delete the config file I added?
Do you have any idea why it wouldn't except my UN and PW?
Thanks for the patience and the time you spent on this...
-
Re: unable to login to admin
Yes, undo all the coding changes I had suggested.
The admin username/password is the information you selected for the Admin account during installation ... on the last page of the zc_install process.
They are *not* the same as what's in your configure.php files (well, unless you used that information there too, which I don't recommend).
You had entered "denny" and some password ... that's what you should use to login to the admin.
-
Re: unable to login to admin
Thanks again,
I have no idea where I entered "Denny" as a UN... I owe you big time for the help today..
Go get your coffee...
Thanks
-
Re: unable to login to admin
Quote:
Originally Posted by
beerdawg
It seems that logging into the admin pages with zen-cart-1.3.7.1 using PHP-4.3.2 is broken. After entering the correct login/passwd, it will just return back to the login page.
The issue has to do with the call to session_regenerate_id() from zen_session_recreate() in includes/functions/sessions.php (which is called from admin/login.php).
According to the php documentation for php, "Version 4.3.3: Since then, if session cookies are enabled, use of session_regenerate_id() will also submit a new session cookie with the new session id." See the documentation here:
That means that 4.3.2 does not submit a new session cookie with the new session id.
The fix provided by buraks78 in the comments in the link above seems to address the issue and fix the zen-cart login to the admin page.
Basically, add this directly after the call to session_regenerate_id() in includes/functions/sessions.php:
Code:
if(!version_compare(phpversion(),"4.3.3",">=")){
setcookie(
session_name(),
session_id(),
ini_get("session.cookie_lifetime"),
"/"
);
}
Herb.
Thanks very much for posting this fix re PHP-4.3.2
:hug:
-
Re: unable to login to admin
Hi,
Well I'm having exactly the same problem logging in, so I installed the clear cache thing & used it several times, but still can't log in using firefox - my prefered browser.
Just to make sure, I tried Internet Explorer for the first time in months, & that works fine!
I also tried creating an account as a customer through Firefox & that worked fine.
What on earth is going on?
This is a new install of 3.8, which worked fine including the login, then putting in a copy of my current database after dropping the tables of the install d/b.
That's when the problems started.
This has happened to me before when trying to update on a practice shop just to make sure I didn't stuff up a live one.!
Thought I kept doing something wrong until I found this string
My php is an old one: 2.11.1 with mysql 4.1.22.
Apache server: Unitedhosting.co.uk
Hope someone can help
Regards
######:dontgetit
-
Re: unable to login to admin
Quote:
Originally Posted by
gayelston
My php is an old one: 2.11.1 with mysql 4.1.22.
Um ... what?
Are you *sure* that's your PHP version?
-
Re: unable to login to admin
Hi, I'm new to the forum so hello to everyone. :clap:
I've just done a test install of zen cart via the fantastico automatic install section of my hostgator account (running php v 4.4.7). The version of Zen it installs is 1.3.7.1 which I now know to be an old version - however it will probably suffice for now.....
Unfortunately I'm having exactly the same admin log in problem as the other posters on this topic, i.e I can't access the admin section. When I log in it just refreshes the admin log in page with cleared input boxes. If I type in the wrong user name or password, I get the same result - no error messages.
I've tried a lot of the fixes described here but I'm merrily getting lost in the myriad of solutions offered - none of which seem to work. I've done several reinstalls but I get the same result :frusty:. Is there any one solution which seems to be successful in the majority of cases
-
Re: unable to login to admin
ok... uopdate... I bit the bullet and installed the 8a version. Dream of an installation so I vebtured to the admin panel and ebtered my user name and pw. First hic-up, it said I'd got the wong password, so i asked for a reset and put the new password in . Voila!! it worked.. so filled with confidence I changed my password and logged out to see if the log in would work. Guess what? same old problem came back... help
-
Re: unable to login to admin
latest.... admin opens fine with firefox... not so IE. It's a start, but there are times I'l need IE.
-
Re: unable to login to admin
Is it possible that your browser cache/cookies needs to be emptied?
-
Re: unable to login to admin
or... IE is remembering an old password?
-
Re: unable to login to admin
Just wanted to add something to this thread. I have been trying to login all day, trying various mods and settings suggested, reinstalling, re-uplaoding, etc.. I finally tried uploading with a different ftp client and the install worked flawless after that, logged in first try. I am on a Mac and was using RBrowser for ftp, when I switched to Fetch , no problems. I know this won't fix everyones problem, but it is worth a try for those of you that can't seem to get it working.
-
Re: unable to login to admin
I had the same thoughts so I cleared the cache/cookies and typed in the passwords rather than trust it to the auto complete :huh:
-
Re: unable to login to admin
I just tried the admin log in on a different machine using IE (6) and it works fine, so I guess it must be a caching problem
-
Re: unable to login to admin
Well I'm afraid I also suffer from the problem where the admin login returns me to the login page.
My web host is using PHP4.3.2, getting them to upgrade doesn't seem to be an option. :(
Possibly insult to injury, my host also runs PHP in cgi mode on a Linux host.
I just installed 1.3.8a (and reinstalled).
I tried
Quote:
Originally Posted by
beerdawg
Basically, add this directly after the call to session_regenerate_id() in includes/functions/sessions.php:
Code:
if(!version_compare(phpversion(),"4.3.3",">=")){
setcookie(
session_name(),
session_id(),
ini_get("session.cookie_lifetime"),
"/"
);
}
no change.
I then tried the reinstall, no luck there.
After that I tried
Quote:
Originally Posted by
DrByte
create a new file, at /animal/catalog/admin/includes/local ... named configure.php
put only the following in it:
Code:
<?php // These are for DEBUG ONLY - not for a live shop
define('SESSION_RECREATE', 'False');
What happens when you attempt admin login ?
using my path information, and that worked like a charm. Now I can get into my admin area.
So, my question is, since DrByte goes to length to specify this is for debug only, what does this mean? And also, how would I non-debug fix this?
Thanks
-
Re: unable to login to admin
I'm now able to get into admin without a problem, but I've got to admit to being a bit concerned about the amount of dificulty experienced by people on new installs. ZenCart is an amazing package and knocks the spots off many commercial packages - I'll freely admit that ZenCart would be my first choice over them, but the log in problems do make me a bit wary of creating new storefronts with it. :huh:
The admin panel log in is obviously a major problem and I nearly gave up on the package before I'd even started, but once in, I'm a total convert. It's an issue that needs to be addressed and, if this frusting glitch could be resolved for the next release, it would save a whole heap of stress for a lot of people :D
-
Re: unable to login to admin
Quote:
The admin panel log in is obviously a major problem and I nearly gave up on the package before I'd even started, but once in, I'm a total convert. It's an issue that needs to be addressed and, if this frusting glitch could be resolved for the next release, it would save a whole heap of stress for a lot of people
Fantastico on Hostgator is fine IF you give it the right info on install. When we see the cart work and not the admin, it's generally that you entered yes for ssl when none existed, that a typo occurred somewhere in the admin config file, or an admin specific file is missing.
We are also seeing that the "fly by night" hosting companies will need to "keep up" with Zen's transition into current PHP and MySQL versions rather than Zen adjust to them.
You yourself said that the 1.3.8a install problem was a cache problem with IE. Imagine that, IE with a problem! They'll of course fix it with the next release.
There are almost 50,000 registered Zen forum members. No telling how many lurkers have come to find an answer. Some hosts will boast about guaranteeing 99% uptime for your site. Sounds great till you put it in perspective and find that your site could be down for over 3 days a year! Extrapolating those figures in an attempt to represent installation failures, I doubt that 5,000 of the registered forum users have been unable to get the cart working and point the actual reason to Zen' installation.
My main reason for jumping in here is not to don my white night suit for Zen (well maybe a little) but to remind the lurkers and those with installation problems that involve either only the cart or only the admin, that they need to recheck BOTH config files for accuracy. Learn to search by keywords. Help is not instantaneous but, it IS there in tutorials, the wiki, the DOCS folder, and this forum.
-
Re: unable to login to admin
Me too! My client just wrote me with this same problem. When we try to log in to the admin tonight, the page just refreshes.
I tried this in Firefox, then cleared my sessions, cache, and cookies, and it still didn't work. Then I tried it in IE - exact same thing, and I've never logged into her site using IE before. I also tried turning off SSL for the admin.
The strangest thing is that we set this site up in 2006 and haven't made any changes to it. It just stopped allowing login a few hours ago. Perhaps a change by our host to our server?
Zen Cart: 1.2.7
PHP version: 4.4.7
Any ideas?
I just noticed that the customer side of the site isn't working either - we can't add anything to our carts! If you click the add to cart button, it takes you to the cart page, with the message "your cart is empty!"
-
Re: unable to login to admin
Quote:
Originally Posted by
aeolidia
Me too! My client just wrote me with this same problem. When we try to log in to the admin tonight, the page just refreshes.
I tried this in Firefox, then cleared my sessions, cache, and cookies, and it still didn't work. Then I tried it in IE - exact same thing, and I've never logged into her site using IE before. I also tried turning off SSL for the admin.
The strangest thing is that we set this site up in 2006 and haven't made any changes to it. It just stopped allowing login a few hours ago. Perhaps a change by our host to our server?
Zen Cart: 1.2.7
PHP version: 4.4.7
Any ideas?
I just noticed that the customer side of the site isn't working either - we can't add anything to our carts! If you click the add to cart button, it takes you to the cart page, with the message "your cart is empty!"
That means that either your server's PHP configuration isn't allowing you to use "sessions", or your site's ability to set a session cookie in your browser is broken.
You need to talk to your hosting company about it.
As an aside, keep in mind that the webhosting industry is quickly changing to run PHP 5.2 minimum. Zen Cart v1.2.7 is not compatible with PHP 5. You should plan for an upgrade very soon.
-
Re: unable to login to admin
I was having the same problem as the above poster - also hosted with Dreamhost.
Dreamhost has fixed the issue. Here is their answer as to what the problem was:
Hello,
Sorry for the delay in responding to your support request. We experienced a heavy volume of
support the past several of days.
Our entire staff are working hard towards getting the support queue under control.
Quote:
The downtime that you experienced was caused by a issue in the PHP 4 config file preventing some
POST data from being sent. We have tracked the issue down and configs ran on all machines that are
effected. If you still notice any sites having issues with this problem please contact support
again with the specific domain details. We sincerely apologize for the inconvenience the downtime
has caused.
Thanks!
DreamHost Support
-
Re: unable to login to admin
Found my problem.... :blush:
Basically, add this directly after the call to session_regenerate_id() in includes/functions/sessions.php
There are actually 2 calls to session_regenerate_id()
beerdawgs post states you need to make the changes after the call in the zen_session_recreate() function, I'd missed that part and made the changes after the first session_regenerate_id() I'd found which was in the other function.
Works like a charm now, thanks.
-
Re: unable to login to admin
DrByte, this call appears twice in that file, should I add the code fix after both places?
-
Re: unable to login to admin
I have the same problem. After I install the zen card, I try to log in, it says wrong passwords or user name, then I ask for resent password. I have wait for a few hours, still didn't get a new password.
Do you have a way to reset password or other better way? I really don't want to re-install the card.
Thanks
:clap:
-
Re: unable to login to admin
head over to tutorials/faq and enter reset password
-
2 Attachment(s)
Re: unable to login to admin
i m having the same problem.
actually, 2 problems.
1. session.auto_start() enabled problem..
- i still cannot fix it ..and dunno what to do and how to disable it
2. admin log in problem
- i m using the latest zen version and hosting server uses PHP ver 4.4.2 but cannot log in to admin
it worked fine for the 1st day and the next day session auto start problem occurred and now i found that i cannot log in to admin too.
i attached the phpinfo
-
Re: unable to login to admin
Quote:
Originally Posted by
TechnoSwiss
Found my problem.... :blush:
Basically, add this directly after the call to session_regenerate_id() in includes/functions/sessions.php
There are actually 2 calls to session_regenerate_id()
beerdawgs post states you need to make the changes after the call in the zen_session_recreate() function, I'd missed that part and made the changes after the first session_regenerate_id() I'd found which was in the other function.
Works like a charm now, thanks.
Can someone please post the full file with the fix inserted.
I have tried doing it myself but it's not working, because I think I'm putting it in the wrong place.
I searched the file for session_regenerate_id() and it appears 3 times in the sessions.php file and I just shoved the code directly under each entry.
Was that the correct place to insert it, or did I just :censored: it up again?
-
Re: unable to login to admin
Just because you found this post does not mean it applies to your situation.
What version of Zen, PHP, MySQL, etc would be helpful. New installation, happened all of a sudden, etc.?
Tried the tutorial for resetting password?
-
Re: unable to login to admin
Quote:
Originally Posted by
dbltoe
Just because you found this post does not mean it applies to your situation.
What version of Zen, PHP, MySQL, etc would be helpful. New installation, happened all of a sudden, etc.?
Tried the tutorial for resetting password?
I can login to the admin area but as soon as I click on any link in the admin area it boots me out back to the login page. Which to me screams session issue.
All was working until my hosting company installed patches to everything I'm assuming.
It's a fresh install.
My version details are:
Zen - 1.3.8a
Apache 2.0.63
PHP - 5.2.6
MySQL - 5.0.51a-community
When I installed Zen all the server settings where correct (All green ticks)
-
Re: unable to login to admin
Quote:
All was working until my hosting company installed patches to everything I'm assuming.
If you don't have something strange in your .htaccess file, I'd be speaking with the host.
-
Re: unable to login to admin
If testing in IE ... could you test in FireFox?
If testing in FireFox ... could you test in IE?
Have you ever logged into the Zen Cart Admin without looping out after the first click?
If you close your browser window(s) and clear your cookies for your site, does it work now?
-
Re: unable to login to admin
Quote:
Originally Posted by
Ajeh
If testing in IE ... could you test in FireFox?
If testing in FireFox ... could you test in IE?
Have you ever logged into the Zen Cart Admin without looping out after the first click?
If you close your browser window(s) and clear your cookies for your site, does it work now?
I have contacted my host and they said they could login fine so I tried again and it worked... for half a day before it stopped working again.
I have tried clearing everything from my browsers and it still didn't work.
I have tried it in the latest versions of Firefox, IE & Chrome and none of them work.
Does anyone else have any other ideas or am I just :frusty:?