• Resolved hazephase

    (@hazephase)


    : Use of undefined constant is_product_category – assumed ‘is_product_category’ (this will throw an Error in a future version of PHP)

    can you tell me what I am getting this error?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Riaan K.

    (@riaanknoetze)

    Hi there,

    At the moment, we have too little information on how that’s used on your site or the context in which it’s meant to operate. Would you mind sharing a bit more detail – is that through custom coding? Can you share a copy of your status report as found under **WooCommerce > System Status**?

    Thread Starter hazephase

    (@hazephase)

    
    ### WordPress Environment ###
    
    WordPress address (URL): http://himalayanhermitage.com
    Site address (URL): http://himalayanhermitage.com
    WC Version: 3.8.1
    REST API Version: ✔ 1.0.2
    Log Directory Writable: ✔
    WP Version: 5.3.2
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.3.15
    PHP Post Max Size: 128 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 3000
    cURL Version: 7.59.0
    OpenSSL/1.0.2r
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.40-84.0-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.8.1
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 20.79MB
    Database Data Size: 15.11MB
    Database Index Size: 5.68MB
    wp_woocommerce_sessions: Data: 0.05MB + 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.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + 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_affiliate_wp_affiliatemeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_affiliates: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_campaigns: Data: 0.00MB + Index: 0.00MB + Engine
    wp_affiliate_wp_creatives: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_customermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_customers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_payouts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_referralmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_referrals: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_rest_consumers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_visits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_cf7dbplugin_st: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_cf7dbplugin_submits: Data: 0.21MB + Index: 0.03MB + Engine MyISAM
    wp_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_comments: Data: 0.45MB + Index: 0.34MB + Engine MyISAM
    wp_ewwwio_images: Data: 0.20MB + Index: 0.11MB + Engine InnoDB
    wp_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_hustle_entries: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_hustle_entries_meta: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    wp_hustle_modules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_hustle_modules_meta: Data: 2.52MB + Index: 0.45MB + Engine InnoDB
    wp_hustle_tracking: Data: 1.52MB + Index: 1.39MB + Engine InnoDB
    wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_newsletter: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_newsletter_emails: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_newsletter_sent: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_newsletter_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_newsletter_user_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 2.59MB + Index: 0.62MB + Engine MyISAM
    wp_postmeta: Data: 3.47MB + Index: 0.43MB + Engine MyISAM
    wp_posts: Data: 1.89MB + Index: 0.39MB + Engine MyISAM
    wp_pum_subscribers: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_sib_model_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_sib_model_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_strong_views: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_termmeta: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wp_terms: Data: 0.04MB + Index: 0.09MB + Engine MyISAM
    wp_term_relationships: Data: 0.05MB + Index: 0.11MB + Engine MyISAM
    wp_term_taxonomy: Data: 0.04MB + Index: 0.04MB + Engine MyISAM
    wp_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_uap_cpm: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_uap_dashboard_notifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_booking_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_deposits_payment_plans: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_deposits_payment_plans_schedule: Data: 0.02MB + Index: 0.02MB + 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.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + 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.02MB + Index: 0.09MB + 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_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpforms_entries: Data: 0.42MB + Index: 0.02MB + Engine InnoDB
    wp_wpforms_entry_fields: Data: 0.23MB + Index: 0.17MB + Engine InnoDB
    wp_wpforms_entry_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    
    ### Security ###
    
    Secure connection (HTTPS): ❌
    					Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ✔
    
    ### Active Plugins (36) ###
    
    Advanced Custom Fields PRO: by Elliot Condon – 5.8.7
    AffiliateWP: by Sandhills Development
    LLC – 2.4
    
    Classic Editor: by WordPress Contributors – 1.5
    Conditional Widgets: by Jason Lemahieu and Kevin Graeme (Cooperative Extension Technology Services) – 2.2
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.10.2
    Google Language Translator: by Translate AI Multilingual Solutions – 6.0.3
    Health Check & Troubleshooting: by The ww.wp.xz.cn community – 1.4.2
    WooCommerce adding activity level and service level: by Elroy Fernandes – 1.0 – Not tested with the active version of WooCommerce
    Mailchimp for WooCommerce: by Mailchimp – 2.3 – Not tested with the active version of WooCommerce
    SendinBlue Subscribe Form And WP SMTP: by SendinBlue – 2.9.9
    my-block — CGB Gutenberg Block Plugin: by Elroy Fernandes – 1.0.0
    Newsletter: by Stefano Lissa & The Newsletter Team – 6.4.1
    SG Optimizer: by SiteGround – 5.3.10
    Show Current Template: by JOTAKI Taisuke – 0.3.2
    Storefront Mega Menus: by WooCommerce – 1.6.2 – Not tested with the active version of WooCommerce
    Storefront Powerpack: by WooCommerce – 1.4.12
    Strong Testimonials: by MachoThemes – 2.40.0
    SVG Support: by Benbodhi – 2.3.15
    Ultimate Addons for Gutenberg: by Brainstorm Force – 1.14.3
    WC Custom Add to Cart labels: by Rynaldo Stoltz – 1.2
    WooCommerce Blocks: by Automattic – 2.5.7
    WooCommerce Conditional Content: by Lucas Stark – 2.1.0 – Not tested with the active version of WooCommerce
    WooCommerce Tab Manager: by SkyVerge – 1.9.1 – Not tested with the active version of WooCommerce
    WooCommerce: by Automattic – 3.8.1 – 3.9.2 is available
    WooSlider: by WooThemes – 2.4.2
    WordPress Importer: by wordpressdotorg – 0.6.4
    Hustle: by WPMU DEV – 7.0.3
    Yoast SEO Premium: by Team Yoast – 7.9
    WP File Manager: by mndpsingh287 – 5.5
    WPForms Form Templates Pack: by WPForms – 1.0.1
    WPForms PayPal Standard: by WPForms – 1.1.2
    WPForms Stripe: by WPForms – 2.0.2
    WPForms: by WPForms – 1.5.0.4
    Yoast SEO: WooCommerce: by Team Yoast – 12.4
    YITH WooCommerce Product Slider Carousel Premium: by YITH – 1.0.33 – Not tested with the active version of WooCommerce
    
    ### Inactive Plugins (1) ###
    
    Subscribe & Connect: by WooThemes – 1.1.4
    
    ### Must Use Plugins (1) ###
    
    Health Check Troubleshooting Mode: by  – 1.7.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: booking (booking)
    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: #2159 - /shop/
    Cart: #2160 - /cart/
    Checkout: #2161 - /checkout/
    My account: #2162 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Storefront Child Theme
    Version: 1.0.0
    Author URL: http://stuartduff.com
    Child Theme: ✔
    Parent Theme Name: Storefront
    Parent Theme Version: 2.5.3 – 2.5.5 is available
    Parent Theme Author URL: https://woocommerce.com/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: storefront-child-theme-master/woocommerce/single-product/tabs/tabs.php
    
    ### Action Scheduler ###
    
    Complete: 4
    Oldest: 2020-02-06 13:42:03 +0000
    Newest: 2020-02-27 13:51:31 +0000
    
    Pending: 1
    Oldest: 2020-03-05 13:51:31 +0000
    Newest: 2020-03-05 13:51:31 +0000
    
    Canceled: 0
    Oldest: –
    Newest: –
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    

    here you go

    Plugin Support Kel C. a11n

    (@kellymetal)

    Hi there,

    It appears something on your site is using an undefined constant is_product_category, where it should instead be using the function with that name.

    I see your child theme is out of date, as well as your installed version of WooCommerce. I’d recommend first updating your theme, WooCommerce, and anything else on the site that has an available update. After that, check again to see if you are still getting an error. As always, please take a full backup of the site before performing updates. There’s information about that here:
    https://docs.woocommerce.com/document/backup-wordpress-content/

    If you still see the error, then please temporarily disable all plugins except for WooCommerce, and switch back to parent Storefront theme.

    After that, check to see if the issue is gone. If that resolves the issue, then re-enable the child theme first, and then plugins one at a time until you find the one that’s causing the error.

    You can read more about conflict testing in our Self Service Guide here:
    https://docs.woocommerce.com/document/woocommerce-self-service-guide/

    I hope that helps!

    Plugin Support Kel C. a11n

    (@kellymetal)

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this thread as resolved. If you have any further questions, please start a new thread.

    Have a wonderful day!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘is_product_category error’ is closed to new replies.