Forums / Upgrading from 1.3.x to 1.3.9 / Can't login to admin after upgrading to 1.3.9g

Can't login to admin after upgrading to 1.3.9g

Locked

Views: 13,457

Results 21 to 40 of 66
This thread is locked. New replies are disabled.
6 Oct 2010, 2:16 PM
#21
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Can't login to admin after upgrading to 1.3.9g

Nordenfor:

Same login proglem here after 1.3.9.g update.

I got an error msg of:

The requested URL /zen_cart/admin/alert_page.php was not found on this server.

And my login page is admin.php Why the new version points to an alert_page.php?
Make sure admin/alert_page.php exist if not you miss uploading it.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

6 Oct 2010, 2:26 PM
#22
nordenfor avatar

nordenfor

New Zenner

Join Date:
Jul 2010
Posts:
85
Plugin Contributions:
0

Re: Can't login to admin after upgrading to 1.3.9g

countrycharm:

Make sure admin/alert_page.php exist if not you miss uploading it.

Oh, a new file... okay. Changelog update would not be possible to be automated in the future?

7 Oct 2010, 4:06 AM
#23
drbyte avatar

drbyte

Sensei

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

Re: Can't login to admin after upgrading to 1.3.9g

Nordenfor:

Oh, a new file... okay. Changelog update would not be possible to be automated in the future?
Um ... the changelog contains that information.

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

2 Nov 2010, 9:00 PM
#24
djbelize avatar

djbelize

New Zenner

Join Date:
Mar 2010
Posts:
32
Plugin Contributions:
0

Re: Can't login to admin after upgrading to 1.3.9g

Nordenfor:

Same login proglem here after 1.3.9.g update.

I got an error msg of:

The requested URL /zen_cart/admin/alert_page.php was not found on this server.

And my login page is admin.php Why the new version points to an alert_page.php?

Seems like nobody has posted this but i actually just started upgrading from f to g today and noticed that in the changelog g there was no mention of the new files below in the changed files section but in the new files section it says these three files should be new ... i am totally guessing they forgot to mention it so try adding them all three ... they do exist in g

* /admin/alert_page.php
* /admin/includes/init_includes/init_sanitize.php
* /admin/includes/languages/english/alert_page.php
2 Nov 2010, 10:24 PM
#25
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Can't login to admin after upgrading to 1.3.9g

djbelize:

Seems like nobody has posted this but i actually just started upgrading from f to g today and noticed that in the changelog g there was no mention of the new files below in the changed files section but in the new files section it says these three files should be new ... i am totally guessing they forgot to mention it so try adding them all three ... they do exist in g

* /admin/alert_page.php
* /admin/includes/init_includes/init_sanitize.php
* /admin/includes/languages/english/alert_page.php

They should not be in the "changed" section because they were not changed: they were added. They are in the "New Files" section to show you that these file are new and needs to be added.

Also, you should be upgrading to 1.3.9h

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

3 Nov 2010, 5:05 PM
#26
djbelize avatar

djbelize

New Zenner

Join Date:
Mar 2010
Posts:
32
Plugin Contributions:
0

Re: Can't login to admin after upgrading to 1.3.9g

true countrycharm :) ... i overlooked the new files section at first and proceeded and had to go back so i thought maybe people were doing the same since missing "alert_page" was an issue and maybe they were only looking in the changelog section as i did so i was trying to state to look at the new files section ... but you pointed it out right .... changed files doesn't equal new files ... so they were properly addressed ... and yes i have upgraded to h also :) i just like updating level to level not skipping from instance say f to h ... thnx though.

14 Nov 2010, 9:33 PM
#27
satu avatar

satu

New Zenner

Join Date:
Jan 2007
Location:
Idaho
Posts:
43
Plugin Contributions:
0

Re: Can't login to admin after upgrading to 1.3.9g

I'm going crazy here. I have 2 stores. I upgraded the first one to 1.3.9g without any problems and that store has a lot of add-ons.
The second store won't let me log in. I have been reading now 3 days about possible problems. Nothing has worked.
I have cleaned the cache, cleared the cookies, restarted the firefox and computer, compared all the files twice. Added "Admin" login to database. Tried resending login for the original login and it didn't work either. Maybe I'm just blind and stupid.
I did not go back to 1.3.9.f since I want to stay with the times. Any help?

Here is my admin/includes/configure.php

define('HTTP_SERVER', 'https://pedsafe.com');
  define('HTTPS_SERVER', 'https://pedsafe.com');
  define('HTTP_CATALOG_SERVER', 'https://pedsafe.com');
  define('HTTPS_CATALOG_SERVER', 'https://pedsafe.com');

  // secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'true');
  define('ENABLE_SSL_ADMIN', 'true');

// 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', '/roa134x/store/xxxxx/');
  define('DIR_WS_CATALOG', '/roa134x/store/');
  define('DIR_WS_HTTPS_ADMIN', '/roa134x/store/xxxxx/');
  define('DIR_WS_HTTPS_CATALOG', '/roa134x/store/');

  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/content/s/a/t/satupedsafe/html/roa134x/store/xxxxx/');
  define('DIR_FS_CATALOG', '/home/content/s/a/t/satupedsafe/html/roa134x/store/');

  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','pedzzzzzzzzzzz21.db.5zzzzz0.hostedresource.com'); 
  define('DB_SERVER_USERNAME', 'pedzzzzzzzzzzz21');
  define('DB_SERVER_PASSWORD', 'xxxxxxxx');
  define('DB_DATABASE', 'pedzzzzzzzzzzzz1');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'db'); 

Bought coffee for the Zen Cart Team!
Zen Cart version 1.51

15 Nov 2010, 1:28 AM
#28
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Can't login to admin after upgrading to 1.3.9g

Satu:

I'm going crazy here. I have 2 stores. I upgraded the first one to 1.3.9g without any problems and that store has a lot of add-ons.
The second store won't let me log in. I have been reading now 3 days about possible problems. Nothing has worked.
I have cleaned the cache, cleared the cookies, restarted the firefox and computer, compared all the files twice. Added "Admin" login to database. Tried resending login for the original login and it didn't work either. Maybe I'm just blind and stupid.
I did not go back to 1.3.9.f since I want to stay with the times. Any help?

Here is my admin/includes/configure.php

define('HTTP_SERVER', 'https://pedsafe.com');
define('HTTPS_SERVER', 'https://pedsafe.com');
define('HTTP_CATALOG_SERVER', 'https://pedsafe.com');
define('HTTPS_CATALOG_SERVER', 'https://pedsafe.com');

// secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

// 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', '/roa134x/store/xxxxx/');
define('DIR_WS_CATALOG', '/roa134x/store/');
define('DIR_WS_HTTPS_ADMIN', '/roa134x/store/xxxxx/');
define('DIR_WS_HTTPS_CATALOG', '/roa134x/store/');

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/content/s/a/t/satupedsafe/html/roa134x/store/xxxxx/');
define('DIR_FS_CATALOG', '/home/content/s/a/t/satupedsafe/html/roa134x/store/');

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','pedzzzzzzzzzzz21.db.5zzzzz0.hostedresource.com');
define('DB_SERVER_USERNAME', 'pedzzzzzzzzzzz21');
define('DB_SERVER_PASSWORD', 'xxxxxxxx');
define('DB_DATABASE', 'pedzzzzzzzzzzzz1');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');


Checked your cache folder on your server and see what the the debug log tells you. Are you being redirected to your storefront when trying to logging in to  your admin? What error are you getting if any? What exactly are the symptoms of the failed login? An error message? Just a screen refresh w/o message?  A blank screen?

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

15 Nov 2010, 4:08 PM
#29
satu avatar

satu

New Zenner

Join Date:
Jan 2007
Location:
Idaho
Posts:
43
Plugin Contributions:
0

Re: Can't login to admin after upgrading to 1.3.9g

Hi,
There is nothing in the cache folder. I don't know why.
It keeps me on the login page and says that "You entered the wrong username or password."

Bought coffee for the Zen Cart Team!
Zen Cart version 1.51

15 Nov 2010, 5:26 PM
#30
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Can't login to admin after upgrading to 1.3.9g

Satu:

Hi,
There is nothing in the cache folder. I don't know why.
It keeps me on the login page and says that "You entered the wrong username or password."
open your /admin/includes/configure.php file and set the 2 SSL definitions to 'false' then try again.
Trying to rule out SSL for the time being.
If that don't work Post the admin configure file. XX-out only your new admin folder name and the db user & pass fields - - make sure to include any leading or trailing "/"

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

15 Nov 2010, 6:47 PM
#31
drbyte avatar

drbyte

Sensei

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

Re: Can't login to admin after upgrading to 1.3.9g

Satu:

Hi,
There is nothing in the cache folder. I don't know why.
It keeps me on the login page and says that "You entered the wrong username or password."
If it says that, then the password isn't matching the encrypted password stored in the database.
So, that suggests that either your configure.php database settings are pointing to the wrong database and/or db-prefix,
or you've reset the password and aren't using the new one it generated for you.
https://www.zen-cart.com/tutorials/index.php?article=2
You posted earlier that your DB_PREFIX is "zen_", so that means your admin is looking only at tables named "zen_xxxxxxxxxxxx". If that's not the right set of tables for your store, then it won't give you a valid match on passwords, or anything else.

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

15 Nov 2010, 7:19 PM
#32
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Can't login to admin after upgrading to 1.3.9g

countrycharm:

open your /admin/includes/configure.php file and set the 2 SSL definitions to 'false' then try again.
Trying to rule out SSL for the time being.
If that don't work Post the admin configure file. XX-out only your new admin folder name and the db user & pass fields - - make sure to include any leading or trailing "/"
I have had a hard day today. I asked you to post your admin/includes/configure file again sorry about that you already did.:blink:
DrByte has you on the right track.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

16 Nov 2010, 7:12 PM
#33
satu avatar

satu

New Zenner

Join Date:
Jan 2007
Location:
Idaho
Posts:
43
Plugin Contributions:
0

Re: Can't login to admin after upgrading to 1.3.9g

Marvelous! Just BRILLIANT! It was the DB prefix. First I tired the SSL and nothing. Then I changed this: define('DB_PREFIX', 'zen_'); to this: define('DB_PREFIX', '');

Thank you so very much Countrycharm and DrByte!!!! Thank you again.

Bought coffee for the Zen Cart Team!
Zen Cart version 1.51

16 Nov 2010, 9:54 PM
#34
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Can't login to admin after upgrading to 1.3.9g

Satu:

Marvelous! Just BRILLIANT! It was the DB prefix. First I tired the SSL and nothing. Then I changed this: define('DB_PREFIX', 'zen_'); to this: define('DB_PREFIX', '');

Thank you so very much Countrycharm and DrByte!!!! Thank you again.
DrByte is the man:clap:

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

27 Nov 2010, 10:04 PM
#35
joeljordan avatar

joeljordan

New Zenner

Join Date:
Nov 2010
Posts:
11
Plugin Contributions:
0

Re: Can't login to admin after upgrading to 1.3.9g

I am experiencing the same problem. I just upgraded to 1.3.9g and I can no longer login to the admin. I though it may have been a password problem, so I tried to resend it to myself. That did not work it just keeps refreshing on the admin screen.

The only third party plugin I have installed is easypopulate

Not sure how to proceed other than starting from scratch? :cry:

No one else had this problem?

27 Nov 2010, 10:19 PM
#36
joeljordan avatar

joeljordan

New Zenner

Join Date:
Nov 2010
Posts:
11
Plugin Contributions:
0

Re: Can't login to admin after upgrading to 1.3.9g

joeljordan:

I am experiencing the same problem. I just upgraded to 1.3.9g and I can no longer login to the admin. I though it may have been a password problem, so I tried to resend it to myself. That did not work it just keeps refreshing on the admin screen.

The only third party plugin I have installed is easypopulate

Not sure how to proceed other than starting from scratch? :cry:

No one else had this problem?

OK... so it was a rewrite issue in the .htaccess file. I had the following:
RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

I removed this, and the admin login works now... but now the web address does not show the www. in front of my domain. How do I correct this without using a .htaccess rewrite?

27 Nov 2010, 10:23 PM
#37
kobra avatar

kobra

Black Belt

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

Re: Can't login to admin after upgrading to 1.3.9g

joeljordan:

I removed this, and the admin login works now... but now the web address does not show the www. in front of my domain. How do I correct this without using a .htaccess rewrite?
What do you have in your 2 configure.php files?

Zen-Venom Get Bitten

27 Nov 2010, 11:01 PM
#38
drbyte avatar

drbyte

Sensei

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

Re: Can't login to admin after upgrading to 1.3.9g

joeljordan:

I just upgraded to 1.3.9g
You might be wise to carry on and upgrade to v1.3.9h while you're at it ... :blush:

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

29 Nov 2010, 4:04 AM
#39
joeljordan avatar

joeljordan

New Zenner

Join Date:
Nov 2010
Posts:
11
Plugin Contributions:
0

Re: Can't login to admin after upgrading to 1.3.9g

kobra:

What do you have in your 2 configure.php files?

Configure Files both reflect the following:

define('HTTP_SERVER', 'http://www.domain.com');
define('HTTPS_SERVER', 'https://www.domain.com');
define('HTTP_CATALOG_SERVER', 'http://www.domain.com');
define('HTTPS_CATALOG_SERVER', 'https://www.domain.com');

Originally, they did not have the "www" preceding the domain name. I have tried removing and re-adding "www" but neither works.

29 Nov 2010, 4:06 AM
#40
joeljordan avatar

joeljordan

New Zenner

Join Date:
Nov 2010
Posts:
11
Plugin Contributions:
0

Re: Can't login to admin after upgrading to 1.3.9g

DrByte:

You might be wise to carry on and upgrade to v1.3.9h while you're at it ... :blush:

Yea, I'm using cpanel with Fantastico, and my host has not updated Zen Cart to h yet. I will upgrade as soon as they make it available.