• Resolved megbaatz92

    (@megbaatz92)


    Hi all,

    I have a new Genesis site with WooCommerce and am getting the following error on checkout:

    Fatal error: Call to a member function is_type() on boolean in home/…/plugins/woocommerce/includes/class-wc-order.php on line 1305

    I’ve already tried uninstalling plugins and switching to a default theme to no avail, deactivating and re-activating WooCommerce, and installing a clean version of WooCommerce.

    Can anyone help me fix this error?

    Here is my status:

    
    ### WordPress Environment ###
    
    Home URL: https://wallsdown.postureshift.org
    Site URL: https://wallsdown.postureshift.org
    WC Version: 3.0.0
    Log Directory Writable: ?
    WP Version: 4.7.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.29
    PHP Post Max Size: 65 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.35.0
    OpenSSL/1.0.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.34
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.0.0
    WC Database Prefix: wallsdown_
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?Error messages should not be shown to visitors.
    
    ### Active Plugins (8) ###
    
    Akismet Anti-Spam: by Automattic – 3.3
    Genesis Connect for WooCommerce: by StudioPress – 0.9.9
    Genesis Simple Edits: by StudioPress – 2.2.0
    Google Analytics Dashboard for WP: by Alin Marcu – 4.9.6.2
    Easy Updates Manager: by Easy Updates Manager Team – 6.3.0
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 2.12.40.1
    
    WooCommerce Square: by WooCommerce – 1.0.16
    WooCommerce: by Automattic – 3.0.0
    
    ### 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)
    
    ### WC Pages ###
    
    Shop base: #18 - /
    Cart: #19 - /cart/
    Checkout: #20 - /checkout/
    My account: #21 - /my-account/
    
    ### Theme ###
    
    Name: Infinity Pro
    Version: 1.1.2
    Author URL: https://www.studiopress.com/
    Child Theme: ?
    Parent Theme Name: Genesis
    Parent Theme Version: 2.4.2
    Parent Theme Author URL: https://www.studiopress.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: infinity-pro/woocommerce/emails/admin-new-order.php
    infinity-pro/woocommerce/emails/customer-completed-order.php
    infinity-pro/woocommerce/emails/customer-invoice.php
    infinity-pro/woocommerce/emails/customer-note.php
    infinity-pro/woocommerce/emails/customer-on-hold-order.php
    infinity-pro/woocommerce/emails/customer-processing-order.php
    infinity-pro/woocommerce/emails/email-order-details.php
    
    
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter megbaatz92

    (@megbaatz92)

    I also just noticed another error in the “Orders” section of my WooCommerce Dashboard:

    Fatal error: Call to a member function get_name() on boolean in /home/…/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php on line 726

    Plugin Contributor Mike Jolley

    (@mikejolley)

    I’m not sure why an item would be a boolean, but this should work around it https://github.com/woocommerce/woocommerce/pull/14076

    Thread Starter megbaatz92

    (@megbaatz92)

    @mikejolley – Thank you for your swift response!

    I made that change, but now I’m getting this error:

    Fatal error: Call to a member function set_order_id() on boolean in []…/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php on line 193

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thanks, Claudiu is working on that one also in the same way https://github.com/woocommerce/woocommerce/pull/14081.

    We’ll have these fixes in 3.0.1

    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    @megbaatz92 now should be fixed: https://github.com/woocommerce/woocommerce/pull/14081
    Thanks for report it and test.

    Thread Starter megbaatz92

    (@megbaatz92)

    @mikejolley and @claudiosanches – that fixed it. You guys are my heroes. Thank you so much!

    Hi All,

    In regard to the above fatal error, I am currently experiencing a similar error in my log:
    PHP Fatal error: Call to a member function get_stock_managed_by_id() on null in /var/www/clients/client10/web11/web/2016/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 434

    I cannot quite pinpoint the source of this error. Here is my status:

    
    ### WordPress Environment ###
    
    Home URL: https://caisafety.com/2016
    Site URL: https://caisafety.com/2016
    WC Version: 3.0.8
    Log Directory Writable: ?
    WP Version: 4.8
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.10 (Debian)
    PHP Version: 5.6.30-0+deb8u1
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.38.0
    OpenSSL/1.0.1t
    
    SUHOSIN Installed: –
    MySQL Version: ? 5.5.55 - We recommend a minimum MySQL version of 5.6. See: WordPress requirements
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.0.8
    WC Database Prefix: wpsite_
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (9) ###
    
    Accordion Slider: by bqworks – 1.5.0
    WPBakery Visual Composer: by Michael M - WPBakery.com – 5.1.1
    New RoyalSlider: by Dmitry Semenov – 3.3.4
    Select Core: by Select Themes – 1.3.1
    Simple Sales Tax: by Simple Sales Tax – 5.2
    WooCommerce FedEx Drop Shipping Pro: by IgniteWoo.com – 2.2.13
    WooCommerce PayPal Powered by Braintree Gateway: by WooCommerce – 2.0.3
    WooCommerce: by Automattic – 3.0.8
    Wordfence Security: by Wordfence – 6.3.11
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: bundle (bundle)
    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: #5998 - /fall-protection-store/
    Cart: #5990 - /cart/
    Checkout: #5992 - /checkout/
    My account: #5996 - /my-account/
    
    ### Theme ###
    
    Name: Startit
    Version: 2.3
    Author URL: https://themeforest.net/user/select-themes
    Child Theme: ? – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Archive Template: Your theme has a woocommerce.php file
    you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.
    
    Overrides: startit/woocommerce/cart/cart-shipping.php
    startit/woocommerce/cart/cart-totals.php
    startit/woocommerce/cart/cart.php
    startit/woocommerce/cart/shipping-calculator.php
    startit/woocommerce/checkout/form-billing.php
    startit/woocommerce/checkout/form-pay.php
    startit/woocommerce/checkout/form-shipping.php
    startit/woocommerce/checkout/review-order.php
    startit/woocommerce/checkout/terms.php
    startit/woocommerce/checkout/thankyou.php
    startit/woocommerce/content-product.php
    startit/woocommerce/content-single-product.php
    startit/woocommerce/content-widget-product.php
    startit/woocommerce/emails/customer-completed-order.php
    startit/woocommerce/emails/customer-new-account.php
    startit/woocommerce/emails/customer-note.php
    startit/woocommerce/emails/customer-processing-order.php
    startit/woocommerce/emails/customer-refunded-order.php
    startit/woocommerce/emails/email-addresses.php
    startit/woocommerce/emails/email-customer-details.php
    startit/woocommerce/emails/email-header.php
    startit/woocommerce/emails/email-order-details.php
    startit/woocommerce/emails/email-order-items.php
    startit/woocommerce/emails/email-styles.php
    startit/woocommerce/global/form-login.php
    startit/woocommerce/global/quantity-input.php
    startit/woocommerce/loop/loop-start.php
    startit/woocommerce/myaccount/dashboard.php
    startit/woocommerce/myaccount/my-address.php
    startit/woocommerce/myaccount/view-order.php
    startit/woocommerce/notices/notice.php
    startit/woocommerce/order/order-details-item.php
    startit/woocommerce/order/order-details.php
    startit/woocommerce/single-product/add-to-cart/external.php
    startit/woocommerce/single-product/add-to-cart/simple.php
    startit/woocommerce/single-product/add-to-cart/variable.php
    startit/woocommerce/single-product/add-to-cart/variation.php
    startit/woocommerce/single-product/meta.php
    startit/woocommerce/single-product/price.php
    startit/woocommerce/single-product/product-image.php
    startit/woocommerce/single-product/product-thumbnails.php
    startit/woocommerce/single-product/related.php
    startit/woocommerce/single-product/share.php
    startit/woocommerce/single-product/tabs/tabs.php
    
    ### Braintree (Credit Card) ###
    
    Environment: Sandbox
    Tokenization Enabled: 
    Debug Mode: Save to Log
    

    Sorry, I posted too soon without giving the details.

    When on the checkout page, i hit ‘Proceed to Checkout’ and i get an ‘Internal Server Error’ pop up in the Woocommerce error screen at the top. The log throws the above Fatal Error. Not sure what this is being caused by, but if you could tell me what the error means, i may be able to investigate. Thanks so much!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Call to a member function is_type() class-wc-order.php on line 1305’ is closed to new replies.