Results 1 to 4 of 4
  1. #1
    Join Date
    May 2004
    Posts
    47
    Plugin Contributions
    0

    Default Password Retrieval Returns Error (too few arguments)

    When trying to retrieve password the form has an error that appears above the form and it does not send a password.

    Warning: sprintf() [function.sprintf]: Too few arguments in /home/davesmar/public_html/boats/renamed_admin/password_forgotten.php on line 65

    I did not see any reason for it. Any thoughts appreciated

  2. #2
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Password Retrieval Returns Error (too few arguments)

    The script replaces "%s" in your define for TEXT_EMAIL_MESSAGE with a new password. However, if you've changed the definition of TEXT_EMAIL_MESSAGE to have more than 1 "%s" placeholder (or none at all) then you'll get the error message you're reporting.

    You need to fix your language file for password_forgotten
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    May 2004
    Posts
    47
    Plugin Contributions
    0

    Default Re: Password Retrieval Returns Error (too few arguments)

    Quote Originally Posted by DrByte View Post
    The script replaces "%s" in your define for TEXT_EMAIL_MESSAGE with a new password. However, if you've changed the definition of TEXT_EMAIL_MESSAGE to have more than 1 "%s" placeholder (or none at all) then you'll get the error message you're reporting.

    You need to fix your language file for password_forgotten
    Thank you very much for your reply. I read the code and interpreted as such. As I stated I see no obvious reason. The file has not been changed, so there is nothing to fix there. I also replaced the file, in case it had been corrupted.

    When the last security patch came out. Was there any talk of this same problem happening?

  4. #4
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Password Retrieval Returns Error (too few arguments)

    Yours is the first I've ever seen of this particular problem.

    I suppose one other possibility could be that you've set "Minimum Password Length" (in Admin->Configuration->Minimum Values) to 0 and thus the new password being generated is empty and throwing an error, although I would have expected it to simply show "blank" (and no error) instead of null and an error.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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. RCPT TO:<> 501 Syntax error in parameters or arguments
    By raywhite in forum General Questions
    Replies: 12
    Last Post: 15 Jun 2011, 08:50 PM
  2. Replies: 4
    Last Post: 10 Sep 2009, 09:07 PM
  3. Forgot password retrieval, not working
    By quantum in forum General Questions
    Replies: 2
    Last Post: 24 Apr 2009, 08:04 AM
  4. Paypal error: Arguments is not an array?
    By anhjet in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 1 Oct 2007, 10:51 AM
  5. error sending GiftCert. [function.sprintf]: Too few arguments
    By kookiewookie in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 4
    Last Post: 21 Mar 2007, 04:04 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
  •