If this is your first visit, check our documentation. To post, register or login.
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

Started by sybil on 17 Jul 2006, 5:35 PM · Views: 2,980

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??

I host my sites at: <a href="http://www.camelot-hosting.com">Camelot Hosting</a> and so should you... they rock!

<p>
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,512
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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.