Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2009
    Posts
    21
    Plugin Contributions
    0

    Default Blank Page After Creating New Account

    Every time someone signs up to create a new account, when they click the "Submit" button, instead of redirecting them to the Create Account Success page (or whatever appropriate page they should be redirected to), they get a blank page instead.

    The new account is created though, it's just that the page that it redirects to keeps showing up blank, therefore confusing some users as to whether or not their account was successfully created.

    I did a debug of the page where users go to sign in or create a new account, and I got the following error log:

    [16-Nov-2009 10:03:54] PHP Warning: session_regenerate_id() [<a href='function.session-regenerate-id'>function.session-regenerate-id</a>]: Cannot regenerate session id - headers already sent in /home/fortunec/public_html/catalog/includes/functions/sessions.php on line 167
    [16-Nov-2009 10:03:54] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/fortunec/public_html/catalog/includes/languages/english/create_account.php:105) in /home/fortunec/public_html/catalog/includes/functions/functions_general.php on line 44


    Line 167 of sessions.php looks like this:

    session_regenerate_id();


    Line 44 of functions_general.php looks like this:

    header('Location: ' . $url);


    The errors are obviously coming from the code, right? My question is, how do I fix this?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Blank Page After Creating New Account

    Quote Originally Posted by fortun3 View Post
    [16-Nov-2009 10:03:54] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/fortunec/public_html/catalog/includes/languages/english/create_account.php:105) in ...
    You've got an error at line 105 of the file mentioned in the error message: /includes/languages/english/create_account.php

    ref: 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.

  3. #3
    Join Date
    Oct 2009
    Location
    Netherlands - NB
    Posts
    146
    Plugin Contributions
    0

  4. #4
    Join Date
    Nov 2009
    Posts
    21
    Plugin Contributions
    0

    Default Re: Blank Page After Creating New Account

    Thanks for the help you guys! As it turned out, it was all the extra spacing after the end of the closing php tag in the create_account.php file. I'm not quite sure how that happened since I've never edited the create_account.php file myself before (someone else must have).

    But anyway, once I deleted all of those extra spacings, I no longer get the blank page whenever a new account is created (it goes straight to the Create Account Success page). I'll be sure to visit this forum again should I need anything else

  5. #5
    Join Date
    Oct 2009
    Location
    Netherlands - NB
    Posts
    146
    Plugin Contributions
    0

    Default Re: Blank Page After Creating New Account

    Good to hear, good luck with your site

 

 

Similar Threads

  1. v139g Blank page after creating account (Version 1.3.9 g
    By eOstrE in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 16 Jan 2012, 11:47 PM
  2. Replies: 2
    Last Post: 15 Nov 2009, 07:14 PM
  3. Blank page after creating account
    By juniper in forum General Questions
    Replies: 1
    Last Post: 1 Feb 2009, 06:16 AM
  4. blank page after creating account
    By guang in forum General Questions
    Replies: 6
    Last Post: 9 Dec 2007, 09:53 AM
  5. Blank Page after a new account is created
    By Ramson Baker in forum General Questions
    Replies: 1
    Last Post: 2 Jan 2007, 08:47 PM

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