Support » Plugin: Sliced Invoices - WordPress Invoice Plugin » PHP Error during checkout

  • Resolved inspired888

    (@inspired888)


    Hi folks,

    I notice that during checkout finalisation, the following error appears in the error logs.

    
    2018/04/05 17:16:26 [error] 1507#1507: *3932 FastCGI sent in stderr: "PHP message: billing_email was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Sliced_Invoices->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_quote'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_Quote->trigger, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    PHP message: order_date was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Sliced_Invoices->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_quote'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_Quote->trigger, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0" while reading response header from upstream, client: 125.236.177.225, server: www.SANITISED.com.au, request: "POST /?wc-ajax=checkout HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "www.by
    2018/04/05 17:16:30 [error] 1507#1507: *3932 FastCGI sent in stderr: "PHP message: billing_email was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Sliced_Invoices->process_payment, WC_Sliced_Invoices->customer_quote, WC_Email_Customer_Quote->trigger, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    PHP message: order_date was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Sliced_Invoices->process_payment, WC_Sliced_Invoices->customer_quote, WC_Email_Customer_Quote->trigger, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    PHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hoo" while reading upstream, client: 125.236.177.225, server: www.SANITISED.com.au, request: "POST /?wc-ajax=checkout HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "www.SANITISED.com.au", referrer: "https://www.SANITISED.com.au/quote-invoice-request/"
    2018/04/05 17:16:30 [error] 1507#1507: *3932 FastCGI sent in stderr: "k->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Sliced_Invoices->process_payment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0" while reading upstream, client: 125.236.177.225, server: www.SANITISED.com.au, request: "POST /?wc-ajax=checkout HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "www.SANITISED.com.au", referrer: "https://www.SANITISED.com.au/quote-invoice-request/"
    

    It appears to be caused by woo-invoices.

    • This topic was modified 1 year, 7 months ago by inspired888.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support Andrea Whitmer

    (@nutsandboltsmedia)

    Sorry you’re having trouble! Can you confirm whether debugging is set to “true” in your wp-config.php file? If not, you might ask your host whether strict standards are turned on for your server. What PHP version are you using?

    Hi Andrea,

    WP_DEBUG is set to false.

    The server is a VM. Unless strict standards are on by default, I’ve not turned them on. But I’ll double check they are off.

    It’s on PHP 7.1.15

    Is the plug-in coded for 7.1 and/or 7.2 compatibility?

    Looks like E_STRICT is off…
    E_ALL & ~E_DEPRECATED & ~E_STRICT

    Plugin Support Andrea Whitmer

    (@nutsandboltsmedia)

    Thanks for confirming. The plugin is compatible with PHP 7.0+ so that shouldn’t be the issue. Let me flag this for our developer and we’ll check into this further for you. Can you paste in your system information from Sliced Invoices > Tools > System Info to help us with troubleshooting?

    Thanks for checking into it.
    I am not willing to post sensitive information into a public forum. If you need an un-sanitised version of this report, please advise how I can send it to you privately. Thanks.

    ### Begin System Info ###
    
    /////-- Site Info
    
    Site URL:                 https://www.SANITISED.com.au
    Home URL:                 http://www.SANITISED.com.au
    Multisite:                No
    
    /////-- Hosting Provider
    
    Host:                     DBH: localhost, SRV: www.SANITISED.com.au
    
    /////-- User Browser
    
    Platform:                 Apple 
    Browser Name:             Chrome  
    Browser Version:          65.0.3325.181 
    User Agent String:        Mozilla/5.0 (Macintosh; Intel Ma 
    			  c OS X 10_12_6) AppleWebKit/537.
                              36 (KHTML, like Gecko) Chrome/65
                              .0.3325.181 Safari/537.36
                              
    /////-- WordPress Configuration
    
    Version:                  4.9.5
    Language:                 en_US
    Permalink Structure:      /%postname%/
    Active Theme:             SANITISED 1.0
    Show On Front:            page
    Page On Front:            Welcome to SANITISED (#12)
    Page For Posts:           Unset
    Remote Post:              wp_remote_post() works
    Table Prefix:             Length: 7   Status: Acceptable
    WP_DEBUG:                 Disabled
    Memory Limit:             256M
    Registered Post Status:   publish, future, draft, pending, private, trash, auto-draft, inherit, wc-quote, wc-invoice, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed
    
    /////-- Sliced Invoices Configuration
    
    Version:                  3.7.1
    
    General Settings:         
    year_start:					07
    year_end:					06
    pre_defined:					
    1 | Web Design | 85 | Design work on the website
    1 | Web Development | 95 | Back end development of website
    footer:					Thanks for choosing <a href="http://www.SANITISED.com.au">SANITISED</a> | <a href="mailto:info@SANITISED.com.au">info@SANITISED.com.au</a>
    db_version:					7
    
    Payment Settings:         
    currency_symbol:					AU$
    currency_pos:					left
    thousand_sep:					,
    decimal_sep:					.
    decimals:					2
    tax:					15
    tax_name:					GST
    payment_page:					636
    paypal_currency:					AUD
    paypal_mode:					sandbox
    footer:					***PLEASE NOTE - This is not your official invoice for tax purposes. Your official Tax Invoice will be emailed separately.***
    
    Thanks for choosing <a href="http://www.SANITISED.com.au">SANITISED</a> | <a href="mailto:info@SANITISED.com.au">info@SANITISED.com.au</a>
    bank:					
    If you wish to pay via Credit Card, we accept Visa, Mastercard and American Express. Please note a 1.9% Merchant Fee applies. Refer to your emailed invoice copy for payment instructions.
    
    ***PLEASE NOTE - This is not your official invoice for tax purposes. Your official Tax Invoice will be emailed separately.***
    
    Invoices Settings:         
    terms:					Payment is due within 7 days from date of invoice.
    css:					body {}
    number:					0001
    prefix:					INV-
    increment:					on
    template:					template1
    footer:					Thanks for choosing <a href="http://www.SANITISED.com.au">SANITISED</a> | <a href="mailto:info@SANITISED.com.au">info@SANITISED.com.au</a>
    due_date:					7
    
    Quotes Settings:         
    css:					body {}
    number:					0001
    prefix:					QUO-
    increment:					on
    template:					template1
    accept_quote_text:					**Please Note: After accepting this Quote an Invoice will be automatically generated. This will then become a legally binding contract.
    accepted_quote_action:					convert
    footer:					Thanks for choosing <a href="http://www.SANITISED.com.au">SANITISED</a> | <a href="mailto:info@SANITISED.com.au">info@SANITISED.com.au</a>
    adjustment:					on
    valid_until:					7
    
    Email Settings:         
    from:					info@SANITISED.com.au
    name:					SANITISED
    bcc:					on
    footer:					Copyright 2018. SANITISED
    quote_available_subject:					New quote %number% available
    invoice_available_subject:					New invoice %number% available
    payment_received_client_subject:					Thanks for your payment!
    payment_reminder_subject:					A friendly reminder
    quote_available_content:					Hi %client_first_name%,
    
    							You have a new quote available ( %number% ) which can be viewed at %link%.<br>
    invoice_available_content:					Hi %client_first_name%,
    
    							You have a new invoice available ( %number% ) which can be viewed at %link%.<br>
    payment_received_client_content:					Thanks for your payment, %client_first_name%.
    
    Your recent payment for %total% on invoice %number% has been successful.<br>
    payment_reminder_content:					Hi %client_first_name%,
    
    Just a friendly reminder that your invoice %number% for %total% %is_was% due on %due_date%.
    quote_available_button:					View this quote online
    invoice_available_button:					View this invoice online
    
    /////-- Must-Use Plugins
    
    Health Check Disable Plugins: 1.3
    
    /////-- WordPress Active Plugins
    
    Admin Columns: 3.1.5
    Advanced Custom Fields: 4.4.12
    Autoptimize: 2.3.4
    Better Plugin Compatibility Control: 4.9.0
    Booster for WooCommerce: 3.5.0
    Booster Plus for WooCommerce: 3.5.0
    Conditional Tags Shortcode: 0.2
    Contact Form 7: 5.0.1
    Divi Booster: 2.7.1
    Email Log: 2.2.5
    Envato Market: 2.0.0
    Health Check: 1.0.1
    If Menu: 0.8.3
    Nginx Cache: 1.0.3
    Post SMTP: 1.8.3
    Preloader: 1.0.9
    Redis Object Cache: 1.3.8
    Server Status: 1.2.9
    Sliced Invoices: 3.7.1
    Temporary Login Without Password: 1.5.6
    TinyMCE Advanced: 4.6.7
    UpdraftPlus - Backup/Restore: 1.14.5
    Widget Logic: 5.9.0
    WooCommerce: 3.3.4
    WooCommerce Product Table: 2.1.2
    WooCommerce WooCart Pro: 2.5.1
    WooCommerce Xero Integration: 1.7.10
    Woo Invoices: 1.1.1
    WP All Export Pro: 1.5.2
    WP All Import - WooCommerce Add-On Pro: 2.3.9
    WP All Import Pro: 4.5.1
    WP Crontrol: 1.6.2
    WP Server Stats: 1.6.1
    
    /////-- WordPress Inactive Plugins
    
    ACF for Woocommerce: 3.2.5
    Advanced AJAX Product Filters for WooCommerce: 1.2.4
    Cron Test: 1.0
    eDS Responsive Menu: 1.2
    Heartbeat Control: 1.2.3
    Jetpack by WordPress.com: 6.0
    JustFade: 1.0.5
    Product Catalog: 4.3.8
    Quickster: 0.7
    Quotes for WooCommerce: 1.3
    RegistrationMagic: 3.8.2.0
    WooCommerce Bulk Order Form: 2.2.1
    WOOF - WooCommerce Products Filter: 1.2.0
    WOO Product Table: 1.1
    WP Super Cache: 1.5.9
    XCloner - Site Backup and Restore: 4.0.7
    XCloner Google Drive: 1.0.2
    
    /////-- Webserver Configuration
    
    PHP Version:              7.1.15-1+ubuntu16.04.1+deb.sury.org+2
    MySQL Version:            5.5.5
    Webserver Info:           nginx/1.13.6
    
    /////-- PHP Configuration
    
    Safe Mode:                Disabled
    Memory Limit:             256M
    Upload Max Size:          64M
    Post Max Size:            64M
    Upload Max Filesize:      64M
    Time Limit:               0
    Max Input Vars:           1000
    Display Errors:           N/A
    
    /////-- PHP Extensions
    
    cURL:                     Supported
    fsockopen:                Supported
    SOAP Client:              Not Installed
    Suhosin:                  Not Installed
    Mbstring:                  Not Installed
    
    /////-- Session Configuration
    
    Session:                  Disabled
    
    ### End System Info ###
    Plugin Author SlicedInvoices

    (@slicedinvoices)

    Hi there,

    The information you provided is enough, thanks! I was able to reproduce the notices shown in your error logs. As long as these are only appearing in your log and not being output to the browser, they are harmless and won’t interfere with any functionality. That said, we definitely want to clean them up. We will fix these in the next update of Woo Invoices. For further info see here: https://github.com/sliced-invoices/woo-invoices/commit/ec29f8f93591fab530976c543b4ebf7d80c772c2

    Thanks for bringing these to our attention.

    Best regards,
    David

    There’s another issue occurring, which I might as well post here in my existing thread.

    When I have a plug-in called “ACF for Woocommerce” active, and I use the Sliced Invoice quotation checkout / payment option, the finalise order breaks. The order still goes through on the back end, but on the front end I get a white page with the following code appearing:

    #0 WC_Sliced_Invoices->customer_quote(WC_Order Object ([*status_transition] => ,[*data] => Array ([parent_id] => 0,[status] => quote,[currency] => AUD,[version] => 3.3.4,[prices_include_tax] => ,[date_created] => WC_DateTime Object ([*utc_offset] => 28800,[date] => 2018-04-08 06:35:03.000000,[timezone_type] => 1,[timezone] => +00:00),[date_modified] => WC_DateTime Object ([*utc_offset] => 28800,[date] => 2018-04-08 06:35:03.000000,[timezone_type] => 1,[timezone] => +00:00),[discount_total] => 0,[discount_tax] => 0,[shipping_total] => 18.18,[shipping_tax] => 0,[cart_tax] => 0,[total] => 48.18,[total_tax] => 0,[customer_id] => 37,[order_key] => wc_order_5ac9b8171ccc2,[billing] => Array ([first_name] => Jonathan,[last_name] => SANITISED,[company] => Test Company[address_1] => 21 The Street,[address_2] => ,[city] => Auckland,[state] => AK,[postcode] => 1111,[country] => NZ,[email] => SANITISED,[phone] => 4447778888),[shipping] => Array ([first_name] => Jonathan,[last_name] => SANITISED,[company] => Test Company,[address_1] => 21 The Street,[address_2] => ,[city] => Auckland,[state] => AK,[postcode] => 1111,[country] => NZ),[payment_method] => sliced-invoices,[payment_method_title] => Request Quotation,[transaction_id] => ,[customer_ip_address] => 125.236.176.217,[customer_user_agent] => mozilla/5.0 (macintosh; intel mac os x 10_12_6) applewebkit/537.36 (khtml, like gecko) chrome/65.0.3325.181 safari/537.36,[created_via] => checkout,[customer_note] => ,[date_completed] => ,[date_paid] => ,[cart_hash] => 02b919c26c04f5510a8eab2567b4b20a),[*items] => Array ([line_items] => Array ([126] => WC_Order_Item_Product Object ([*extra_data] => Array ([product_id] => 0,[variation_id] => 0,[quantity] => 1,[tax_class] => ,[subtotal] => 0,[subtotal_tax] => 0,[total] => 0,[total_tax] => 0,[taxes] => Array ([subtotal] => Array (),[total] => Array ())),[*data] => Array ([order_id] => 8604,[name] => Test Product - DO NOT DELETE,[product_id] => 8485,[variation_id] => 0,[quantity] => 1,[tax_class] => ,[subtotal] => 30,[subtotal_tax] => 0,[total] => 30,[total_tax] => 0,[taxes] => Array ([total] => Array (),[subtotal] => Array ())),[*cache_group] => order-items,[*meta_type] => order_item,[*object_type] => order_item,[*id] => 126,[*changes] => Array (),[*object_read] => 1,[*default_data] => Array ([order_id] => 0,[name] => ,[product_id] => 0,[variation_id] => 0,[quantity] => 1,[tax_class] => ,[subtotal] => 0,[subtotal_tax] => 0,[total] => 0,[total_tax] => 0,[taxes] => Array ([subtotal] => Array (),[total] => Array ())),[*data_store] => WC_Data_Store Object ([WC_Data_Storeinstance] => WC_Order_Item_Product_Data_Store Object ([*internal_meta_keys] => Array ([0] => _order_id,[1] => _name,[2] => _product_id,[3] => _variation_id,[4] => _quantity,[5] => _tax_class,[6] => _subtotal,[7] => _subtotal_tax,[8] => _total,[9] => _total_tax,[10] => _taxes,[11] => _product_id,[12] => _variation_id,[13] => _qty,[14] => _tax_class,[15] => _line_subtotal,[16] => _line_subtotal_tax,[17] => _line_total,[18] => _line_tax,[19] => _line_tax_data),[*meta_type] => order_item,[*object_id_field_for_meta] => order_item_id),[WC_Data_Storestores] => Array ([coupon] => WC_Coupon_Data_Store_CPT,[customer] => WC_Customer_Data_Store,[customer-download] => WC_Customer_Download_Data_Store,[customer-download-log] => WC_Customer_Download_Log_Data_Store,[customer-session] => WC_Customer_Data_Store_Session,[order] => WC_Order_Data_Store_CPT,[order-refund] => WC_Order_Refund_Data_Store_CPT,[order-item] => WC_Order_Item_Data_Store,[order-item-coupon] => WC_Order_Item_Coupon_Data_Store,[order-item-fee] => WC_Order_Item_Fee_Data_Store,[order-item-product] => WC_Order_Item_Product_Data_Store,[order-item-shipping] => WC_Order_Item_Shipping_Data_Store,[order-item-tax] => WC_Order_Item_Tax_Data_Store,[payment-token] => WC_Payment_Token_Data_Store,[product] => WC_Product_Data_Store_CPT,[product-grouped] => WC_Product_Grouped_Data_Store_CPT,[product-variable] => WC_Product_Variable_Data_Store_CPT,[product-variation] => WC_Product_Variation_Data_Store_CPT,[shipping-zone] => WC_Shipping_Zone_Data_Store,[webhook] => WC_Webhook_Data_Store),[WC_Data_Storecurrent_class_name] => WC_Order_Item_Product_Data_Store,[WC_Data_Storeobject_type] => order-item-product),[*meta_data] => Array ()))),[*items_to_delete] => Array (),[*cache_group] => orders,[*data_store_name] => order,[*object_type] => order,[*id] => 8604,[*changes] => Array (),[*object_read] => 1,[*extra_data] => Array (),[*default_data] => Array ([parent_id] => 0,[status] => ,[currency] => ,[version] => ,[prices_include_tax] => ,[date_created] => ,[date_modified] => ,[discount_total] => 0,[discount_tax] => 0,[shipping_total] => 0,[shipping_tax] => 0,[cart_tax] => 0,[total] => 0,[total_tax] => 0,[customer_id] => 0,[order_key] => ,[billing] => Array ([first_name] => ,[last_name] => ,[company] => ,[address_1] => ,[address_2] => ,[city] => ,[state] => ,[postcode] => ,[country] => ,[email] => ,[phone] => ),[shipping] => Array ([first_name] => ,[last_name] => ,[company] => ,[address_1] => ,[address_2] => ,[city] => ,[state] => ,[postcode] => ,[country] => ),[payment_method] => ,[payment_method_title] => ,[transaction_id] => ,[customer_ip_address] => ,[customer_user_agent] => ,[created_via] => ,[customer_note] => ,[date_completed] => ,[date_paid] => ,[cart_hash] => ),[*data_store] => WC_Data_Store Object ([WC_Data_Storeinstance] => WC_Order_Data_Store_CPT Object ([*internal_meta_keys] => Array ([0] => _parent_id,[1] => _status,[2] => _currency,[3] => _version,[4] => _prices_include_tax,[5] => _date_created,[6] => _date_modified,[7] => _discount_total,[8] => _discount_tax,[9] => _shipping_total,[10] => _shipping_tax,[11] => _cart_tax,[12] => _total,[13] => _total_tax,[14] => _customer_id,[15] => _order_key,[16] => _billing,[17] => _shipping,[18] => _payment_method,[19] => _payment_method_title,[20] => _transaction_id,[21] => _customer_ip_address,[22] => _customer_user_agent,[23] => _created_via,[24] => _customer_note,[25] => _date_completed,[26] => _date_paid,[27] => _cart_hash,[28] => _customer_user,[29] => _order_key,[30] => _order_currency,[31] => _billing_first_name,[32] => _billing_last_name,[33] => _billing_company,[34] => _billing_address_1,[35] => _billing_address_2,[36] => _billing_city,[37] => _billing_state,[38] => _billing_postcode,[39] => _billing_country,[40] => _billing_email,[41] => _billing_phone,[42] => _shipping_first_name,[43] => _shipping_last_name,[44] => _shipping_company,[45] => _shipping_address_1,[46] => _shipping_address_2,[47] => _shipping_city,[48] => _shipping_state,[49] => _shipping_postcode,[50] => _shipping_country,[51] => _completed_date,[52] => _paid_date,[53] => _edit_lock,[54] => _edit_last,[55] => _cart_discount,[56] => _cart_discount_tax,[57] => _order_shipping,[58] => _order_shipping_tax,[59] => _order_tax,[60] => _order_total,[61] => _payment_method,[62] => _payment_method_title,[63] => _transaction_id,[64] => _customer_ip_address,[65] => _customer_user_agent,[66] => _created_via,[67] => _order_version,[68] => _prices_include_tax,[69] => _date_completed,[70] => _date_paid,[71] => _payment_tokens,[72] => _billing_address_index,[73] => _shipping_address_index,[74] => _recorded_sales,[75] => _recorded_coupon_usage_counts,[76] => _download_permissions_granted,[77] => _order_stock_reduced),[*meta_type] => post,[*object_id_field_for_meta] => ),[WC_Data_Storestores] => Array ([coupon] => WC_Coupon_Data_Store_CPT,[customer] => WC_Customer_Data_Store,[customer-download] => WC_Customer_Download_Data_Store,[customer-download-log] => WC_Customer_Download_Log_Data_Store,[customer-session] => WC_Customer_Data_Store_Session,[order] => WC_Order_Data_Store_CPT,[order-refund] => WC_Order_Refund_Data_Store_CPT,[order-item] => WC_Order_Item_Data_Store,[order-item-coupon] => WC_Order_Item_Coupon_Data_Store,[order-item-fee] => WC_Order_Item_Fee_Data_Store,[order-item-product] => WC_Order_Item_Product_Data_Store,[order-item-shipping] => WC_Order_Item_Shipping_Data_Store,[order-item-tax] => WC_Order_Item_Tax_Data_Store,[payment-token] => WC_Payment_Token_Data_Store,[product] => WC_Product_Data_Store_CPT,[product-grouped] => WC_Product_Grouped_Data_Store_CPT,[product-variable] => WC_Product_Variable_Data_Store_CPT,[product-variation] => WC_Product_Variation_Data_Store_CPT,[shipping-zone] => WC_Shipping_Zone_Data_Store,[webhook] => WC_Webhook_Data_Store),[WC_Data_Storecurrent_class_name] => WC_Order_Data_Store_CPT,[WC_Data_Storeobject_type] => order),[*meta_data] => Array ([0] => WC_Meta_Data Object ([*current_data] => Array ([id] => 318500,[key] => _billing_abn,[value] => 6666666666),[*data] => Array ([id] => 318500,[key] => _billing_abn,[value] => 6666666666))))) called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-content/plugins/woo-invoices/woo-invoices.php:376] #1 WC_Sliced_Invoices->process_payment(8604) called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:804] #2 WC_Checkout->process_order_payment(8604, sliced-invoices) called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:986] #3 WC_Checkout->process_checkout() called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:312] #4 WC_Form_Handler::checkout_action() called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-includes/class-wp-hook.php:286] #5 WP_Hook->apply_filters(, Array ([0] => )) called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-includes/class-wp-hook.php:310] #6 WP_Hook->do_action(Array ([0] => )) called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-includes/plugin.php:453] #7 do_action(wp_loaded) called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-settings.php:471] #8 require_once(/home/SANITISED/sites/SANITISED.com.au/public/wp-settings.php) called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-config.php:99] #9 require_once(/home/SANITISED/sites/SANITISED.com.au/public/wp-config.php) called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-load.php:37] #10 require_once(/home/SANITISED/sites/SANITISED.com.au/public/wp-load.php) called at [/home/SANITISED/sites/SANITISED.com.au/public/wp-blog-header.php:13] #11 require(/home/SANITISED/sites/SANITISED.com.au/public/wp-blog-header.php) called at [/home/SANITISED/sites/SANITISED.com.au/public/index.php:17]

    Any idea what might be the issue?

    Is there any chance it’s something that can be corrected in Sliced Invoices, or is this likely to be 100% the fault of the other plug-in I’ve mentioned?

    The issue doesn’t occur if I use a different payment method, other than the Quotation one I set up for Sliced Invoice.

    • This reply was modified 1 year, 7 months ago by inspired888.
    • This reply was modified 1 year, 7 months ago by inspired888.
    • This reply was modified 1 year, 7 months ago by inspired888.
    Plugin Author SlicedInvoices

    (@slicedinvoices)

    You’re right, and this one is our fault. I’ll make sure this is fixed as well in the next update of Woo Invoices. Sorry for any inconvenience.

    -David

    Plugin Author SlicedInvoices

    (@slicedinvoices)

    I went ahead and pushed out that update now. If you update to Woo Invoices v1.1.2 it should be fixed.

    -David

    Thanks David. I’m very glad to hear this was a Sliced Invoices issue, as the other (paid for) plug-in so far as very poor support. 7 days, and still awaiting on a response.

    I will test your update now.

    I greatly appreciate your quick turnaround on getting this resolved.

    I’ve updated, and now get a 500 error (upon finalising checkout), with the following in the error log.

    
    2018/04/09 16:25:25 [error] 21973#21973: *30143 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method WC_Order::get_order_date() in /home/SANITISED/sites/SANITISED.com.au/public/wp-content/plugins/woo-invoices/includes/class-wc-email-customer-quote.php:82
    Stack trace:
    #0 /home/SANITISED/sites/SANITISED.com.au/public/wp-includes/class-wp-hook.php(288): WC_Email_Customer_Quote->trigger(Object(WC_Order))
    #1 /home/SANITISED/sites/SANITISED.com.au/public/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #2 /home/SANITISED/sites/SANITISED.com.au/public/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
    #3 /home/SANITISED/sites/SANITISED.com.au/public/wp-content/plugins/woocommerce/includes/class-wc-emails.php(150): do_action_ref_array('woocommerce_ord...', Array)
    #4 /home/SANITISED/sites/SANITISED.com.au/public/wp-includes/class-wp-hook.php(286): WC_Emails::send_transactional_email(Array, Object(WC_Order))
    #5 /home/SANITISED/sites/SANITISED.com.au/public/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(''," while reading response header from upstream, client: 125.236.176.217, server: www.SANITISED.com.au, request: "POST /quote-invoice-request/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "www.SANITISED.com.au", referrer: "https://www.SANITISED.com.au/quote-invoice-request/"
    
    • This reply was modified 1 year, 7 months ago by inspired888.
    Plugin Author SlicedInvoices

    (@slicedinvoices)

    Sorry about that. Let me try this again… I just pushed out another update, now at version 1.1.3. Can you please give that one a try and let me know?

    -David

    Great. Thanks very much. That’s fixed it.
    Much appreciated. Great plug-in, by the way. Really nice.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘PHP Error during checkout’ is closed to new replies.