Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Feb 2008
    Posts
    385
    Plugin Contributions
    0

    Default Setting up test site

    I copied my working store files into a new directory, zentest. I also set up a new database, zentest. What do I need to change in what file so the test store only acts on the test database, not my real database?
    [FONT="Times New Roman"]Sylvia
    PM at your own risk, I don't check in regularly!
    MamaSylvia.com My ZenCart tutorial
    [/FONT]

  2. #2
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Setting up test site

    That is all done in /includes/configure.php and /admin/includes/configure.php.

    I know you already loaded the files on your test server, but you might find it easier to scratch that and reinstall using the guide here: http://www.zen-cart.com/wiki/index.p...Switch_Servers
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  3. #3
    Join Date
    Feb 2008
    Posts
    385
    Plugin Contributions
    0

    Default Re: Setting up test site

    > you might find it easier to scratch that and reinstall

    Installing was such a nightmare that I'm really trying to avoid that. But after I edited the test configure.php files, not only replacing the database name but the directory name, I tried to go to www.SteigerFamily.com/ZenCartTest/ and got this error message:

    1146 Table 'steigerf_zentest.configuration' doesn't exist
    in:
    [select configuration_key as cfgkey, configuration_value as cfgvalue from configuration]

    Any clue what I can do to fix this? If I have to install from scratch, I will, but oh jeepers I'd rather not ...
    [FONT="Times New Roman"]Sylvia
    PM at your own risk, I don't check in regularly!
    MamaSylvia.com My ZenCart tutorial
    [/FONT]

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Setting up test site

    In your two configure.php files, you need

    define(DB_DATABASE, 'steigerf_zentest');
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Feb 2008
    Posts
    385
    Plugin Contributions
    0

    Default Re: Setting up test site

    Already there -- line 77 in the admin/includes file and line 55 in the regular /includes file.
    [FONT="Times New Roman"]Sylvia
    PM at your own risk, I don't check in regularly!
    MamaSylvia.com My ZenCart tutorial
    [/FONT]

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Setting up test site

    OK. Go into phpMyAdmin and look at that database. Do the tables have a prefix?
    (i.e. are the names zen_configuration instead of configuration?) If so you'll need to modify DB_PREFIX in the config files.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Feb 2008
    Posts
    385
    Plugin Contributions
    0

    Default Re: Setting up test site

    Wow, you are so far beyond what I know how to do ...

    I opened MyPHPAdmin and there is no option for "look at database." Info is:

    MySQL client version: 4.1.21
    Used PHP extensions: mysql
    Language: English
    Theme 7 Style: Arctic Ocean
    Font size: 82%
    Server version: 5.0.45-community-log
    Protocol version: 10
    Server: Localhost via UNIX socket
    User: steigerf@localhost
    MySQL charset: UTF-8 Unicode (utf8)
    Create new database:

    Options are:
    [Change Log] [Subverson] [Lists]
    Show MySQL runtime information
    Show MySQL system variables
    Processes
    Character Sets and Collations
    Storage Engines
    Databases
    Export
    Import
    Log out

    There are also links to PHPMyAdmin documentation, wiki, and official homepage. I did click on "databases" but there didn't seem to be a way to look at one.
    [FONT="Times New Roman"]Sylvia
    PM at your own risk, I don't check in regularly!
    MamaSylvia.com My ZenCart tutorial
    [/FONT]

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Setting up test site

    Isn't there a dropdown on the left hand side that allows you to pick a database? You need to pick yours and look at the tables in it to see if they have a prefix.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: Setting up test site

    On the 'home' page of phpMyAdmin, there should be a list of your databases on the left. Click on the one for Zencart, and it'll open to a list of your tables.

    address_book
    address_format
    etc.

    If you have a prefix, it'll show there

    If you want to see what's in that table, click the first little icon to the right of the name (Browse).

    Edit:swguy beat me to it.

  10. #10
    Join Date
    Feb 2008
    Posts
    385
    Plugin Contributions
    0

    Default Re: Setting up test site

    Not a dropdown, but a series of 3 links, one for each database. The test database shows up there as plain ol' zentest. I clicked on it and it said "no tables found in database" and asked if I wanted to create a table. Just for comparison, I looked at my real database and it has a bunch of tables in it -- think that is the problem? Am I going to have to reinstall to let Zen Cart create the tables?
    [FONT="Times New Roman"]Sylvia
    PM at your own risk, I don't check in regularly!
    MamaSylvia.com My ZenCart tutorial
    [/FONT]

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Setting up a Test Site Environment via Wamp (with an existing ZenCart site)
    By RobertH in forum Installing on a Windows Server
    Replies: 15
    Last Post: 23 Sep 2015, 02:01 AM
  2. Setting up a new test site
    By Pookiehair in forum General Questions
    Replies: 4
    Last Post: 14 Nov 2011, 07:56 PM
  3. Setting up test site
    By Lidders in forum General Questions
    Replies: 3
    Last Post: 25 Sep 2011, 07:22 PM
  4. setting up test site
    By Lawbird123 in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 8 Mar 2007, 09:17 PM

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