Create Account Problem - >>solved<<

Open to all! Ask other shopowners for help.
Post Reply
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Create Account Problem - >>solved<<

Post 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
Last edited by Xpajun on Thu Dec 30, 2021 1:10 pm, edited 1 time in total.
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Create Account Problem

Post 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.
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: Create Account Problem

Post 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
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply