[Fixed]: problem updating profile [Fixed]: problem updating profile
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Fixed]: problem updating profile

Started by adicrst, May 02, 2008, 04:07:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

adicrst

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

Stramm

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

Joachim Müller

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.

louisli

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
QNAP TS-109 pro NAS box
Apache 1.3.28
PHP 5.2.0
MySQL 5.0.27
CPG 1.4.18

Joachim Müller

Post a screenshot (attach it to your posting).

François Keller

I cannot replicate the problem on my several install  :-\
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

louisli

#6
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
QNAP TS-109 pro NAS box
Apache 1.3.28
PHP 5.2.0
MySQL 5.0.27
CPG 1.4.18

Joachim Müller

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.

louisli

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

QNAP TS-109 pro NAS box
Apache 1.3.28
PHP 5.2.0
MySQL 5.0.27
CPG 1.4.18

Nibbler

Edit profile.php, find

$sql = "SELECT user_id " . "FROM {$CONFIG['TABLE_USERS']} " . "WHERE user_email = '" . $email . "'";

change to this

$sql = "SELECT user_id " . "FROM {$CONFIG['TABLE_USERS']} " . "WHERE user_email = '" . $email . "' AND user_id <> " . USER_ID;

louisli

It shows "your profile was updated"
no more error showing up again!!
Thanks devs ;D

Louis
QNAP TS-109 pro NAS box
Apache 1.3.28
PHP 5.2.0
MySQL 5.0.27
CPG 1.4.18

Nibbler