Page 52 of 102 FirstFirst ... 242505152535462 ... LastLast
Results 511 to 520 of 1019
  1. #511
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Super Orders v3.0 Support Thread

    Quote Originally Posted by Treece View Post
    I searched for over an hour and read every post in this topic! I saw the thing about Paypal but not the authorize.net part. Doesn't mean I understand it all, though. I appreciate those that take the time to respond.
    You shouldn't have to manually enter Super Orders payments for orders paid via Authorize.net..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #512
    Join Date
    Aug 2010
    Posts
    52
    Plugin Contributions
    0

    Default Getting SQL Syntax Error - How to Fix?

    Hi - I have Zencart 1.3.9h, plus Purchase Orders 6 and Ty Package tracker as well as several other mods.

    This is the error I'm getting after trying to put a comment in that has a ' in it.

    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 'test hi there blah blah blah')' at line 7
    in:
    [INSERT INTO zen_orders_status_history (orders_id, orders_status_id, date_added, customer_notified, comments) VALUES ('76', '2', now(), '-1', 'test ' test hi there blah blah blah')]
    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.
    This started occurring after SuperOrders 3.0 was installed...anyone know how to fix it or where to find the file that's causing the trouble. I tried to find it through the developer's toolkit but no luck. I also get a similar error when trying to run scripts through the "Install SQL Patch" tool
    Last edited by ikernbecauseicare; 1 Jun 2011 at 09:30 PM.

  3. #513
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Getting SQL Syntax Error - How to Fix?

    Quote Originally Posted by ikernbecauseicare View Post
    Hi - I have Zencart 1.3.9h, plus Purchase Orders 6 and Ty Package tracker as well as several other mods.

    This is the error I'm getting after trying to put a comment in that has a ' in it.



    This started occurring after SuperOrders 3.0 was installed...anyone know how to fix it or where to find the file that's causing the trouble. I tried to find it through the developer's toolkit but no luck. I also get a similar error when trying to run scripts through the "Install SQL Patch" tool
    A search in this thread for a match on your error message would have turned up these threads:
    http://www.zen-cart.com/forum/showpo...&postcount=481
    http://www.zen-cart.com/forum/showpo...9&postcount=26
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #514
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Getting SQL Syntax Error - How to Fix?

    Quote Originally Posted by DivaVocals View Post
    A search in this thread for a match on your error message would have turned up these threads:
    http://www.zen-cart.com/forum/showpo...&postcount=481
    http://www.zen-cart.com/forum/showpo...9&postcount=26

    Well, it seems that in Admin/includes/functions/extra_functions/common_orders_functions.php, starting at around line 101, I found this:

    Code:
    function update_status($oID, $new_status, $customer_notified, $comments = '') {
      global $db;
    
      $db->Execute("INSERT INTO " . TABLE_ORDERS_STATUS_HISTORY . "
                    (orders_id, orders_status_id, date_added, customer_notified, comments)
                    VALUES ('" . (int)$oID . "',
                    '" . $new_status . "',
                    now(),
                    '" . $customer_notified . "',
                    '" . $comments . "')");
    
      $db->Execute("UPDATE " . TABLE_ORDERS . " SET
                    orders_status = '" . $new_status . "'
                    WHERE orders_id = '" . (int)$oID . "'");
    }
    and changed the comments from:
    '" . $comments . "')");
    To:
    '" . $comments . "");
    making that look like:

    Code:
    function update_status($oID, $new_status, $customer_notified, $comments = '') {
      global $db;
    
      $db->Execute("INSERT INTO " . TABLE_ORDERS_STATUS_HISTORY . "
                    (orders_id, orders_status_id, date_added, customer_notified, comments)
                    VALUES ('" . (int)$oID . "',
                    '" . $new_status . "',
                    now(),
                    '" . $customer_notified . "',
                    '" . $comments . "");
    
      $db->Execute("UPDATE " . TABLE_ORDERS . " SET
                    orders_status = '" . $new_status . "'
                    WHERE orders_id = '" . (int)$oID . "'");
    }
    That took out the: ') but it's still showing the error with the ] as being the culprit.

    I know that's got to be close, as it's taking out the other unwanted characters.................I just can't find where that stupid little bracket is coming from.

    Anybody else have more any ideas?
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  5. #515
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Getting SQL Syntax Error - How to Fix?

    In case anyone is wondering why I don't simply post the "fix", the answer is simple.. I made a BOATLOAD of changes to fix this and a few other things with regards to comments in Super Orders.. (key among these changes is the elimination of the common_orders_functions.php file) So the answer is that the changes I made are too numerous to post here.. (Which is why I suggested the easy workaround of not using single or double quotes in comments)

    Trying to free some time to finish this and submit it, but well heck you know.. Life obligations come before free modules..

    Quote Originally Posted by Get Em Fast View Post
    Well, it seems that in Admin/includes/functions/extra_functions/common_orders_functions.php, starting at around line 101, I found this:

    Code:
    function update_status($oID, $new_status, $customer_notified, $comments = '') {
      global $db;
    
      $db->Execute("INSERT INTO " . TABLE_ORDERS_STATUS_HISTORY . "
                    (orders_id, orders_status_id, date_added, customer_notified, comments)
                    VALUES ('" . (int)$oID . "',
                    '" . $new_status . "',
                    now(),
                    '" . $customer_notified . "',
                    '" . $comments . "')");
    
      $db->Execute("UPDATE " . TABLE_ORDERS . " SET
                    orders_status = '" . $new_status . "'
                    WHERE orders_id = '" . (int)$oID . "'");
    }
    and changed the comments from:
    '" . $comments . "')");
    To:
    '" . $comments . "");
    making that look like:

    Code:
    function update_status($oID, $new_status, $customer_notified, $comments = '') {
      global $db;
    
      $db->Execute("INSERT INTO " . TABLE_ORDERS_STATUS_HISTORY . "
                    (orders_id, orders_status_id, date_added, customer_notified, comments)
                    VALUES ('" . (int)$oID . "',
                    '" . $new_status . "',
                    now(),
                    '" . $customer_notified . "',
                    '" . $comments . "");
    
      $db->Execute("UPDATE " . TABLE_ORDERS . " SET
                    orders_status = '" . $new_status . "'
                    WHERE orders_id = '" . (int)$oID . "'");
    }
    That took out the: ') but it's still showing the error with the ] as being the culprit.

    I know that's got to be close, as it's taking out the other unwanted characters.................I just can't find where that stupid little bracket is coming from.

    Anybody else have more any ideas?
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #516
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Getting SQL Syntax Error - How to Fix?

    Quote Originally Posted by DivaVocals View Post
    In case anyone is wondering why I don't simply post the "fix", the answer is simple.. I made a BOATLOAD of changes to fix this and a few other things with regards to comments in Super Orders.. (key among these changes is the elimination of the common_orders_functions.php file) So the answer is that the changes I made are too numerous to post here.. (Which is why I suggested the easy workaround of not using single or double quotes in comments)

    Trying to free some time to finish this and submit it, but well heck you know.. Life obligations come before free modules..
    Oh, I know what you mean, Diva.......sometimes life gets in the way of life.......
    It's good to know that you've on top of it, as I've got a customer who needs this on like 9 different sites.
    I've been working my fanny off trying to either find or help find the 'bug', but so far, the above is all I've found...................which after further investigation...............I'm not even sure is going to end up being relevant.
    Anyway Diva, If there's anything I can do to help, you know where the pm buttons' at, and you've got my email addy......................

    ..............looking forward to seeing your........uh-hmm......OUR......headache(s) go away...........


    P.S. You never know just how hard it is to write a whole paragraph in the comments section without using even one single quote, until you HAVE to do it. It can be more challenging that one might think.............
    Last edited by Get Em Fast; 7 Jun 2011 at 07:48 PM.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  7. #517
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Getting SQL Syntax Error - How to Fix?

    Okay now that you've offered don't ignore my messages when I take you up on your offer..

    To quote Glenn Close in Fatal Attraction, "I will not be ignored Dan"

    Quote Originally Posted by Get Em Fast View Post
    Oh, I know what you mean, Diva.......sometimes life gets in the way of life.......
    It's good to know that you've on top of it, as I've got a customer who needs this on like 9 different sites.
    I've been working my fanny off trying to either find or help find the 'bug', but so far, the above is all I've found...................which after further investigation...............I'm not even sure is going to end up being relevant.
    Anyway Diva, If there's anything I can do to help, you know where the pm buttons' at, and you've got my email addy......................

    ..............looking forward to seeing your........uh-hmm......OUR......headache(s) go away...........


    P.S. You never know just how hard it is to write a whole paragraph in the comments section without using even one single quote, until you HAVE to do it. It can be more challenging that one might think.............
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #518
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Getting SQL Syntax Error - How to Fix?

    Quote Originally Posted by DivaVocals View Post
    Okay now that you've offered don't ignore my messages when I take you up on your offer..

    To quote Glenn Close in Fatal Attraction, "I will not be ignored Dan"
    Uh-oh! Did I ignore you at some time or another? If I did, I sure didn't mean to.

    Anyway..............I'll be here.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  9. #519
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Super Orders v3.0 Support Thread

    Hmm..........too slow to edit last post, so here's a couple of additional thoughts I had............



    Uh-oh! Did I ignore you at some time or another? If I did, I sure didn't mean to. Also, if I did, I bet it was last month, huh?

    May was a VERY hectic month for me with a hack, sick for almost a week, and of course..................the mean old Joplin tornado was 3 blocks from our home, leaving us without utilities, forcing us to go out of town with a $700 price tag that wasn't in the plans. So all-in-all............16 days downtime in May!

    I'm sure proud it's over. So far, this month is been pretty good...............other than this little 'bug' that's driving us all crazy.

    Anyway..............I'll be here.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  10. #520
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Super Orders v3.0 Support Thread

    Nah.. you didn't ignore me.. Just preparing you for ME taking you up on your offer.. My nephew and I like that line from Fatal Attraction.. He's never seen the movie (he's 11.. it'll be a while before he gets to see it..) but he's seen the clip with the line I quoted.. He was amused.. I was amused by his amusement.. So we use it on each other when we think one of us isn't paying attention to the other one..

    Didn't realize you were in tornado alley.. Sounds like you fared better than others in the region.. Thank goodness for that!!!

    Quote Originally Posted by Get Em Fast View Post
    Hmm..........too slow to edit last post, so here's a couple of additional thoughts I had............



    Uh-oh! Did I ignore you at some time or another? If I did, I sure didn't mean to. Also, if I did, I bet it was last month, huh?

    May was a VERY hectic month for me with a hack, sick for almost a week, and of course..................the mean old Joplin tornado was 3 blocks from our home, leaving us without utilities, forcing us to go out of town with a $700 price tag that wasn't in the plans. So all-in-all............16 days downtime in May!

    I'm sure proud it's over. So far, this month is been pretty good...............other than this little 'bug' that's driving us all crazy.

    Anyway..............I'll be here.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 52 of 102 FirstFirst ... 242505152535462 ... LastLast

Similar Threads

  1. v150 Edit Orders v4.0 Support Thread
    By DivaVocals in forum Addon Admin Tools
    Replies: 1877
    Last Post: 6 May 2025, 05:10 PM
  2. v150 Super Orders v4.0 Support Thread for ZC v1.5.x
    By DivaVocals in forum Addon Admin Tools
    Replies: 804
    Last Post: 18 Apr 2025, 12:04 AM
  3. Edit Orders v3.0 for ZC 1.3.9 [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 656
    Last Post: 18 Apr 2016, 06:28 PM
  4. OLD Super Orders 2.0 (See v3.0 thread instead)
    By BlindSide in forum All Other Contributions/Addons
    Replies: 2019
    Last Post: 17 Jan 2012, 05:43 AM
  5. RE: Super Orders v3.0 Support Thread
    By Johnnyd in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Jun 2011, 09:28 AM

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