Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2006
    Posts
    44
    Plugin Contributions
    0

    Default Moving a working store to new domain name and not working

    Okay folks, what am I overlooking, this should be easy. I am moving a working 1.3.6 zen cart to a new domain name hosted on the same server. The database server is not changing.

    Basically, I'm moving from something like mystore.com to myotherstore.com. I uploaded the existing, working file set to account with the new domain name, I changed both configure.php files paths from *mystore* to *myotherstore*. Set permissions recursively to 644 (and tried 755 as a test).

    Admin side is working just fine, the customer portion is not. It renders an empty html page.

    This should be easy and the solution should be obvious yet it escapes me. Any ideas on what I am missing?

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

    Default Re: Moving a working store to new domain name and not working

    Did you do the sessions part of this?

    https://www.zen-cart.com/tutorials/i...hp?article=122

  3. #3
    Join Date
    Nov 2006
    Posts
    44
    Plugin Contributions
    0

    Default Re: Moving a working store to new domain name and not working

    Quote Originally Posted by stevesh View Post
    Did you do the sessions part of this?

    https://www.zen-cart.com/tutorials/i...hp?article=122
    Thanks. No, I missed that that but that didn't solve the problem. That also reminded me to make sure that cache directory is writeble.

    I have debug code in to trace where it's failing and it is failing with sessions.

    It runs from index.php, to application_top.php, to autoload_func.php, to init_sessions.php, to whos_online.php.

    In whos_online.php at line ~30 I added this:
    if (function_exists ('zen_session_id')) {
    echo("5.2.0 zen_session_id exists <br>");
    }
    else{
    echo("5.2.0 zen_session_id NOT FOUND<br>");
    }
    $wo_session_id = zen_session_id();

    The output is the zen_session_id() does not exist so apparenly sessions.php is not being loaded?

    Any thoughts or ideas?

    One interesting thing, since I changed sessions directory in Admin, it is changed for both carts under the old domain and the new one. The old cart is working fine with it pointing to the new directory. That at least shows the sessions cache path and permissions are correct.

  4. #4
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Moving a working store to new domain name and not working

    The sessions config from your admin changes the entry in the database... since the stores are sharing one, thus it changes.

    I have had a similar issue, where the path was correct, but shop was broken until I clicked to edit it.... made no changes and then saved

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  5. #5
    Join Date
    Nov 2006
    Posts
    44
    Plugin Contributions
    0

    Default Re: Moving a working store to new domain name and not working

    Quote Originally Posted by mprough View Post
    The sessions config from your admin changes the entry in the database... since the stores are sharing one, thus it changes.

    I have had a similar issue, where the path was correct, but shop was broken until I clicked to edit it.... made no changes and then saved

    ~Melanie
    Melanie,

    When you said this: "until I clicked to edit it", did you mean you went into Admin: Configuration/Sessions then clicked to edit the Session Directory and clicked the Update button without making any changes to the path?

    I just installed and tried to run fix_cache_key.php but that's dying somewhere in application_top.php too.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Moving a working store to new domain name and not working

    Your test is not entirely useful in determining the exact cause.

    However, there are a few things to note:
    a) v1.3.6 is not compatible with PHP 5.2 without some edits (to both sessions.php files) ... which are discussed in another forum thread about the release of PHP 5.2.0
    b) you've indicated that you're moving from one domain to another. If the server's file-path has changed, you'll need to be very sure you've got the correct paths in ALL of the appropriate settings in BOTH of your new configure.php files.
    c) depending on where your problem is happening, you might find the debug-logging-utility mentioned in step 2a of this FAQ article to be useful in finding out what PHP error is causing the blank page to happen: https://www.zen-cart.com/tutorials/index.php?article=82 (follow the instructions in the link found in the article, and remember to use the admin folder if your problem is happening on the admin side)
    .

    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.

  7. #7
    Join Date
    Nov 2006
    Posts
    44
    Plugin Contributions
    0

    Default Re: Moving a working store to new domain name and not working

    This was a working store. Both domain names are hosted on the same account and the same server. Files were uploaded into the new directories and both configure.php files were updated so all refs that include the doman name were changed to the new one. Admin works fine, the catalog side does not. Both the old and the new installs use the same database. It's one version back from current and a relatively standard installation.

    This is the entire html output for the catalog:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
    <BODY></BODY></HTML>
    The debug error logging utilty helped somewhat. It confirmed what I found from adding debugging code in the startup modules down from application_top.php. Here's what was in the error log file:

    PHP Fatal error: Call to undefined function: zen_session_id()
    It almost seems like the */includes/functions/sessions.php module is never being loaded since that's where zen_session_id() is defined. Permissions for that module are 755 at the moment.

    I really you folks helping me out here. Thanks!

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Moving a working store to new domain name and not working

    Perhaps you have incomplete/damaged files? Maybe your FTP program didn't upload the files properly? That's a very common problem.
    .

    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
    Nov 2006
    Posts
    44
    Plugin Contributions
    0

    Default Re: Moving a working store to new domain name and not working

    Quote Originally Posted by DrByte View Post
    Perhaps you have incomplete/damaged files? Maybe your FTP program didn't upload the files properly? That's a very common problem.
    Probably this. I reloaded using different ftp software and apparently got a complete or uncorruped upload. I bet I reloaded it 4 times before it work.

    Thanks all!

 

 

Similar Threads

  1. v151 Moving store to new domain name
    By thestampnomad in forum Installing on a Windows Server
    Replies: 3
    Last Post: 9 Jun 2015, 07:19 AM
  2. Store not working after moving it to another folder.
    By zbit in forum Basic Configuration
    Replies: 16
    Last Post: 23 Nov 2010, 09:10 PM
  3. Replies: 2
    Last Post: 28 Jan 2010, 11:05 AM
  4. Moving Website Domain Name - Admin isn't working
    By rternier in forum Basic Configuration
    Replies: 5
    Last Post: 8 Mar 2009, 12:53 AM
  5. Moving my site from subfolder to domain but not working :-(
    By credenscel in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 25 Dec 2008, 12:56 AM

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