-
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
-
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?
-
2 Attachment(s)
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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.
-
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.
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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;
}
-
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
-
Re: Can't login to admin after upgrading to 1.3.9g
That's what's breaking your other things in your admin.
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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;
}
-
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)
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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?
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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.
-
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?
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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/showpo...99&postcount=3
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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.
-
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.
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
countrycharm
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
-
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?
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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.
Quote:
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>
-
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?
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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.
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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?
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
Nordenfor
Oh, a new file... okay. Changelog update would not be possible to be automated in the future?
Um ... the changelog contains that information.
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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
-
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.
-
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
Code:
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');
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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
Code:
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?
-
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."
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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 "/"
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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.
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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.
-
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.
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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:
-
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?
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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?
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by 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?
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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:
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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.
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
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.
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
joeljordan
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.
So, inside my /admin was another .htaccess file. I deleted the following:
# $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>
# Fix certain PHP values
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>
# to turn off register_globals
# php_value register_globals 0
And now everything works fine.
Did I need to keep any of that in there?
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
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.
Please NEVER NEVER use Fantastico for an upgrade
Manual is the only reliable method
-
Re: Can't login to admin after upgrading to 1.3.9g
:oops: Actually, that wasn't it at all. I though everything was working because I was still logged in... the admin section seems to work as long as I can get passed the admin log in. Which I can't if the previously mentioned:
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
are in effect.
Not sure how to proceed.
How do I keep my "www" without adding the above to my .htaccess?
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
kobra
Please NEVER NEVER use Fantastico for an upgrade
Manual is the only reliable method
hmm... ok. I guess I just don't trust myself not to crash my own site. :blush:
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
I guess I just don't trust myself not to crash my own site.
You can let Fantastico crash it As that is what it will do
Follow the tutorial with a new install in a folder and a new database for the upgrade while your running shop remains running
https://www.zen-cart.com/tutorials/i...hp?article=108
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
How do I keep my "www" without adding the above to my .htaccess?
What is in your configure.php files?
www or not
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
kobra
What is in your configure.php files?
www or not
www is IN the configure.php files
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
www is IN the configure.php files
You didn't post it but try this in htaccess if it was not this way before
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.your_domain.com$
RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]
Make sure that you replace "your_domain.com" with your actual domain name
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
kobra
You didn't post it but try this in htaccess if it was not this way before
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.your_domain.com$
RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]
Make sure that you replace "your_domain.com" with your actual domain name
That was very similar to what I had before, which I posted above. Here is what is in my .htaccess:
RewriteEngine on
# compress all text & html:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
<Files 403.shtml>
order allow,deny
allow from all
</Files>
<Files *.html>
SetOutputFilter DEFLATE
</Files>
<Files *.htm>
SetOutputFilter DEFLATE
</Files>
<Files *.php>
SetOutputFilter DEFLATE
</Files>
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
RewriteCond %{QUERY_STRING} ^(.*)=http [NC]
RewriteRule ^(.*)$ – [F,L]
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
RewriteCond %{HTTP_HOST} !^www.mydomain.com$
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301]
AuthName mydomain.com
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Here is what is in my .htaccess:
If that is actually what you have, you need to change several to your actual domain name
And "user" to your actual user name
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
kobra
If that is actually what you have, you need to change several to your actual domain name
And "user" to your actual user name
To clarify.. that is what I have EXCEPT where it says "mydomain" is actually my domain and "user" is actually the real user name.
-
Re: Can't login to admin after upgrading to 1.3.9g
If you are using Safari 5.0.3 on a Mac or Windows, but not using Zen Cart v1.3.9h... you will not be able to login to admin. There is no problem with any combination of earlier versions of Safari and/or earlier versions of Zen Cart. This is a problem with Safari 5.0.3 I have just gone through and finally figured out. This may not apply to your situation but I've not seen any mention in this thread of specifically using Safari and wanted to share.
-
Re: Can't login to admin after upgrading to 1.3.9g
I am on a Mac, but I am using Firefox. But it seems to be the same issue...
I am running parallels on my Mac, and I opened IE on the Windows side, and I was able to login! :clap:
So... if I upgrade to 1.3.9h this will eliminate the login problem from my Mac/Firefox? Sounds good to me... just a little nervous about manually upping to 1.3.9h worried I will f something up. :(
In any case, thanks for your help... time to back up the site and do some damage. :flex:
-
Re: Can't login to admin after upgrading to 1.3.9g
I am having a similar issue. I have just finished installing an upgrade from 1.3.8 to 1.3.9h. The only plugin I have working is Ultimate SEO. At first everything seemed to look fine but customers were unable to login to the shopping cart. I searched the boards for help and found that going into the admin and turning "recreate sessions" to false, customers could then log in and make purchases no problem. However, now that the store is working properly, I tried to access my admin and can't even make it to the login page.
I am using Firefox 3.6.12 and the error I get is
"The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete
* This problem can sometimes be caused by disabling or refusing to accept cookies."
I also cannot access it in safari or IE on PC. I have cleared cookies and cache, and I can also accept cookies. I have tried modifying the .htaccess file in the root and even adding one in the admin folder as per a board suggestion (http://www.zen-cart.com/forum/showthread.php?p=778358), however still no luck.
I am grateful for any assistance. Thank you!
-
Re: Can't login to admin after upgrading to 1.3.9g
PCC2009
Might post your admin configure.php file contents
X- Out the renamed admin folder, DB name, user, and password entries
-
Re: Can't login to admin after upgrading to 1.3.9g
Kobra,
I also get this error in my debug log from the website.
"PHP Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /nfs/c01/h08/mnt/7189/domains/madewithlovebyjm.com/html/ADMIN/includes/functions/general.php on line 39"
My config.php file from my Admin/Includes/ folder is as follows :
<?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', 'https://www.madewithlovebyjm.com');
define('HTTPS_SERVER', 'https://www.madewithlovebyjm.com');
define('HTTP_CATALOG_SERVER', 'https://www.madewithlovebyjm.com');
define('HTTPS_CATALOG_SERVER', 'https://www.madewithlovebyjm.com');
// Use 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', '/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', '/nfs/c01/h08/mnt/7189/domains/madewithlovebyjm.com/html/ADMIN/');
define('DIR_FS_CATALOG', '/nfs/c01/h08/mnt/7189/domains/madewithlovebyjm.com/html/');
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 . 'downloads/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zc_');
define('DB_SERVER', 'XXXXX.gridserver.com');
define('DB_SERVER_USERNAME', 'XXXXXX');
define('DB_SERVER_PASSWORD', 'XXXXXXX');
define('DB_DATABASE', 'XXXXXXX');
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', '/nfs/c01/h08/mnt/7189/domains/madewithlovebyjm.com/html/cache');
// EOF
Thank you so much for any assistance!
-
Re: Can't login to admin after upgrading to 1.3.9g
-
Re: Can't login to admin after upgrading to 1.3.9g
Ajeh,
Thank you for your suggestion. I realized that the version of php I was using was php4 and not php5. I went into my host settings and upgraded my madewithlovebyjm.com domain to php5. I ran
<?php phpinfo() ?>
to determine that I am now running 5.2.14 (which is higher than 5.2.3) and therefor should not have an admin login issue. But alas, no dice and I am still getting the same error.
Thank you for your suggestion, and any other help would be greatly appreciated.
-
Re: Can't login to admin after upgrading to 1.3.9g
I still cannot reach my admin, and this is causing a problem with my live shop. I just realized that my customers are getting the generic zen cart banner when they make a purchase. This is unacceptable, so I tried to reinstate the old 1.3.8 shop, but it does not work (probably due to upgrading the php from 4 to 5). Do I downgrade to php4 and put the 1.3.8 shop up? If so, then I will have new customers that will not be in the old database. I would appreciate any advice, because this is a really big problem.
Thank you very much.
-
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
The only plugin I have working is Ultimate SEO
If by that you mean Ultimate SEO URLs and you are hosted on a cPanel server then try this.
In the .htaccess file that comes with Ultimate SEO URls change these lines:
Code:
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]
to these lines:
Code:
RewriteCond %{REQUEST_FILENAME} !\.shtml$
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]
Can you get in now?
Vger
-
Re: Can't login to admin after upgrading to 1.3.9g
By the way - a PHP Warning will not normally stop your site from functioning. It's when you see a PHP Fatal Error then you've got problems.
Vger
-
Re: Can't login to admin after upgrading to 1.3.9g
Vger,
Changing those lines of code in my .htaccess worked! THANK YOU SO MUCH!!! I can't tell you how much of a relief this is. I want to thank everyone else who helped give me guidance on this issue, Ajeh, and Kobra! Thank you :clap:
-
Re: Can't login to admin after upgrading to 1.3.9g
You're welcome and I'm glad it resolved it for you.
Vger
-
Re: Can't login to admin after upgrading to 1.3.9g
Vger
I'm having the same issue. I'm new to the php would. Could you please tell me where the file is located so I may change it.:shocking:
Thank you, GOD Bless, Merry Christmas
-
Re: Can't login to admin after upgrading to 1.3.9g
needhelptoo - this fix only applies to people who have Ultimate SEO URLs installed as an add-on to Zen Cart and if their hosting company uses cPanel as the hosting control panel.
The Ultimate SEO URLs .htaccess file is found in the same directory that the root of your Zen Cart site is located in.
Vger
-
Re: Can't login to admin after upgrading to 1.3.9g
Thank you Very much:P
Merry Christmas, GOD Bless