• Resolved HideTheGarlic

    (@hidethegarlic)


    Hi guys, over the last week I have transferred my WP site from one hosting to another. The rest of the site seems to be okay and all my Woocommerce products are all there and yet when I attempt to go to a product page or category it comes up with a critical error. Any ideas? I can answer any other questions that might help.

    Thanks in advance.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter HideTheGarlic

    (@hidethegarlic)

    This is the error message in the error.log:

    [18-Aug-2021 09:44:01 UTC] PHP Warning:  Attempt to read property "ID" on null in /home/jua3cq16m7wq/public_html/wp-includes/class-wp-query.php on line 4044
    [18-Aug-2021 09:44:01 UTC] PHP Warning:  Attempt to read property "post_title" on null in /home/jua3cq16m7wq/public_html/wp-includes/class-wp-query.php on line 4046
    [18-Aug-2021 09:44:01 UTC] PHP Warning:  Attempt to read property "post_name" on null in /home/jua3cq16m7wq/public_html/wp-includes/class-wp-query.php on line 4048
    [18-Aug-2021 09:44:01 UTC] PHP Warning:  Attempt to read property "post_type" on null in /home/jua3cq16m7wq/public_html/wp-includes/class-wp-query.php on line 4196
    [18-Aug-2021 09:44:03 UTC] PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($function) must be a valid callback, function "bbloomer_sort_by_stock_status_then_alpha" not found or invalid function name in /home/jua3cq16m7wq/public_html/wp-includes/class-wp-hook.php:305
    Stack trace:
    #0 /home/jua3cq16m7wq/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #1 /home/jua3cq16m7wq/public_html/wp-includes/plugin.php(470): WP_Hook->do_action()
    #2 /home/jua3cq16m7wq/public_html/wp-content/plugins/woocommerce/includes/class-wc-query.php(518): do_action()
    #3 /home/jua3cq16m7wq/public_html/wp-content/plugins/woocommerce/includes/class-wc-query.php(388): WC_Query->product_query()
    #4 /home/jua3cq16m7wq/public_html/wp-includes/class-wp-hook.php(303): WC_Query->pre_get_posts()
    #5 /home/jua3cq16m7wq/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #6 /home/jua3cq16m7wq/public_html/wp-includes/plugin.php(518): WP_Hook->do_action()
    #7 /home/jua3cq16m7wq/public_html/wp-includes/class-wp-query.php(1784): do_action_ref_array()
    #8 /home/jua3cq16m7wq/public_html/wp-includes/class-wp-query.php(3465): WP_Query->get_posts()
    #9 /home/jua3cq16m7wq/public_html/wp-includes/class-wp.php(629): WP_Query->query()
    #10 /home/jua3cq16m7wq/public_html/wp-includes/class-wp.php(752): WP->query_posts()
    #11 /home/jua3cq16m7wq/public_html/wp-includes/functions.php(1291): WP->main()
    #12 /home/jua3cq16m7wq/public_html/wp-blog-header.php(16): wp()
    #13 /home/jua3cq16m7wq/public_html/index.php(17): require('/home/jua3cq16m...')
    #14 {main}
      thrown in /home/jua3cq16m7wq/public_html/wp-includes/class-wp-hook.php on line 305
    Thread Starter HideTheGarlic

    (@hidethegarlic)

    This is the Woocommerce’s status report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.nitryl.co.uk
    Site address (URL): https://www.nitryl.co.uk
    WC Version: 5.6.0
    REST API Version: ? 5.6.0
    WC Blocks Version: ? 5.5.1
    Action Scheduler Version: ? 3.2.1
    WC Admin Version: ? 2.5.1
    Log Directory Writable: ?
    WP Version: 5.8
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.0.8
    PHP Post Max Size: 32 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.71.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.51-cll-lve
    Max Upload Size: 32 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.6.0
    WC Database Prefix: wp_
    Total Database Size: 55.62MB
    Database Data Size: 41.95MB
    Database Index Size: 13.67MB
    wp_woocommerce_sessions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.31MB + Index: 0.28MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 1.52MB + Index: 0.70MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.11MB + Index: 0.08MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 1.52MB + Index: 0.36MB + Engine InnoDB
    wp_cmplz_cookiebanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cmplz_cookies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cmplz_services: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.22MB + Index: 0.30MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_nextend2_section_storage: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nextend2_smartslider3_sliders: Data: 0.03MB + Index: 0.03MB + Engine InnoDB
    wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_nextend2_smartslider3_slides: Data: 0.05MB + Index: 0.11MB + Engine InnoDB
    wp_options: Data: 3.52MB + Index: 0.14MB + Engine InnoDB
    wp_postmeta: Data: 26.56MB + Index: 7.03MB + Engine InnoDB
    wp_posts: Data: 2.52MB + Index: 1.08MB + Engine InnoDB
    wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_termmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.34MB + Index: 0.28MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.03MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.14MB + Index: 0.33MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 3.52MB + Index: 1.47MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.20MB + Index: 0.30MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.09MB + Index: 0.13MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 4750
    custom_css: 2
    customize_changeset: 1
    elementor_library: 2
    elementor-hf: 2
    ml-slide: 3
    ml-slider: 1
    nav_menu_item: 26
    oembed_cache: 1
    page: 10
    post: 1
    product: 1194
    revision: 211
    ris_gallery: 1
    shop_coupon: 1
    shop_order: 255
    shop_order_refund: 8
    wpcf7_contact_form: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (17) ###
    
    Classic Editor: by WordPress Contributors – 1.6.2
    Complianz | GDPR/CCPA Cookie Consent: by Really Simple Plugins – 5.2.6
    Contact Form 7: by Takayuki Miyoshi – 5.4.2
    Elementor: by Elementor.com – 3.4.0
    Facebook for WooCommerce: by Facebook – 2.6.1
    Elementor Header & Footer Builder: by Brainstorm Force
    Nikhil Chavan – 1.6.4
    
    Jetpack: by Automattic – 10.0
    Max Mega Menu: by megamenu.com – 2.9.4
    PHP Compatibility Checker: by WP Engine – 1.5.0
    PHP Info (WP): by Bimal Poudel – 1.0.3
    WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.2
    WooCommerce Stripe Gateway: by WooCommerce – 5.3.0
    WooCommerce Shipping & Tax: by WooCommerce – 1.25.18
    WooCommerce: by Automattic – 5.6.0
    Yoast SEO: by Team Yoast – 16.9
    Smush: by WPMU DEV – 3.8.8
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.8.5
    
    ### Inactive Plugins (5) ###
    
    Hummingbird: by WPMU DEV – 3.0.1
    Smart Slider 3: by Nextend – 3.5.0.10
    WooCommerce Admin: by WooCommerce – 2.5.1
    WP-Cron Control: by Thorsten Ott
    Erick Hitter
    Automattic – 0.7.1
    
    WP Crontrol: by John Blackbourn & crontributors – 1.10.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    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)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #45 - /shop/
    Basket: #109 - /basket/
    Checkout: #111 - /checkout/
    My account: #113 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: AstraChild
    Version: 1.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Astra
    Parent Theme Version: 3.6.8
    Parent Theme Author URL: https://wpastra.com/about/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 167
    Oldest: 2021-07-18 14:00:01 +0100
    Newest: 2021-08-18 10:58:05 +0100
    
    Failed: 2,256
    Oldest: 2021-08-12 17:03:07 +0100
    Newest: 2021-08-12 17:03:07 +0100
    
    Pending: 1
    Oldest: 2021-08-19 09:28:46 +0100
    Newest: 2021-08-19 09:28:46 +0100
    
    ### Status report information ###
    
    Generated at: 2021-08-18 11:11:25 +01:00
    

    Others may try to help.

    Based on my limited knowledge there seems to be some issue with some custom code you are using which references “bbloomer_sort_by_stock_status_then_alpha”

    Can you check if you have some custom code in your functions.php which is using “bbloomer_sort_by_stock_status_then_alpha”. Comment out this code snippet and see if the issue is resolved.

    Hope this helps.

    Thread Starter HideTheGarlic

    (@hidethegarlic)

    That’s done the job!!! Thanks so much you have saved me from pulling all my hair out.

    Glad I could help! I can understand what you felt! I have had such episodes in my journey too!

    Take care, stay safe!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Product Pages causing Critical Errors’ is closed to new replies.