Discount Codes
Blank Screen when Removing Code at checkout - Discount Codes
Blank Screen when Removing Code at checkout
Hi,
Phoenix 1.0.8.0
Discount Code 5.5
I doubt this a Discount Code problem, but it shows up when I add a code, then decide to remove it at checkout (checkout_payment.php), I get a blank screen. It never happens if I remove it while showing it in the cart (shopping_cart.php).
The following happens in the error_log:
[08-Apr-2021 09:41:59 America/New_York] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/geishacoffee/public_html/templates/default/includes/components/template_top.php:26) in /home/geishacoffee/public_html/includes/functions/general.php on line 36
The apps is awesome...Thanks
Thank in advance,
Patrick
Phoenix 1.0.8.0
Discount Code 5.5
I doubt this a Discount Code problem, but it shows up when I add a code, then decide to remove it at checkout (checkout_payment.php), I get a blank screen. It never happens if I remove it while showing it in the cart (shopping_cart.php).
The following happens in the error_log:
[08-Apr-2021 09:41:59 America/New_York] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/geishacoffee/public_html/templates/default/includes/components/template_top.php:26) in /home/geishacoffee/public_html/includes/functions/general.php on line 36
The apps is awesome...Thanks
Thank in advance,
Patrick
patrick
-
plamastus
- Member
- Posts: 82
- Joined: Fri Mar 12, 2021 2:09 am
- Phoenix Version:
- Contact:
Re: Blank Screen when Removing Code at checkout
The error message is a subsequent error, not the original error.
It dosn't help to find the original problem. Please post what exact you modified/removed.
It dosn't help to find the original problem. Please post what exact you modified/removed.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
raiwa
- Certified Developer
- Posts: 1640
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Contact:
Re: Blank Screen when Removing Code at checkout
HI,
Thanks,
Patrick
The error message is a subsequent error, not the original error.
It dosn't help to find the original problem. Please post what exact you modified/removed.
I was refering to the REMOVE Discount Code button.Remove it
Thanks,
Patrick
patrick
-
plamastus
- Member
- Posts: 82
- Joined: Fri Mar 12, 2021 2:09 am
- Phoenix Version:
- Contact:
Re: Blank Screen when Removing Code at checkout
O.K. got it now.
I checked in my test/develop store and do not get any error doing the same like you described.
For to know what happens, please check if you have more error info just above or below the error you already posted.
You can also try to change in the discount code hook:
templates/override/includes/hooks/shop/siteWide/discountCode.php line 23 to:
You can also (separate from the above) temporary remove the following line 30 which probably produces the error:
Then check again for errors and post back.
If this doesn't help you may check if you have any other modification/addon installed which could interfere and remove it/them one by one to isolate the source of the problem.
I checked in my test/develop store and do not get any error doing the same like you described.
For to know what happens, please check if you have more error info just above or below the error you already posted.
You can also try to change in the discount code hook:
templates/override/includes/hooks/shop/siteWide/discountCode.php line 23 to:
Code: Select all
function listen_injectRedirects() {
Code: Select all
tep_redirect('checkout_payment.php', tep_get_all_get_params(['rem_discount_code']));
If this doesn't help you may check if you have any other modification/addon installed which could interfere and remove it/them one by one to isolate the source of the problem.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
raiwa
- Certified Developer
- Posts: 1640
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Contact:
-
plamastus
- Member
- Posts: 82
- Joined: Fri Mar 12, 2021 2:09 am
- Phoenix Version:
- Contact:
Re: Blank Screen when Removing Code at checkout
Would be interested to know how.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
raiwa
- Certified Developer
- Posts: 1640
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Contact:
-
plamastus
- Member
- Posts: 82
- Joined: Fri Mar 12, 2021 2:09 am
- Phoenix Version:
- Contact:
Re: Blank Screen when Removing Code at checkout
Which? the second is a fix for the symptom, not for the root of the problem.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
raiwa
- Certified Developer
- Posts: 1640
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Contact:
Re: Blank Screen when Removing Code at checkout
Hi,
I did run it with a clean install and the same exact problem shows up. Here is what shows the error_log:
Tail -F error_log
[09-Apr-2021 01:50:25 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/geishacoffee/public_html/templates/default/includes/components/template_top.php:26) in /home/geishacoffee/public_html/includes/functions/general.php on line 36
I did run it with a clean install and the same exact problem shows up. Here is what shows the error_log:
Tail -F error_log
[09-Apr-2021 01:50:25 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/geishacoffee/public_html/templates/default/includes/components/template_top.php:26) in /home/geishacoffee/public_html/includes/functions/general.php on line 36
patrick
-
plamastus
- Member
- Posts: 82
- Joined: Fri Mar 12, 2021 2:09 am
- Phoenix Version:
- Contact:
Re: Blank Screen when Removing Code at checkout
Hi,
1. My question was which of the two modifications did you apply to fix the error? Does the error log show more errors just above or below this one?
2. Is the new installation Phoenix 1.0.8.0 or 1.0.8.1 ?
1. My question was which of the two modifications did you apply to fix the error? Does the error log show more errors just above or below this one?
2. Is the new installation Phoenix 1.0.8.0 or 1.0.8.1 ?
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
raiwa
- Certified Developer
- Posts: 1640
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Contact: