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 1 to 20 of 66
This thread is locked. New replies are disabled.
1 Oct 2010, 6:07 AM
#1
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

Just upgraded from 1.3.9f to 1.3.9g now I can not log in to my admin. It takes me to the front of my store when I try to log in. If I click Resend Password it takes me to the front end of my store to reset my password. It was working fine before I upgraded. I need some fast help please! Thank You
I also tried this https://www.zen-cart.com/tutorials/index.php?article=2
It didn't work

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

1 Oct 2010, 2:40 PM
#2
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

Did you clear your browser's cache and cookies as directed in the release notes and announcement?

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

1 Oct 2010, 7:56 PM
#3
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

DrByte:

Did you clear your browser's cache and cookies as directed in the release notes and announcement?
Yes I cleared the browser and cookies. This is the image of what it looks like when I try to log in to admin. Then when I click continue it takes me to the front of my store here.

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

1 Oct 2010, 8:11 PM
#4
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

That suggests that your admin configure.php file is the non-admin version of the file .... or you've got a busted set of rewrite rules probably from a so-called SEO addon.

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

1 Oct 2010, 8:24 PM
#5
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

DrByte:

That suggests that your admin configure.php file is the non-admin version of the file .... or you've got a busted set of rewrite rules probably from a so-called SEO addon.
I did a lot of digging into this and it seems to be the /admin/includes/functions/html_output.php file which is causing the problem. I replace the old file, and now I am able to log in. The new code in red prevents me from logging in.

if ($text == '*#' && (isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) && ($reinsert_value == true) ) {
$field .= stripslashes($GLOBALS[$name]);
$field = str_replace('>', '>', $field);
} elseif ($text != '~
~*#' && zen_not_null($text)) {
$field = str_replace('>', '>', $field);
$field .= $text;
}

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

3 Oct 2010, 8:06 PM
#6
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

I'm still waiting to hear from you about this DrByte if you would. Thank you

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

3 Oct 2010, 8:12 PM
#7
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

That's what's breaking your other things in your admin.

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

3 Oct 2010, 10:48 PM
#8
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

DrByte:

That's what's breaking your other things in your admin.
Well if I leave it like this I can not log on to admin. Without the code in the red I can log on. Something is not quite right.
if ($text == '*#' && (isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) && ($reinsert_value == true) ) {
$field .= stripslashes($GLOBALS[$name]);
$field = str_replace('>', '>', $field);
} elseif ($text != '~
~*#' && zen_not_null($text)) {
$field = str_replace('>', '>', $field);
$field .= $text;
}

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

3 Oct 2010, 10:53 PM
#9
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

List of addons?

(you're the only one reporting login problems in 1.3.9g, let alone problems with that section of code)

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

4 Oct 2010, 1:01 AM
#10
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

DrByte:

List of addons?

(you're the only one reporting login problems in 1.3.9g, let alone problems with that section of code)

The html_output.ph file in 1.3.9f is different than the one in 1.3.9g. If I leave the one that came with 1.3.9f it works fine. I don't know
Both my sites are doing the something. Here's a list. May be more I haven't thought of.

Add on for The Good Shepherd Store

cherry_zen_template_1-7
1.7 Lightbox
about_us_page_1-3-1
captcha_using_ttf__gd__tel
ceon_back_in_stock_notifications_2.6.0
ceon_uri_mapping_3.8.0
css_flyout_menu_
css_javascript_loader
easypopulate
editor__fckeditor_plugin_2-6-4-1
email_address_exporter_1-2c
email_archive_manager_1-4
emptycart_manager_1-2
faq_page_v1-0
footer_menu_v1-0
google base 1-8-2
image_handler_
jscroller_sidebox_package_2-1
links_manager_v3-5-3a
login_box_1-5
minimum_order_1-0-1a
msrp_display_1-2
newsletter_subscribe_2-2
quantity_discounts_1-11
quick_configuration_edit_for_x_1-0-1
recover_cart_sales_3-1-0
return_authorization_v2-3-3a
rss_feed_2-1-4
search_log_2-0
shopmaniacom_automated_datafeed_generator
simple_google_analytics_1-2-2
sitemapxml__formerly_google_sitemap_2-1-0
testimonial_manager_v1-5-2
ty_package_tracker_for_x_2-3a
syscheck_1-0-3
admin_login_as_customer_v2-11
backup_zc_v1.0.3
store_credits

Add on for Wholesale TGSS

desert_noon_template_v2-0
1.7 Lightbox
about_us_page_1-3-1
captcha_using_ttf__gd__tel
css_flyout_menu_
css_javascript_loader
easypopulate
editor__fckeditor_plugin_2-6-4-1
email_archive_manager_1-4
emptycart_manager_1-2
faq_page_v1-0
google base 1-8-2
image_handler_
jscroller_sidebox_package_2-1
quantity_discounts_1-11
quick_configuration_edit_for_x_1-0-1
recover_cart_sales_3-1-0
rss_feed_2-1-4
sitemapxml__formerly_google_sitemap_2-1-0
ty_package_tracker_for_x_2-3a
backup_zc_v1.0.3
store_credits
Simple SEO URL 3.8.5

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

4 Oct 2010, 1:12 AM
#11
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

countrycharm:

Well if I leave it like this I can not log on to admin. Without the code in the red I can log on. Something is not quite right.
if ($text == '*#' && (isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) && ($reinsert_value == true) ) {
$field .= stripslashes($GLOBALS[$name]);
$field = str_replace('>', '>', $field);
} elseif ($text != '~
~*#' && zen_not_null($text)) {
$field = str_replace('>', '>', $field);
$field .= $text;
}

That doesn't make any sense at all, since that code is in the draw_textarea function ... and the admin login doesn't use any textarea fields.

How has your admin been altered vs a fresh uncustomized install?

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

4 Oct 2010, 1:25 AM
#12
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

DrByte:

That doesn't make any sense at all, since that code is in the draw_textarea function ... and the admin login doesn't use any textarea fields.

How has your admin been altered vs a fresh uncustomized install?
They both were a fresh Install from my local host 1.3.9c. I just have been updating whenever you guys do. I haven't altered my admin except maybe some of the add ons I have installed. Everything was working with no problem except when I updated to the latest version. I can offer to give you my Admin and ftp information if you want to take a peek.

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

4 Oct 2010, 3:41 AM
#13
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

What exactly are the symptoms of the failed login?
An error message? Just a screen refresh w/o message? A blank screen?

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

4 Oct 2010, 12:41 PM
#14
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

DrByte:

What exactly are the symptoms of the failed login?
An error message? Just a screen refresh w/o message? A blank screen?
As I said over on the first page there's a popup window. Look at the first picture.
http://www.zen-cart.com/forum/showpost.php?p=941599&postcount=3

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

5 Oct 2010, 11:31 AM
#15
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

shagging:

I did a manual fresh install of Zencart 1.3g and have followed the instructions and everything installed fine but I cannot login to my admin. When I try to login it takes me to the front of my store with the welcome message and the url or the "final alert message". I have been at this for over 10 hours looking for solutions everywhere and conacting my host (startlogic) who have been no help. Could someone please help? I did the install this morning and have done nothing else since the install.
DrByte is looking into this. Maybe he will have a answer today.

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

5 Oct 2010, 3:57 PM
#16
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

shagging's issue is completely different, and has been moved to its own thread.

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

5 Oct 2010, 5:06 PM
#17
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

countrycharm:

As I said over on the first page there's a popup window. Look at the first picture.
http://www.zen-cart.com/forum/showpost.php?p=941599&postcount=3
Hmmm .... somehow I completely missed the symptom that you were being redirected to your storefront when logging in to your admin.

That can only be caused by two things:
a) your admin configure.php file has not got the admin paths in it properly
b) you've got rewrite rules in your .htaccess (or otherwise) which are doing the redirect on you

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

5 Oct 2010, 5:23 PM
#18
pdiamond avatar

pdiamond

New Zenner

Join Date:
May 2010
Posts:
18
Plugin Contributions:
0

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

Hi
I had the same issues when I upgraded to 1.3.9g. When anyone tried to login they were just send back to the login page. No error or anything showing.
I restored back to 1.3.9f and all works fine.

Which .htaccess file would effect that?

6 Oct 2010, 3:27 AM
#19
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

DrByte:

Hmmm .... somehow I completely missed the symptom that you were being redirected to your storefront when logging in to your admin.

That can only be caused by two things:
a) your admin configure.php file has not got the admin paths in it properly
b) you've got rewrite rules in your .htaccess (or otherwise) which are doing the redirect on you
I look at my .htaccess file and found I had a rewrite rule for the old facebook addon # rewrite fbcanvas directory and RewriteCond %{REQUEST_URI} !^/fbcanvas [NC] After I removed this from my .htaccess file I installed the new html_output from zen-cart-v1.3.9g and now I can log on Very strange. That shouldn't have any affects on it i wouldn't think. Anyway here is my .htaccess file. I have rename my custom folder to admin.

AddHandler x-httpd-php5 .php
<ifmodule mod_php5.c>
php_value zlib.output_compression 16386
</ifmodule>
RewriteEngine On

RewriteCond %{HTTP_HOST} ^thegoodshepherdstore.com$ [NC]
RewriteRule ^(.*)$ http://www.thegoodshepherdstore.com/$1 [R=301,L]

Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])

RewriteCond %{REQUEST_URI} !.[a-z]{2,5}$ [NC]

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/admin [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors [NC]

Don't rewrite cPanel directories

RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]

Handle all other URIs using Zen Cart (index.php)

RewriteRule .* index.php?%{QUERY_STRING} [L]

SetEnvIfNoCase User-Agent "yandex" bad_bot
<Limit GET POST>
order allow,deny
allow from all
deny from env=bad_bot
</Limit>

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

6 Oct 2010, 9:32 AM
#20
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

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?