Notice: Undefined index: street_address & postcode

Open to all! Ask other shopowners for help.
Post Reply
abofayez

Notice: Undefined index: street_address & postcode

Post by abofayez »

Notice: Undefined index: street_address in /home/xxxxxx/public_html/includes/modules/customer_data/cd_traditional_address.php on line 95

Notice: Undefined index: postcode in /home/xxxxxx/public_html/includes/modules/customer_data/cd_traditional_address.php on line 110


This message appeared (in the customer's account) when I hid the street address and zip code... This problem appeared on the site and did not appear on the local server.
I downloaded a copy from the site and ran it on the local server and the problem did not appear.
I completely deleted the script and installed it again on the site and the problem appeared again.
I don't know what's wrong.
These fields do not want to appear in the registration fields
What is the solution?


Join The Code Co-op to get access to your library in the Code Co-op Forum
Nigel
Contributor
Posts: 114
Joined: Mon Jan 11, 2021 1:39 am
Phoenix Version:
Has thanked: 29 times
Been thanked: 8 times

Re: Notice: Undefined index: street_address & postcode

Post by Nigel »

There might be a difference in the versions of MySQL / PHP between your local setup and live site.
I had similar issues back in 1.0.81.
It was caused by Phoenix code using a different character set, a different utf8 set that uses more bytes per character.
Probably not the exact same problem but I would check your MySQL / PHP versions.
abofayez

Re: Notice: Undefined index: street_address & postcode

Post by abofayez »

Thank you...you are unique and creative
PHP version was 7.3 .. I updated it to 7.4.20 and it worked perfectly without any problems.
Thank you


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