Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Apr 2008
    Posts
    21
    Plugin Contributions
    1

    bug 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.

    In the rare event that any of you speak garbled, please tell me what this says:
    Code:
    <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>
    
    
    ������M0HW&RզHS8jlgCLӲl|>3+ټJ79`C>Y8
    ,Z)8N6qm5<ocO)[zgT@s8ԁ59hp
    {RShC1bXjg#4EQ4k9s,/c-tT݌{E@ҬXEyS,D
    6BM6a7KRNN]*##ig<t-t̔,c,U<Bh'ekt1w##A YQ].r(%(c=>mMmK#u;ߵ7XE.kcĖU	ӵT7"O`l}4uI`>Ky}M2nn8ΰܡ1jSoLZq:YHgţ{B72#
    mDh>gpc{x@<Y:÷xQ5jb����ic��
    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 Code:
    <?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

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

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

  3. #3
    Join Date
    Apr 2008
    Posts
    21
    Plugin Contributions
    1

    Default 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

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,769
    Plugin Contributions
    0

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

    go get this download http://www.zen-cart.com/index.php?ma...roducts_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.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #5
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default 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.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  6. #6
    Join Date
    Apr 2008
    Posts
    21
    Plugin Contributions
    1

    Default 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

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default 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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,407
    Blog Entries
    7
    Plugin Contributions
    81

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

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


    Quote Originally Posted by paulsschwarz View Post
    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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Apr 2008
    Posts
    21
    Plugin Contributions
    1

    Default 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! 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?

  10. #10
    Join Date
    Apr 2008
    Posts
    21
    Plugin Contributions
    1

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

    Quote Originally Posted by DrByte View Post
    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

    PHP Code:
    <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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Needed Serious Help..
    By rallygirl11 in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 7 Jan 2009, 06:44 AM
  2. New Server - DB help needed
    By elchoco in forum General Questions
    Replies: 2
    Last Post: 5 Dec 2008, 08:20 PM
  3. Serious help required - to set up new Windows server
    By FICBA in forum Installing on a Windows Server
    Replies: 0
    Last Post: 23 Jul 2008, 04:01 PM
  4. Serious help needed
    By edealbase in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 8 Nov 2007, 09:22 PM
  5. Serious design help needed
    By Nick_Sonick in forum Templates, Stylesheets, Page Layout
    Replies: 37
    Last Post: 12 Sep 2007, 08:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR