First name and last name error

Open to all! Ask other shopowners for help.
Post Reply
zpupster
Member
Posts: 8
Joined: Wed Jun 16, 2021 1:13 pm
Phoenix Version:

First name and last name error

Post 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
Last edited by zpupster on Tue Mar 05, 2024 12:42 am, edited 1 time in total.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4560
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 413 times

Re: First name and last name error

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: First name and last name error

Post 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.
zpupster
Member
Posts: 8
Joined: Wed Jun 16, 2021 1:13 pm
Phoenix Version:

Re: First name and last name error

Post 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
zpupster
Member
Posts: 8
Joined: Wed Jun 16, 2021 1:13 pm
Phoenix Version:

Re: First name and last name error

Post 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
Last edited by zpupster on Tue Mar 05, 2024 12:42 am, edited 1 time in total.
zpupster
Member
Posts: 8
Joined: Wed Jun 16, 2021 1:13 pm
Phoenix Version:

Re: First name and last name error

Post 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
Last edited by zpupster on Tue Mar 05, 2024 12:43 am, edited 1 time in total.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: First name and last name error

Post 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.
zpupster
Member
Posts: 8
Joined: Wed Jun 16, 2021 1:13 pm
Phoenix Version:

Re: First name and last name error

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply