Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Sep 2007
    Posts
    13
    Plugin Contributions
    0

    Default How do I restore my cart?

    I had a problem with my admin. It would not allow login. I updated the SQL but it still would not work. Ultimately I re-installed the cart. I copied all of my local files, except the admin, back to the server. Now I can log in, however I do not see any categories or products in the admin. They are all listed in the front end but all of the photos are gone.

    What can I do to salvage this mess?

    http://www.idealockers.com/quote

  2. #2
    Join Date
    Sep 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: How do I restore my cart?

    Anyone?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: How do I restore my cart?

    There's no "quick" or "short" answer, because you've supplied very little information and it sounds like there's an extensive history behind how you got to where you're at today.

    Start with pasting your configure.php files from admin and storefront here, without the password.
    What template were you using on your site?
    How many databases have you created?
    What did you do with your database content when you reinstalled Zen Cart?
    It sounds like you've got files and database content all out of sync for some reason.

    With a grand total of 5 products in your store, I'd be inclined to say start fresh and re-enter everything in a clean database after you have both your admin and catalog working.
    .

    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.

  4. #4
    Join Date
    Sep 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: How do I restore my cart?

    There are more than 5 products in the zen cart (more like 30 with several attributes). I'd rather not have to start from scratch if at all possible. Everything that was entered is still in the database which I backed up - and did not delete from the server - before re-installing. Like I said, everything is still there except for the pictures. There is one database. I used the default template.

    Admin config:

    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the Zen Cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | [email protected] so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: dist-configure.php 4095 2006-08-08 02:32:01Z drbyte $
    //

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    /*
    * URL's for your site will be built via:
    * HTTP_SERVER plus DIR_WS_ADMIN or
    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    * HTTP_SERVER plus DIR_WS_CATALOG or
    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    * ...depending on your system configuration settings
    */
    define('HTTP_SERVER', 'http://idealockers.com');
    define('HTTPS_SERVER', 'https://idealockers.com');
    define('HTTP_CATALOG_SERVER', 'http://idealockers.com');
    define('HTTPS_CATALOG_SERVER', 'https://idealockers.com');

    // secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', '/quote/admin/');
    define('DIR_WS_CATALOG', '/quote/');
    define('DIR_WS_HTTPS_ADMIN', '/quote/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/quote/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/home/13471/domains/idealockers.com/html/quote/admin/');
    define('DIR_FS_CATALOG', '/home/13471/domains/idealockers.com/html/quote/');

    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'cart1_');
    define('DB_SERVER', $_ENV{DATABASE_SERVER});
    define('DB_SERVER_USERNAME', '');
    define('DB_SERVER_PASSWORD', '');
    define('DB_DATABASE', 'db13471_ideal_quote');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/13471/domains/idealockers.com/html/quote/cache');

    ?>


    Storefront config:

    <?php
    /**
    * dist-configure.php
    *
    * @package initSystem
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: dist-configure.php 4271 2006-08-26 01:21:02Z drbyte $
    * @private
    */
    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    define('HTTP_SERVER', 'http://idealockers.com');
    define('HTTPS_SERVER', 'https://idealockers.com/quote');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/quote/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/home/13471/domains/idealockers.com/html/quote/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'cart1_');
    define('DB_SERVER', $_ENV{DATABASE_SERVER});
    define('DB_SERVER_USERNAME', '');
    define('DB_SERVER_PASSWORD', '');
    define('DB_DATABASE', 'db13471_ideal_quote');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/13471/domains/idealockers.com/html/quote/cache');

    ?>

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: How do I restore my cart?

    Quote Originally Posted by yldziner View Post
    I had a problem with my admin. It would not allow login. I updated the SQL but it still would not work. Ultimately I re-installed the cart. I copied all of my local files, except the admin, back to the server. Now I can log in
    I'm confused about what you're saying.

    First, you said you had a problem with your admin not allowing you to login.
    Then you said you "updated the SQL" somehow.
    Then you said you re-installed Zen Cart. What exactly do you mean by that?
    You said you "copied all local files except the admin back to the server". Um, why? and, why did you skip the admin files, esp if you had an admin 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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: How do I restore my cart?

    Quote Originally Posted by yldziner View Post
    I do not see any categories or products in the admin. They are all listed in the front end but all of the photos are gone.
    Quote Originally Posted by yldziner View Post
    Everything that was entered is still in the database which I backed up - and did not delete from the server - before re-installing. Like I said, everything is still there except for the pictures. There is one database. I used the default template.
    When you "re-installed", did you run zc_install/index.php to do the "re-install", or when you say "re-install", do you mean only that you copied files to the server?

    Did you delete any files from the server before uploading the files from your local PC?

    Your product images are "gone" because they don't exist. ie: they're not on your server. If you look at the image placeholders shown on your website, they point to your /quote/images folder ... which is where one would expect them to point. Thus, it looks like you must have deleted the files from your /quote/images folder.

    I'm not sure what happened to your template. I have no idea what your site looked like before you did all this. Maybe what's showing on the storefront is what you expected, and you haven't gotten around to customizing it yet other than turning off all the sideboxes.
    Quote Originally Posted by yldziner View Post
    I do not see any categories or products in the admin.
    The only reason why you would see different data in the admin vs the storefront is if you had different DB_XXXXXXX settings in your admin vs non-admin configure.php files.

    You have a "DB_PREFIX" setting of "cart1_". Do all your tables start with "cart1_" ? Do you have a collection of tables starting with another prefix?
    .

    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
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: How do I restore my cart?

    Quote Originally Posted by yldziner View Post
    Storefront config:


    define('HTTP_SERVER', 'http://idealockers.com');
    define('HTTPS_SERVER', 'https://idealockers.com/quote');

    define('DIR_WS_CATALOG', '/quote/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    I would suggest moving the /quote out of the HTTPS_SERVER entry, and putting it into the DIR_WS_HTTPS_CATALOG entry, just like you have in your admin config file:
    define('HTTP_SERVER', 'http://idealockers.com');
    define('HTTPS_SERVER', 'https://idealockers.com');

    define('HTTP_CATALOG_SERVER', 'http://idealockers.com');
    define('HTTPS_CATALOG_SERVER', 'https://idealockers.com');

    define('DIR_WS_ADMIN', '/quote/admin/');
    define('DIR_WS_CATALOG', '/quote/');
    define('DIR_WS_HTTPS_ADMIN', '/quote/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/quote/');
    Consistency will help save headaches later.
    .

    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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: How do I restore my cart?

    Who suggested that you use this for your DB_SERVER?
    Quote Originally Posted by yldziner View Post
    define('DB_SERVER', $_ENV{DATABASE_SERVER});
    .

    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
    Sep 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: How do I restore my cart?

    Thanks for your update.

    • I tried to reset the database to the default in SQL:

    Step 1:

    DROP TABLE IF EXISTS admin;
    CREATE TABLE admin (
    admin_id int(11) NOT NULL auto_increment,
    admin_name varchar(32) NOT NULL default '',
    admin_email varchar(96) NOT NULL default '',
    admin_pass varchar(40) NOT NULL default '',
    admin_level tinyint(1) NOT NULL default '1',
    PRIMARY KEY (admin_id),
    KEY idx_admin_name_zen (admin_name)
    ) TYPE=MyISAM;



    Step 2:

    INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);



    • I ran zc_install/index.php to do the "re-install".

    • I did not copy the local admin folder back to the server because that didn't work when I tried to login to the admin prior to re-installing so I thought that something in the folder must be 'bad'.

    • I did not delete any files from the server prior to re-installing.

    • The image files are still on the server in the images folder - I just checked.

    • I had not made any changes to the template yet. The cart had just been populated with products.

    • All of the tables in the database begin with cart_1.

    • Who suggested that you use this for your DB_SERVER?
    Quote:
    Originally Posted by yldziner View Post
    define('DB_SERVER', $_ENV{DATABASE_SERVER});

    I did not change this code. I don't know. . .

  10. #10
    Join Date
    Sep 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: How do I restore my cart?

    The admin table does not have the cart_1 prefix, does that need to be changed?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Trying to restore zen cart version v1.3.7
    By inspiration100 in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 21 Mar 2011, 10:15 PM
  2. Usability question: is cart restore a Good Thing?
    By tlahtine in forum General Questions
    Replies: 10
    Last Post: 13 Nov 2010, 06:15 PM
  3. How to Restore?
    By JDog21 in forum General Questions
    Replies: 3
    Last Post: 21 Sep 2010, 06:41 PM

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