Quote Originally Posted by carlwhat View Post
m,
we have an order, 10030690, and we are trying to get the details of that order.
Yes, like
index.php?cmd=orders&page=1&oID=10030686&action=edit

for example.
Quote Originally Posted by carlwhat View Post
was that order processed using square_webPay or the old square version? do you know?
Same version, same files, same store etc.... Only difference is different merchant.
Quote Originally Posted by carlwhat View Post
what is the date of the order?
All Square orders prior to switching the merchant information for Square.

Quote Originally Posted by carlwhat View Post
when you say, reinstalled and configured, is the configuration new from the time the order was originally placed?
Yes

Quote Originally Posted by carlwhat View Post
is this problem just occurring for this order or for all orders?
All Square orders prior to switching the merchant information for Square.

Quote Originally Posted by carlwhat View Post
just before line 113 which has the getOrders call you can add:

PHP Code:
if (is_array($response['results'])) {
                    
trigger_error(json_encode($response['results']));
                    return new 
Models\Order;
                } 
and then post the results of the corresponding log file. and we can take a look at what is happening.

best.
913

[05-Oct-2023 21:34:50 America/New_York] Request URI: /admin/index.php?cmd=orders&page=1&oID=10030690&action=edit, IP address: 000.000.000.000
--> PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Square\Models\Order::__construct(), 0 passed in /home/xxx/public_html/includes/modules/payment/square_webPay.php on line 915 and exactly 1 expected in /home/xxx/public_html/includes/modules/payment/square_webPay/square/square/src/Models/Order.php:172
Stack trace:
#0 /home/xxx/public_html/includes/modules/payment/square_webPay.php(915): Square\Models\Order->__construct()
#1 /home/xxx/public_html/includes/modules/payment/square_webPay.php(526): square_webPay->lookupOrderDetails(10030690)
#2 /home/xxx/public_html/admin/orders.php(741): square_webPay->admin_notification(10030690)
#3 /home/xxx/public_html/admin/index.php(11): require('/home/xxx/...')
#4 {main}
thrown in /home/xxx/public_html/includes/modules/payment/square_webPay/square/square/src/Models/Order.php on line 172.

Thanks =)