• Resolved bexmarie

    (@bexmarie)


    The debug log is flooded with many of these:

    PHP Warning: Undefined property: stdClass::$version in /var/www/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-status.php on line 263

    I checked that php file and line 263 is ‘$update_theme_version = $api->version;’
    for context above that is

    // Check .org for updates.
    if ( is_object( $api ) && ! is_wp_error( $api ) ) {
    $update_theme_version = $api->version;

    I found this previous support thread:
    https://www.ads-software.com/support/topic/undefined-property-class-wc-admin-status-php-help/

    SO I checked my theme. I’m using Beaver Builder theme and a child theme. The child theme DOES have a version number but neither the BB theme nor the child theme are in the www.ads-software.com theme repository.

    Can anyone help me with any insights?

    WooCommerce Status Report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://jonesstreetpress.com
    Site address (URL): https://jonesstreetpress.com
    WC Version: 6.4.1
    REST API Version: ? 6.4.1
    WC Blocks Version: ? 7.2.2
    Action Scheduler Version: ? 3.4.0
    WC Admin Version: ? 3.3.2
    Log Directory Writable: ?
    WP Version: 5.9.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.0.18
    PHP Post Max Size: 100 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.80.0
    OpenSSL/1.1.1n
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.26-29-log
    Max Upload Size: 100 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.4.1
    WC Database Prefix: wp_76b4xks0wt_
    Total Database Size: 62.41MB
    Database Data Size: 59.52MB
    Database Index Size: 2.89MB
    wp_76b4xks0wt_woocommerce_sessions: Data: 0.11MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_actionscheduler_actions: Data: 0.14MB + Index: 0.16MB + Engine InnoDB
    wp_76b4xks0wt_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_actionscheduler_logs: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    wp_76b4xks0wt_aioseo_cache: Data: 0.11MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_aioseo_notifications: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
    wp_76b4xks0wt_aioseo_posts: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_camera: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_76b4xks0wt_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB
    wp_76b4xks0wt_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_options: Data: 5.36MB + Index: 0.14MB + Engine InnoDB
    wp_76b4xks0wt_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_pmxi_hash: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_pmxi_images: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_pmxi_imports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_pmxi_posts: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_postmeta: Data: 48.08MB + Index: 0.64MB + Engine InnoDB
    wp_76b4xks0wt_posts: Data: 3.48MB + Index: 0.27MB + Engine InnoDB
    wp_76b4xks0wt_sbi_feeds: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_sbi_feed_caches: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_sbi_instagram_posts: Data: 0.20MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_sbi_sources: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_term_relationships: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_thesis_terms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_76b4xks0wt_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_76b4xks0wt_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_76b4xks0wt_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_76b4xks0wt_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
    wp_76b4xks0wt_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_76b4xks0wt_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_76b4xks0wt_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 550
    custom_css: 1
    fl-builder-template: 20
    fl-theme-layout: 5
    nav_menu_item: 14
    page: 15
    post: 2
    product: 174
    product_variation: 32
    revision: 395
    shop_coupon: 1
    shop_order: 1
    wp_global_styles: 1
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (14) ###
    
    All in One SEO: by All in One SEO Team – 4.2.0
    Beaver Builder Plugin (Pro Version): by The Beaver Builder Team – 2.5.3.1
    Beaver Themer: by The Beaver Builder Team – 1.4.1.2
    Contact Form 7: by Takayuki Miyoshi – 5.5.6
    Smash Balloon Instagram Feed: by Smash Balloon – 6.0.5
    Jetpack: by Automattic – 10.9
    Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.30
    WooCommerce Weight Based Shipping: by weightbasedshipping.com – 5.3.21
    WooCommerce Minicart: by Ahmad Shyk – 2.0.3
    WooCommerce Payments: by Automattic – 4.1.0
    WooCommerce PDF Invoices & Packing Slips: by WP Overnight – 2.14.4
    WooCommerce Shipping & Tax: by WooCommerce – 1.25.27
    WooCommerce: by Automattic – 6.4.1
    WP101 Video Tutorials: by WP101Plugin.com – 0.3
    
    ### Inactive Plugins (0) ###
    
    ### Dropin Plugins (1) ###
    
    db-error.php: db-error.php
    
    ### Must Use Plugins (2) ###
    
    System Plugin: by  – 4.23.4
    WordPress automation by Installatron: by  –
    
    ### 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)
    subscription (subscription)
    variable (variable)
    variable subscription (variable-subscription)
    
    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)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #591 - /shop/
    Cart: #592 - /cart/
    Checkout: #593 - /checkout/
    My account: #594 - /my-account/
    Terms and conditions: #563 - /terms/
    
    ### Theme ###
    
    Name: Jones Street Press Theme
    Version: 1.0
    Author URL: https://bexmarie.com
    Child Theme: ?
    Parent Theme Name: Beaver Builder Theme
    Parent Theme Version: 1.7.11
    Parent Theme Author URL: https://www.wpbeaverbuilder.com/?utm_medium=bb-pro&utm_source=bb-theme&utm_campaign=themes-admin-page
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### WooCommerce Payments ###
    
    Version: 4.1.0
    Connected to WPCOM: Yes
    Blog ID: 202177422
    Account ID: acct_1KMF6d2Hid0Qn4uo
    
    ### Action Scheduler ###
    
    Canceled: 1
    Oldest: 2022-04-12 12:38:03 +0000
    Newest: 2022-04-12 12:38:03 +0000
    
    Complete: 323
    Oldest: 2022-04-05 12:13:47 +0000
    Newest: 2022-05-05 17:26:44 +0000
    
    Pending: 4
    Oldest: 2022-05-05 17:28:07 +0000
    Newest: 2022-05-06 11:08:12 +0000
    
    ### Status report information ###
    
    Generated at: 2022-05-05 17:28:52 +00:00
    

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @bexmarie

    You’re correct! This is the WooCommerce plugin trying to get the version of your theme through the .org API!

    You may need to check with your theme developer if they have a workaround for it, and I don’t recommend disabling it.

    Since it’s a warning, chances are that it can be ignored, but I truly recommend checking it out with your theme developer, so they can guide you further.

    My very best,

    Its nothing to do with the theme.
    Woocommerce is using the themes_api function to attempt to fetch the theme data from wporg it should return a WP_Error object, which my test site does, you can see a valid result here:

    [09-May-2022 13:11:05 UTC] WP_Error Object
    (
        [errors] => Array
            (
                [themes_api_failed] => Array
                    (
                        [0] => Theme not found
                    )
    
            )
    
        [error_data] => Array
            (
            )
    
        [additional_data:protected] => Array
            (
            )
    
    )

    The result is then checked by this block:

    // Check .org for updates.
    if ( is_object( $api ) && ! is_wp_error( $api ) ) {
    	$update_theme_version = $api->version;
    }

    So on this site the result is an object but it isnt a valid object the line should be
    if ( is_object( $api ) && isset( $api->version ) && ! is_wp_error( $api ) ) {

    There is absolutley no way any theme could fix this.

    • This reply was modified 2 years, 6 months ago by Simon Prosser. Reason: missed a &&
    Mirko P.

    (@rainfallnixfig)

    Hi @pross,

    Thank you for your contribution to this thread.

    Could I get you to open up a pull request about this on GitHub?

    https://github.com/woocommerce/woocommerce/pulls

    That’s where developers go for issues like this and changes to the core.

    Cheers!

    Hello @pross,

    Thanks for the contribution, we are positive you will a reply from the developers as soon as they can. Let us know how that goes.

    Thanks.

    Thread Starter bexmarie

    (@bexmarie)

    Thank you all for your help in this matter. Is there anything I should do at this time with the website or just wait for a potential woocommerce update?

    Mirko P.

    (@rainfallnixfig)

    Hi @bexmarie,

    I’d suggest waiting for feedback from WooCommerce developers and let’s see if the change will be implemented in the next releases of the core.

    For now, please click on the Github link and subscribe to the thread to receive updates.

    Update: For the time being, as a workaround, you may want to try the snippet in the following thread to remove/hide the warnings.

    https://github.com/woocommerce/woocommerce/issues/30700#issuecomment-985929172

    Cheers.

    • This reply was modified 2 years, 6 months ago by Mirko P.. Reason: Added info about the snippet
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Warnings flooding log: Undefined property: class-wc-admin-status.php’ is closed to new replies.