Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 33
  1. #21
    Join Date
    Oct 2007
    Location
    Edinburgh, Scotland
    Posts
    243
    Plugin Contributions
    1

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause'

    Has anyone found a solution to this problem yet? I've tried the code changes outlined and it still doesn't work.

    Thanks,
    Fergus

  2. #22
    Join Date
    Oct 2005
    Location
    Germany
    Posts
    60
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause'

    Hi,
    There is no solution until now. It seems that not everybody has this problem and so it is hard for the developers to solve this mistake.
    I can live without using this feature.

  3. #23
    Join Date
    Jan 2004
    Posts
    58,264
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause'

    If you're having this problem, please post the following information:

    - version of Zen Cart
    - list of addons/contributions installed
    - version of PHP
    - version of MySQL
    - whether hosted on linux vs windows
    - example search-term which triggers the error
    - and please confirm that you're *only* getting this error when doing a search using the "Search by Product Name or ID:XX or Model" field. If there are other places, that information is important as well.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  4. #24
    Join Date
    Oct 2007
    Location
    Edinburgh, Scotland
    Posts
    243
    Plugin Contributions
    1

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause'

    Details:

    Zen Cart Version: 1.3.8a
    Add-ons installed: Super Orders 2.0, Admin Notes file, Big Royal Mail 2.2.1a1, Capitalize Signup Fields 1.0b, Categories Menu Yahoo Tree Menu with Ajax, Fual Slimbox v0.1.5, Ultimate SEO URL's 2.106.
    PHP Version: 5.1.6 (Zend: 2.1.0)
    MySQL Version: 5.0.54
    Hosted On: Linux
    Example: Royal

    Error: 1054 Unknown column 'o.orders_id' in 'on clause'
    in:
    [select count(distinct o.orders_id) as total from (orders o, orders_status s left join orders_products op on (op.orders_id = o.orders_id) ) left join orders_total ot on (o.orders_id = ot.orders_id) where (o.orders_status = s.orders_status_id and s.language_id = '1' and ot.class = 'ot_total') and (op.products_model like '%Royal%' or op.products_name like 'Royal%')]

    I've tried a number of searches and get this error every time, only from the "Search by Product Name or ID:XX or Model" box, the standard "Search" box and Order ID searches work fine.

  5. #25
    Join Date
    Jan 2004
    Posts
    58,264
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause'

    Quote Originally Posted by fergusmacdonald View Post
    Add-ons installed: Super Orders 2.0
    And is this happening when using the Super Orders interface?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  6. #26
    Join Date
    Oct 2007
    Location
    Edinburgh, Scotland
    Posts
    243
    Plugin Contributions
    1

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause'

    Quote Originally Posted by DrByte View Post
    And is this happening when using the Super Orders interface?
    No, the Super Orders interface does not have a "Search by Product Name or ID:XX or Model" field.

    On the regular Customers>Orders page.

  7. #27
    Join Date
    Jan 2004
    Posts
    58,264
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause'

    In the /admin/orders.php, from lines 715 thru 750 there are three places where the following is found:
    Code:
                              from (" . TABLE_ORDERS . " o, " .
                              TABLE_ORDERS_STATUS . " s " .
    change each of those to this instead:
    Code:
                                from (" . TABLE_ORDERS_STATUS . " s, " .
                                TABLE_ORDERS . " o " .
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  8. #28
    Join Date
    Oct 2007
    Location
    Edinburgh, Scotland
    Posts
    243
    Plugin Contributions
    1

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause'

    Fantastic, thank you very much - the problem is solved. Search box working properly.

  9. #29
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    439
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause'

    Rock on, Dr. Byte!

    Works like a charm, thank you!!

  10. #30
    Join Date
    Apr 2007
    Posts
    650
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause'

    That works great, but as soon as I did that now I can not view an order from customers>customers>orders I get 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 'select o.orders_id, o.customers_id, o.customers_name, o.payment_method, o.shippi' at line 1
    in:
    [select count(*) as total select o.orders_id, o.customers_id, o.customers_name, o.payment_method, o.shipping_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, o.fedex_tracking, ot.text as order_total, o.customers_company, o.customers_email_address, o.customers_street_address, o.delivery_company, o.delivery_name, o.delivery_street_address, o.billing_company, o.billing_name, o.billing_street_address, o.payment_module_code, o.shipping_module_code, o.ip_address from (orders_status s, orders o ) left join orders_total ot on (o.orders_id = ot.orders_id) where o.customers_id = '1310' and o.orders_status = s.orders_status_id and s.language_id = '1' and ot.class = 'ot_total']
    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.
    any ideas?? thanks!

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Ceon Protx module vs 1054 Unknown column 'U' in 'where clause'
    By jameswilson in forum Addon Payment Modules
    Replies: 7
    Last Post: 18 Jan 2008, 03:20 PM
  2. 1054 Unknown column 'p.products_id' in 'on clause' ???
    By cmb1998 in forum General Questions
    Replies: 1
    Last Post: 27 Aug 2007, 11:48 PM
  3. 1054 Unknown column 'p.products_id' in 'on clause'
    By pepsishot in forum General Questions
    Replies: 14
    Last Post: 27 Aug 2007, 03:52 PM
  4. 1054 Unknown column 'p.products_id' in 'on clause'
    By tharrison in forum General Questions
    Replies: 9
    Last Post: 19 Jun 2007, 11:33 PM
  5. 1054 Unknown column 'ci.customers_info_id' in 'on clause'
    By alyxsmom in forum Managing Customers and Orders
    Replies: 1
    Last Post: 27 Jun 2006, 04:51 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
  •