Zen Cart Logo
Forums / General Questions / Error when creating new accounts

Error when creating new accounts

Locked

Views: 878

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
31 Mar 2008, 1:38 PM
#1
hencore avatar

hencore

New Zenner

Join Date:
Jul 2007
Posts:
6
Plugin Contributions:
0

Error when creating new accounts

Hey guys having problems when creating new accounts.

I fill in the form correctly but when i hit submit i get:

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

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

Not sure what ive done as i havent changed any of the php pages mentioned in the error message.

Any clues would be much appreciated.

31 Mar 2008, 1:53 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Error when creating new accounts

hencore:

Warning: Cannot modify header information - headers already sent by (output started at /includes/languages/english/create_accountold.php:105) in ...

Your error is in your /includes/languages/english/create_accountold.php file.
By the name you've given it, you probably expected that to be treated as a backup file, but, since its filename starts the same as the original, both files are getting loaded.

The rule is: Don't leave backup .php files on the server.
If you must rename a file, rename the .php part to .php1 or .bak or .old or .orig .... but NOT .php

31 Mar 2008, 2:17 PM
#3
hencore avatar

hencore

New Zenner

Join Date:
Jul 2007
Posts:
6
Plugin Contributions:
0

Re: Error when creating new accounts

DrByte thanks a lot.

It was a case of I couldn’t see the wood for the trees :P

What I had actually done was renamed create_account to create_accountold and copied in an unmodified version from another site to see if that was the problem.

I was stumped when I got what I thought was the same error message, not noticing it was continuing to look at the old version even though it had been renamed. It obviously looks for "create_account" regardless of any additions to the name?

Deleting that old renamed file has fixed the issue, thank you.