Zen Cart Logo
Forums / PayPal Express Checkout support / White page right after paying with PayPal express

White page right after paying with PayPal express

Locked

Views: 2,206

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
1 Mar 2010, 8:39 PM
#1
johnroy avatar

johnroy

New Zenner

Join Date:
Feb 2010
Posts:
13
Plugin Contributions:
0

White page right after paying with PayPal express

I have read a bunch of posts, still cannot figure it out.

I am setting up a candy shop using version 1.38 with the French add-on portion.
Also added the 2 taxes Canadian add-on.
splittaxlines_1-11

The setup is almost all done except that when I want to pay using PayPal express, after zen cart bring me to the PayPal login page, after I to pay the screen then goes white ...

I tested the Curl using the Curlcheck util and the IPN using the IPNtest util, they both tell me they are fine ...

Any idea ??

Thanks

:bigups:

1 Mar 2010, 9:22 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: White page right after paying with PayPal express

When using the debug-logging-utility mentioned in this FAQ article, what shows up in the debug logs? https://www.zen-cart.com/tutorials/index.php?article=82

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Mar 2010, 9:50 PM
#4
johnroy avatar

johnroy

New Zenner

Join Date:
Feb 2010
Posts:
13
Plugin Contributions:
0

Re: White page right after paying with PayPal express

Thanks for the quick info but I am missing something ... no log is being added in the cache forlder ...

I do get something different when paying now
The website cannot display the page HTTP 500
Most likely causes:
•The website is under maintenance.
•The website has a programming error.

Then if I go back PayPal says:

Sorry — your last action could not be completed
If you were making a purchase or sending money, we recommend that you check both your PayPal account and your email for a transaction confirmation after 30 minutes.

If you came to this page from another website, please return to that site (don't use your browser's Back button) and restart your activity.

If you came from PayPal's website, click the PayPal logo in the upper-left corner to return to our home page and restart your activity. You might have to log in again.
I did try the configure.php trick and see the red message but cannot see it on paypal of course ...
I also did the installation of the Debug Error-Logging Utility and still no log files ...

I will keep working on it. Let me know if you have more ...

1 Mar 2010, 10:14 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: White page right after paying with PayPal express

Error #500 means "Internal Server Error", and the "reason" for that is as varied as the number of seconds in a day. But the cause will be documented in the server's apache errorlog. You or your hosting company will be able to see the error there. Hopefully they'll have an answer as to the reason behind the cause listed there.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Mar 2010, 10:47 PM
#6
johnroy avatar

johnroy

New Zenner

Join Date:
Feb 2010
Posts:
13
Plugin Contributions:
0

Re: White page right after paying with PayPal express

Thanks again.

I will contact them :)

2 Mar 2010, 3:04 PM
#7
johnroy avatar

johnroy

New Zenner

Join Date:
Feb 2010
Posts:
13
Plugin Contributions:
0

Re: White page right after paying with PayPal express

OK march 2nd, I got a bit further ...

I was able to get a log file, a few, made.

This is what I get
[02-Mar-2010 14:27:50] PHP Fatal error: Unsupported operand types in /home/88888/public_html/88888/includes/functions/functions_taxes.php on line 176

This is what I have on line 176
return zen_round($price * $tax / 100, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);

Any idea ??

Thanks

3 Mar 2010, 6:44 PM
#8
johnroy avatar

johnroy

New Zenner

Join Date:
Feb 2010
Posts:
13
Plugin Contributions:
0

Re: White page right after paying with PayPal express

On March 3 I took everything out and installed the PayPal Pro with IPN only. No Express.

It is working fine for the owner of the store.

It does the job and comes back to the store after the transaction is done.

Pro is just fine and I'm sure it is secure enough.

4 Mar 2010, 5:16 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: White page right after paying with PayPal express

Someone else reported the same thing today, along with what they did to fix it: http://www.zen-cart.com/forum/showthread.php?t=149247

What version of PHP are you using? Perhaps you're using a newer PHP version which is forcing special treatment of variables not previously enforced.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Mar 2010, 12:17 PM
#10
johnroy avatar

johnroy

New Zenner

Join Date:
Feb 2010
Posts:
13
Plugin Contributions:
0

Re: White page right after paying with PayPal express

Thanks for the info but I don't get the fix ...it did not come back as numeric ...

Anyway it is working just fine and it plain vanilla PayPal :)

My friend is very happy.

4 Mar 2010, 12:36 PM
#11
icikite avatar

icikite

New Zenner

Join Date:
Mar 2009
Posts:
69
Plugin Contributions:
0

Re: White page right after paying with PayPal express

Here what I change in function_taxes.php around line 170

// Calculates Tax rounding the result
function zen_calculate_tax($price, $tax) {
global $currencies;
// $result = bcmul($price, $tax, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);
// $result = bcdiv($result, 100, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);
// return $result;
** if ( (is_numeric($tax) == 'true') && ($tax > 0) ) {

return zen_round($price * $tax / 100, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);**    }

}

5 Mar 2010, 4:39 PM
#12
johnroy avatar

johnroy

New Zenner

Join Date:
Feb 2010
Posts:
13
Plugin Contributions:
0

Re: White page right after paying with PayPal express

Thanks for taking the time.

It is well appreciated.