Title: PHP Error
Last modified: May 3, 2018

---

# PHP Error

 *  Resolved [clarityconnect](https://wordpress.org/support/users/clarityconnect/)
 * (@clarityconnect)
 * [8 years ago](https://wordpress.org/support/topic/php-error-274/)
 * 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](https://wordpress.org/support/users/bfl/)
 * (@bfl)
 * [8 years ago](https://wordpress.org/support/topic/php-error-274/#post-10244537)
 * Hey [@clarityconnect](https://wordpress.org/support/users/clarityconnect/). The
   stack trace is cut off. Could you please provide the rest? Thanks.
 *  Thread Starter [clarityconnect](https://wordpress.org/support/users/clarityconnect/)
 * (@clarityconnect)
 * [8 years ago](https://wordpress.org/support/topic/php-error-274/#post-10247017)
 * Hi [@bfl](https://wordpress.org/support/users/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](https://wordpress.org/support/users/clarityconnect/)
 * (@clarityconnect)
 * [8 years ago](https://wordpress.org/support/topic/php-error-274/#post-10247019)
 * Marking as resolved
 *  Plugin Author [bfl](https://wordpress.org/support/users/bfl/)
 * (@bfl)
 * [8 years ago](https://wordpress.org/support/topic/php-error-274/#post-10248309)
 * 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](https://wordpress.org/support/users/bfl/)
 * (@bfl)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/php-error-274/#post-10288137)
 * Hey [@clarityconnect](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/woo-mp/assets/icon-128x128.png?rev=1596816)
 * [Backend Payments for WooCommerce](https://wordpress.org/plugins/woo-mp/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-mp/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-mp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-mp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-mp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [bfl](https://wordpress.org/support/users/bfl/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/php-error-274/#post-10288137)
 * Status: resolved