Page 1 of 1

Create Account Problem - >>solved<<

Posted: Tue Dec 28, 2021 4:51 pm
by Xpajun
Hi everyone - hope you're all enjoying the holidays

Just come across a problem today:
When entering customer account details after selecting product, entering details and then clicking on continue the browser opens a blank page (also happens when entering customer details before selecting product). The customer details are loaded into the database and if one goes back using the browser back one page the customer is logged in and can carry on ordering, paying etc.

I'm getting the following errors:

Code: Select all

[28-Dec-2021 16:27:55 UTC] PHP Warning:  session_regenerate_id(): Cannot regenerate session id - headers already sent in /home/redacted/public_html/store/includes/functions/sessions.php on line 153
[28-Dec-2021 16:27:55 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/redacted/public_html/store/create_account.php:22) in /home/redacted/public_html/store/includes/functions/general.php on line 46

Re: Create Account Problem

Posted: Wed Dec 29, 2021 6:25 pm
by ecartz
Xpajun wrote: Tue Dec 28, 2021 4:51 pm [28-Dec-2021 16:27:55 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/redacted/public_html/store/create_account.php:22) in /home/redacted/public_html/store/includes/functions/general.php on line 46
Well, this says that it is trying to change a header but it can't because it already started sending the body of the request. Line 22 of create_account.php is

Code: Select all

  if (tep_validate_form_action_is('process')) {
If that's the same as in your file, I would turn display_errors off. If that's not the same, then I'd need to know what you do have there (and possibly some context around it).

Note that neither of the errors that you mention could be from that line. So if it's a display_errors issue, there's another error that you're not posting.

Re: Create Account Problem

Posted: Thu Dec 30, 2021 1:09 pm
by Xpajun
Thank you Matt for your input, I was looking in that area myself this morning and found a script call had been inserted on that line from when I was attempting to get my 'postcode anywhere' to work - after removal it now works properly.

Confusing thing is the script call was added back about the middle of the year when I upgraded to 1.0.7.5 - only thing I can thing of is that it was left lying around open and managed to get itself saved to my site just before Christmas. Something to learn there I suppose

Again many thanks