Thread: Cart Problem

Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default Cart Problem

    I'm getting this error when i try to access my store catalog page:
    1146 Table 'divabou_zc1.zen_banners' doesn't exist
    in:
    [select banners_id, date_scheduled from zen_banners where date_scheduled != NULL]

    And I am getting this error when I try to access my zencart admin area.
    1146 Table 'divabou_zc1.zen_banners' doesn't exist
    in:
    [select banners_id, date_scheduled from zen_banners where date_scheduled != NULL]

    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.
    How can I correct this problem so that I don't have to uninstall my shop and reinstall my shop. I start having this problem when I had my hosting company restore my backup.
    Diva Boutiques
    www.divaboutiques.com

  2. #2
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default Re: Cart Problem

    This is the error now that i am getting!

    1054 Unknown column 'b.expires_date' in 'field list'
    in:
    [select b.banners_id, b.expires_date, b.expires_impressions, sum(bh.banners_shown) as banners_shown from zen_banners b, zen_banners_history bh where b.status = 1 and b.banners_id = bh.banners_id group by b.banners_id, b.expires_date, b.expires_impressions]
    Diva Boutiques
    www.divaboutiques.com

  3. #3
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default 1054 Unknown column 'b.expires_date' in 'field list'

    How can I clear this error to get in my admin & see my catalog

    1054 Unknown column 'b.expires_date' in 'field list'
    in:
    [select b.banners_id, b.expires_date, b.expires_impressions, sum(bh.banners_shown) as banners_shown from zen_banners b, zen_banners_history bh where b.status = 1 and b.banners_id = bh.banners_id group by b.banners_id, b.expires_date, b.expires_impressions]
    Diva Boutiques
    www.divaboutiques.com

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Cart Problem

    Sounds like they've restored from an out-of-date backup.

    Your "banners" table structure presently in your database apparently doesn't match what's expected by your Zen Cart code.

    Do you use banners on your site?

    I recommend that you do a database backup (see this FAQ: https://www.zen-cart.com/tutorials/i...hp?article=103 )
    and then run the following SQL commands via phpMyAdmin:
    Code:
    DROP TABLE IF EXISTS zen_banners;
    CREATE TABLE zen_banners (
      banners_id int(11) NOT NULL auto_increment,
      banners_title varchar(64) NOT NULL default '',
      banners_url varchar(255) NOT NULL default '',
      banners_image varchar(64) NOT NULL default '',
      banners_group varchar(15) NOT NULL default '',
      banners_html_text text,
      expires_impressions int(7) default '0',
      expires_date datetime default NULL,
      date_scheduled datetime default NULL,
      date_added datetime NOT NULL default '0001-01-01 00:00:00',
      date_status_change datetime default NULL,
      status int(1) NOT NULL default '1',
      banners_open_new_windows int(1) NOT NULL default '1',
      banners_on_ssl int(1) NOT NULL default '1',
      banners_sort_order int(11) NOT NULL default '0',
      PRIMARY KEY  (banners_id),
      KEY idx_status_group_zen (status,banners_group),
      KEY idx_expires_date_zen (expires_date),
      KEY idx_date_scheduled_zen (date_scheduled)
    ) TYPE=MyISAM;
    .
    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.

  5. #5
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default Re: Cart Problem

    Thank you for the reply is there a way I can just go in and find all my products in my shop, I just want to uninstall and reinstall, I tried the information you gave me but I just got another error message.
    Diva Boutiques
    www.divaboutiques.com

 

 

Similar Threads

  1. Problem adding to cart...'YOUR SHOPPING CART IS EMPTY'
    By xanabobana in forum General Questions
    Replies: 10
    Last Post: 19 Nov 2010, 06:18 PM
  2. Shopping cart problem
    By buckleycomp in forum Basic Configuration
    Replies: 3
    Last Post: 26 May 2008, 08:54 PM
  3. Cart problem
    By govanmac in forum Managing Customers and Orders
    Replies: 1
    Last Post: 18 Apr 2008, 04:45 PM
  4. Cart problem
    By govanmac in forum General Questions
    Replies: 2
    Last Post: 17 Apr 2008, 07:18 PM
  5. Shopping cart problem
    By FreshP in forum Managing Customers and Orders
    Replies: 8
    Last Post: 19 Dec 2007, 05:16 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