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 41 to 60 of 66
This thread is locked. New replies are disabled.
29 Nov 2010, 4:22 AM
#41
joeljordan avatar

joeljordan

New Zenner

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

Can't login to admin after upgrading to 1.3.9g

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?

29 Nov 2010, 4:22 AM
#42
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

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

Zen-Venom Get Bitten

29 Nov 2010, 4:44 AM
#43
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

: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?

29 Nov 2010, 4:45 AM
#44
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:

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:

29 Nov 2010, 4:49 AM
#45
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

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/index.php?article=108

Zen-Venom Get Bitten

29 Nov 2010, 4:51 AM
#46
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

How do I keep my "www" without adding the above to my .htaccess?
What is in your configure.php files?

www or not

Zen-Venom Get Bitten

29 Nov 2010, 5:27 AM
#47
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 is in your configure.php files?

www or not

www is IN the configure.php files

29 Nov 2010, 5:35 AM
#48
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

www is IN the configure.php files
You didn't post it but try this in htaccess if it was not this way before

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

Zen-Venom Get Bitten

29 Nov 2010, 7:04 AM
#49
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:

You didn't post it but try this in htaccess if it was not this way before

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
29 Nov 2010, 7:21 AM
#50
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

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

Zen-Venom Get Bitten

29 Nov 2010, 7:26 AM
#51
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:

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.

29 Nov 2010, 7:38 AM
#52
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

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.

The learning is in the doing.

Potent Products

29 Nov 2010, 7:53 AM
#53
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 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:

9 Dec 2010, 2:45 AM
#54
pcc2009 avatar

pcc2009

New Zenner

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

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!

9 Dec 2010, 2:49 AM
#55
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

PCC2009

Might post your admin configure.php file contents

X- Out the renamed admin folder, DB name, user, and password entries

Zen-Venom Get Bitten

9 Dec 2010, 9:54 PM
#56
pcc2009 avatar

pcc2009

New Zenner

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

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!
9 Dec 2010, 11:29 PM
#57
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

Read through post #6 on this thread:
http://www.zen-cart.com/forum/showthread.php?t=153143

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Dec 2010, 9:21 PM
#58
pcc2009 avatar

pcc2009

New Zenner

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

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.

13 Dec 2010, 10:39 PM
#59
pcc2009 avatar

pcc2009

New Zenner

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

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.

13 Dec 2010, 11:13 PM
#60
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

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

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:

RewriteCond %{REQUEST_FILENAME} !-f [NC] 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]

to these lines:

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