Zen Cart Logo
Forums / Installing on a Windows Server / Modding an xampp cart - help?

Modding an xampp cart - help?

Locked

Views: 1,909

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
17 May 2007, 9:40 AM
#1
gladys_pym avatar

gladys_pym

New Zenner

Join Date:
Apr 2007
Posts:
41
Plugin Contributions:
0

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.

17 May 2007, 9:47 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

18 May 2007, 12:43 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

18 May 2007, 6:13 AM
#4
gladys_pym avatar

gladys_pym

New Zenner

Join Date:
Apr 2007
Posts:
41
Plugin Contributions:
0

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?

18 May 2007, 8:47 AM
#5
drbyte avatar

drbyte

Sensei

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

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.
    1. Copy this file to the folder where "index.php" exists for your Zen Cart site
    1. Run it
    1. 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.
    1. 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.
    */