Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Problems with creating a copy of install

    I'm trying to create a duplicate of my zen-cart installation (for testing purposes). I created a new domain name (testing.mydomain.com), created a second database, dumped all the data from one and inserted it to the second, and changed all the relevant fields in the two configure.php files. I also changed the admin directory for the seconds installation for good measure. Going to the new test site looks fine, but when I try to log into the admin, I get this error:

    1062 Duplicate entry '0' for key 'PRIMARY'
    in:
    [insert into zen_admin_activity_log (access_date, admin_id, page_accessed, page_parameters, ip_address) values (now(), '0', 'login.php ', '', '99.225.132.169')]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    I've tried deleting all enteries in the zen_admin_activity_log, with no change in the error message. Can someone give me a clue as to how I might resolve this issue?

    TIA!

  2. #2
    Join Date
    Jun 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Problems with creating a copy of install

    I got mine to work by modifying the config.php files in the /admin/includes to change the URL paths.

    // 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://www.NEW PLACE.com');
    define('HTTPS_SERVER', 'https://www.NEWPLACE.com');


    My problem is that I cannot see any of the entrys in my sandbox site. I did a frsh install and copied the database and modified the configs. Once I installed the new and changed the configs I copied all of the production site files to the sandbox site.

    When I look at the site none of my 20 products show up.

  3. #3
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Problems with creating a copy of install

    Thanks... actually, I eventually got it to work.

    I started from scratch, but did things in a different order. This time, I started with a fresh install at the new location, made a back-up of the two configure.php files, then did a full dump of the existing database (I don't know if it mattered, but I completely deleted the admin activity log table before I imported the old data to the new database). I copied over all of my files onto the new server, not over-writing the configure files.

    That seemed to do the trick!

    I'm not sure why it didn't work the first way, but it seems everything is okay now.

 

 

Similar Threads

  1. Problems with Copy of live site prior upgrading
    By icecold in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 6 Apr 2011, 03:31 PM
  2. Have problems with creating new filter
    By HappyLenz in forum General Questions
    Replies: 0
    Last Post: 16 Jun 2010, 09:02 PM
  3. Local copy. Problems copy subdirs over.
    By bakerman in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Sep 2007, 07:22 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