Forums / Upgrading to 1.5.x / Finally Imported to 1.54. Moved files and now can't go LIVE

Finally Imported to 1.54. Moved files and now can't go LIVE

Started by spawnie69 on 16 Feb 2016, 11:44 PM · Views: 1,091

Results 1 to 12 of 12
16 Feb 2016, 11:44 PM
#1
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Finally Imported to 1.54. Moved files and now can't go LIVE

I imported my 1.39h database to my 1.54 demo which was running in a sub-directory at gelcandlecompany.com/demo. I fined tuned my sheffield blue template and edited both configure files to point to my root /.

I moved everything in my root folder to a temp folder.
Then I moved the what my /demo store files into the root to turn on live, I was greeted with 'Hello, thank you for loading Zen Cart..." https://www.gelcandlecompany.com
So now I am not too sure what do do next to get my site to work.

I did click the upgrade config files button but got no where. Do I need to run the upgrade database again? but then I would have to drop the tables I already imported yesterday.

thank you guys!

17 Feb 2016, 12:05 AM
#2
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

I am rechecking config files.

17 Feb 2016, 12:19 AM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

So the issue in this is 1) that both configure.php files need to remove the temporary directory from the path in order to point to the correct locations on the server... If you used a sub-domain to reach your subdirectory then that too would need to be modified. Regardless, whatever the end of an entry had: / or no / that needs to remain the same or if t was like: /temp/ then it needs to be made to be: / only.... I usually will do a find and replace on /temp and replace with blank, that will capture all of the applicable conditions, but to also do that change one step at a time... Now 2) if the database update was done yesterday and the live site ed active since then, all transactions that have occurred since then to now will be lost. So, technically would have wanted to make note of the changes you made between yesterday and today, do the upgrade agaiinst your current live site and then apply the changes made from yesterday to today which should be quick if noted in the form of a sql patch...

If need be, post your includes/configure.php from your current upgrade and from your moved live site... Some of the differences between the two would need to be resolved and incorporated into your current/new live site.

Oh and as a reminder, do not post your database credentials or your admin directory name if included in the post with the code between code tags (press the # symbol in the menu toolbar)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

17 Feb 2016, 1:03 AM
#4
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

I corrected the config file and the main site is visible and working at https://www.gelcandlecompany.com
My problem now is not being able to enter my admin. Server 500 error.

Here is my present code of admin/configure.php

<?php
/**
 * @package Configuration Settings circa 1.5.4
 * @copyright Copyright 2003-2014 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 2015-09-16 04:10:37
 */


/*************** 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', 'https://gelcandlecompany.com');
  define('HTTPS_SERVER', 'https://gelcandlecompany.com');
  define('HTTP_CATALOG_SERVER', 'http://gelcandlecompany.com');
  define('HTTPS_CATALOG_SERVER', 'https://gelcandlecompany.com');

  // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
  define('ENABLE_SSL_ADMIN', 'true');

  // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
  define('ENABLE_SSL_CATALOG', 'true');

  define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

// 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_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', preg_replace('#.includes$#', '', 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', '/homexxxx/xxxxxxxx/public_html/');

  //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', '/homexxx/xxxxxxx/public_html/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', '');
  define('DB_CHARSET', 'utf8');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'XXXXXXXXXXXX');
  define('DB_SERVER_PASSWORD', 'XXXXXXXXX');
  define('DB_DATABASE', 'XXXXXXXXXXX');

  // 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', '/homexxx/XXXXXXX/public_html/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

Here was my 1.39h admin config file:

<?php
//
// +----------------------------------------------------------------------+
// |Zen Cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 The Zen Cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the Zen Cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
//

// Define the webserver and path parameters
  // Main webserver: eg, http://localhost - should not be empty for productive servers
  define('HTTP_SERVER', 'http://gelcandlecompany.com');
  // Secure webserver: eg, https://localhost - should not be empty for productive servers
  define('HTTPS_SERVER', 'https://gelcandlecompany.com/'); // eg, https://localhost 
  define('HTTP_CATALOG_SERVER', 'http://gelcandlecompany.com');
  define('HTTPS_CATALOG_SERVER', 'https://gelcandlecompany.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', '/XXXXX/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/XXXXX/');
  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/');
  define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');

// * 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', '/home8/gelcand1/public_html/xxxxx/');
  define('DIR_FS_CATALOG', '/home/gelcand1/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_CATALOG_BLOCKS', DIR_FS_CATALOG . 'includes/blocks/');
  define('DIR_FS_CATALOG_BOXES', DIR_FS_CATALOG . 'includes/boxes/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  define('DIR_FS_FILE_MANAGER_ROOT', '/home/gelcand1/public_html/'); // path to starting directory of the file manager

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
  define('DB_SERVER_USERNAME', 'xxxxx');
  define('DB_SERVER_PASSWORD', 'xxxxx');
  define('DB_DATABASE', 'xxxxx');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

  // 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', '/homexxx/xxxxx/public_html/cache');

?>

On a side note: my wholesale site at https://www.gelcandlecompany.com/wholesale remained untouched is also visible but now admin is also not visible same issue I have at my working root site.
I had demo store down for maintenance so there is nothing to add to live root site.
thanks for your help.

17 Feb 2016, 1:05 AM
#5
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

Do I update config files by running zc_install? Just a thought.

17 Feb 2016, 1:16 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

spawnie69:

Do I update config files by running zc_install? Just a thought.

Not at this point.. (Unless the database still needs to be upgraded, but said that had already been done). did you have an .htaccess file in the old store? That would be a common thread between the two store. Not sure what it would have in it to cause a problem, but.... (Uri rewriter?)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

17 Feb 2016, 1:20 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

As to which store was in maintenance mode... As soon as the database upgrade was performed the associated store went into maintenance mode. Not sure if that was a mistype, but it was said the "demo" store was in maintenance mode. Up until today, the demo store wasn't the live store... (Unless you used the actual live store to do the upgrade and throughout this time you have been in maintennace mode on your live site... But what's a days worth of shoppers, sales, etc.... (Facetious, truly)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

17 Feb 2016, 1:24 AM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

Only thing I see in the comparison of admiin/includes/configure.php files that is "odd" iis that one entry in the old site shows something like /home8/ and another just /home/ don't know if this is a result of partial replacement for obscurity or were actually that way, or some sort of error....

Good that the store is up though, at least that's the important half... :)

I was wondering if the ssl cert had something that was causing the issue, but since the other site is now affected I'm more inclined to go with an issue related to what was in your root store that is no longer there.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

17 Feb 2016, 1:26 AM
#9
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

I removed the older htaccess file. I'm a dummy. I will replace.
Thought I needed the new one.

Yes was working on live site under maintenance.

17 Feb 2016, 1:38 AM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

spawnie69:

I removed the older htaccess file. I'm a dummy. I will replace.
Thought I needed the new one.

Yes was working on live site under maintenance.

Would be able to if ZC came with one in it's root directory. :) doesn't need it out of the box... So doesn't have one. :)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

17 Feb 2016, 1:49 AM
#11
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

All good now! Whew! I just placed my old htaccess file and that did the trick.
Thank you mc12345678

I am now upgraded to 1.54. I Procrastinated for a long time but with some work and a little help from the zen cart community I was able to do it. Thanks so much.

I just heard that 1.55 is coming out soon and I wanted to shoot myself, lol. I decided to just move forward anyway for now until I need to upgrade.
Have a nice night everyone.

17 Feb 2016, 2:08 AM
#12
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Finally Imported to 1.54. Moved files and now can't go LIVE

spawnie69:

All good now! Whew! I just placed my old htaccess file and that did the trick.
Thank you mc12345678

I am now upgraded to 1.54. I Procrastinated for a long time but with some work and a little help from the zen cart community I was able to do it. Thanks so much.

I just heard that 1.55 is coming out soon and I wanted to shoot myself, lol. I decided to just move forward anyway for now until I need to upgrade.
Have a nice night everyone.

It is. There's a few things that they need to address, but if I may suggest, upgrade before you "need" to. It's a lot easier and better on one's health. :)

From what has been seen, it's going to be quite a bit better all around. :)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...