I have caught a couple of errors in the checkout process and wondered if anyone else has seen this.
I have set Modules>Customer Data>Country to false as I only ship within the UK and this error is thrown going through the checkout_shipping
PHP Notice: Undefined index: country_id in /home/nuvitamins/public_html/checkout_shipping.php on line 23
Also on checkout_payment_address.php this error occurs when you click on the 'Use this address' button and the page does not return to checkout_payment.php but a blank screen.
[13-Mar-2022 11:31:38 Europe/London] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Text::input() must be of the type string, null given, called in /home/nuvitamins/public_html/includes/modules/customer_data/cd_firstname.php on line 102 and defined in /home/nuvitamins/public_html/includes/system/versioned/1.0.8.2/text.php:34
Stack trace:
#0 /home/nuvitamins/public_html/includes/modules/customer_data/cd_firstname.php(102): Text::input(NULL)
#1 /home/nuvitamins/public_html/includes/system/versioned/1.0.5.6/requirements_manager.php(37): cd_firstname->process(Array)
#2 /home/nuvitamins/public_html/includes/system/versioned/1.0.5.6/requirements_manager.php(65): requirements_manager->act_on(Object(cd_firstname), 'process', Array)
#3 /home/nuvitamins/public_html/checkout_payment_address.php(29): requirements_manager->process(Array)
#4 {main}
thrown in /home/nuvitamins/public_html/includes/system/versioned/1.0.8.2/text.php on line 34
tessthepup wrote: ↑Sun Mar 13, 2022 11:42 am
I have set Modules>Customer Data>Country to false as I only ship within the UK and this error is thrown going through the checkout_shipping
If you set Country to false, you have to replace it, as country is required. You could replace it with something that hard codes the country as 222. But you can't leave it blank.
tessthepup wrote: ↑Sun Mar 13, 2022 11:42 am
I have set Modules>Customer Data>Country to false as I only ship within the UK and this error is thrown going through the checkout_shipping
If you set Country to false, you have to replace it, as country is required. You could replace it with something that hard codes the country as 222. But you can't leave it blank.
Thank you both.
I have enabled the module but removed the ticks from the 'pages' selection so now no errors and no field shows.
Just this error now
[13-Mar-2022 12:53:27 Europe/London] PHP Notice: Undefined index: firstname in /home/nuvitamins/public_html/includes/modules/customer_data/cd_firstname.php on line 102
[13-Mar-2022 12:53:27 Europe/London] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Text::input() must be of the type string, null given, called in /home/nuvitamins/public_html/includes/modules/customer_data/cd_firstname.php on line 102 and defined in /home/nuvitamins/public_html/includes/system/versioned/1.0.8.2/text.php:34
Stack trace:
#0 /home/nuvitamins/public_html/includes/modules/customer_data/cd_firstname.php(102): Text::input(NULL)
#1 /home/nuvitamins/public_html/includes/system/versioned/1.0.5.6/requirements_manager.php(37): cd_firstname->process(Array)
#2 /home/nuvitamins/public_html/includes/system/versioned/1.0.5.6/requirements_manager.php(65): requirements_manager->act_on(Object(cd_firstname), 'process', Array)
#3 /home/nuvitamins/public_html/checkout_payment_address.php(29): requirements_manager->process(Array)
#4 {main}
thrown in /home/nuvitamins/public_html/includes/system/versioned/1.0.8.2/text.php on line 34