Support » Plugin: WooCommerce » When editing with Gutenberg, Trying to get property of non-object error

  • Resolved jleung1994

    (@jleung1994)


    I’m testing the Gutenberg plugin.
    This error shows up when I edit page with Gutenberg, but no error for classic editor. When I deactivated WooCommerce, the error disappeared.
    Notice: Trying to get property of non-object in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php on line 831

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jesse Pearson

    (@jessepearson)

    Automattic Happiness Engineer

    @jleung1994 Do you also have this active?
    https://wordpress.org/plugins/woo-gutenberg-products-block/

    If so, can you go to WooCommerce > Status and copy/paste your System Status Report here for us?

    Thread Starter jleung1994

    (@jleung1994)

    @jessepearson

    I have it installed, but deactivated.

    Here’s the status report:

    
    ### WordPress Environment ###
    
    Home URL: http://localhost/wordpress
    Site URL: http://localhost/wordpress
    WC Version: 3.4.3
    Log Directory Writable: ✔
    WP Version: 4.9.6
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2.2.32 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.1.6 mod_ssl/2.2.32 OpenSSL/1.0.2j DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.24.0
    PHP Version: 7.1.6 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version
    PHP Post Max Size: 32 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.52.1
    OpenSSL/1.0.2j
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.35
    Max Upload Size: 32 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.4.3
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 2.84MB
    Database Data Size: 1.96MB
    Database Index Size: 0.88MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB
    wp_comments: Data: 0.02MB + Index: 0.09MB
    wp_email_log: Data: 0.02MB + Index: 0.00MB
    wp_links: Data: 0.02MB + Index: 0.02MB
    wp_options: Data: 1.02MB + Index: 0.02MB
    wp_postmeta: Data: 0.08MB + Index: 0.06MB
    wp_posts: Data: 0.34MB + Index: 0.06MB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB
    wp_terms: Data: 0.02MB + Index: 0.03MB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB
    wp_users: Data: 0.02MB + Index: 0.05MB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    
    ### Post Type Counts ###
    
    attachment: 2
    custom_css: 1
    customize_changeset: 2
    nav_menu_item: 8
    page: 19
    post: 4
    product: 2
    revision: 96
    shop_order: 8
    wp_block: 1
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ❌
    					Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ❌Error messages should not be shown to visitors.
    
    ### Active Plugins (3) ###
    
    Gutenberg: by Gutenberg Team – 3.0.1
    my-block — CGB Gutenberg Block Plugin: by mrahmadawais
    maedahbatool – 1.0.0
    
    WooCommerce: by Automattic – 3.4.3
    
    ### 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: #6 - /shop/
    Cart: #7 - /cart/
    Checkout: #8 - /checkout/
    My account: #9 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Storefront Child Theme
    Version: 1.0
    Author URL: http://woothemes.com
    Child Theme: ✔
    Parent Theme Name: Storefront
    Parent Theme Version: 2.3.2
    Parent Theme Author URL: https://woocommerce.com/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: storefront-child/woocommerce/emails/customer-new-account.php
    storefront-child/woocommerce/emails/email-addresses.php
    storefront-child/woocommerce/emails/email-customer-details.php
    storefront-child/woocommerce/myaccount/dashboard.php
    storefront-child/woocommerce/single-product/add-to-cart/variable.php
    storefront-child/woocommerce/single-product/product-image.php
    storefront-child/woocommerce/single-product/product-thumbnails.php
    
    
    Thread Starter jleung1994

    (@jleung1994)

    error disappeared after Gutenberg plugin update

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘When editing with Gutenberg, Trying to get property of non-object error’ is closed to new replies.