Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2007
    Location
    Slidell, LA
    Posts
    9
    Plugin Contributions
    0

    Default 1364 Field 'query_keys_list' doesn't have a default value

    My current version is 1.3.7. I am trying to upgrade to 1.3.8, and getting this error when I select upgrade that upgrade option:

    1364 Field 'query_keys_list' doesn't have a default value
    in:
    [INSERT INTO zen_query_builder (query_category, query_name, query_description , query_string) VALUES ('email,newsletters', 'Customers who have never completed a purchase', 'For sending newsletter to all customers who registered but have never completed a purchase', 'SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM TABLE_CUSTOMERS c LEFT JOIN TABLE_ORDERS o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL');]

    I can't seem to get it to do the upgrade. Any suggestions? Or should I just concentrate on trying to import all of the products at the database level so I can just do a fresh install of 1.3.8?

    Thanks in advance for any help you might provide!

    geekgirl
    The knack of flying is learning how to throw yourself at the ground and miss.


    --Hitchhikers Guide to the Galaxy

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

    Default Re: 1364 Field 'query_keys_list' doesn't have a default value

    Which version checkboxes are checked when you get that error?

    Are you attempting the upgrade using v1.3.8 or the newer v1.3.8a files?
    .

    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.

  3. #3
    Join Date
    Aug 2007
    Location
    Slidell, LA
    Posts
    9
    Plugin Contributions
    0

    Default Re: 1364 Field 'query_keys_list' doesn't have a default value

    The upgrade for 1.3.7 to 1.3.8a. I had to reinstall it back to 1.3.7 in order for it to retain the info from the database. When I try the upgrade option it doesn't work.

    This is the info from server version:
    Zen Cart 1.3.8a

    Database Patch Level: 1.3.7

    v1.3.7 [2009-03-29 12:31:51] (Version Update 1.3.6->1.3.7)
    v1.3.7 [2007-06-04 23:35:56] (Fresh Installation)

    Sorry it took so long to respond! I just haven't been concentrating on this broken site, as I can't do much for this personal site unless it's on a weekend.
    Last edited by geekgirl; 13 Apr 2009 at 12:18 AM.
    The knack of flying is learning how to throw yourself at the ground and miss.


    --Hitchhikers Guide to the Galaxy

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

    Default Re: 1364 Field 'query_keys_list' doesn't have a default value

    Edit your /zc_install/sql/mysql_upgrade_zencart_137_to_138.sql file, using a reliable text editor such as Notepad++

    Find the lines that look like this:
    Code:
    #audience list addition: customers who have signed up but never made a purchase
    INSERT INTO query_builder (query_category, query_name, query_description , query_string) VALUES ('email,newsletters', 'Customers who have never completed a purchase', 'For sending newsletter to all customers who registered but have never completed a purchase', 'SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM TABLE_CUSTOMERS c LEFT JOIN  TABLE_ORDERS o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL');
    And add a # to the beginning of the INSERT INTO query_builder ... line. (just like the #audience list addition ... line has.)
    Save the file and re-upload it to the same location on the server.
    Then the upgrade step should continue fine.
    .

    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.

 

 

Similar Threads

  1. v139h Field doesn't have a default value
    By JoshS in forum General Questions
    Replies: 1
    Last Post: 13 Jul 2016, 04:29 PM
  2. Is it possible to have a default value in text attributes?
    By rbobzin in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 12 Sep 2008, 09:20 PM
  3. Token field doesn't have a label
    By quentinjs in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 28 Jan 2008, 10:55 PM
  4. BLOB/TEXT column 'products_options_values' can't have a default value ??
    By quantumfusion in forum Installing on a Windows Server
    Replies: 16
    Last Post: 26 Jan 2008, 01:40 AM
  5. 1101 BLOB/TEXT column can't have a default value
    By tkroh in forum Installing on a Windows Server
    Replies: 3
    Last Post: 27 Dec 2006, 10:28 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