If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 2.x.x / Testing v2.0.0 Upgrade - Issues / Errors When Loading Order Details

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

Started by waynestephens on 16 Apr 2024, 12:21 PM · Views: 1,120

Results 1 to 9 of 9
16 Apr 2024, 12:21 PM
#1
waynestephens avatar

waynestephens

New Zenner

Join Date:
Aug 2009
Posts:
48
Plugin Contributions:
0

Post #1 by waynestephens

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?

20th Century Glass - Antique & Collectable Glass Store

16 Apr 2024, 12:49 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #2 by swguy

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 Support
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.

16 Apr 2024, 2:02 PM
#3
waynestephens avatar

waynestephens

New Zenner

Join Date:
Aug 2009
Posts:
48
Plugin Contributions:
0

Post #3 by waynestephens

That fixed the first problem, thanks!

Database Engine: MySQL 8.0.32

20th Century Glass - Antique & Collectable Glass Store

16 Apr 2024, 2:08 PM
#4
waynestephens avatar

waynestephens

New Zenner

Join Date:
Aug 2009
Posts:
48
Plugin Contributions:
0

Post #4 by waynestephens

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

16 Apr 2024, 3:04 PM
#5
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #5 by carlwhat

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, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

16 Apr 2024, 4:09 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #6 by swguy

@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 Support
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.

17 Apr 2024, 6:50 AM
#8
waynestephens avatar

waynestephens

New Zenner

Join Date:
Aug 2009
Posts:
48
Plugin Contributions:
0

Post #8 by waynestephens

swguy:

@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

17 Apr 2024, 9:05 AM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #9 by swguy

LOL @lat9 has found a bunch already. Watch the issue I linked earlier for more updates.

That Software Guy. My Store: Zen Cart Support
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.