[英]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.
该网站是1:1相同。
My problem is: when I click save profile, it stores in my database into the table: user_profiles
the following entries: 我的问题是:当我单击保存配置文件时,它将存储在数据库中的表中:
user_profiles
以下条目:
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 ""
. 这里的问题是,
profile.dob ""
不是有效的日期字符串,这将导致另一个错误,当然,然后再将其写入您的配置文件""
看起来并不好。 On my local server, if the user did not enter any values, it will also not write anything into the table user_profiles
. 在我的本地服务器上,如果用户未输入任何值,那么它也不会将任何内容写入表
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. #__user_profiles中的profile_value列是varchar,因此无法以MySQL格式存储日期。
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. 如果该字段默认为空(“”),则Joomla应在配置文件页面中显示消息“未输入任何信息”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.