I am getting this error on my browser when I press the Submit Order button:
Fatal error: Cannot use object of type stdClass as array in \sites\all\modules\uc_payflowpro\uc_payflowpro.module on line 991
I am using this configuration: Drupal 6.x, Ubercart 6.x-2.0-rc5, UC Payflow Pro 6.x-1.1-beta4. The platform is Windows (PHP5).
Thanks.
Comments
Comment #1
kwinters commentedHmm, this might be a bug in a different module or even some custom code. It looks like that variable is supposed to contain an array and not an object based on the docs.
What payment gateway are you using? Are you implementing hook_calculate_tax in any custom code?
The other possibility is that the taxes module changed the return type, which will be messy. What's the $Id string at the top of your uc_taxes.module?
Comment #2
kamalnsh commentedHere's the $Id from uc_taxes.module file:
$Id: uc_taxes.module,v 1.12.2.17 2009/08/17 21:27:54 islandusurper Exp $
I am using UC Payflow Pro 6.x-1.1-beta4 as the payment gateway which is not working yet. I am hitting the "unable to process your credit card" error for the last 1.5 days and it seems the reason is that the cURL is not able to find the .pem file. I have tried all the different ways of setting the path but everytime I get the same message in the Watchdog table ("Connecting to PayFlow server failed" and "error setting certificate verify location:...)
We have no custom module for computing the tax, however I did configure a Sales Tax rate (added a tax rate). Would that be a problem?
Thanks,
Kamal
Comment #3
kwinters commentedIf you're using IIS, look into this issue for the pem file: #517038: Payment failed for order : Received blank response from the PayFlow Pro gateway.
I'm going to keep looking into the tax part, though.
Comment #4
kwinters commentedThe D6 version of uc_taxes changed the return format from an array of arrays to an array of objects. D5 was unaffected. The D6 version of this module now handles taxes the same way as the main paypal gateway.
It's been that was since Ubercart D6 RC1 or earlier, so it shouldn't be necessary to branch uc_payflowpro to support both formats. Beta 5 released.
Comment #5
kamalnsh commentedThanks for the fix kwinters. I will update to beta5.