Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Apr 2007
    Posts
    71
    Plugin Contributions
    0

    Default Warning errors when creating a new user account

    Could the following errors be due to the fact that I deleted a test user and then attempted to recreate the same username right away in the same browser?

    Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /home/doug/public_html/taonoyume/includes/functions/sessions.php on line 162

    Warning: Cannot modify header information - headers already sent by (output started at /home/doug/public_html/taonoyume/includes/languages/english/custom/create_account.php:105) in /home/doug/public_html/taonoyume/includes/functions/functions_general.php on line 44

  2. #2
    Join Date
    Apr 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Warning errors when creating a new user account

    FWIW, the user did get created and the welcome email did get sent out.

    doug

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

    Default Re: Warning errors when creating a new user account

    Your error appears to be on line 105 of the file mentioned in the error message. As such, it will likely happen again next time you create another account:
    Warning: Cannot modify header information - headers already sent by (output started at /home/doug/public_html/taonoyume/includes/languages/english/custom/create_account.php:105)
    https://www.zen-cart.com/tutorials/index.php?article=87
    .

    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.

  4. #4
    Join Date
    Apr 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Warning errors when creating a new user account

    Quote Originally Posted by DrByte View Post
    Your error appears to be on line 105 of the file mentioned in the error message. As such, it will likely happen again next time you create another account:

    https://www.zen-cart.com/tutorials/index.php?article=87
    Hmmm.... I might be stuck here. I looked that the file and there are only 103 lines. I looked at the tutorial page and there are no extra spaces or lines at the beginning or the end of the file...

    It is, as you predicted, causing an error with each user registration...

    doug

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Warning errors when creating a new user account

    Please copy and paste the entire contents of that file here for review. You likely have a syntax error with mismatched quotation marks or semicolons or brackets which is causing the code to discover the error on the first line of the next part of the Zen Cart core code that is processed after that language file.
    .

    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.

  6. #6
    Join Date
    Apr 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Warning errors when creating a new user account

    Quote Originally Posted by DrByte View Post
    Please copy and paste the entire contents of that file here for review. You likely have a syntax error with mismatched quotation marks or semicolons or brackets which is causing the code to discover the error on the first line of the next part of the Zen Cart core code that is processed after that language file.
    Thanks for looking at this. My first foray into actual PHP. I'm guessing that the "." operator is string concatenation in PHP? Like the "+" in JavaScript? And strings can be enclosed by single or double-quotes, right?

    The user does get registered and the welcome email, with the custom definitions are sent out...

    Anyway, here is the file:

    <?php

    /**

    * @package languageDefines

    * @copyright Copyright 2003-2006 Zen Cart Development Team

    * @copyright Portions Copyright 2003 osCommerce

    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    * @version $Id: create_account.php 3027 2006-02-13 17:15:51Z drbyte $

    */



    define('NAVBAR_TITLE', 'Create an Account');



    define('HEADING_TITLE', 'My Account Information');



    define('TEXT_ORIGIN_LOGIN', '<strong class="note">NOTE:</strong> If you already have an account with us, please login at the <a href="%s">login page</a>.');



    // greeting salutation

    define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME);

    define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");

    define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");

    define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");



    // First line of the greeting

    define('EMAIL_WELCOME', 'Youkoso! Welcome you to <strong>' . STORE_NAME . '</strong>!');

    define('EMAIL_SEPARATOR', '--------------------');

    define('EMAIL_COUPON_INCENTIVE_HEADER', 'Congratulations! To make your next visit to our online shop a more rewarding experience, listed below are details for a Discount Coupon created just for you!' . "\n\n");

    // your Discount Coupon Description will be inserted before this next define

    define('EMAIL_COUPON_REDEEM', 'To use the Discount Coupon, enter the ' . TEXT_GV_REDEEM . ' code during checkout: <strong>%s</strong>' . "\n\n");



    define('EMAIL_GV_INCENTIVE_HEADER', 'Just for stopping by today, we have sent you a ' . TEXT_GV_NAME . ' for %s!' . "\n");

    define('EMAIL_GV_REDEEM', 'The ' . TEXT_GV_NAME . ' ' . TEXT_GV_REDEEM . ' is: %s ' . "\n\n" . 'You can enter the ' . TEXT_GV_REDEEM . ' during Checkout, after making your selections in the store. ');

    define('EMAIL_GV_LINK', ' Or, you may redeem it now by following this link: ' . "\n");

    // GV link will automatically be included before this line



    define('EMAIL_GV_LINK_OTHER','Once you have added the ' . TEXT_GV_NAME . ' to your account, you may use the ' . TEXT_GV_NAME . ' for yourself, or send it to a friend!' . "\n\n");



    define('EMAIL_TEXT', 'Now that you have an account, you can take advantage of the following <strong>Taonoyume shop services</strong>, including:' . "\n\n" . '<li><strong>Permanent Cart</strong> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n\n" . '<li><strong>Address Book</strong> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n\n" . '<li><strong>Order History</strong> - View your history of purchases that you have made with us.' . "\n\n" . '<li><strong>Products Reviews</strong> - Share your opinions on products with our other customers.' . "\n\n");

    define('EMAIL_CONTACT', 'For help with any of our online services, please email the store-owner at: <a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS ." </a>\n\n");

    define('EMAIL_GV_CLOSURE','Arigatou! Thank you!' . "\n\n" . "Doug Lerner" . "\nTaonoyume Store Owner\n\n". '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'.HTTP_SERVER . DIR_WS_CATALOG ."</a>\n\n");



    // email disclaimer - this disclaimer is separate from all other email disclaimers

    define('EMAIL_DISCLAIMER_NEW_CUSTOMER', 'This email address was given to us by you or by one of our customers. If you did not signup for an account, or feel that you have received this email in error, please send an email to %s ');



    //moved definitions to english.php

    //define('TABLE_HEADING_PRIVACY_CONDITIONS', 'Privacy Statement');

    //define('TEXT_PRIVACY_CONDITIONS_DESCRIPTION', 'Please acknowledge you agree with our privacy statement by ticking the following box. The privacy statement can be read <a href="' . zen_href_link(FILENAME_PRIVACY, '', 'SSL') . '"><span class="pseudolink">here</span></a>.');

    //define('TEXT_PRIVACY_CONDITIONS_CONFIRM', 'I have read and agreed to your privacy statement.');

    //define('TABLE_HEADING_ADDRESS_DETAILS', 'Address Details');

    //define('TABLE_HEADING_PHONE_FAX_DETAILS', 'Additional Contact Details');

    //define('TABLE_HEADING_DATE_OF_BIRTH', 'Verify Your Age');

    //define('TABLE_HEADING_LOGIN_DETAILS', 'Login Details');

    //define('TABLE_HEADING_REFERRAL_DETAILS', 'Were You Referred to Us?');

    ?>

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

    Default Re: Warning errors when creating a new user account

    Your FTP program is somehow causing your files to become double-spaced.

    Thus, the 104 lines in that file plus the extra carriage-return added by your FTP program, makes line 105.

    The fastest way to apply a bandage to that is to just remove the ?> from the end of the file.

    The proper way to fix it is to ensure that your FTP program is treating *.php files as ASCII files and not as binary files. Even then sometimes a webserver (esp a windows server) will cause the files to be treated with incorrect line-endings resulting in double-spacing. You might want to look into that too.
    .

    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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Warning errors when creating a new user account

    Quote Originally Posted by douglerner View Post
    Thanks for looking at this. My first foray into actual PHP. I'm guessing that the "." operator is string concatenation in PHP? Like the "+" in JavaScript? And strings can be enclosed by single or double-quotes, right?
    that is correct.
    .

    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.

  9. #9
    Join Date
    Apr 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Warning errors when creating a new user account

    Quote Originally Posted by DrByte View Post
    Your FTP program is somehow causing your files to become double-spaced.

    Thus, the 104 lines in that file plus the extra carriage-return added by your FTP program, makes line 105.

    The fastest way to apply a bandage to that is to just remove the ?> from the end of the file.

    The proper way to fix it is to ensure that your FTP program is treating *.php files as ASCII files and not as binary files. Even then sometimes a webserver (esp a windows server) will cause the files to be treated with incorrect line-endings resulting in double-spacing. You might want to look into that too.
    That must be why sporadically it is working and not working. Right now I was able to create an account without an erro.

    The server is actually a Linux server.

    Thanks again.

    doug

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Warning errors when creating a new user account

    Um .... how did you install your site ?

    Did you download files from zen-cart.com, or did you use some sort of automated installation provided by your host?

    You really are better of using a set of files downloaded from the original distribution set on our website. That way you don't get the double-spacing problems as much. Plus then you have a master copy of all your files, including changes. A complete set is handy as a basic backup.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 14
    Last Post: 29 Dec 2012, 08:51 PM
  2. Error 500 when creating a new account
    By OldToot in forum Managing Customers and Orders
    Replies: 5
    Last Post: 15 Oct 2011, 07:04 PM
  3. Fill in boxes BLACK;Cant see text when creating new account
    By bigsche in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Feb 2011, 06:17 PM
  4. Error when creating new account
    By sinsor in forum Managing Customers and Orders
    Replies: 1
    Last Post: 17 Nov 2009, 10:14 PM
  5. [NOT A BUG] Warning message when creating new account.
    By CobraPlant in forum Bug Reports
    Replies: 4
    Last Post: 24 Nov 2007, 06:59 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