• Resolved clarityconnect

    (@clarityconnect)


    Hello,

    I am using your plugin on a staging site in sandbox mode. I’m testing it for deployment on a live site.

    WP version 4.9.5
    WooCommerce version 3.3.5
    WooCommerce Manual Payment version 1.11.2

    I was able to process a payment – got the Authorize.net sandbox transaction email – however an error message was returned from the plugin:

    “Sorry, there was an unknown error. Please check your PHP log file.”

    Here is the corresponding error from the WooCommerce logs:

    “2018-05-03T14:35:17+00:00 CRITICAL Uncaught Error: Call to a member function getOffsetTimestamp() on null in /home/clarikvl/public_html/virginiapeanutcompany/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:142
    Stack trace:
    #0 /home/clarikvl/public_html/virginiapeanutcompany/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(162): Abstract_WC_Order_Data_Store_CPT->update(Object(WC_Order))
    #1 /home/clarikvl/public_html/virginiapeanutcompany/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(169): WC_Order_Data_Store_CPT->update(Object(WC_Order))
    #2 /home/clarikvl/public_html/virginiapeanutcompany/wp-content/plugins/woocommerce/includes/class-wc-order.php(220): WC_Data_Store->update(Object(WC_Order))
    #3 /home/clarikvl/public_html/virginiapeanutcompany/wp-content/plugins/woocommerce/includes/class-wc-order.php(304): WC_Order->save()
    #4 [internal function]: WC_Order->update_status(‘wc-processing’)
    #5 /home/clarikvl/public_html/virginiapeanutcompany/wp-content/p”

    No payment information was recorded on the order, and the status did not update as per the settings I defined in the plugin.

    Can you provide some insight? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bfl

    (@bfl)

    Hey @clarityconnect. The stack trace is cut off. Could you please provide the rest? Thanks.

    Thread Starter clarityconnect

    (@clarityconnect)

    Hi @bfl

    Sorry about that, the stack trace is cut off in the WC log as well. However, I think I’ve figured out the issue. I think you need to hit the “Create” the order before charging, which makes sense. Once I did that, I was able to process the sandbox transaction, so I’m assuming that the live transaction will work.

    Thanks for the fast reply!

    Thread Starter clarityconnect

    (@clarityconnect)

    Marking as resolved

    Plugin Author bfl

    (@bfl)

    Hey. The plugin should still work properly before the Create button is pressed. This is because every load of the Add new order page actually creates a new order. This means that something else is going wrong here. If you’re interested in fixing this bug, you can provide a WooCommerce system report and I’ll try to reproduce the issue. None of my test sites have this problem, so it must be specific to certain environments.

    Plugin Author bfl

    (@bfl)

    Hey @clarityconnect. I figured out what the problem was. It turned out to be a bug in WooCommerce. I released an update that fixes the issue. You can now process payments on auto-draft orders.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Error’ is closed to new replies.