Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    help question error line 1054 after upgrading database, why??

    I have tried to find what causes this error 1054, which seems pretty common.

    My error code is this:

    Code:
    1054 Unknown column 'o.orders_status' in 'where clause'
    in:
    [select count(*) as total from (orders s, orders_status o ) 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') ]
    This is different than all the other forum posts I found on this topic.

    This was a 1.2.x database upgraded to 1.3.8, using 1.3.8a code with all security patches plus additional bug patches as explained in the forums.

    It occurs in admin when I click 'Orders' on the 'Customers' menu.

    All the data upgraded/transferred properly, and a files search within the admin folder produced no results.

    How can I fix this??

    Thank you, Tom

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: error line 1054 after upgrading database, why??

    .

    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
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    help question Re: error line 1054 after upgrading database, why??

    I had already applied this bugfix before importing and upgrading the database.

    The above-mentioned bugfixes that I applied are the ones listed in the forum thread provided.

    This error is related to orders_status somehow.

    My bug is not the exact same as described in that forum thread.

    Specific step to reproduce is click the 'Orders' menu item under the word 'Customers,' the error message instantly appears.

    Thank you, Tom

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

    Default Re: error line 1054 after upgrading database, why??

    Then that indicates that your "orders_status" table structure has been damaged.
    Or, you or someone has altered the code which draws the admin orders page, perhaps orders.php or one of its dependencies.
    .

    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
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    help question Re: error line 1054 after upgrading database, why??

    I can try:

    1) double-checking that I did the "s and o" bugfix correctly within orders.php
    2) re-importing the orders_status table
    3) trying out a new unpatched orders.php, then applying the patches etc.

    However, I would really like to know where within the ZC code this select statement is created!! :)

    Thank you, Tom

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

    Default Re: error line 1054 after upgrading database, why??

    Quote Originally Posted by tlyczko View Post
    However, I would really like to know where within the ZC code this select statement is created!! :)
    It's built from those exact same lines as indicated in the bugfix I pointed you to: from 715-750 of /admin/orders.php.

    You're probably confused by the "select count ..." difference in the beginning of the query -- that's done by the split-page class which hacks off the front list of field names from the query in order to get a count of applicable records so it can give you pagination links. There's nothing wrong with the way it's doing that. Your problem is with whatever's after the word "from" in whatever alterations you've done to it.

    Or, you've got bad database content. If that's the case, you'll have a number of odd problems even on the storefront, too.


    I hope you did this on a *test* area, and not directly on your live site ... right?
    .

    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.

 

 

Similar Threads

  1. After upgrading database site not displaying correctly
    By spawnie69 in forum Upgrading to 1.5.x
    Replies: 19
    Last Post: 12 Feb 2016, 02:41 AM
  2. Customer gets HTTP 500 error after order is placed -- after upgrading
    By Arunachala in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 21 Jun 2011, 08:28 PM
  3. Major issue with 1054 error on v1.2.7 site after upgrading to MySQL 5
    By godt in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 21 Jan 2008, 01:04 AM
  4. 1054 Error after clicking on 'Review Payment' in paypal
    By mike1969 in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 19 Feb 2007, 08:31 PM

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