If this is your first visit, check our documentation. To post, register or login.

PayPal Express errors

Locked

Started by pezheads on 31 Dec 2006, 3:45 AM · Views: 12,003

Results 1 to 20 of 32
This thread is locked. New replies are disabled.
31 Dec 2006, 3:45 AM
#1
pezheads avatar

pezheads

New Zenner

Join Date:
Dec 2006
Posts:
6
Plugin Contributions:
0

PayPal Express errors

I am trying to upgrade from 1.3.01 to 1.3.8, and in testing a PayPal Express checkout, it's not working. When I click the Checkout with PayPal button, it takes me to a PayPal login page, but when I go to Review my cart, I get the following errors:

Warning: reset(): Passed variable is not an array or object in /home/pezheads/public_html/store2_1/includes/modules/order_total/ot_tax.php on line 38

Warning: Variable passed to each() is not an array or object in /home/pezheads/public_html/store2_1/includes/modules/order_total/ot_tax.php on line 39

Warning: Cannot modify header information - headers already sent by (output started at /home/pezheads/public_html/store2_1/includes/modules/order_total/ot_tax.php:38) in /home/pezheads/public_html/store2_1/includes/functions/functions_general.php on line **44

**Also, when I try to go do a PayPal checkout, on the third checkout page when I click Confirm, it just routes me back to the first page of the checkout.

I don't know what to do to fix this. Any suggestions?

31 Dec 2006, 7:40 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express errors

If you were to install just a fresh, non-upgraded copy of 1.3.7 and do the same tests you did to produce the errors you're reporting, do they appear the same?
If so, can you please detail the exact steps taken? Examples of the products in your cart and which order-total, tax, shipping, etc modules installed would help. A list of mods/contributions added to your site would also help.

I'm guessing this is related to an addon you're using that's related to changes in the order class or the order-total modules.

Oh ... and the configuration settings of each of the switches in your PayPal Express Checkout module would help too.

.
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.

31 Dec 2006, 3:34 PM
#3
hbtrading avatar

hbtrading

New Zenner

Join Date:
Jan 2006
Posts:
82
Plugin Contributions:
0

Re: PayPal Express errors

I'm getting the same error message on a fresh install, using a product priced at $.01 with no mods installed

Watches
Powered by Zen Cart

31 Dec 2006, 11:22 PM
#4
hbtrading avatar

hbtrading

New Zenner

Join Date:
Jan 2006
Posts:
82
Plugin Contributions:
0

Re: PayPal Express errors

The site which im getting the error on is here https://www.hbsavings.com/zen2

Watches
Powered by Zen Cart

31 Dec 2006, 11:40 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,752
Plugin Contributions:
0

Re: PayPal Express errors

What version of php and mysql are installed on your server?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

31 Dec 2006, 11:45 PM
#6
hbtrading avatar

hbtrading

New Zenner

Join Date:
Jan 2006
Posts:
82
Plugin Contributions:
0

Re: PayPal Express errors

PHP Version: 4.4.4 (Zend: 1.3.0)
Database: MySQL 4.1.21-standard

HTTP Server: Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.27 OpenSSL/0.9.7a PHP-CGI/0.1b

Watches
Powered by Zen Cart

1 Jan 2007, 12:07 AM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,752
Plugin Contributions:
0

Re: PayPal Express errors

Oh ... and the configuration settings of each of the switches in your PayPal Express Checkout module would help too.

Do not post your Password or key.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

1 Jan 2007, 1:15 AM
#8
pezheads avatar

pezheads

New Zenner

Join Date:
Dec 2006
Posts:
6
Plugin Contributions:
0

Re: PayPal Express errors

Well, I did an upgrade, and I don't have any tax modules running, and just the USPS shipping module. The only add-ons I have installed are How Did You Hear About Us, Sales Report, and Stock by Attributes.

The products are just things like tshirts that require shipping.

Here's the PayPal Express module settings:

Payment Zone --none--
Set Order Status Processing [2]
**Set Unpaid Order Status **Pending [1]
Set Refund Order Status Pending [1]
Express Checkout: Require Confirmed Address No
Express Checkout: Select Cheapest Shipping Automatically Yes
Express Checkout: Skip Payment Page Yes
Express Checkout: Automatic Account Creation Yes
Payment Action Final Sale
Transaction Currency Only USD
Live or Sandbox: Live

Thanks.

DrByte:

If you were to install just a fresh, non-upgraded copy of 1.3.7 and do the same tests you did to produce the errors you're reporting, do they appear the same?
If so, can you please detail the exact steps taken? Examples of the products in your cart and which order-total, tax, shipping, etc modules installed would help. A list of mods/contributions added to your site would also help.

I'm guessing this is related to an addon you're using that's related to changes in the order class or the order-total modules.

Oh ... and the configuration settings of each of the switches in your PayPal Express Checkout module would help too.

1 Jan 2007, 11:58 PM
#9
hbtrading avatar

hbtrading

New Zenner

Join Date:
Jan 2006
Posts:
82
Plugin Contributions:
0

Re: PayPal Express errors

Still no fix to this problem however PyaPal express seems to be working when I select "NO" in the Skip Payment Page.. anyone ??

Watches
Powered by Zen Cart

2 Jan 2007, 12:01 AM
#10
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,752
Plugin Contributions:
0

Re: PayPal Express errors

If that works use it for now, you do not need the payment page unless you are using coupons or Gift Certificates.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

2 Jan 2007, 12:06 AM
#11
hbtrading avatar

hbtrading

New Zenner

Join Date:
Jan 2006
Posts:
82
Plugin Contributions:
0

Re: PayPal Express errors

No meaning that it does NOT skip the payment page which translates into a longer checkout process for the customer, something I am trying to avoid as much as possible

Watches
Powered by Zen Cart

2 Jan 2007, 2:44 AM
#12
hbtrading avatar

hbtrading

New Zenner

Join Date:
Jan 2006
Posts:
82
Plugin Contributions:
0

Re: PayPal Express errors

Iv'e isolated this problem to the ot_tax module, disabling this module allows it to work properly however it means that now no tax will be charged which is a no no if your have a major online shop.

If anyone knows how to, I would appreciate if they can help.

see this thread here http://www.zen-cart.com/forum/showpost.php?p=308837&postcount=4

Watches
Powered by Zen Cart

2 Jan 2007, 4:14 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: PayPal Express errors

Do you have Tax set on your shipping modules?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Jan 2007, 4:31 AM
#14
hbtrading avatar

hbtrading

New Zenner

Join Date:
Jan 2006
Posts:
82
Plugin Contributions:
0

Re: PayPal Express errors

Yea the taxes are set on all of my shipping modules...are you able to duplicate this problem ?

Watches
Powered by Zen Cart

2 Jan 2007, 4:34 AM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: PayPal Express errors

aha! a clue! ... :smile:

Unfortunately, yes ... I can duplicate this ... :cry:

Fortunately, we are working on it ... :smartass:

Turning off the Tax on the shipping module for the moment will fix the error until we have this resolved ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Jan 2007, 4:48 AM
#16
hbtrading avatar

hbtrading

New Zenner

Join Date:
Jan 2006
Posts:
82
Plugin Contributions:
0

Re: PayPal Express errors

Thanks for letting me know. :)

Watches
Powered by Zen Cart

2 Jan 2007, 4:56 AM
#17
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express errors

If you turn on Debug Log to File in the PayPal Express Checkout module, it will store results of attempted transactions to your /includes/modules/payment/paypal/logs folder ( if it's writable ... otherwise it uses your /cache folder )

When you get errors like "(Transaction refused because of an invalid argument. See additional error messages for details.)" or "(Invalid HTTP Header)", it would be very helpful to be able to see these logs.

There are often 3 files with similar filenames but with some random 5-char extensions on them to prevent snoopers from being able to find and grab these files for inappropriate means. Please share the contents of all similarly-named files for analysis. You may obfuscate some data for privacy purposes, but please change as little as possible.

.
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.

2 Jan 2007, 4:57 AM
#18
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express errors

as to the ot_tax problem ... we're working on it...

.
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.

2 Jan 2007, 8:05 AM
#19
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express errors

FOR TESTING:

The attached paypalwpp.php module file should address the ot_tax PHP errors and also address the reported problem of "Transaction refused because of an invalid argument." (although there are a zillion additional possible reasons for this specific error which may occur separately).

Please upload to /includes/modules/payment and report back on what happens:

NOTE: Updated Jan 19 with additional fixes and relocated.
You can find the latest update here:
http://www.zen-cart.com/forum/showthread.php?t=56216

.
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.

2 Jan 2007, 3:46 PM
#20
hbtrading avatar

hbtrading

New Zenner

Join Date:
Jan 2006
Posts:
82
Plugin Contributions:
0

Re: PayPal Express errors

DrByte:

FOR TESTING:

The attached paypalwpp.php module file should address the ot_tax PHP errors and also address the reported problem of "Transaction refused because of an invalid argument." (although there are a zillion additional possible reasons for this specific error which may occur separately).

Please upload to /includes/modules/payment and report back on what happens:

Thanks DrByte
In my initial testing using the new file everything seems to work.

Watches
Powered by Zen Cart