Forums / Installing on a Windows Server / No admin...but store shows up!

No admin...but store shows up!

Views: 4,734

Results 1 to 16 of 16
8 Jun 2013, 11:15 PM
#1
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

No admin...but store shows up!

Hello all !!!
I recently had a problem and my hosting account was deleted, they restored it and instead of mydomain.com/zenfolder it is now restore.mydomain.com/zenfolder
I can type that restore.mydomain.com/zenfolder into my browser and wahoo,,,,I have my site back but I can't figure out how to get back in to my admin. I'm not sure what info you would need to see from me, but I checked my configure php files both of them and changed everywhere it said mydomain.com/zenfolder to restore.mydomain.com/zenfolder and the proper database info etc. etc.
but I can't access my admin area.
I type in:
restore.mydomain.com/zenfolder/adminfilename
just like I did before.
But with no success it takes me to the page of :

Hello. Thank you for loading Zen Cart®.
You are seeing this page for one or more reasons:

blah blah blah.......

Do I need to go through and reinstall something????? all the files are there in my hosting account, but wasn't sure what I need to do from here....like I said, I can see my store, just can't figure out how to get to my admin....
I hope its something simple and just a dumb mistake I'm making.

Let me know if you need more info from me including the correct path names, as I have used the generic above.

Thanks so much in advance!

8 Jun 2013, 11:35 PM
#2
kobra avatar

kobra

Black Belt

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

Re: No admin...but store shows up!

Post the contents of both of your configure files here
X out the database details

Zen-Venom Get Bitten

8 Jun 2013, 11:42 PM
#3
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: No admin...but store shows up!

ADMIN config:

<?php /** * @package Configuration Settings circa 1.5.1 * @copyright Copyright 2003-2012 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * File Built by zc_install on 2012-12-27 03:14:31 */ /*************** 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. ***********/ /** * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN: * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries: */ define('HTTP_SERVER', 'http://restore.earthscauldron.com'); define('HTTPS_SERVER', 'https://restore.earthscauldron.com'); define('HTTP_CATALOG_SERVER', 'http://restore.earthscauldron.com'); define('HTTPS_CATALOG_SERVER', 'https://restore.earthscauldron.com'); // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes). define('ENABLE_SSL_ADMIN', 'false'); // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes). define('ENABLE_SSL_CATALOG', 'false'); // 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) $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path']; define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_CATALOG', '/worknewzen/'); define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_HTTPS_CATALOG', '/worknewzen/'); 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) define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/'); //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', 'D:/Hosting/3745611/html/worknewzen/'); //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash define('DIR_FS_LOGS', 'D:/Hosting/3745611/html/worknewzen/logs'); 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', 'XXXXXXXXX'); define('DB_SERVER_USERNAME', 'XXXXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXXXX'); define('DB_DATABASE', 'XXXXXXXXXX'); define('USE_PCONNECT', 'false'); 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', 'none'); define('DIR_FS_SQL_CACHE', 'D:/Hosting/3745611/html/worknewzen/cache'); // 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 */ // EOF Includes Config file: <?php /** * @package Configuration Settings circa 1.5.1 * @copyright Copyright 2003-2012 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * File Built by zc_install on 2012-12-27 03:07:41 (updated by support 1/2/13) */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com define('HTTP_SERVER', 'http://restore.earthscauldron.com'); define('HTTPS_SERVER', 'https://restore.earthscauldron.com'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // 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_CATALOG', '/worknewzen/'); define('DIR_WS_HTTPS_CATALOG', '/worknewzen/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); 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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * 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_CATALOG', '/home/content/38/11179538/html/worknewzen/'); //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash define('DIR_FS_LOGS', '/home/content/38/11179538/html/worknewzen/logs'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'zen_'); // prefix for database table names -- preferred to be left empty define('DB_SERVER', 'XXXXXXXXX'); define('DB_SERVER_USERNAME', 'XXXXXXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXXXXXX'); define('DB_DATABASE', 'XXXXXXXXXXXXX'); define('USE_PCONNECT', 'false'); 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', 'none'); define('DIR_FS_SQL_CACHE', '/home/content/38/11179538/html/worknewzen/cache'); // EOF THANK YOU SO MUCH :)
9 Jun 2013, 8:29 AM
#4
kobra avatar

kobra

Black Belt

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

Re: No admin...but store shows up!

You appear to have 2 instances loading

one at(spaces added by me)
http :// restore.earthscauldron.com
and one at
http :// restore.earthscauldron.com/worknewzen/

Have you tried entering your admin folder name at both of these??

Zen-Venom Get Bitten

9 Jun 2013, 5:38 PM
#5
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: No admin...but store shows up!

Yes, I did try that...
the restore.earthscauldron.com/worknewzen shows the:

Hello. Thank you for loading Zen Cart®.
You are seeing this page for one or more reasons:

and the restore.earthscauldron.com shows:

error 404 page not found........

I'm not sure what else to try....

Thank you so much :)

10 Jun 2013, 2:50 AM
#6
kobra avatar

kobra

Black Belt

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

Re: No admin...but store shows up!

Use FTP and move the files from the "restore" folder to the root of your domain
Adjust your 2 configure files to reflect the move

Zen-Venom Get Bitten

10 Jun 2013, 11:07 AM
#7
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

Re: No admin...but store shows up!

I am also experiencing the same problem.
Waiting for a solution from you....

http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports

10 Jun 2013, 11:23 AM
#8
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

Re: No admin...but store shows up!

I found a solution.
I used the admin/includes/configure.php from the previous version and it works fine.

http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports

10 Jun 2013, 2:07 PM
#9
kobra avatar

kobra

Black Belt

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

Re: No admin...but store shows up!

raunharman:

I used the admin/includes/configure.php from the previous version and it works fine.
Make certain that the database details match - especially if you created a new database for this upgraded install
Between your store configure and your admin configure

Zen-Venom Get Bitten

10 Jun 2013, 2:30 PM
#10
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,858
Plugin Contributions:
18

Re: No admin...but store shows up!

raunharman:

I found a solution.
I used the admin/includes/configure.php from the previous version and it works fine.
Unless your previous version was 1.5.0, it's not a good idea to use the old admin configure.php as things were changed for PCI compliance.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

10 Jun 2013, 7:51 PM
#11
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: No admin...but store shows up!

I am working on it now......I have the hosting company on the phone also going over the config files to see if something isn't right.
I will let you know if I find something!

Thank you :)

11 Jun 2013, 7:11 AM
#12
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

Re: No admin...but store shows up!

dbltoe:

Unless your previous version was 1.5.0, it's not a good idea to use the old admin configure.php as things were changed for PCI compliance.

My previous version was 1.3.9, but since I did not have a solution, I tried this.

But, I guess, I will have to wait, till someone posts a solution. Can someone tell if the file downloading with the current version is OK.
To the best of my knowledge, the database details seem to be correct.

http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports

11 Jun 2013, 3:29 PM
#13
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: No admin...but store shows up!

Well, it's fixed....
I can not tell you exactly what line the problem was on but it WAS in the ADMIN Configure.php file. I re-uploaded the file and went through it piece by piece and added the database details WITH my hosting company on the phone. It was probably in one of the strings of database info.

So, as my hosting company was saying....if your store is there and your admin back end can not be accessed...then it is most definitely in the admin configure file. Where it was, I do not know, like I said I replaced it with a fresh copy and re-entered the information. Somewhere in the change over something got messed up.

Now, note that I did try the same thing with the old copy still in there and it did not work, but it did work with the fresh upload.

So, try that also....upload a fresh copy and make sure all your details are correct.....it might also help to get them on the phone and have them look at it also....maybe they can see something that you are overlooking.

Sorry I couldn't be more help, but I didn't think mine was ever gonna work again, but now it does!!!:D

Good luck to you !!!

26 Jun 2013, 9:43 PM
#14
tfabiano avatar

tfabiano

New Zenner

Join Date:
Jun 2013
Location:
Miami Beach
Posts:
1
Plugin Contributions:
0

Re: No admin...but store shows up!

I tried to get answers even with the server (1and1), but it seems they don't know either. Maybe someone has a direction as for what I should do now. I'm not a programmer. I have an online store since 2008 with a Zen Cart template, the version is 1;3;1. Not upgraded to 1;5;1. I do the management of products myself. My programmer was not too familiar with Migrating to MySQL5 so the people at 1and1 helped me do it myself guiding me on the phone. It worked. They are now using the PHP 5.4. After Migrating the website to MYsQL5 my programmer then pointed the files to the new database and now the online store shows. Beautiful! Well, not so much... The Zen cart, the Admin where I upload products or take down inventory, is not connected to the online store after that. Therefore I can't upload a new product or do anything. It's like the "umbilical cord" that existed before does not anymore. It will be a problem soon as the products at the store are being sold and inventory is not updated. Also I can't upload anything new or change price. I basically don't have access to the store since the Zen cart is Not connected to it. I DO have access to the zen cart and CAN upload or make changes inside the admin, but as it is not connected to the store nothing I do at the zen cart is "informed" to the online store. I noticed that a new customer and its purchase was not registered inside the Admin. Yet I was (thankfully) informed via email (like always) about the purchase, with shipping address and everything else. Is it because the Zen cart is not compatible with HP5.4 or Mysql5? or maybe I should have updated to the new version of Zen Cart 1.5.1? Like I said I am not the programmer but am trying to find answers. Thank you, Fabiano DeMoraes (Designer at TFabiano.com)

26 Jun 2013, 10:02 PM
#15
website_rob avatar

website_rob

Inactive

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

Re: No admin...but store shows up!

Did your programmer also change the Admin config file to point to the new Server?

Also, it is confusing when you say you cannot connect to the Admin section and then you say you can?

"The Zen cart, the Admin where I upload products or take down inventory, is not connected to the online store after that."

"I DO have access to the zen cart and CAN upload or make changes inside the admin, but as it is not connected to the store nothing I do at the zen cart is "informed" to the online store."

Is it possible that after the migration you now have 2 stores?

The learning is in the doing.

Potent Products

29 Jun 2013, 4:17 PM
#16
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: No admin...but store shows up!

TFabiano:

I tried to get answers even with the server (1and1), but it seems they don't know either. Maybe someone has a direction as for what I should do now. I'm not a programmer. I have an online store since 2008 with a Zen Cart template, the version is 1;3;1. Not upgraded to 1;5;1. I do the management of products myself. My programmer was not too familiar with Migrating to MySQL5 so the people at 1and1 helped me do it myself guiding me on the phone. It worked. They are now using the PHP 5.4. After Migrating the website to MYsQL5 my programmer then pointed the files to the new database and now the online store shows. Beautiful! Well, not so much... The Zen cart, the Admin where I upload products or take down inventory, is not connected to the online store after that. Therefore I can't upload a new product or do anything. It's like the "umbilical cord" that existed before does not anymore. It will be a problem soon as the products at the store are being sold and inventory is not updated. Also I can't upload anything new or change price. I basically don't have access to the store since the Zen cart is Not connected to it. I DO have access to the zen cart and CAN upload or make changes inside the admin, but as it is not connected to the store nothing I do at the zen cart is "informed" to the online store. I noticed that a new customer and its purchase was not registered inside the Admin. Yet I was (thankfully) informed via email (like always) about the purchase, with shipping address and everything else. Is it because the Zen cart is not compatible with HP5.4 or Mysql5? or maybe I should have updated to the new version of Zen Cart 1.5.1? Like I said I am not the programmer but am trying to find answers. Thank you, Fabiano DeMoraes (Designer at TFabiano.com)

Fabiano, it sounds like the database used by your Zen Cart admin is not the same database as that used by your Zen Cart store. I've got stores running both v1.5.0 and v1.5.1 on 1and1 servers which currently run PHP 5.4.x. If you're ***really ***running v1.3.1 of Zen Cart, that could be a problem on PHP 5.4.

I'm not familiar with Zen Cart v1.3.1, but in v1.3.8a and later, the database constants in the files /includes/configure.php and /YOUR_ADMIN/includes/configure.php should be ***identical ***for the admin settings to affect the store's settings.