• Resolved trutechadmin

    (@trutechadmin)


    Hi,

    Everything works fine in sandbox mode, but when not in sandbox mode and after clicking on the “Pay for Order” button, I get the following message:

    “Catchable fatal error: Object of class WC_Product_Attribute could not be converted to string in /home/xxxx/public_html/wp-content/plugins/paypal-for-woocommerce/classes/wc-gateway-calculations-angelleye.php on line 221”

    I enabled logging but couldn’t find the log file in the wc-logs directory.
    I’m using Payments Flow 2.0

    It’s a real head scratcher. Any help would be appreciated.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor angelleye

    (@angelleye)

    We are looking into this. It seems to be related to variable products. The variation data is sometimes returned as a string and other times an object. When it comes back as an object is when it can’t be converted, and that’s what causes this error.

    Can you give me some info about the product(s) you’re working with? What types of variations do you have setup for them?

    Thread Starter trutechadmin

    (@trutechadmin)

    The variable product has 2 attributes: color and brand
    The variation is based on the attribute color.

    There are 4 colors.
    The colors are “Green-Gray”, “Green-Blue”, “Pink-Gray”, “Pink-Blue”

    Plugin Contributor angelleye

    (@angelleye)

    Thanks for the info. We’re looking into this and will get an update pushed ASAP!

    Plugin Contributor angelleye

    (@angelleye)

    We have resolved this in our GitHub repo and will be releasing 1.4.8.7 which includes this fix today.

    Thread Starter trutechadmin

    (@trutechadmin)

    Looks good. I was able to process an order with a real credit card and get to the “Order Complete” page.

    Thanks for all your help.

    Plugin Contributor angelleye

    (@angelleye)

    Awesome! Thanks for letting us know. If you have a moment to leave a review for the plugin that would be greatly appreciated. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Catchable fatal error after “Pay for Order”’ is closed to new replies.