Title: PHP Deprecated Error Messages
Last modified: February 28, 2023

---

# PHP Deprecated Error Messages

 *  Resolved [nicorton](https://wordpress.org/support/users/nicorton/)
 * (@nicorton)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-error-messages/)
 * Hi,
 * After upgrading the live site to php 8.1 I received these woocommerce related
   issues:
 * [28-Feb-2023 13:18:33 UTC] PHP Deprecated:  strstr(): Passing null to parameter#
   1 ($haystack) of type string is deprecated in /www/wp-content/plugins/woocommerce/
   includes/wc-page-functions.php on line 139
 * [28-Feb-2023 13:18:33 UTC] PHP Deprecated:  strstr(): Passing null to parameter#
   1 ($haystack) of type string is deprecated in /www/wp-content/plugins/woocommerce/
   includes/wc-page-functions.php on line 139
 * [28-Feb-2023 13:18:33 UTC] PHP Deprecated:  strstr(): Passing null to parameter#
   1 ($haystack) of type string is deprecated in /www/wp-content/plugins/woocommerce/
   includes/wc-page-functions.php on line 139
 * [28-Feb-2023 13:18:33 UTC] PHP Deprecated:  strstr(): Passing null to parameter#
   1 ($haystack) of type string is deprecated in /www/wp-content/plugins/woocommerce/
   includes/wc-page-functions.php on line 139
 * Can you please assist?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-deprecated-error-messages%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-error-messages/#post-16515439)
 * Hi [@nicorton](https://wordpress.org/support/users/nicorton/) ,
 * Thanks for reaching out!
 * I understand that after upgrading your live site to PHP version 8.1, these PHP
   warning messages appeared, is this correct?
 * Please could you clarify which WooCommerce version is currently installed on 
   your live site?
 * Additionally, in order to get a better understanding of your site setup, could
   you please share a copy of the following:
    - **System Status Report**: navigate to **WooCommerce** → **Status**. Select`
      Get system report` and then `Copy for support`.
    - **Fatal Error log**: Share a copy of any fatal error log found under **WooCommerce**
      → **Status** → **Logs**.
 * Once you have these, please share them in your response here.
 * Cheers!
 *  Thread Starter [nicorton](https://wordpress.org/support/users/nicorton/)
 * (@nicorton)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-error-messages/#post-16518246)
 * Hi Roxy,
 * That’s correct, yes.
 * The WooCommerce version is 7.4.0 
 * Please see the report below:
 *     ```wp-block-code
       WordPress Environment
   
       WordPress address (URL): https://corryrobertson.com
       Site address (URL): https://corryrobertson.com
       WC Version: 7.4.0
       REST API Version: ✔</img> 7.4.0
       WC Blocks Version: ✔</img> 9.4.3
       Action Scheduler Version: ✔</img> 3.5.4
       Log Directory Writable: ✔</img>
       WP Version: 6.1.1
       WP Multisite: –
       WP Memory Limit: 256 MB
       WP Debug Mode: –
       WP Cron: ✔</img>
       Language: en_US
       External object cache: –
   
       Server Environment
   
       Server Info: Flywheel/5.1.0
       PHP Version: 8.1.16
       PHP Post Max Size: 300 MB
       PHP Time Limit: 180
       PHP Max Input Vars: 3000
       cURL Version: 7.68.0
       OpenSSL/1.1.1f
   
       SUHOSIN Installed: –
       MySQL Version: 5.7.39-google
       Max Upload Size: 300 MB
       Default Timezone is UTC: ✔</img>
       fsockopen/cURL: ✔</img>
       SoapClient: ✔</img>
       DOMDocument: ✔</img>
       GZip: ✔</img>
       Multibyte String: ✔</img>
       Remote Post: ✔</img>
       Remote Get: ✔</img>
   
       Database
   
       WC Database Version: 7.4.0
       WC Database Prefix: wp_9jtevlh3rq_
       Total Database Size: 83.08MB
       Database Data Size: 67.99MB
       Database Index Size: 15.09MB
       wp_9jtevlh3rq_woocommerce_sessions: Data: 0.14MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_order_itemmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_actionscheduler_actions: Data: 0.25MB + Index: 0.23MB + Engine InnoDB
       wp_9jtevlh3rq_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_actionscheduler_logs: Data: 0.13MB + Index: 0.11MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_affiliatemeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_affiliates: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_campaigns: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_connections: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_coupons: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_creatives: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_customermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_customers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_notifications: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_payouts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_referralmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_referrals: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_rest_consumers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_sales: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_affiliate_wp_visits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_cleantalk_ac_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_cleantalk_connection_reports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_cleantalk_no_cookie_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_cleantalk_sessions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_cleantalk_sfw: Data: 1.52MB + Index: 0.47MB + Engine InnoDB
       wp_9jtevlh3rq_cleantalk_sfw_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_cleantalk_spamscan_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_cleantalk_ua_bl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_commentmeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_comments: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
       wp_9jtevlh3rq_et_bloom_stats: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_et_social_stats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_pro_quiz_category: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_pro_quiz_form: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_pro_quiz_lock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_pro_quiz_master: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_pro_quiz_prerequisite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_pro_quiz_question: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_pro_quiz_statistic: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_pro_quiz_statistic_ref: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_pro_quiz_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_pro_quiz_toplist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_user_activity: Data: 0.22MB + Index: 0.77MB + Engine InnoDB
       wp_9jtevlh3rq_learndash_user_activity_meta: Data: 0.14MB + Index: 0.19MB + Engine InnoDB
       wp_9jtevlh3rq_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_login_log: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_options: Data: 5.17MB + Index: 0.16MB + Engine InnoDB
       wp_9jtevlh3rq_postmeta: Data: 11.52MB + Index: 4.00MB + Engine InnoDB
       wp_9jtevlh3rq_posts: Data: 34.52MB + Index: 0.88MB + Engine InnoDB
       wp_9jtevlh3rq_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_9jtevlh3rq_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       wp_9jtevlh3rq_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_9jtevlh3rq_shopmagic_automation_outcome: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_shopmagic_automation_outcome_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_shopmagic_guest: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_shopmagic_guest_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_shopmagic_marketing_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_shopmagic_optin_email: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_shortpixel_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_shortpixel_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_shortpixel_postmeta: Data: 3.52MB + Index: 3.94MB + Engine InnoDB
       wp_9jtevlh3rq_shortpixel_queue: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       wp_9jtevlh3rq_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_terms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_term_relationships: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
       wp_9jtevlh3rq_term_taxonomy: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_usermeta: Data: 1.52MB + Index: 0.58MB + Engine InnoDB
       wp_9jtevlh3rq_users: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
       wp_9jtevlh3rq_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_9jtevlh3rq_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_9jtevlh3rq_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       wp_9jtevlh3rq_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_wfBadLeechers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfBlockedCommentLog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfBlockedIPLog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfBlocks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_wfBlocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_9jtevlh3rq_wfBlocksAdv: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfConfig: Data: 0.30MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfCrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfFileChanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfFileMods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfHits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_9jtevlh3rq_wfHoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_wfIssues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_9jtevlh3rq_wfKnownFileList: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfLeechers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfLockedOut: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfLocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfLogins: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_wfNet404s: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_wfNotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfPendingIssues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_9jtevlh3rq_wfReverseCache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfScanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wfSNIPCache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_9jtevlh3rq_wfStatus: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_wfThrottleLog: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_wfVulnScanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wppcp_group_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wppcp_private_page: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wprss_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_9jtevlh3rq_wpr_rocket_cache: Data: 0.08MB + Index: 0.11MB + Engine InnoDB
       wp_9jtevlh3rq_wpr_rucss_used_css: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       wp_9jtevlh3rq_yoast_indexable: Data: 1.50MB + Index: 0.63MB + Engine InnoDB
       wp_9jtevlh3rq_yoast_indexable_hierarchy: Data: 0.09MB + Index: 0.14MB + Engine InnoDB
       wp_9jtevlh3rq_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_9jtevlh3rq_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_9jtevlh3rq_yoast_seo_links: Data: 1.42MB + Index: 0.30MB + Engine InnoDB
       wp_9jtevlh3rq_yoast_seo_meta: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
   
       Post Type Counts
   
       attachment: 1130
       bc_x1379_op_type: 2
       cartflows_flow: 1
       cartflows_step: 2
       custom_css: 1
       customize_changeset: 8
       divi_bars: 3
       et_body_layout: 14
       et_footer_layout: 1
       et_header_layout: 11
       et_pb_layout: 66
       et_template: 73
       et_theme_builder: 1
       forum: 6
       groups: 1
       home_slider: 1
       logosliderwp: 30
       nav_menu_item: 25
       nectar_slider: 8
       oembed_cache: 10
       page: 66
       pdf_lv: 1
       post: 174
       product: 14
       product_variation: 67
       project: 38
       reply: 30
       revision: 3469
       sfwd-courses: 13
       sfwd-lessons: 564
       shop_order: 45
       shop_subscription: 13
       shopmagic_automation: 1
       topic: 37
       wprss_feed: 1
       wprss_feed_template: 1
       xlwcty_thankyou: 1
   
       Security
   
       Secure connection (HTTPS): ✔</img>
       Hide errors from visitors: ✔</img>
   
       Active Plugins (33)
   
       AffiliateWP: by AffiliateWP – 2.12.2
       AffiliateWP - Affiliate Area Tabs: by Sandhills Development
       LLC – 1.4
   
       Agile CRM WooCommerce: by Agile CRM Team – 1.0
       Akismet Anti-Spam: by Automattic – 5.0.2
       Basic User Avatars: by Stranger Studios – 1.0.7
       bbPress: by The bbPress Contributors – 2.6.9
       BC Woo Custom Thank You Pages: by WooCommerce & WordPress Tutorials – 1.4.3
       Bloom: by Elegant Themes – 1.3.12
       Anti-Spam by CleanTalk: by СleanTalk – 6.4.1
       Content Control: by Code Atlantic – 1.1.10
       Divi Bars: by Divi Life — Tim Strifler – 1.8.7.9
       Enable Media Replace: by ShortPixel – 4.0.3
       GD bbPress Tools: by Milan Petrovic – 3.3
       LearnDash LMS - bbPress Integration: by LearnDash – 2.2.2
       LearnDash Licensing & Management: by LearnDash – 1.1.5
       LearnDash LMS - ProPanel: by LearnDash – 2.1.4.2
       LearnDash LMS - WooCommerce Integration: by LearnDash – 1.9.6
       Logo Slider Free: by LogicHunt – 3.6.0
       Monarch Plugin: by Elegant Themes – 1.4.14
       My Custom Functions: by Space X-Chimp – 4.51
       Profile Builder: by Cozmoslabs – 3.9.2
       Redirect After Login: by marcelotorres – 0.1.9
       Redirection: by John Godley – 5.3.9
       LearnDash LMS: by LearnDash – 4.5.0.3
       ShortPixel Image Optimizer: by ShortPixel - Convert WebP/AVIF & Optimize Images – 5.2.0
       Terms and Conditions Popup for WooCommerce: by BeRocket – 3.5.7.7
       NextMove Lite - Thank You Page for WooCommerce: by XLPlugins – 2.16.0
       WooCommerce Stripe Gateway: by WooCommerce – 7.1.0
       WooCommerce Subscriptions: by WooCommerce – 4.5.1
       WooCommerce: by Automattic – 7.4.0 (update to version 7.4.1 is available)
       Yoast SEO: by Team Yoast – 20.1
       WP Rocket: by WP Media – 3.12.5.3
       WP Sitemap Page: by Tony Archambeau – 1.9.2
   
       Inactive Plugins (4)
   
       bbpnns LearnDash Bridge: by Vinny Alves (UseStrict Consulting) – 1.1
       bbPress Notify (No-Spam): by Vinny Alves (UseStrict Consulting) – 2.17.8
       LearnDash Content Cloner: by WisdmLabs – 1.2.9.2
       WPC Buy Now Button for WooCommerce: by WPClever – 1.2.2
   
       Dropin Plugins (2)
   
       advanced-cache.php: advanced-cache.php
       db-error.php: db-error.php
   
       Must Use Plugins (1)
   
       LearnDash LMS Multisite: by LearnDash – 1.0.0
   
       Settings
   
       API Enabled: –
       Force SSL: –
       Currency: CAD ($)
       Currency Position: left
       Thousand Separator: ,
       Decimal Separator: .
       Number of Decimals: 2
       Taxonomies: Product Types: course (course)
       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: –
       Enforce Approved Product Download Directories: ✔</img>
       Order datastore: WC_Order_Data_Store_CPT
   
       WC Pages
   
       Shop base: #10163 - /shop/
       Cart: ❌</img> Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block.
       Checkout: ❌</img> Page does not contain the [woocommerce_checkout] shortcode or the woocommerce/checkout block.
       My account: #10166 - /my-account-2/
       Terms and conditions: #12436 - /terms-condition-programs/
   
       Theme
   
       Name: Divi
       Version: 4.20.0
       Author URL: http://www.elegantthemes.com
       Child Theme: ❌</img> – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
       WooCommerce Support: ✔</img>
   
       Templates
   
       Overrides: –
   
       Subscriptions
   
       WCS_DEBUG: ✔</img> No
       Subscriptions Mode: ✔</img> Live
       Subscriptions Live URL: https://corryrobertson.com
       Subscription Statuses: wc-active: 6
       wc-expired: 5
       wc-on-hold: 1
       wc-cancelled: 1
   
       WooCommerce Account Connected: ❌</img> No
       Report Cache Enabled: ✔</img> Yes
       Cache Update Failures: ✔</img> 0 failure
   
       Store Setup
   
       Country / State: Canada — Quebec
   
       Subscriptions by Payment Gateway
   
       Stripe: wc-active: 3
       wc-cancelled: 1
       wc-on-hold: 1
   
       Payment Gateway Support
   
       Stripe: products
       refunds
       tokenization
       add_payment_method
       subscriptions
       subscription_cancellation
       subscription_suspension
       subscription_reactivation
       subscription_amount_changes
       subscription_date_changes
       subscription_payment_method_change
       subscription_payment_method_change_customer
       subscription_payment_method_change_admin
       multiple_subscriptions
   
       Admin
   
       Enabled Features: activity-panels
       analytics
       coupons
       customer-effort-score-tracks
       import-products-task
       experimental-fashion-sample-products
       shipping-smart-defaults
       shipping-setting-tour
       homescreen
       marketing
       multichannel-marketing
       mobile-app-banner
       navigation
       new-product-management-experience
       onboarding
       onboarding-tasks
       remote-inbox-notifications
       remote-free-extensions
       payment-gateway-suggestions
       shipping-label-banner
       subscriptions
       store-alerts
       transient-notices
       woo-mobile-welcome
       wc-pay-promotion
       wc-pay-welcome-page
   
       Disabled Features: minified-js
       product-variation-management
       settings
   
       Daily Cron: ✔</img> Next scheduled: 2023-03-02 06:24:53 +00:00
       Options: ✔</img>
       Notes: 79
       Onboarding: completed
   
       Action Scheduler
   
       Complete: 666
       Oldest: 2023-01-29 15:37:26 +0000
       Newest: 2023-03-01 15:12:41 +0000
   
       Failed: 3
       Oldest: 2022-12-17 16:07:14 +0000
       Newest: 2023-02-21 13:52:01 +0000
   
       Pending: 14
       Oldest: 2023-03-01 16:03:59 +0000
       Newest: 2023-07-24 15:20:51 +0000
   
       Status report information
   
       Generated at: 2023-03-01 15:22:51 +00:00
       `
       ```
   
 *  [rashkoff](https://wordpress.org/support/users/rashkoff/)
 * (@rashkoff)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-error-messages/#post-16520362)
 * Hello, I get exactly the same error. In additional I receive also this error 
   under product page availability: 
   **Deprecated**: La funzione The woocommerce_stock_html
   filter è **deprecata** dalla versione ! Utilizza al suo posto woocommerce_get_stock_html.
   in **/home/martcom/public_html/wp-includes/functions.php** on line **5383**
 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-error-messages/#post-16522900)
 * Hi [@nicorton](https://wordpress.org/support/users/nicorton/)
 * I was unable to see any error or warning message, what I could see are notices,
   and please note they should not affect your site. They are `deprecations`. The
   site will not be affected.
 * It is possible to disable these notices, please refer to this web article that
   explains how to disable them – [here](https://support.cpanel.net/hc/en-us/articles/360059474934-How-do-I-disable-PHP-Deprecated-warnings-).
   You can request assistance to your web host regarding this.
 * Hi, [@rashkoff](https://wordpress.org/support/users/rashkoff/)
 * Please check if the above works for you, if not, please create your own thread
   for your issue – [https://wordpress.org/support/plugin/woocommerce/#new-topic-0](https://wordpress.org/support/plugin/woocommerce/#new-topic-0).
 * Thanks.
 *  [johnc1979](https://wordpress.org/support/users/johnc1979/)
 * (@johnc1979)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-error-messages/#post-16528654)
 * Just chiming in here after doing some digging.
 * Lines 136 and 137 seem to be the culprits here. If they return an empty string
   from a menu item with something like a hash #, then the following if statement
   on like 139 passes null to parameter #1 ($haystack). 
   Adding a check for the 
   empty path string around the if statement resolves the issue
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-error-messages/#post-16551231)
 * Hi [@nicorton](https://wordpress.org/support/users/nicorton/) ,
 * Have you managed to get rid of the warning messages?
 * If not, please let us know, we’ll be happy to check this further.
 * [@johnc1979](https://wordpress.org/support/users/johnc1979/) – thanks for chiming
   in and providing input on this 🙂
 * Cheers!

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

The topic ‘PHP Deprecated Error Messages’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-error-messages/#post-16551231)
 * Status: resolved