Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34
  1. #1
    Join Date
    Mar 2004
    Location
    Calgary, Alberta
    Posts
    290
    Plugin Contributions
    1

    Default Upgrade error 1.3.7->1.3.8a

    1. It thinks I need to do an upgrade from 1.2.7->1.2.8 as well as from 1.3.7->1.3.8 And during the 1.3.8 upgrade I get this error.

    Thanks !!!

    1364 Field 'query_keys_list' doesn't have a default value
    in:
    [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');]

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrade error 1.3.7->1.3.8a

    Quote Originally Posted by quentinjs View Post
    1. It thinks I need to do an upgrade from 1.2.7->1.2.8 as well as from 1.3.7->1.3.8
    Sorry, I'm not sure I understand you.
    There is no such thing as v1.2.8
    .

    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
    Sep 2006
    Posts
    277
    Plugin Contributions
    2

    Default Re: Upgrade error 1.3.7->1.3.8a

    Hi you gods of zen...

    I have a small issue with the database update... i did merge everything successfulley data wise and then - as i clicked "update database from 1.3.7.1 to 1.3.8 in the install i received these errors:

    SKIPPED: Cannot ADD column module_name because it already exists.
    SKIPPED: Cannot ADD column module_mode because it already exists.
    SKIPPED: Cannot CHANGE column zen_order_id because it does not exist.
    SKIPPED: Cannot ALTER or INSERT/REPLACE into table linkpoint_api because it does not exist. CHECK PREFIXES!


    so... i take that the first 2 are ok but i'm worried about the last 2 errors...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrade error 1.3.7->1.3.8a

    Those "warnings" are informational, and suggest that some of the steps in the upgrade had already been done previously.
    Thus, you should be safe to proceed.

    Also note that the last warning is specifically listed as "okay" in the 1.3.8 announcement
    .

    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
    Mar 2004
    Location
    Calgary, Alberta
    Posts
    290
    Plugin Contributions
    1

    Default Re: Upgrade error 1.3.7->1.3.8a

    So lets start this again.. I go in, say upgrade from 1.3.7. to 1.3.8 and get this error message...

    1364 Field 'query_keys_list' doesn't have a default value
    in:
    [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');]


    thoughts?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrade error 1.3.7->1.3.8a

    That error appears because that step has already been done once.

    Follow the steps in this thread (which I found by searching for "Customers who have never completed") to delete that entry so you can start over again.
    http://www.zen-cart.com/forum/showth...ever+completed


    EDIT: Oops: I misread the error message, and recommended the wrong solution.
    Last edited by DrByte; 11 Jan 2008 at 09:18 AM. Reason: correction
    .

    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
    Mar 2004
    Location
    Calgary, Alberta
    Posts
    290
    Plugin Contributions
    1

    Default Re: Upgrade error 1.3.7->1.3.8a

    Thanks! That should I hope help a lot.

  8. #8
    Join Date
    Mar 2004
    Location
    Calgary, Alberta
    Posts
    290
    Plugin Contributions
    1

    Default Re: Upgrade error 1.3.7->1.3.8a

    Okay it didn't help, which I think is due to the database being PHP5 / MySQL5. Any more thoughts?

    # MySQL Version = 5.0.37
    # PHP Version = 5.2.1

    Actually I don't think the record is there. I know from past experiences with upgrades that if an insert is missing a field in the list then it wants a default value. Now part of the error message mentioned:

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

    So I wonder what the default value should be?

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrade error 1.3.7->1.3.8a

    Try running this to set the query_keys_list field to its correct format:

    Code:
    ALTER TABLE query_builder CHANGE COLUMN query_keys_list query_keys_list TEXT NOT NULL;
    It comes from an upgrade step in the upgrade to 1.3.0.2 and 1.3.5 where that field was changed. Perhaps yours didn't get that step done properly for some reason.
    .

    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.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrade error 1.3.7->1.3.8a

    Quote Originally Posted by quentinjs
    Actually I don't think the record is there. I know from past experiences with upgrades that if an insert is missing a field in the list then it wants a default value. Now part of the error message mentioned:

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

    So I wonder what the default value should be?
    You're correct; however, a field of type "TEXT" never gets a default value. Thus, your table must have the old structure which used varchar ... way back in 1.2.something.




    Quote Originally Posted by From the MySQL documentation
    BLOB and TEXT columns cannot have DEFAULT values.
    .

    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.

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. upgrade error
    By dannyd in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 28 Jan 2008, 07:53 AM
  2. 1.3.7 to 1.3.8a Upgrade error
    By coucho in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 11 Jan 2008, 09:30 AM
  3. Error upgrade 1.3.7 to 1.3.8a
    By williamb in forum Upgrading from 1.3.x to 1.3.9
    Replies: 7
    Last Post: 4 Jan 2008, 01:22 AM
  4. Error on upgrade 1.3.0.2 to 1.3.7
    By bobdog in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 8 Apr 2007, 03:25 AM

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