Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / Can't get into admin after upgrade

Can't get into admin after upgrade

Locked

Views: 5,160

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
5 Jan 2008, 9:47 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Can't get into admin after upgrade

Do you get to the Admin login screen?

Do you get in to see the Admin Menu?

Do you loop back to the Admin login screen?

-- Or --

Is the /admin just broke to heck? :eek:

Also looks like you need to reload files or something ... horrible rendering in FireFox ... :blink: (your site is showing duplicate parts of the bottom of the english.php file ... perhaps you fumbled during upgrading it?)

5 Jan 2008, 9:56 PM
#3
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Can't get into admin after upgrade

Do you get to the Admin login screen? NO

Do you get in to see the Admin Menu? NO

Do you loop back to the Admin login screen? NO

-- Or --

Is the /admin just broke to heck? Yep!

Yes I have fumbled alot and still no quite sure what I am doing.

Do I need re re-upload my english.php again then run the install again or what?

Thanks much!

5 Jan 2008, 11:08 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Can't get into admin after upgrade

Has it ever worked or did it work then you made changes to something and it broke?

Does your Catalog work?

If you hit Login on the Catalog, does it work or does it also break?

Have you checked the 2 configure.php files:
/includes/configure.php
/admin/includes/configure.php

to make sure all the URLs, paths and database name, username and password match?

What error do you see? Or do you just get a white screen?

If you have done nothing to the /admin files ... try to reload them all first and see if this fixes things ...

If the Catalog works but not the Login, try turning off the Enable secure on both of the configure.php files and see if they now work ...

If this fixes it, then your secure URL is not correct or there are other configuration issues in these 2 files ...

6 Jan 2008, 12:43 AM
#5
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Can't get into admin after upgrade

This is what I did:

moved current zen into another folder called oldzen.

uploaded new files to public_html > new zen root area.

created database and copied & uploaded old zen data base into new zen database.

uploaded config files from zen_old into new zen files chmd 666 and changed info in config files to match new database info.

went to install > Upgrade got to the final upgrade and I cannot open admin from there. I don't think it really upgraded.

not sure what to do at this point.

Thanks!

6 Jan 2008, 12:56 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Can't get into admin after upgrade

Sounds like an error in the configure.php file(s) ...

Could you post, from the server, without the username and password your two files from:
/includes/configure.php
/admin/includes/configure.php

And what was the old directory name and what is the new directory name?

6 Jan 2008, 1:10 AM
#7
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Can't get into admin after upgrade

old diretory name public_html/old_zen

New Zen: is installed right in the root area so there is no name just the files admin/cache/docs/and all the other zen files.

This is the same for:

/includes/configure.php
/admin/includes/configure.php set at 666.

<?php // /** * * @package Configuration Settings * @copyright Copyright 2003-2006 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://localhost> - should not be empty for productive servers // HTTP_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> // HTTP_CATALOG_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_CATALOG_SERVER is your Secure webserver: eg, <https://www.yourdomain.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 */ define('HTTP_SERVER', 'http://digitalscrapn.com'); define('HTTPS_SERVER', 'https://www.digitalscrapn.com'); define('HTTP_CATALOG_SERVER', 'http://digitalscrapn.com'); define('HTTPS_CATALOG_SERVER', 'https://www.digitalscrapn.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', '/home/digit124/public_html/admin/'); define('DIR_FS_CATALOG', '/home/digit124/public_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 . 'download/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'zen_'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'digit124_myusername'); define('DB_SERVER_PASSWORD', 'mypassword'); define('DB_DATABASE', 'digit124_zenstore'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // 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', 'database'); define('DIR_FS_SQL_CACHE', '/home/digit124/public_html/cache'); ?>
6 Jan 2008, 2:48 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Can't get into admin after upgrade

Do you have access to your server's errorlog?
It should tell you why you're getting "500 Internal Server Error" messages.

6 Jan 2008, 2:55 AM
#9
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Can't get into admin after upgrade

This is what I have. In my admin/error log

mostly my Custom files are in there giving errors.

6 Jan 2008, 3:05 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Can't get into admin after upgrade

NOTE: pick www or no www

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

6 Jan 2008, 3:06 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Can't get into admin after upgrade

NOTE: your certificate is www so use that for all ...

6 Jan 2008, 3:07 AM
#12
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Can't get into admin after upgrade

I do have this strange one. in my error log.

[client 71.60.80.66] /home/digit124/public_html/admin/.htaccess: Invalid command 'ls', perhaps mis-spelled or defined by a module not included in the server configuration

6 Jan 2008, 3:21 AM
#13
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Can't get into admin after upgrade

travel124:

I do have this strange one. in my error log.

[client 71.60.80.66] /home/digit124/public_html/admin/.htaccess: Invalid command 'ls', perhaps mis-spelled or defined by a module not included in the server configuration

I found this in my admin/.htaccess (The - Is - is towards the bottom)

$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

ls

php_value register_globals 0

Once I took that (is) out I could log in but the login page looks like a mess like this:

https://www.digitalscrapn.com/admin

6 Jan 2008, 3:25 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Can't get into admin after upgrade

travel124:

to turn off register_globals

php_value register_globals 0

**ls

php_value register_globals 0**

You probably should remove the duplication and the invalid "ls"

6 Jan 2008, 3:26 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Can't get into admin after upgrade

Ajeh:

NOTE: pick www or no www

Ajeh:

NOTE: your certificate is www so use that for all ...

And you should follow Ajeh's advice for your URL settings as well.

6 Jan 2008, 3:47 AM
#16
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Can't get into admin after upgrade

DrByte:

And you should follow Ajeh's advice for your URL settings as well.

Ok I straighted that one out and the URL too but the Admin page still looks like a mess.

Should I try to be accessing the admin through the upgrade route?

6 Jan 2008, 3:55 AM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Can't get into admin after upgrade

travel124:

but the Admin page still looks like a mess.

Should I try to be accessing the admin through the upgrade route?

I'm not sure what you mean by "through the upgrade route".

Whatever you've got there is likely a result of mangled PHP files caused by a poor connection and failed FTP transfers.
I suggest re-uploading your entire admin folder ... but leave the /admin/includes/configure.php alone, or at least make a backup of it.

6 Jan 2008, 3:58 AM
#18
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Can't get into admin after upgrade

Oh ok I will try that.

Thank-You!

6 Jan 2008, 11:38 AM
#19
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Can't get into admin after upgrade

Ok so now I can log into my admin.

It's telling me that I need to upgrade.

New Version Available v1.3.8 :: New Release with PayPal Website Payments Pro support
Download Here

6 Jan 2008, 3:11 PM
#20
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Can't get into admin after upgrade

travel124:

Ok so now I can log into my admin.

It's telling me that I need to upgrade.

New Version Available v1.3.8 :: New Release with PayPal Website Payments Pro support
Download Here

I looked in my database and I have 190 files. Some are duplicates with:

zenaddress
Zen_address