Support » Plugin: WooCommerce Manual Payment » New PHP Fatal Error (version 1.12.1)

  • Resolved vwondra

    (@vwondra)


    Version 1.12.1 fixed the fatal error that was preventing access into the Admin side of WP… but there is another error that gets thrown when trying to process a payment

    PHP Fatal error: Uncaught Error: Call to a member function getOffsetTimestamp() on null in /nas/content/live/trumedic/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:142\nStack trace:\n#0 /nas/content/live/trumedic/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))\n#1 /nas/content/live/trumedic/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(169): WC_Order_Data_Store_CPT->update(Object(WC_Order))\n#2 /nas/content/live/trumedic/wp-content/plugins/woocommerce/includes/class-wc-order.php(220): WC_Data_Store->update(Object(WC_Order))\n#3 /nas/content/live/trumedic/wp-content/plugins/woocommerce/includes/class-wc-order.php(304): WC_Order->save()\n#4 [internal function]: WC_Order->update_status(‘wc-processing’)\n#5 /nas/content/live/trumedic/wp-content/plugins/woo-mp/includes/woo-mp-order.php(51): call_user_func_array(Array, Array)\n#6 /nas/content/live/trumedic/wp-content/plugins/woo in /nas/content/live/trumedic/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php on line 142

    Steps to recreate:
    1. Try to pay for an order with the Manual Payments plugin. (we have it connected to our Authorize.net AIM gateway)
    2. Go down and try to use the Payment section added by the WooCommerce Manual Payments plugin
    3. Upon trying to charge the order you get this error message: https://www.trumedic.com/wp-content/uploads/2018/05/PHP-error.png

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

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

    (@bfl)

    Hey @vwondra. Can you please post a WooCommerce system report? You can find this under WooCommerce > Status > Get system report. Are you by any chance processing a payment on an order that has not been created yet (by pressing the Create button)?

    Thread Starter vwondra

    (@vwondra)

    
    ### WordPress Environment ###
    
    Home URL: https://www.trumedic.com
    Site URL: https://www.trumedic.com
    WC Version: 3.3.5
    Log Directory Writable: ✔
    WP Version: 4.9.5
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.0.28-0ubuntu0.16.04.1
    PHP Post Max Size: 100 MB
    PHP Time Limit: 3600
    PHP Max Input Vars: 1000
    cURL Version: 7.47.0
    OpenSSL/1.0.2g
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.21
    Max Upload Size: 50 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.3.5
    WC Database Prefix: wp_
    Total Database Size: 494.83MB
    Database Data Size: 272.84MB
    Database Index Size: 221.99MB
    wp_woocommerce_sessions: Data: 10.87MB + Index: 0.51MB
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_order_items: Data: 4.09MB + Index: 1.93MB
    wp_woocommerce_order_itemmeta: Data: 13.24MB + Index: 9.51MB
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.01MB
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB
    wp_AnythingPopup: Data: 0.00MB + Index: 0.00MB
    wp_commentmeta: Data: 2.52MB + Index: 3.03MB
    wp_comments: Data: 6.52MB + Index: 9.09MB
    wp_gb_ocu_customers: Data: 0.00MB + Index: 0.00MB
    wp_gb_ocu_funnels: Data: 0.00MB + Index: 0.00MB
    wp_gf_addon_feed: Data: 0.02MB + Index: 0.02MB
    wp_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB
    wp_gf_entry: Data: 0.39MB + Index: 0.11MB
    wp_gf_entry_meta: Data: 0.42MB + Index: 0.75MB
    wp_gf_entry_notes: Data: 0.02MB + Index: 0.03MB
    wp_gf_form: Data: 0.02MB + Index: 0.00MB
    wp_gf_form_meta: Data: 0.02MB + Index: 0.00MB
    wp_gf_form_view: Data: 0.02MB + Index: 0.03MB
    wp_hugeit_slider_slide: Data: 0.00MB + Index: 0.00MB
    wp_hugeit_slider_slider: Data: 0.00MB + Index: 0.00MB
    wp_icl_content_status: Data: 0.00MB + Index: 0.00MB
    wp_icl_core_status: Data: 0.00MB + Index: 0.00MB
    wp_icl_flags: Data: 0.00MB + Index: 0.00MB
    wp_icl_languages: Data: 0.00MB + Index: 0.01MB
    wp_icl_languages_translations: Data: 0.10MB + Index: 0.10MB
    wp_icl_locale_map: Data: 0.00MB + Index: 0.00MB
    wp_icl_message_status: Data: 0.00MB + Index: 0.00MB
    wp_icl_mo_files_domains: Data: 0.02MB + Index: 0.01MB
    wp_icl_node: Data: 0.00MB + Index: 0.00MB
    wp_icl_reminders: Data: 0.00MB + Index: 0.00MB
    wp_icl_strings: Data: 3.62MB + Index: 3.10MB
    wp_icl_string_packages: Data: 0.00MB + Index: 0.00MB
    wp_icl_string_pages: Data: 0.00MB + Index: 0.00MB
    wp_icl_string_positions: Data: 0.00MB + Index: 0.00MB
    wp_icl_string_status: Data: 0.00MB + Index: 0.00MB
    wp_icl_string_translations: Data: 9.68MB + Index: 3.96MB
    wp_icl_string_urls: Data: 0.00MB + Index: 0.00MB
    wp_icl_translate: Data: 0.28MB + Index: 0.01MB
    wp_icl_translate_job: Data: 0.00MB + Index: 0.00MB
    wp_icl_translations: Data: 2.62MB + Index: 5.44MB
    wp_icl_translation_batches: Data: 0.00MB + Index: 0.00MB
    wp_icl_translation_status: Data: 0.26MB + Index: 0.04MB
    wp_imagify_files: Data: 0.02MB + Index: 0.08MB
    wp_imagify_folders: Data: 0.02MB + Index: 0.03MB
    wp_links: Data: 0.00MB + Index: 0.00MB
    wp_options: Data: 3.34MB + Index: 0.13MB
    wp_postmeta: Data: 138.66MB + Index: 119.36MB
    wp_posts: Data: 17.44MB + Index: 11.03MB
    wp_redirection_404: Data: 0.88MB + Index: 0.31MB
    wp_redirection_groups: Data: 0.00MB + Index: 0.00MB
    wp_redirection_items: Data: 0.04MB + Index: 0.05MB
    wp_redirection_logs: Data: 0.07MB + Index: 0.03MB
    wp_revslider_static_slides: Data: 0.00MB + Index: 0.00MB
    wp_rg_form: Data: 0.00MB + Index: 0.00MB
    wp_rg_form_meta: Data: 0.01MB + Index: 0.00MB
    wp_rg_form_view: Data: 0.02MB + Index: 0.03MB
    wp_rg_incomplete_submissions: Data: 0.00MB + Index: 0.00MB
    wp_rg_lead: Data: 0.19MB + Index: 0.03MB
    wp_rg_lead_detail: Data: 0.17MB + Index: 0.36MB
    wp_rg_lead_detail_long: Data: 0.00MB + Index: 0.00MB
    wp_rg_lead_meta: Data: 0.04MB + Index: 0.03MB
    wp_rg_lead_notes: Data: 0.00MB + Index: 0.00MB
    wp_rg_zapier: Data: 0.00MB + Index: 0.00MB
    wp_slp_extendo_meta: Data: 0.00MB + Index: 0.00MB
    wp_store_locator: Data: 0.01MB + Index: 0.01MB
    wp_termmeta: Data: 0.02MB + Index: 0.02MB
    wp_terms: Data: 0.06MB + Index: 0.10MB
    wp_term_relationships: Data: 0.06MB + Index: 0.12MB
    wp_term_taxonomy: Data: 0.06MB + Index: 0.06MB
    wp_usermeta: Data: 49.59MB + Index: 45.16MB
    wp_users: Data: 3.52MB + Index: 4.55MB
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB
    wp_wc_webhooks: Data: 0.01MB + Index: 0.01MB
    wp_wpmm_subscribers: Data: 0.00MB + Index: 0.00MB
    wp_wsal_metadata: Data: 3.02MB + Index: 2.02MB
    wp_wsal_occurrences: Data: 0.30MB + Index: 0.25MB
    wp_wsal_options: Data: 0.02MB + Index: 0.00MB
    wp_yoast_seo_links: Data: 0.05MB + Index: 0.01MB
    wp_yoast_seo_meta: Data: 0.47MB + Index: 0.48MB
    
    ### Post Type Counts ###
    
    aoc_popup: 5
    attachment: 2416
    br_product_tab: 1
    fl-builder-template: 26
    fl-theme-layout: 11
    jetpack_migration: 2
    nav_menu_item: 57
    oembed_cache: 7
    page: 61
    post: 94
    product: 151
    product_variation: 11
    shop_coupon: 34
    shop_order: 25965
    shop_order_refund: 1593
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (65) ###
    
    Gravity Forms: by rocketgenius – 2.3.1
    Smart Layers by AddThis: by The AddThis Team – 3.1.2
    AMP Analytics: by Valet – 0.0.2
    AMP Related Posts: by Nick van de Veerdonk – 2.2
    AMP: by WordPress.com VIP
    XWP
    Google
    and contributors – 0.7.0
    
    Beaver Builder Plugin (Agency Version): by The Beaver Builder Team – 2.1.1.2
    Beaver Themer: by The Beaver Builder Team – 1.1.1
    PowerPack for Beaver Builder: by Team IdeaBox - Beaver Addons – 2.6.1
    BBS Team: by The BBS Agency – 0.1
    Better Search Replace: by Delicious Brains – 1.3.2
    Criteo OneTag for WooCommerce: by Criteo – 1.3.2 – Not tested with the active version of WooCommerce
    Duplicate Page: by mndpsingh287 – 2.6
    Google Tag Manager for WordPress: by Thomas Geiger – 1.7.2
    FooSales: by FooSales – 1.5.0 – Not tested with the active version of WooCommerce
    WooCommerce 1 Click Upsells & Downsells: by WooCurve – 1.5.0 – Not tested with the active version of WooCommerce
    Genesis Connect for WooCommerce: by StudioPress – 0.9.10 – Not tested with the active version of WooCommerce
    Genesis Dambuster: by Russell Jamieson – 1.7
    Genesis Simple Hooks: by StudioPress – 2.2.1
    Gravity Forms Klaviyo Add-On: by EFE Technology – 1.0
    Glue for Yoast SEO & AMP: by Joost de Valk – 0.4.3
    Gravity Forms Zapier Add-on: by rocketgenius – 2.1
    Imagify: by WP Media – 1.7.1.3
    Justuno Social Offers: by Justuno – 1.3
    Klaviyo for WooCommerce: by Klaviyo
    Inc. – 1.0.4 – Not tested with the active version of WooCommerce
    
    Klaviyo: by Klaviyo – 1.3.2
    Lucky Orange | Chat, heatmaps, polls, visitor recordings, live analytics.: by LuckyOrange.com – 1.97
    Members: by Justin Tadlock – 2.1.0
    Metorik Helper: by Metorik – 0.15.0
    Phone Orders for WooCommerce: by AlgolPlus – 2.6.5
    Redirection: by John Godley – 3.2
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.0.2
    Sales Pop: by Beeketing – 1.2.0 – Not tested with the active version of WooCommerce
    Schema App Structured Data: by Hunch Manifest – 1.9.10
    Schema App WooCommerce: by Hunch Manifest – 1.3.1 – Not tested with the active version of WooCommerce
    ShiftNav - Responsive Mobile Menu: by Chris Mavricos
    SevenSpark – 1.6.2
    
    Store Locator Plus: by Store Locator Plus – 4.9.14
    TaxJar - Sales Tax Automation for WooCommerce: by TaxJar – 1.6.1
    TinyMCE Advanced: by Andrew Ozz – 4.6.7
    Twist - Product Gallery Slider for Woocommerce: by Niloy Sarker – 2.0.5 – Not tested with the active version of WooCommerce
    User Switching: by John Blackbourn – 1.3.0
    Video User Manuals: by Video User Manuals Pty Ltd – 2.5.7.2
    Visual Website Optimizer: by Andy Bailey – 2.5
    WC Speed Drain Repair: by WP Fix It – 1.2 – Not tested with the active version of WooCommerce
    WooCommerce Product Feed Pro: by WebAppick – 2.2.4
    White Label CMS: by www.videousermanuals.com – 1.6.2
    Advanced Order Export For WooCommerce: by AlgolPlus – 1.5.4
    WooCommerce Colors: by WooThemes – 1.0.7 – Not tested with the active version of WooCommerce
    WooCommerce Conversion Tracking: by Tareq Hasan – 2.0 – Not tested with the active version of WooCommerce
    WooCommerce Currency Switcher: by realmag777 – 1.2.4
    WooCommerce Expand Tabs: by Diana Burduja – 1.7
    WooCommerce Authorize.Net AIM Gateway: by SkyVerge – 3.13.0 – 3.14.1 is available
    WooCommerce Google Analytics Integration: by WooCommerce – 1.4.4
    WooCommerce Menu Cart: by Jeremiah Prummer
    Ewout Fernhout – 2.7.0
    
    WooCommerce Menu Extension: by August Infotech – 1.6 – Not tested with the active version of WooCommerce
    WooCommerce POS: by kilbot – 0.4.18
    WooCommerce - ShipStation Integration: by WooCommerce – 4.1.19
    WooCommerce - Store Toolkit: by Visser Labs – 1.7.9
    WooCommerce: by Automattic – 3.3.5
    WordPress Importer: by wordpressdotorg – 0.6.4
    Yoast SEO Premium: by Team Yoast – 6.0
    WP Maintenance Mode: by Designmodo – 2.1.2
    WP Rocket: by WP Media – 3.0.4
    WP Security Audit Log: by WP White Security – 3.1.7
    Custom Product Tabs for WooCommerce: by YIKES
    Inc. – 1.6.4 – Not tested with the active version of WooCommerce
    
    Yotpo Social Reviews for Woocommerce: by Yotpo – 1.1.7 – Not tested with the active version of WooCommerce
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: ✔
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #64623 - /shop/
    Cart: #64624 - /cart/
    Checkout: #64625 - /checkout/
    My account: #64626 - /my-account/
    Terms and conditions: #64332 - /terms-of-service/
    
    ### Theme ###
    
    Name: Dynamik-Gen
    Version: 2.3.4
    Author URL: https://cobaltapps.com/
    Child Theme: ✔
    Parent Theme Name: Genesis
    Parent Theme Version: 2.6.1
    Parent Theme Author URL: https://www.studiopress.com/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Templates ###
    
    thumbnail: 
    medium: 
    medium_large: 
    large: 
    custom-thumb-1: 
    custom-thumb-2: 
    custom-thumb-3: 
    woocommerce_thumbnail: 
    woocommerce_single: 
    woocommerce_gallery_thumbnail: 
    shop_catalog: 
    shop_single: 
    shop_thumbnail: 
    
    ### Authorize.Net AIM ###
    
    Environment: Production
    Debug Mode: Off
    
    Thread Starter vwondra

    (@vwondra)

    It was for a new order that we was in the process of being created.

    Plugin Author bfl

    (@bfl)

    That might be the issue. Someone else was having the same problem and they fixed it by creating the order. However I don’t have this issue on any of my test sites, so it must be something that depends on the environment. I might be able to figure it out from the information in the system report. Thanks.

    Thread Starter vwondra

    (@vwondra)

    It does work after saving the order. Is there a way to prevent the payment section from working until AFTER the order has been saved?

    Plugin Author bfl

    (@bfl)

    Hey @vwondra. I figured out what the problem is. It turned out to be a bug in WooCommerce. As of now, the fix is scheduled to be released in WooCommerce 3.4.0. I will be releasing an update soon that will get around the problem if a user is on a WooCommerce version lower than 3.4.0.

    Thread Starter vwondra

    (@vwondra)

    @bfl That’s awesome that you found that. Great work!

    Plugin Author bfl

    (@bfl)

    Hey @vwondra. I released an update that fixes the issue. You can now process payments on auto-draft orders.

    Thread Starter vwondra

    (@vwondra)

    Awesome! Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘New PHP Fatal Error (version 1.12.1)’ is closed to new replies.