States at Admin account edit problem

Open to all! Ask other shopowners for help.
Post Reply
Owl
Member
Posts: 38
Joined: Sun Feb 28, 2021 8:03 pm
Phoenix Version:
Has thanked: 13 times

States at Admin account edit problem

Post by Owl »

Greetings,

Phoenix 1.0.8.0 @ PHP 7.1, 7.4

When editing a costumers account in Admin and selecting a state from the dropdown menu it does not get saved. Anyone else facing this problem? IT does not create any error log entry nor gives any kind of PHP notice/warning.

Best Regards,


Join The Code Co-op to get access to your library in the Code Co-op Forum
Omar_one
Senior Contributor
Posts: 676
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: States at Admin account edit problem

Post by Omar_one »

@Owl
There is an fix for that on the Phoenix 1.0.8.5
https://github.com/CE-PhoenixCart/Phoen ... 079769dca3
Owl
Member
Posts: 38
Joined: Sun Feb 28, 2021 8:03 pm
Phoenix Version:
Has thanked: 13 times

Re: States at Admin account edit problem

Post by Owl »

Well, it didnt fixed the problem but found what the problem is. It is a problem with states having special characters like accents and such. Any ideas how to fix this?
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: States at Admin account edit problem

Post by raiwa »

Check that your encoding is set to utf8 in the database field.
A workaround is also to use html entities for the special characters.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Owl
Member
Posts: 38
Joined: Sun Feb 28, 2021 8:03 pm
Phoenix Version:
Has thanked: 13 times

Re: States at Admin account edit problem

Post by Owl »

raiwa wrote: Sun Jul 04, 2021 9:49 am Check that your encoding is set to utf8 in the database field.
A workaround is also to use html entities for the special characters.
db is set to utf8_unicode_ci but also tried to set it up to utf8mb4_unicode_ci with no luck. What workaround are you sugesting?
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: States at Admin account edit problem

Post by raiwa »

raiwa wrote: Sun Jul 04, 2021 9:49 am A workaround is also to use html entities for the special characters.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Owl
Member
Posts: 38
Joined: Sun Feb 28, 2021 8:03 pm
Phoenix Version:
Has thanked: 13 times

Re: States at Admin account edit problem

Post by Owl »

Its even weirder.
It only gives the problem with foreign countries with special characters like "Cádiz" in Spain. Other Spanish countries, i.e., does not gives any problem. Default coutry states with or without the special chars works perfectly.


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