Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Feb 2006
    Posts
    588
    Plugin Contributions
    0

    Default 1054 Unknown column 'o.orders_id' in 'on clause' -- in admin order search

    I have this error coming up when I search in customer orders by item name or item model

    1054 Unknown column 'o.orders_id' in 'on clause'
    in:
    [select count(distinct o.orders_id) as total from (zen_orders o, zen_orders_status s left join zen_orders_products op on (op.orders_id = o.orders_id) ) left join zen_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 '%098590%' or op.products_name like '098590%')]
    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.

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause' -- in admin order search

    answer to your question can be found at the bottom of this page. .also you can look at this thread

    http://www.zen-cart.com/forum/showth...27on+clause%27

  3. #3
    Join Date
    Feb 2006
    Posts
    588
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause' -- in admin order search

    Thanks tony no more error but search doesnt find anything at all.

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

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause' -- in admin order search

    When did this "start" for you?
    .

    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
    Feb 2006
    Posts
    588
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause' -- in admin order search

    Dr it started when I installed click and ship Im guessing because thats the mod that changes order.php.. But cant find orders by product name if I dont remember the customers name or order number, Drbyte is there a way to fix this search in admin to work?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause' -- in admin order search

    The symptoms you describe are strongly similar to putting an old version of orders.php over a newer version.

    You'll need to put the newer one back up, and then merge just the unique additions/changes for the addon that replaced it.
    .

    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
    Feb 2006
    Posts
    588
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause' -- in admin order search

    Oh my php is not so good....

  8. #8
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause' -- in admin order search

    you don't need much php knowledge for merging files.
    if your OS is window , then download and install free tool called winmerge . this tool allow you to compare files with one anther and merge differences.

    using this tool , compare the fresh copy of order.php with order.php that comes with addon . you can see the differences highlighted by this utility. simply copy the difference from addon to zencart order.php file ( done from winmerge window ) .

  9. #9
    Join Date
    Feb 2006
    Posts
    588
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause' -- in admin order search

    Actually even if I put back the original orders.php file, the search function always comes back as zero result

  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: 1054 Unknown column 'o.orders_id' in 'on clause' -- in admin order search

    Quote Originally Posted by rxalex View Post
    Actually even if I put back the original orders.php file, the search function always comes back as zero result
    The search on a clean install without mods properly locates orders when putting customer names in the Search box, and product names or product models in the products search box, and orders when putting the order number in the Order Number search box.

    Have you tried searching using upper/lower case? Maybe you've got a case-sensitivity problem?
    .

    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 2 12 LastLast

Similar Threads

  1. 1054 Unknown column 'pages_title' in 'order clause'
    By cla74 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 13 Dec 2011, 12:33 PM
  2. 1054 Unknown column 'pages_title' in 'order clause'
    By cla74 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Dec 2011, 11:58 PM
  3. Replies: 4
    Last Post: 15 Nov 2010, 06:33 PM
  4. 1054 Unknown column 'o.orders_id' in 'on clause'
    By dbrewster in forum General Questions
    Replies: 32
    Last Post: 11 Jun 2010, 07:43 AM
  5. 1054 Unknown column 'o.orders_id' in 'on clause'
    By mumzie in forum General Questions
    Replies: 2
    Last Post: 2 Jan 2009, 09:07 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