#ballycatter

1 messages · Page 1 of 1 (latest)

high ospreyBOT
tidal flame
#

Where is the error showing up? Do you have a screenshot of it?

vast crypt
#

I get the following error message in the command line: PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/create-checkout-session.php:21) in /var/www/html/create-checkout-session.php on line 23

tidal flame
#

If you look at lines 21 and 23, do you see what the code is trying to do?

vast crypt
#

I just tried to do an echo to confirm to getting down this far.

#

line 21: echo "Success! Here is your starter subscription product id: ";

line 23: header("HTTP/1.1 303 See Other");
line 24: header("Location: " . $checkout_session->url);

#

I get the HTTP ERROR 500

tidal flame
#

Do you see where in your code you are trying to modify the header of the request?

#

That seems to be where the error is coming from