Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2005
    Posts
    71
    Plugin Contributions
    0

    running 1.3.0 MySQL Database errors

    Something Strange just happened. When I view my pages, this appears on the top.

    Code:
    Warning: Variable passed to each() is not an array or object in /home/kookoot/
    public_html/store/includes/classes/db/mysql/query_factory.php on line 112
    And this appears in the body

    Code:
    1064 You have an error in your SQL syntax; check the manual that corresponds to your
    MySQL server version for the right syntax to use near 'EXPECTED_PRODUCTS_SORT 
    limit MAX_DISPLAY_UPCOMING_PRODUCT' at line 6 in:
    
    [select p.products_id, pd.products_name, products_date_available as date_expected 
    from products p, products_description pd where to_days(products_date_available) > 
    to_days(now()) and p.products_id = pd.products_id and pd.language_id = '1' order by 
    EXPECTED_PRODUCTS_FIELD EXPECTED_PRODUCTS_SORT limit 
    MAX_DISPLAY_UPCOMING_PRODUCTS]
    I have not done anything. I didn't even upgrade or anything. It just appeared by itself. Nothing seems to be wrong with the server and the Database is intact. I'm so confused. I don't know what's wrong or how to fix it.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: running 1.3.0 MySQL Database errors

    Looks like your database configuration is missing those settings ...

    NOTE: the current release is Zen Cart v1.3.5

    You say you are running v1.3.0 ... When and Where did you get it? that is a very old version and many updates have been made since then ...

    If you have not really done anything with your site, then I would suggest you use Zen Cart v1.3.5 ... or consider upgrading it if you have already started using it ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Oct 2005
    Posts
    71
    Plugin Contributions
    0

    Default Re: running 1.3.0 MySQL Database errors

    I upgraded sometime this earlier this year.

    If i do a fresh install of 1.3.5 and import my database, would it still be messed up?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: running 1.3.0 MySQL Database errors

    Make a test directory /new_shop

    Make a test database

    Load a backup copy of your Live Site into the test database ...

    Load your existing site to /new_shop ...

    Load all the files for Zen Cart v1.3.5 ...

    Edit the 2 configure.php files:
    /includes/configure.php
    /admin/includes/configure.php

    Change the paths to reflect the /new_shop and the database, username and password to reflect the new database ...

    Run the /new_shop/zc_install

    Test the upgrade process on /new_shop and you should test everything from:

    Create several test account
    Add to cart
    checkout for your shipping modules
    checkout for your payment modules

    Complete several test orders ...

    Make sure all is happy in My Account and Admin ... Customers ... Orders ...

    If all is perfect ... set Live site Down for maintenance ...

    Drop all tables from /new_shop database and load fresh copy of Live Site database after it was set Down for Maintenance ...

    Run /new_shop/zc_install again ...

    Test all again ...

    If all is perfect ...

    Edit the 2 configure.php files:
    /new_shop/includes/configure.php
    /new_shop/admin/includes/configure.php

    To reflect the Live Shop directory path ...

    Do NOT change the database ... you will be now using the new database you made with v1.3.5 ...

    Rename the Live Site /old_shop or move to /old_shop directory ...

    Rename /new_shop to Live Shop directory or to the root depending on where you have it ...

    Check and test everything ...

    If all is good ... take new Live shop off of Down for Maintenance ... and you are good to go ...

    NOTE: it is a good idea during testing of /new_shop to remove/install Payment, Shipping and Order Total Modules *AFTER* you have written down old settings ... and reinstall and configure ...

    Many changes have been made and you want to assure all is right in the world ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Oct 2005
    Posts
    71
    Plugin Contributions
    0

    Default Re: running 1.3.0 MySQL Database errors

    All is not well.

    Previous Zen Cart Installation Found
    However, the version level of your database cannot be determined, usually resulting from wrong table prefixes, or other database settings mismatches.

  6. #6
    Join Date
    Oct 2005
    Posts
    71
    Plugin Contributions
    0

    Default Re: running 1.3.0 MySQL Database errors

    nevermind. after much toil. I finally got it to recognize the database version.

 

 

Similar Threads

  1. v139h Do Zen Cart 1.3.9h, 1.5.0, 1.5.1 can running on MySQL 5.5 or the latest 5.6?
    By explorer1979 in forum General Questions
    Replies: 0
    Last Post: 28 Feb 2014, 03:02 AM
  2. Help! Cannot upgrade database MySQL errors
    By starmakersandy in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 5 Sep 2009, 08:49 PM
  3. Dreaded mYSQL 1064 error when importing MySQL 4 database into MySQL5
    By dml311071 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Jun 2008, 05:38 AM
  4. MySQL bottlneck - getting mysql errors
    By ksoup in forum General Questions
    Replies: 25
    Last Post: 3 May 2008, 06:35 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