Page 1 of 1
First name and last name error
Posted: Sun Mar 03, 2024 1:55 pm
by zpupster
Hello,
PHP 7.3
I am getting errors on checkout_shipping page.
I went into customer data module and fname and lname are enabled.
Checkout_shipping was not listed as a page to enable them.
Not sure how to rid myself of this error.
Craig
Re: First name and last name error
Posted: Sun Mar 03, 2024 2:09 pm
by burt
Check in the database to ensure that the data for the customer is present.
These would, I think, be the prime ones to look at for the customer in question;
address_book.entry_firstname
address_book.entry_lastname
customers.customers_firstname
customers.customers_lastname
If they are blank, there's a problem somewhere.
If they are not blank, there's a problem somewhere else.
Re: First name and last name error
Posted: Sun Mar 03, 2024 2:27 pm
by ecartz
This is missing a bunch of information. What is the current version of CE Phoenix Cart that is in use. Did you recently update to that version from an older version? I note that in version 1.0.5.0, the address_format table used firstname lastname. In version 1.0.5.1 and later, that changed to just name. So in versions 1.0.5.1 and later, you should not be able to get the error that you mention. It should no longer be looking for $firstname $lastname.
https://github.com/CE-PhoenixCart/Updat ... te.sql#L35
Code: Select all
UPDATE address_format SET address_format = REPLACE(address_format, "$firstname $lastname", "$name");
Depending on how you did the update, you might want to look for other changes that you missed. Perhaps this is just the first that you noticed.
Re: First name and last name error
Posted: Sun Mar 03, 2024 4:09 pm
by zpupster
Thanks Guys,
Fresh Install.
Version Checker
Installed Version: CE Phoenix v1.0.8.21
You are running the latest version of CE Phoenix.
I went table by table matching schema.
Imported data table by table.
TY,
Craig
Re: First name and last name error
Posted: Sun Mar 03, 2024 8:09 pm
by zpupster
Php 7.33
The Schema is identical and the first name and last name are in the tables mentioned.
Just the name is missing the address is present:
Craig
Re: First name and last name error
Posted: Sun Mar 03, 2024 9:05 pm
by zpupster
OK,
I could not login with my customer login.
I flushed local and server cache's.
Back at the index page> i received this error.
Warning: array_filter() expects parameter 1 to be array, null given in
customer.php on line 52
Version checker gives Installed Version: CE Phoenix v1.0.8.21
I am out for the evening.
Be back tomorrow to solve this.
Any hints??
Craig
Re: First name and last name error
Posted: Mon Mar 04, 2024 12:28 pm
by heatherbell
zpupster wrote: ↑Sun Mar 03, 2024 8:09 pm
The Schema is identical and the first name and last name are in the tables mentioned.
To be clear, check address_format column data in address_format table in your DB.
If any instances of $firstname $lastname, then it is wrong, run the SQL as previously advised.
Re: First name and last name error
Posted: Tue Mar 05, 2024 12:40 am
by zpupster
Hello,
heatherbell, burt, ezcart.
TY for the help.
I changed the schema of the address_format table to reflect the advice that you gave.
No more name errors.
Craig