Zen Cart Logo
Forums / Bug Reports / [Done 1.3.6]Bug in Edit Account if phpbb enabled - cannot edit surname

[Done 1.3.6]Bug in Edit Account if phpbb enabled - cannot edit surname

Locked

Views: 2,972

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
17 Jul 2006, 5:35 PM
#1
sybil avatar

sybil

New Zenner

Join Date:
Jul 2006
Posts:
13
Plugin Contributions:
0

[Done 1.3.6]Bug in Edit Account if phpbb enabled - cannot edit surname

Zen Cart version 1.3.0.2 fresh install

In the process of setting up ZC on a couple of my sites and getting it all figured out in the last week. Happy to say that I havent encountered anything that I couldnt resolve myself, or find the answer to in one of my (seemingly millions of) forum searches. Until now that is... :dontgetit So here it is:

Being a female who's been (ahem) married more than once... I wanted to make sure that I could edit the last name on my account information. However, when I attempt to edit the last name field, or for that matter, any field on the page (without also editing the email address), I get the following error:

"phpBB-Our system already has a record of that email address - please try logging in with that email address. If you do not use that address any longer you can correct it in the My Account area."

I know the error is being generated from acount_edit/header.php - but since the email address is the only variable passed to phpbb at registration... I cant, for the life of me, figure out a work-around.

Other than disabling phpbb... Any ideas??

19 Aug 2006, 1:58 PM
#2
slobadog avatar

slobadog

New Zenner

Join Date:
Mar 2006
Posts:
89
Plugin Contributions:
0

Re: [Done 1.3.6]Bug in Edit Account if phpbb enabled - cannot edit surname

I had the same problem. I //'d out the following section at lines 88-91 in account_edit/header_php.php

// check phpBB for duplicate email address
if ($phpBB->phpbb_check_for_duplicate_email($email_address) == 'already_exists' ) {
  $error = true;
  $messageStack->add('account_edit', 'phpBB-'.ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);
}

It fixed the problem and got things happening but is it a good idea?

19 Aug 2006, 8:01 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Done 1.3.6]Bug in Edit Account if phpbb enabled - cannot edit surname

That's a reasonable workaround, which simply masks the error alert.

I think the better solution is to move the } from the line above that section down to a line just below that section. That way the duplicate-checking is done inside the same loop that checks the cart for duplicates.