Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Fixed]: problem updating profile  (Read 21419 times)

0 Members and 1 Guest are viewing this topic.

adicrst

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
    • animefan
[Fixed]: problem updating profile
« 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
« Last Edit: August 01, 2008, 06:48:12 pm by Nibbler »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: problem updating profile
« Reply #1 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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: problem updating profile
« Reply #2 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.
Logged

louisli

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: problem updating profile
« Reply #3 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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: problem updating profile
« Reply #4 on: July 15, 2008, 06:38:19 am »

Post a screenshot (attach it to your posting).
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: problem updating profile
« Reply #5 on: July 15, 2008, 07:11:49 am »

I cannot replicate the problem on my several install  :-\
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: problem updating profile
« Reply #6 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
« Last Edit: July 15, 2008, 07:46:56 am by Joachim Müller »
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: problem updating profile
« Reply #7 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.
Logged

louisli

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: problem updating profile
« Reply #8 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

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

Nibbler

  • Guest
Re: problem updating profile
« Reply #9 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;
Logged

louisli

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: problem updating profile
« Reply #10 on: July 15, 2008, 04:40:25 pm »

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

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

Nibbler

  • Guest
Re: problem updating profile
« Reply #11 on: August 01, 2008, 06:47:59 pm »

Fixed in svn.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 18 queries.