Results 1 to 3 of 3
  1. #1
    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... 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??

  2. #2
    Join Date
    Mar 2006
    Posts
    89
    Plugin Contributions
    0

    Default Re: 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?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 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.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 1 Aug 2015, 10:40 PM
  2. Replies: 13
    Last Post: 4 May 2010, 10:47 AM
  3. [NOT A BUG] Minor bug in account edit template
    By jdcncsolutions in forum Bug Reports
    Replies: 3
    Last Post: 2 May 2010, 01:37 AM
  4. Replies: 59
    Last Post: 30 Dec 2006, 05:24 PM
  5. [DONE] Bug in referrals field of account-edit template
    By GlassHoppah in forum Bug Reports
    Replies: 2
    Last Post: 25 Jun 2006, 08:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR