Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2006
    Posts
    76
    Plugin Contributions
    0

    Default Super Orders 2.0: error 1064 SQL syntax

    I am installing Super Orders 2.0 (rev 45) on Zen Cart 1.3.7. When I run the super_orders_sql.sql file on database, I got this error:

    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 'True', 'False'), ')' at line 1
    in:
    [INSERT INTO configuration VALUES (NULL, 'Enable Purchase Order Module', 'MODULE_PAYMENT_PURCHASE_ORDER_STATUS', 'True', 'Do you want to accept Purchase Order payments?', 6, 1, now(), now(), NULL, 'zen_cfg_select_option(array('True', 'False'), ');]
    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.
    I reinstalled the original database and tried this script both ways, from admin>tools>Install SQL Patches, and from phpMyAdmin, both produced the same error. Can somebody tell me what to do? Thanks.

  2. #2
    Join Date
    Aug 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Super Orders 2.0: error 1064 SQL syntax

    I'm not very good at SQL syntax, but it looks like this command is missing a closing parenthesis at the end isn't it?

  3. #3
    Join Date
    Aug 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Super Orders 2.0: error 1064 SQL syntax

    Please advise.

  4. #4
    Join Date
    Aug 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Super Orders 2.0: error 1064 SQL syntax

    I found the solution. Instead of running the whole sql script, I broke it down and run one part at a time, but I must first restored my original database, otherwise I would get duplicate command error.

  5. #5
    Join Date
    Aug 2005
    Posts
    3
    Plugin Contributions
    0

    Default Re: Super Orders 2.0: error 1064 SQL syntax

    Just wanted to say 'thanks' for figuring out and posting your workaround to this. I ran into this exact thing today and you saved me a lot of work!

  6. #6
    Join Date
    Mar 2007
    Posts
    112
    Plugin Contributions
    0

    help question Re: Super Orders 2.0: error 1064 SQL syntax

    Seems the sql file loaded OK (I used cut-n-paste method), but now get this error:

    Warning: reset() [function.reset]: Passed variable is not an array or object in C:\Apache2\htdocs\ZenStart\admin\includes\functions\database.php on line 26
    Warning: Variable passed to each() is not an array or object in C:\Apache2\htdocs\ZenStart\admin\includes\functions\database.php on line 50
    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 'where payment_type_id = '5'' at line 1
    in:
    [update so_payment_types se where payment_type_id = '5']
    I'm using on localhost:
    Apache/2.0.58 (Win32)
    PHP/5.1.4
    MySQL/5.0.22
    Zen Cart 1.3.7

    Is this a PHP or MySQL version problem, or something else? All help would be most appreciated. Thanks,

    Rainer

  7. #7

    Default Re: Super Orders 2.0: error 1064 SQL syntax

    To fix the 1064 error above:

    Just remove all the entries under "Purchase Order payment module configs" heading in the SQL file. These are not required.

    These are the lines from the SQL file you want to remove.

    -- Purchase Order payment module configs
    INSERT INTO configuration VALUES (NULL, 'Enable Purchase Order Module', ...
    INSERT INTO configuration VALUES (NULL, 'Make payable to:', ...
    INSERT INTO configuration VALUES (NULL, 'Sort order of display.', ...
    INSERT INTO configuration VALUES (NULL, 'Payment Zone', ...
    INSERT INTO configuration VALUES (NULL, 'Set Order Status', ...

    I dropped all the tables in phpMyAdmin and then imported my backup SQL file, then re-ran the upload of this SQL file with Zen Cart.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  2. 1064 SQL syntax error
    By perkiekat in forum General Questions
    Replies: 4
    Last Post: 12 Dec 2009, 09:13 PM
  3. 1064 error sql syntax
    By pjgscrap in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2009, 05:04 PM
  4. SQL syntax error 1064
    By jackzc in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 27 Sep 2007, 02:29 AM
  5. 1064 SQL syntax error
    By swmart77 in forum General Questions
    Replies: 3
    Last Post: 16 Jul 2006, 08:58 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR