Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Serious Zenner help needed: trying to move to new server

Serious Zenner help needed: trying to move to new server

Locked

Views: 2,781

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
5 Aug 2008, 12:01 PM
#1
paulsschwarz avatar

paulsschwarz

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
1

Serious Zenner help needed: trying to move to new server

Hi,

First I want to say that I have read the tutorial called
I want to move my Zen Cart installation to another host or a different server

All I can say is "I wish it were that simple". Nothing has worked and my frustration is compounded by having a slow internet connection, so FTPing back and forth to change settings is time consuming.

So here I am on day 3.

I first tried, without the article's help, to

  1. create new database and user.
  2. export data from old server's db and import to new server's db.
  3. Copy all files to new server. 4. Fire up in browser expecting issues.
  4. See the Zen Cart page that says that you haven't installed or you configure.phps are wrong.
  5. manually modify configure.php (in admin too) to reflect new server location, cache, db.
  6. Fire up in browser and the store front comes up as a blank plane white page.
  7. Find out what fix_cache_key.php does, and manually open db in phpmyadmin. Find the offending path to cache, change it.
  8. Fire up in browser, store front is still blank white page. Admin side is a few lines of garbled characters.

Attempt 2. Wipe the whole lot clean and do what I should have done the first time, read the article and follow the steps precisely.
.
.
.
To cut a long story short, I followed the instructions precisely and you'll never guess... blank white page on the store front and a few lines of garbled text on the admin side. :smartalec:

In the rare event that any of you speak garbled, please tell me what this says:

<html><head>
<style type="text/css">
<!--
h1 {
	color: #B56224;
}
h2 {
	color: #D67732;
}
h3 {
	color: #D67630;
}
.red {
	color: #FF0000;
	font-weight: bolder;
}
.green {color: #009900;
	font-weight: bolder;
}
-->
</style>
</head><body>


‹������¬“MÓ0†ïHü‡ÙˆÅW&RÕ¦ÚH¥…¤°ÚSä8“Æjâ‰lgCøõLÓ²lââÃ|>3óúõ+Ù¼—J79†`ìÁC>YÝ8²æ»
†,ì‰Z)8N6·q†šºm5û<Ûocé‡âOä½)[Õ÷ŽzgT@ÐsñÊ8ԁÜ59˜hpà
{¿“â’RS…±h¨C1b©ªÎX¡jg´²#¹£4EÃQ4¡k9‰Š¹ºs¢,ˆŸ/c-tT©å–ÝŒ{E›¡ª@†¯Ò¬XçEþyS,ËûD
6Bí¨M¶6‡ÁaÔ7ýKRŽøNN»ð]*##i°gŠ<Éót·-²tŸÌ”,÷»ìñc,ðÂU©<þ‘Béàh'Ñekt1wÖ##AüÙï ó»¥üóÙYQ]ƒ®.íÁr(¯%(c=>mMmK#çüuŒ;øŸœßµ±Æ7XE¿Î.k¦cĖ܇Uœ£œ	ÓµT7É"O`•l’}ûû4‡uºI`í>ÂãîKy’}M2Øînnž±¥8¿ôΰ£§ÓÜ¡1jÃÂS›oÅLZq:‰æíYHgÅ£{Bü72ž½#
mõ®Dh”>¢ó¢gpÅc{‚ΚÀÙx„@<YÇ:÷xQ5’¢¤jbÂÓÎâ���ÿÿ�iÑcÃÙ��

Ok, here's the only thing I can think of right now that could be wrong. My store used to be in the root directory of public_html. In my new store it's under public_html/store/
Although I don't see a problem here because I am using the configure.php files from the new installation so it has the new directory path covered.

Another helpful hint... the garbled text is actually trying to tell me something. If I visit the admin side the garbled text is always the same "message". If I run fix_cache_key the message changes, but if I re-run it it's the same message each time. Still completely blank white page for front end.

I would love to get this figured out. If anyone is willing to share ideas or help then please let me know what info I need to post up so you can see what's wrong. I'll start with the front end config file:

<?php
/**
 * @package Configuration Settings circa 1.3.8
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
 */


/*************** 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://africanworks.co.uk');
  define('HTTPS_SERVER', 'https://africanworks.co.uk');

  // 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', '/store/');
  define('DIR_WS_HTTPS_CATALOG', '/store/');

  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/webadmin/africanworks.co.uk/html/store/');

  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_');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'zencart_XXX');
  define('DB_SERVER_PASSWORD', 'XXXXXX');
  define('DB_DATABASE', 'zencart_XXX');
  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', '/home/webadmin/africanworks.co.uk/html/store/cache');

// EOF
5 Aug 2008, 2:20 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Serious Zenner help needed: trying to move to new server

One thing - all your paths say home/webadmin/africanworks.co.uk/html/store/

Shouldn't that be public_html?

Right now, the store shows an Apache test page and the admin a 404.

Blank pages are usually the result of PHP errors on the page.

Who's the new host?

Is it too late to start with a new Zencart install and then move template and db stuff?

5 Aug 2008, 2:49 PM
#3
paulsschwarz avatar

paulsschwarz

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
1

Re: Serious Zenner help needed: trying to move to new server

Thanks for the reply.

The new host is eApps.com and well picked up, but no their naming convention is quite different.
home/webadmin/africanworks.co.uk/html/store/
is like
home/<admin's user name>/<base directory of an addon>/html
where html is just the name they give for content that is web page stuff, as opposed to cgi-lib, awstats, etc.

So yes, my directory paths are correct.

You observation about the 404 got me thinking. I can't replicate the 404 but I still get the blank screen, so I looked page info in FF, and looked at the response header and indeed it's a 500 Internal Server Error. Fascinating, I will dig around for a log and see if I can find out what went wrong.

I'm still clueless as to the cause, the tutorial notes were very robustly straight forward. Hardly any scope for mess ups.

I COULD rebuild it the store but i have some extra mods installed and a couple of superficial core hacks. hard to repeat.

Thanks
Paul

5 Aug 2008, 3:06 PM
#4
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Serious Zenner help needed: trying to move to new server

go get this download http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_54&products_id=860
stick it where it belongs according to the read me and when the cart generates php errors they will be logged and you will be able to pull those logs and see what the error is.

5 Aug 2008, 3:55 PM
#5
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,592
Plugin Contributions:
0

Re: Serious Zenner help needed: trying to move to new server

Make sure you are FTPing in AUTO mode - because PHP files need to be sent in ASCII and images in BINARY - doing either in the wrong mode can result in a garbled mess.

6 Aug 2008, 5:44 AM
#6
paulsschwarz avatar

paulsschwarz

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
1

Re: Serious Zenner help needed: trying to move to new server

I'm afraid the situation is probably more dire than that. I have an excellent hosting company and they looked into it overnight and here's what they sent to me

You should look to the database content as well, try upload a full snapshot of your database were it is working, once you have that, try point your zencart to that database.

It looks there is a problem with your application, more exactly something is not working on your 'column_left' creation.

Via ssh execute this commands:
--- not working zen:
cd /home/webadmin/africanworks.co.uk/html/store/ && php index.php

--- working one:
cd /home/webadmin/africanworks.co.uk/html/shop/ && php index.php

At the not working one please note were it stuck, they both should end with < /html >, search for the error on that part of your site/template, I had a look for the error and it looks like some DB queries are run on that part, that is why I am thinking you may be missing some entries from the database.

I know you won't be able to SSH in without the sign in credentials, but does this give anyone a clue as to what could be causing it? I realise Zen Cart is a complex system, but what confuses me is that essentially it's a database and some php, it works perfectly on one host's server, but not on the other.

I haven't lost hope yet, please offer suggestions of what to try

6 Aug 2008, 5:50 AM
#7
website_rob avatar

website_rob

Inactive

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

Re: Serious Zenner help needed: trying to move to new server

Kim put you onto the right track as it looks like some files were not uploaded correctly or are incomplete. That is why you have the garbage code as shown in your first post. You called it garbled but it is actually garbage and indictive of an upload problem.

Re-upload just your 'includes' dir. and see what happens.

6 Aug 2008, 6:02 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: Serious Zenner help needed: trying to move to new server

I agree with the others: Your FTP upload has likely damaged some files.

paulsschwarz:

I COULD rebuild it the store but i have some extra mods installed and a couple of superficial core hacks. hard to repeat.
Another troubleshooting step you could try is to go ahead and install a new clean uncustomized store ... and see whether that works. If not, then toss the ball back to your host. (This is one of several reasons why the FAQ article suggests this as the first step. A second reason is that the install process builds the correct configure.php files for the new server for you, making that part of the customization easier too.)

If the "clean" install works fine, then try pointing it to the database of your non-working site, and see what happens. Then progessively merge things together until you have it all working as you desire.

But fix your corrupted files first.

6 Aug 2008, 6:07 AM
#9
paulsschwarz avatar

paulsschwarz

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
1

Re: Serious Zenner help needed: trying to move to new server

Thanks Rob, I am very eager to follow Kim's approach. I opened up filezilla and under settings "Default transfer type" is set to Auto. Below that is "Automatic file type classification". It asks for a list of file types that should be treated as ASCII, in that list is everything from .php to .sql, .pl, .html, .css, everything! notably absent are image types so I suppose they will be treated as binary. So it LOOKS like I was following Kim's advice all along without knowing it.

Oh wait! :huh: In my first attempt I uploaded all 2000 files individuallly using SFTP... no joy, but MAYBE that was a different error. I scrapped it. In the second attempt I turned my entire store into a .tar.gz file an uploaded it in one hit and then remotely unpacked it on the server.

Does that give any hints as to what I should try next? :wacko:

6 Aug 2008, 6:18 AM
#10
paulsschwarz avatar

paulsschwarz

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
1

Re: Serious Zenner help needed: trying to move to new server

DrByte:

I agree with the others: Your FTP upload has likely damaged some files.

Another troubleshooting step you could try is to go ahead and install a new clean uncustomized store ... and see whether that works. If not, then toss the ball back to your host. (This is one of several reasons why the FAQ article suggests this as the first step. A second reason is that the install process builds the correct configure.php files for the new server for you, making that part of the customization easier too.)

If the "clean" install works fine, then try pointing it to the database of your non-working site, and see what happens. Then progessively merge things together until you have it all working as you desire.

But fix your corrupted files first.

Thanks good doctor! I actually have done a fresh install as per the article 100 and it works. What I haven't tried is pointing the new install at the genuine database, will try that now. And yes my configuration is fine, there are no problems there.

Fresh install is at http://africanworks.co.uk/shop/

Genuine install is at http://africanworks.co.uk/store/

      • BREAKING NEWS! - - -
        I have no idea what my hosting company did overnight but it's not garbled anymore!! I have seriously no idea but if I go to admin at http://africanworks.co.uk/store/admin I can sign in and see all my old dummy customer names and everything... perfect.
        If I go to the store front it ALMOST works!!! http://africanworks.co.uk/store/ you'll see the page doesn't fully load, hit view source and you'll see it's hanging at
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
  <tr>

 <td id="navColumnOne" class="columnLeft" style="width: 130px">
<div id="navColumnOneWrapper" style="width: 170px">

... and as my host reported they are seeing some sort of error, maybe sql, not sure, in the creation of column_left.

6 Aug 2008, 8:46 AM
#11
website_rob avatar

website_rob

Inactive

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

Re: Serious Zenner help needed: trying to move to new server

As to why the page is not displaying, I would tend to think it is a problem with code; either PHP syntax error or incorrect HTML.

You would need to check and/or re-upload this file:

includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

I've seen this before where a syntax error does not show an error, just doesn't show the rest of the page.

As to the HTML, this doesn't look right:

**<td id="navColumnOne" class="columnLeft" style="width: 130px">

<div id="navColumnOneWrapper" style="width: 170px"> **

Having a TD 130px wide whilst trying to put inside that a DIV that is 170px wide, is asking for trouble. :wink:

8 Aug 2008, 12:28 PM
#12
paulsschwarz avatar

paulsschwarz

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
1

Re: Serious Zenner help needed: trying to move to new server

Hi everyone, I just want to say thanks so much for rallying to my rescue! I knew I was in good hands when I saw everyone helping was totally zenned.

I just wanted to say that I have resolved the issue thanks to a team effort.

Solution:

Whilst we were discussing FTP problems (ASCII/binary) I checked back on the site and it wasn't garbled anymore, I have no idea how that happened? Maybe my host kicked the server or something. Anyway, that was half the problem solved. Then my next problem was that php was dying halfway through creating the front page. More precisely I was trying to build EZ Pages box and dying. I littered the code with php print statements which kept me having fun for 3 hours until I discovered https://www.zen-cart.com/tutorials/index.php?article=82 which told me to download the error logging module http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=860
(thanks DrByte)

Well, it told me that some requires() were failing, it turns out Filezilla conspired to not upload the template_default directory. I promise I don't recall any files in the failed queue.

Well uploading the missing files fixed everything and now I'm up on the new server (which means yay for SSL!)

I think the error logging util should be prescribed more often! (yes I know it should be turned off in production, but it's really handy for debug)

Thanks all!

9 Aug 2008, 9:03 AM
#13
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Serious Zenner help needed: trying to move to new server

Hmmmmmm.....I seem to recall pointing to that error logging module in post #4 of this thread.......

9 Aug 2008, 10:21 AM
#14
paulsschwarz avatar

paulsschwarz

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
1

Re: Serious Zenner help needed: trying to move to new server

barco57:

go get this download http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_54&products_id=860
stick it where it belongs according to the read me and when the cart generates php errors they will be logged and you will be able to pull those logs and see what the error is.

What can I say! :blush: