Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2007
    Posts
    41
    Plugin Contributions
    0

    Default Modding an xampp cart - help?

    Hi. I've downloaded a zen-cart from a remote site, as per the wiki.
    I've created a new one, backed it up, overwritten it, etc etc.

    I've downloaded fix_cache_key.php and put it in my cart folder, but can't seem to run it.
    I now have a partially loaded cart.

    The online site looks like this:

    www.aswab.co.uk/ifp2.jpg

    and the one on my pc looks like this:

    www.aswab.co.uk/ifp1.jpg

    Clearly some data has moved across - the announcement in the middle - but none of the formatting. I assume the formatting is somewhere in the database but I'm lost at present.

    Help? I know I'm nearly there, but now I'm stuck.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Modding an xampp cart - help?

    The "announcement in the middle" is stored in a file, while all the categories, products, etc. are in the database.

    I think you have somehow not gotten the db into your local copy correctly. The procedure requires at one point upgrading the database, and there is a critical choice you need to make to avoid wiping your info (don't recall details at the moment). You should still have the database backup from your live store, so try importing that again, paying close attention to every step.

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Modding an xampp cart - help?

    When you created the backup from your host - who is your host? If this might be GoDaddy or another that treats the backup as a unit and this creates the DB just like the original name & all - you can check your XAMP db's and see if it has one created one that you did not create
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Apr 2007
    Posts
    41
    Plugin Contributions
    0

    Default Re: Modding an xampp cart - help?

    I'm pretty sure my problem is fix_cache_key.php.
    The last stage of the download is to install and run fix_cache_key.php but although I've grabbed it and unzipped it, I can't work out how to run it, and it's needed, as I understand it, to migrate my database onto my machine.
    I've put it in htdocs/store but can't seem to run it in my browser.
    Also the downloaded zip file has no instructions (while the download page says it will).
    When I try to run it nothing happens as far as I can see.

    Any ideas?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Modding an xampp cart - help?

    I don't mean to insult your intelligence, but I must ask you to please explain *exactly* what you did in order to establish your local site.

    You've clearly missed a step, and it appears to be a result of either not reloading the data to the database, or you are pointing to the wrong table-prefix.

    fix_cache_key deals with fixing login problems.
    It should never show up as a blank screen. It really requires no instructions. They are all on-screen when it runs, and basically all they say is to delete the file after running it, because it auto-sets the required setting to the database if it can connect successfully.
    As for documentation, it's inside the fix_cache_key.php file on lines 24-37. I've copied that content below for easy reference.
    Maybe it's showing up blank because the database data in your configure.php is bad and it's croaking because it wasn't written with the expectation of bad setup.
    *ALL* it does is read the configure.php file to select database settings and connec to the database, and then edit the "SESSION_WRITE_DIRECTORY" record in the configuration table to match what's set in your configure.php file for DIR_FS_SQL_CACHE. You can do this via phpMyAdmin yourself ... the fix_cache_key tool is just a simpler way to do the same thing.
    Again, it has *nothing* to do with having no data show up in your store. That's a configuration problem in your configure.php or the result of a truly empty database.

    /*
    * This utility is used to reset your "SESSION_WRITE_DIRECTORY" key after switching servers.
    *
    * 1. Make sure the DIR_FS_SQL_CACHE setting is correct in your /includes/configure.php file.
    * 2. Copy this file to the folder where "index.php" exists for your Zen Cart site
    * 3. Run it
    * 4. The cache setting from your configure.php file will be displayed, followed by
    * the cache setting from your database.
    * If they match, it will say "No changes required."
    * If they do not match, it will synchronize the database to match the configure.php setting.
    * 5. VERY IMPORTANT .... WHEN DONE, DELETE THIS FILE FROM YOUR SERVER!!!!!!!!!!!
    * If you don't delete it (or at least rename it to something very obscure), then you run the
    * risk of somebody using it to find out information about your server configuration, which
    * could compromise your site's security. Thus, deleting this file when finished is the best approach.
    */
    .

    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.

 

 

Similar Threads

  1. How do I install Zen Cart on XAMPP?
    By xcergy in forum Installing on a Windows Server
    Replies: 19
    Last Post: 22 Dec 2010, 04:19 PM
  2. Need XAMPP Help! Zen Cart Manual - Installing on local machine
    By pegog in forum Installing on a Windows Server
    Replies: 10
    Last Post: 16 Jul 2008, 06:51 AM
  3. Modding an xampp cart - how?
    By Gladys_Pym in forum Installing on a Windows Server
    Replies: 4
    Last Post: 14 May 2007, 11:05 PM
  4. Zen Cart / XAMPP / PHPBB
    By godspeed27 in forum Installing on a Windows Server
    Replies: 4
    Last Post: 2 Apr 2007, 09:11 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