简体   繁体   中英

Joomla user profile update not working correctly

On my local web-server everything works fine. But on the live server it does not work. The website is 1:1 the same.

My problem is: when I click save profile, it stores in my database into the table: user_profiles the following entries:

user_id key value ordering
78 profile.address1 "" 1
78 profile.address2 "" 2
78 profile.city "" 3
78 profile.region "" 4
78 profile.country "" 5
78 profile.postal_code "" 6
78 profile.phone "" 7
78 profile.website "" 8
78 profile.favoritebook "" 9
78 profile.aboutme "" 10
78 profile.dob "" 11

the problem here is, that profile.dob "" is not a valid date string, which will create an other error and of course it does not look very nice to have then written in your profile "" . On my local server, if the user did not enter any values, it will also not write anything into the table user_profiles .

I have tries to find the piece of code that is responsible for all that, but it looks like almost impossible to find the right spot.

how can I get rid of this ?

The profile_value column in #__user_profiles is a varchar, so it can't store dates in MySQL format.

Depending on how you display that info, you need

If the field is empty ("") by default Joomla should display the message "No Information Entered " in the profile page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM