Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2009
    Posts
    45
    Plugin Contributions
    0

    Default Testing v2.0.0 Upgrade - Issues / Errors When Loading Order Details

    Versions: Zen Cart 2.0.0, PHP 8.0, MySQL 8.0
    Upgrading from 1.5.7d to 2.0.0
    Mods: Keep Cart, Google reCaptcha, Google Merchant Feeder

    I'm testing an upgrade to v2.0.0, and I have things more or less working as intended, just a couple of issues, which both may be related.

    Firstly, when logging into the admin area, the home page with the widgets is blank after the "Orders" header (screenshot attached).

    Error report:

    PHP Fatal error: MySQL error 1054: Unknown column '1' in 'where clause' :: SELECT orders_status_id, orders_status_name FROM orders_status
    WHERE language_id = "1" ORDER BY sort_order, orders_status_id ==> (as called by) ****/includes/functions/general.php on line 720 <== in ****/includes/classes/db/mysql/query_factory.php on line 714.



    Also, when logging in as a customer, I get a blank page with the message "WARNING: An Error occurred, please let us know!".

    Error report:

    PHP Fatal error: MySQL error 1054: Unknown column '0' in 'order clause' :: SELECT products_options_id, products_options_value_id, products_options_value_text
    FROM customers_basket_attributes
    WHERE customers_id = 12
    AND products_id = '11681' ORDER BY LPAD(products_options_sort_order,11,"0") ==> (as called by) ****/includes/classes/shopping_cart.php on line 180 <== in ****/includes/classes/db/mysql/query_factory.php on line 714.


    Any ideas what could be causing this?
    Attached Images Attached Images  
    20th Century Glass - Antique & Collectable Glass Store

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: Testing v2.0.0 Upgrade - Issues / Errors When Loading Order Details

    for the first one, would you please edit admin/includes/functions/general.php line 720 and remove the double quotes - change

    language_id = "'
    to
    language_id = '

    and change

    '" ORDER BY
    to
    ' ORDER BY

    and see if that fixes it? Then go to Admin > Tools > Version and post the Database Engine value?
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Aug 2009
    Posts
    45
    Plugin Contributions
    0

    Default Re: Testing v2.0.0 Upgrade - Issues / Errors When Loading Order Details

    That fixed the first problem, thanks!

    Database Engine: MySQL 8.0.32
    20th Century Glass - Antique & Collectable Glass Store

  4. #4
    Join Date
    Aug 2009
    Posts
    45
    Plugin Contributions
    0

    Default Re: Testing v2.0.0 Upgrade - Issues / Errors When Loading Order Details

    I took your advice and applied it to the other problem, and changed line 173 in /includes/classes/shopping_cart.php

    from:

    ORDER BY LPAD(products_options_sort_order,11,"0")

    to:

    ORDER BY LPAD(products_options_sort_order,11,0)

    and the second problem seems to be fixed also! So thanks again!
    20th Century Glass - Antique & Collectable Glass Store

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,694
    Plugin Contributions
    9

    Default Re: Testing v2.0.0 Upgrade - Issues / Errors When Loading Order Details

    interesting issue.

    apparently your host has ANSI mode enabled in your mysql configuration.

    good job by @swguy figuring that one out!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: Testing v2.0.0 Upgrade - Issues / Errors When Loading Order Details

    @WayneStephens you will likely run into others, but now you know the drill for fixing them. Would you please do a quick report when you encounter these issues on this thread so we can be sure to get them all fixed? Thanks.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: Testing v2.0.0 Upgrade - Issues / Errors When Loading Order Details

    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Aug 2009
    Posts
    45
    Plugin Contributions
    0

    Default Re: Testing v2.0.0 Upgrade - Issues / Errors When Loading Order Details

    Quote Originally Posted by swguy View Post
    @WayneStephens you will likely run into others, but now you know the drill for fixing them. Would you please do a quick report when you encounter these issues on this thread so we can be sure to get them all fixed? Thanks.
    Sure thing, will do.
    20th Century Glass - Antique & Collectable Glass Store

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: Testing v2.0.0 Upgrade - Issues / Errors When Loading Order Details

    LOL @lat9 has found a bunch already. Watch the issue I linked earlier for more updates.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. SQL Errors Post Checkout and Order Details
    By rkhan3366 in forum Upgrading to 1.5.x
    Replies: 6
    Last Post: 29 Mar 2021, 01:56 AM
  2. v151 query_factory.php on line 46 errors when upgrade from 150 to 151
    By nuganics in forum Upgrading to 1.5.x
    Replies: 29
    Last Post: 17 Jul 2014, 02:13 AM
  3. Replies: 1
    Last Post: 5 Jan 2011, 07:34 PM
  4. Replies: 1
    Last Post: 3 Oct 2009, 03:38 PM
  5. Some info missing in order details when shipping page skipped
    By FrenchFrog in forum Managing Customers and Orders
    Replies: 12
    Last Post: 8 Nov 2007, 06:25 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