forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: adicrst on May 02, 2008, 04:07:40 pm

Title: [Fixed]: problem updating profile
Post by: adicrst on May 02, 2008, 04:07:40 pm
When i try to update my profile, it sais that another user is already registered with that email address. This mean i have to change my address everytime i have to update my profile..

another problem is that i set it to another language and after i save the changes, it returns to english
Title: Re: problem updating profile
Post by: Stramm on May 02, 2008, 07:29:29 pm
Allow two users to have the same email address if that's what you're asking for
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_allow_duplicate_emails_addr

If you set the language in config, then this gets oevrwritten by the language auto detection and this gets overwritten by the manual selction via the dropdown selector you can enable in config -> Language & Charset settings
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_language
Title: Re: problem updating profile
Post by: Joachim Müller on May 02, 2008, 09:47:27 pm
We have a strict "one question per thread" policy btw. You agreed to respect it when signing up. When you signed up, you agreed to read the docs and search the board before asking questions as well. Respect board rules in the future.
Title: Re: problem updating profile
Post by: louisli on July 15, 2008, 05:05:15 am
Hi,

I don't mean to hijack this post but I don't think this is related to "allow duplicate emails address" issue.
I can see each time I login as user and edit my profile, I got this message (I'm the admin and I know I'm the unique user).  And when you go to another page and then back to your profile again, you will see you have already made the changes in the database, just this error will show up each time after editing.

I think it's a bug, is there a workaround yet?  (Oh besides allowing duplicated email addresses).

CPG 1.4.18

Thanks.

Louis
Title: Re: problem updating profile
Post by: Joachim Müller on July 15, 2008, 06:38:19 am
Post a screenshot (attach it to your posting).
Title: Re: problem updating profile
Post by: François Keller on July 15, 2008, 07:11:49 am
I cannot replicate the problem on my several install  :-\
Title: Re: problem updating profile
Post by: louisli on July 15, 2008, 07:35:42 am
Picture sequence:

1. first I entered profile editing page
http://img501.imageshack.us/img501/7555/clipboard01hf1.jpg [Edit GauGau] Replaced hotlinked image with attachment clipboard01hf1.jpg [/Edit]

2. changed profile details
http://img185.imageshack.us/img185/5747/clipboard02iq9.jpg [Edit GauGau] Replaced hotlinked image with attachment clipboard02iq9.jpg [/Edit]

3. then click "Apply modifications" and the error shows up
http://img401.imageshack.us/img401/2256/clipboard03tn7.jpg [Edit GauGau] Replaced hotlinked image with attachment clipboard03tn7.jpg [/Edit]

4. clicking "Continue" will go back to previous page
http://img255.imageshack.us/img255/2499/clipboard04nw7.jpg [Edit GauGau] Replaced hotlinked image with attachment clipboard04nw7.jpg [/Edit]

5. then I browse something else
http://img243.imageshack.us/img243/9871/clipboard05hn9.jpg [Edit GauGau] Replaced hotlinked image with attachment clipboard05hn9.jpg [/Edit]

6. back to profiles page, and the settings is already done anyway
http://img155.imageshack.us/img155/7531/clipboard06fj7.jpg [Edit GauGau] Replaced hotlinked image with attachment clipboard06fj7.jpg [/Edit]

Weird, isn't it?   ;)

Machine: QNAP TS-109 pro NAS box
Apache 1.3.37
PHP 5.2.0
MySQL 5.0.27
CQG 1.4.18

Louis
Title: Re: problem updating profile
Post by: Joachim Müller on July 15, 2008, 07:51:14 am
I told you to attach your screenshots, not to hotlink them. I had to edit your posting accordingly. Please do as supporters advise in the future - you have caused a lot of extra moderation effort. Your question definitely should have gone into a thread of it's own...
Clear your cache - you might be looking at a cached copy of the page.
Title: Re: problem updating profile
Post by: louisli on July 15, 2008, 08:04:46 am
I'm sorry for causing extra troubles...

Tried to clear the cache, the profile is the updated one.
Tried to access the album from a different computer, the profile is still the updated one...

Louis

Title: Re: problem updating profile
Post by: Nibbler on July 15, 2008, 10:08:41 am
Edit profile.php, find

Code: [Select]
$sql = "SELECT user_id " . "FROM {$CONFIG['TABLE_USERS']} " . "WHERE user_email = '" . $email . "'";
change to this

Code: [Select]
$sql = "SELECT user_id " . "FROM {$CONFIG['TABLE_USERS']} " . "WHERE user_email = '" . $email . "' AND user_id <> " . USER_ID;
Title: Re: problem updating profile
Post by: louisli on July 15, 2008, 04:40:25 pm
It shows "your profile was updated"
no more error showing up again!!
Thanks devs ;D

Louis
Title: Re: problem updating profile
Post by: Nibbler on August 01, 2008, 06:47:59 pm
Fixed in svn.