Forums / Basic Configuration / Admin login problem

Admin login problem

Locked

Started by adam65 on 8 Nov 2010, 1:27 PM · Views: 1,443

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
8 Nov 2010, 1:27 PM
#1
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Admin login problem

Yes ive spent hours trying things and reading up about this problem and trying alot of the suggestions. I just cant get it to behave the same way every time.

Basically when I try to access admin the login page appears and when I enter my username and password both fields just go blank again as if ive entered it wrong (but I havent).

One post I read suggested I rename my .htaccess in admin/includes/ to .htaccess_bak and see if it made a difference well, for a while, it does and I can access my admin strangely on both of my zencart installs not only the one i'm changing it in. Then if I close the window and try again I get the same problem.

I went back and renamed the same htaccess file back to normal and was able to get in again - BUT ONLY FOR A WHILE... then I had to go in and change it back to .htaccess_bak and "bingo" i can access it again... but then I might try another menu option in admin and all of a sudden im back at the login page and it wont let me enter details to get in again...

Its driving me crazy and now its almost half past midnight...

Can anyone suggest what might be going on?
Im using 1.3.8a

I would love to get some closure on this so I dont have to keep going onto the server and fiddling with the htaccess file everytime I want to get into admin. I am feeling physically sick, my eyes hurt and i feel nauseous now reading and sweating and trying this and that for hour after painful hour... I just need a little direction... please.. help!

8 Nov 2010, 4:23 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Admin login problem

Where is your site?

Paste the admin configure.php contents here

X-out sensitive details as DB user & pass

Zen-Venom Get Bitten

8 Nov 2010, 4:33 PM
#3
evelt avatar

evelt

Zen Follower

Join Date:
Nov 2009
Location:
In beautyful New York
Posts:
170
Plugin Contributions:
1

Re: Admin login problem

not sure what your problem is
i had some issues with new installations
and it turned out that it was a 301 redir to the www and my confiure.php was configured to the non-www

check if you use a redir to www or to https or vise versa

hope it helps

9 Nov 2010, 12:19 AM
#4
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: Admin login problem

my sites are at http://www.rivertoreefaquarium/1test/

<?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 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://www.your_domain.com - // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.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 * * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following: */ define('HTTP_SERVER', 'http://rivertoreefaquarium.com'); define('HTTPS_SERVER', 'https://rivertoreefaquarium.com'); define('HTTP_CATALOG_SERVER', 'http://rivertoreefaquarium.com'); define('HTTPS_CATALOG_SERVER', 'https://rivertoreefaquarium.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', '/1test/admin/'); define('DIR_WS_CATALOG', '/1test/'); define('DIR_WS_HTTPS_ADMIN', '/1test/admin/'); define('DIR_WS_HTTPS_CATALOG', '/1test/'); 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/rivertoreefaquarium.com/1test/admin/'); define('DIR_FS_CATALOG', '/home/www/rivertoreefaquarium.com/1test/'); 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', 'supremecenter25.com'); define('DB_SERVER_USERNAME', 'ivers_zenr2r'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'ivers_zenr2r'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, 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/www/rivertoreefaquarium.com/1test/cache'); // EOF and <http://rivertoreefaquarium.com/zen/> <?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 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://www.your_domain.com - // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.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 * * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following: */ define('HTTP_SERVER', 'http://rivertoreefaquarium.com'); define('HTTPS_SERVER', 'https://rivertoreefaquarium.com'); define('HTTP_CATALOG_SERVER', 'http://rivertoreefaquarium.com'); define('HTTPS_CATALOG_SERVER', 'https://rivertoreefaquarium.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', '/zen/admin/'); define('DIR_WS_CATALOG', '/zen/'); define('DIR_WS_HTTPS_ADMIN', '/zen/admin/'); define('DIR_WS_HTTPS_CATALOG', '/zen/'); 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/rivertoreefaquarium.com/zen/admin/'); define('DIR_FS_CATALOG', '/home/www/rivertoreefaquarium.com/zen/'); 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', 'supremecenter25.com'); define('DB_SERVER_USERNAME', 'ivers_zencart'); define('DB_SERVER_PASSWORD', 'xxxxxxx'); define('DB_DATABASE', 'ivers_zencart'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, 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/www/rivertoreefaquarium.com/zen/cache'); // EOF thanks for looking into it
9 Nov 2010, 12:22 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Admin login problem

If you still can edit

X-out sensitive details as DB user & pass

otherwise change them post haste

Zen-Venom Get Bitten

9 Nov 2010, 12:24 AM
#6
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: Admin login problem

evelt thanks for the reply,
I am not sure how or where I would check that.

thanks
Adam

9 Nov 2010, 12:25 AM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Admin login problem

You have these pointing to 2 different places

define('DIR_WS_CATALOG', '/1test/');

define('DIR_WS_CATALOG', '/zen/');

Zen-Venom Get Bitten

9 Nov 2010, 12:28 AM
#8
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: Admin login problem

yeah but its two different sites,, shoudl they be the same?

9 Nov 2010, 12:29 AM
#9
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: Admin login problem

ones just a control (a new fresh install of 1.3.8a in /1test) and the other is my actual shop /zen

9 Nov 2010, 12:31 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Admin login problem

If those configures are in one install then that is the issue
If not I do not know why you posted one from one and the other from another????

Zen-Venom Get Bitten

9 Nov 2010, 1:20 AM
#11
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: Admin login problem

because as I said in my original post i have two test installs going and when I change the htaccess file on one of the installs magically I can get into both installs login pages...

9 Nov 2010, 1:25 AM
#12
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: Admin login problem

i thought it might help you diagnose if you knew the full quirky story

9 Nov 2010, 1:27 AM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Admin login problem

because as I said in my original post i have two test installs going
Oh Yeah...Where???

Still not a reason to post one from one and one from another....

Your OP talks about htaccess...

Zen-Venom Get Bitten

9 Nov 2010, 1:31 AM
#14
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: Admin login problem

sorry, i appreciate your help... I think it might have something to do with my server having read another couple of posts... maybe something to do with their PHP version or how they handle htaccess files..
I will ask them if they have any ideas
thanks for the suggestions

9 Nov 2010, 1:39 AM
#15
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: Admin login problem

Hi Kobra,
Having read futher into the problem I found this work around:
http://www.zen-cart.com/forum/showthread.php?p=287587#post287587
I havent tried it yet as I thought I would g ahead with the upgrade process first to see if that is the problem... Also I do not have any SSL set up and my https server is just my own domain name and I think that may be wrong too.

I will go ahead with the up grade to the latest version today and let you know if that fixed the problem.

Once again Thanks very much for looking into it. And sorry if I let my frustration show with "as I said... " comment ... didnt mean to be rude.

9 Nov 2010, 4:44 AM
#16
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: Admin login problem

Thanks again for the help... Just wanted to let you know that my upgrade solved the problem...

except now when i open the shop i get a yellow message saying the site is currently down for maintenance

i'll work out how to fix that now though..
thanks again
:)

9 Nov 2010, 8:45 AM
#17
drbyte avatar

drbyte

Sensei

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

Re: Admin login problem

Admin->Configuration->Website Maintenance

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