Discount Codes

Blank Screen when Removing Code at checkout - Discount Codes

Blank Screen when Removing Code at checkout

by plamastus » Thu Apr 08, 2021 1:58 pm

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
patrick
plamastus
Member
Posts: 82
Joined: Fri Mar 12, 2021 2:09 am
Phoenix Version:
Contact:

Re: Blank Screen when Removing Code at checkout

by raiwa » Thu Apr 08, 2021 2:51 pm

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.
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
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Blank Screen when Removing Code at checkout

by plamastus » Thu Apr 08, 2021 5:36 pm

HI,
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.
Remove it
I was refering to the REMOVE Discount Code button.

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

by raiwa » Thu Apr 08, 2021 6:10 pm

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:

Code: Select all

  function listen_injectRedirects() {
You can also (separate from the above) temporary remove the following line 30 which probably produces the error:

Code: Select all

      tep_redirect('checkout_payment.php', tep_get_all_get_params(['rem_discount_code']));
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.
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
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Blank Screen when Removing Code at checkout

by plamastus » Thu Apr 08, 2021 6:45 pm

HI,

I did fix the problem...
patrick
plamastus
Member
Posts: 82
Joined: Fri Mar 12, 2021 2:09 am
Phoenix Version:
Contact:

Re: Blank Screen when Removing Code at checkout

by raiwa » Thu Apr 08, 2021 7:20 pm

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
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Blank Screen when Removing Code at checkout

by plamastus » Thu Apr 08, 2021 8:18 pm

Your suggestion fixed the problem.
patrick
plamastus
Member
Posts: 82
Joined: Fri Mar 12, 2021 2:09 am
Phoenix Version:
Contact:

Re: Blank Screen when Removing Code at checkout

by raiwa » Thu Apr 08, 2021 9:15 pm

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
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Blank Screen when Removing Code at checkout

by plamastus » Fri Apr 09, 2021 1:54 am

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
patrick
plamastus
Member
Posts: 82
Joined: Fri Mar 12, 2021 2:09 am
Phoenix Version:
Contact:

Re: Blank Screen when Removing Code at checkout

by raiwa » Fri Apr 09, 2021 5:38 am

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 ?
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
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact: