Zen Cart Logo
Forums / General Questions / Can't login to admin

Can't login to admin

Locked

Views: 50,598

Results 41 to 60 of 165
This thread is locked. New replies are disabled.
17 Aug 2007, 6:39 PM
#41
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Can't 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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

20 Aug 2007, 11:21 PM
#42
denny1 avatar

denny1

New Zenner

Join Date:
Aug 2007
Posts:
13
Plugin Contributions:
0

Re: Can't 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

20 Aug 2007, 11:52 PM
#43
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,650
Plugin Contributions:
0

Re: Can't 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 ...

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

21 Aug 2007, 12:47 AM
#44
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't login to admin

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)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Aug 2007, 1:39 PM
#45
warstormer avatar

warstormer

Zen Follower

Join Date:
Aug 2007
Posts:
120
Plugin Contributions:
0

Re: Can't login to admin

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...

21 Aug 2007, 1:54 PM
#46
warstormer avatar

warstormer

Zen Follower

Join Date:
Aug 2007
Posts:
120
Plugin Contributions:
0

Re: Can't login to admin

Less flummoxed now, as it appeared to be a cache problem in Firefox... flushed the cache and logged in ok...

21 Aug 2007, 3:06 PM
#47
denny1 avatar

denny1

New Zenner

Join Date:
Aug 2007
Posts:
13
Plugin Contributions:
0

Re: Can't 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
//
/**
 *
 * @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
/**
 *
 * @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');

?>
21 Aug 2007, 4:06 PM
#48
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't login to admin

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?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Aug 2007, 5:25 PM
#49
denny1 avatar

denny1

New Zenner

Join Date:
Aug 2007
Posts:
13
Plugin Contributions:
0

Re: Can't 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

21 Aug 2007, 5:32 PM
#50
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't login to admin

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 ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Aug 2007, 5:49 PM
#51
denny1 avatar

denny1

New Zenner

Join Date:
Aug 2007
Posts:
13
Plugin Contributions:
0

Re: Can't login to admin

Here is the link..

dennyg.com/animal/catalog/zc_install_YIKS/techsupp.php

21 Aug 2007, 6:01 PM
#52
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't login to admin

create a new file, at /animal/catalog/admin/includes/local/ ... named configure.php
put only the following in it:```

<?php [B]// These are for DEBUG ONLY - not for a live shop[/B] define('SESSION_RECREATE', 'False'); ``` What happens when you attempt admin login ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Aug 2007, 6:08 PM
#53
denny1 avatar

denny1

New Zenner

Join Date:
Aug 2007
Posts:
13
Plugin Contributions:
0

Re: Can't login to admin

No change.. It will not let me login..

21 Aug 2007, 6:17 PM
#54
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't 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?:```
// [B]this is also for DEBUG ONLY -- not for a live shop[/B]
define('SESSION_USE_FQDN', 'False');

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Aug 2007, 6:19 PM
#55
denny1 avatar

denny1

New Zenner

Join Date:
Aug 2007
Posts:
13
Plugin Contributions:
0

Re: Can't 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..

21 Aug 2007, 6:30 PM
#56
denny1 avatar

denny1

New Zenner

Join Date:
Aug 2007
Posts:
13
Plugin Contributions:
0

Re: Can't 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?

21 Aug 2007, 6:35 PM
#57
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't 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 ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Aug 2007, 6:37 PM
#58
denny1 avatar

denny1

New Zenner

Join Date:
Aug 2007
Posts:
13
Plugin Contributions:
0

Re: Can't login to admin

I have tried both ways and it makes no difference..

21 Aug 2007, 6:41 PM
#59
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't login to admin

Truly bizarre, esp since the storefront works fine.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Aug 2007, 6:44 PM
#60
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't login to admin

As a test, try adding this to that /.../local/configure.php file:```
// this is a DEBUG idea ONLY - not for a live shop
define('STORE_SESSIONS', '');

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.