Issue with new orders
Posted: Thu Sep 07, 2023 7:14 pm
Hello, am running phoenixcart 1.0.8.20, PHP 7.4, upgraded from an older phoenixcart version installed about a year ago.
I migrated an old oscommerce 2.3.4 store, by importing separate tables from the old database of products/customers/orders/addresses, etc.
Everything seemed to work fine, all old orders and customers show up in the admin panel, products, categories all look great.
The issue I am having is with some new orders.. Some orders appear in the admin panel with an empty customer name (but invoice/packing slip has the Shipping/Billing address populated). Seems that the software somehow allows checkout, but it has trouble associating the order with a customer's default name/address? Maybe newly created customers?
Seems the "orders" table does not populate some of the columns: customers_name, customers_street_address, customers_city, customers_postcode, customers_state, customers_country, phone, email, customers_address_format_id...
Still, other columns like the "delivery_name"... and "billing_name"... get populated ok. The "customers_id" column is correct as well.
If I try to register a new customer and order all seems well, my customer name shows in the "Customer" column in the admin panel just fine, so I can't reproduce the issue on my end. Still, there are multiple orders from different customers with the same blank customer column issue.
Here are the php warnings that I get around the time of those orders with an empty customer column in the admin panel:
The most common/obvious being warning about an empty array passed to array_filter() in customer.php on line 52.
Can someone point me in the right direction how to troubleshoot this issue? Any other info I can provide?
Thanks in advance.
I migrated an old oscommerce 2.3.4 store, by importing separate tables from the old database of products/customers/orders/addresses, etc.
Everything seemed to work fine, all old orders and customers show up in the admin panel, products, categories all look great.
The issue I am having is with some new orders.. Some orders appear in the admin panel with an empty customer name (but invoice/packing slip has the Shipping/Billing address populated). Seems that the software somehow allows checkout, but it has trouble associating the order with a customer's default name/address? Maybe newly created customers?
Seems the "orders" table does not populate some of the columns: customers_name, customers_street_address, customers_city, customers_postcode, customers_state, customers_country, phone, email, customers_address_format_id...
Still, other columns like the "delivery_name"... and "billing_name"... get populated ok. The "customers_id" column is correct as well.
If I try to register a new customer and order all seems well, my customer name shows in the "Customer" column in the admin panel just fine, so I can't reproduce the issue on my end. Still, there are multiple orders from different customers with the same blank customer column issue.
Here are the php warnings that I get around the time of those orders with an empty customer column in the admin panel:
Code: Select all
[07-Sep-2023 08:06:53 America/New_York] PHP Warning: array_filter() expects parameter 1 to be array, null given in /store/includes/system/versioned/1.0.5.1/customer.php on line 52
[07-Sep-2023 08:07:01 America/New_York] PHP Warning: array_filter() expects parameter 1 to be array, null given in /store/includes/system/versioned/1.0.5.1/customer.php on line 52
[07-Sep-2023 08:07:02 America/New_York] PHP Warning: array_filter() expects parameter 1 to be array, null given in /store/includes/system/versioned/1.0.5.1/customer.php on line 52
[07-Sep-2023 08:08:06 America/New_York] PHP Warning: array_filter() expects parameter 1 to be array, null given in /store/includes/system/versioned/1.0.5.1/customer.php on line 52
[07-Sep-2023 08:08:07 America/New_York] PHP Notice: Undefined index: street_address in /store/includes/modules/customer_data/cd_traditional_address.php on line 94
[07-Sep-2023 08:08:07 America/New_York] PHP Notice: Undefined index: city in /store/includes/modules/customer_data/cd_traditional_address.php on line 96
[07-Sep-2023 08:08:07 America/New_York] PHP Notice: Undefined index: postcode in /store/includes/modules/customer_data/cd_traditional_address.php on line 109
[07-Sep-2023 08:08:07 America/New_York] PHP Warning: array_filter() expects parameter 1 to be array, null given in /store/includes/system/versioned/1.0.5.1/customer.php on line 52
[07-Sep-2023 08:08:21 America/New_York] PHP Warning: array_filter() expects parameter 1 to be array, null given in /store/includes/system/versioned/1.0.5.1/customer.php on line 52
Can someone point me in the right direction how to troubleshoot this issue? Any other info I can provide?
Thanks in advance.