nonce_user_logged_out function is deprecated
-
FYI, i am seeing this in log file. thought i’d let you know. I am guessing it’s this plugin i’m not sure.
The WC_Session_Handler::nonce_user_logged_out function is deprecated since version 5.3. Replace with WC_Session_Handler::maybe_update_nonce_user_logged_out.’, referer: https://www.domain.com/wp-admin/admin-ajax.php?action=wc_facebook_background_product_sync&nonce=b33378e39a
-
Hi @kattouf ,
FYI, i am seeing this in log file. thought i’d let you know. I am guessing it’s this plugin i’m not sure.
The WC_Session_Handler::nonce_user_logged_out function is deprecated since version 5.3. Replace with WC_Session_Handler::maybe_update_nonce_user_logged_out.’, referer: https://www.domain.com/wp-admin/admin-ajax.php?action=wc_facebook_background_product_sync&nonce=b33378e39a
I checked this on my end, however, my site didn’t show any errors. Could you please share the following so we can check further?
– A screenshot of the error. You can use https://snipboard.io to send us a screenshot link.
– Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.Do let us know so we can check and help further.
Hello,
I copied from apache error log on the server:
[Mon May 17 06:25:46.823899 2021] [proxy_fcgi:error] [pid 11282] [client 162.158.93.16:51118] AH01071: Got error ‘PHP message: The WC_Session_Handler::nonce_user_logged_out function is deprecated since version 5.3. Replace with WC_Session_Handler::maybe_update_nonce_user_logged_out.’, referer: https://www.domain.com/wp-admin/admin-ajax.php?action=wc_facebook_background_product_sync&nonce=ede3696778
System log:
### WordPress Environment ### WordPress address (URL): https://www.mydomain.com Site address (URL): https://www.mydomain.com WC Version: 5.3.0 REST API Version: ? 5.3.0 WC Blocks Version: ? 4.9.1 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 2.2.6 Log Directory Writable: ? WP Version: 5.7.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.29 PHP Version: 7.4.18 PHP Post Max Size: 20 MB PHP Time Limit: 120 PHP Max Input Vars: 10000 cURL Version: 7.58.0 OpenSSL/1.1.1j SUHOSIN Installed: – MySQL Version: 5.7.34-0ubuntu0.18.04.1 Max Upload Size: 20 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.3.0 WC Database Prefix: wp_ Total Database Size: 168.69MB Database Data Size: 127.25MB Database Index Size: 41.44MB wp_woocommerce_sessions: Data: 8.02MB + Index: 0.27MB + 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.14MB + Index: 0.14MB + 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: 6.09MB + Index: 3.72MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 4.30MB + Index: 3.84MB + Engine InnoDB wp_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_cartflows_ca_cart_abandonment: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_commentmeta: Data: 1.52MB + Index: 0.75MB + Engine InnoDB wp_comments: Data: 1.52MB + Index: 0.47MB + Engine InnoDB wp_commercekit_waitlist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commercekit_wishlist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commercekit_wishlist_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_liker: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_liker_cache: Data: 0.03MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 10.52MB + Index: 1.67MB + Engine InnoDB wp_postmeta: Data: 55.56MB + Index: 16.06MB + Engine InnoDB wp_posts: Data: 15.52MB + Index: 4.80MB + Engine InnoDB wp_redirection_404: Data: 0.20MB + Index: 0.05MB + Engine InnoDB wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_sfa_abandoned_carts: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_statistics_exclusions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_statistics_historical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_statistics_pages: Data: 0.06MB + Index: 0.17MB + Engine InnoDB wp_statistics_search: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_statistics_useronline: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_statistics_visit: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_statistics_visitor: Data: 0.13MB + Index: 0.14MB + Engine InnoDB wp_statistics_visitor_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.39MB + Index: 0.48MB + Engine InnoDB wp_terms: Data: 0.11MB + Index: 0.13MB + Engine InnoDB wp_term_relationships: Data: 0.16MB + Index: 0.13MB + Engine InnoDB wp_term_taxonomy: Data: 0.13MB + Index: 0.14MB + Engine InnoDB wp_usermeta: Data: 0.09MB + Index: 0.06MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_vi_wad_ali_orders_info: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_vi_wad_ali_shipping_info: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_vi_wad_error_product_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_vi_woo_orders_tracking_track_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcpdf_credit_note_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + 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_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + 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.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: 1.50MB + Index: 0.89MB + 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_wotv_woo_track_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpml_mails: Data: 11.52MB + Index: 0.00MB + Engine InnoDB wp_yith_wcaf_affiliates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcaf_clicks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcaf_commissions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcaf_commission_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcaf_payments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcaf_payment_commission: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcaf_payment_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_indexable: Data: 7.52MB + Index: 5.45MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.50MB + Index: 0.69MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.16MB + Index: 0.09MB + Engine InnoDB wp_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 7835 custom_css: 3 customize_changeset: 33 elementor_library: 3 mc4wp-form: 1 nav_menu_item: 25 notificationx: 1 page: 11 post: 3 product: 236 product_variation: 4275 product-feed: 1 revision: 399 shop_coupon: 5 shop_order: 66 shop_order_refund: 1 vi_wad_draft_product: 351 wc_order_email: 1 wc_order_status: 8 wp_block: 1 wpforms: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (42) ### AdRoll for WooCommerce Stores: by AdRoll – 2.2.9 Auto Image Attributes From Filename With Bulk Updater: by Arun Basil Lal – 1.6 Autoptimize: by Frank Goossens (futtta) – 2.8.4 Better Search Replace: by Delicious Brains – 1.3.4 Bulk remove posts from category: by MasterNs – 3.2 CommerceGurus Commercekit: by CommerceGurus – 1.2.5 Conversion Tracking for Bing in WooCommerce: by Worcester Web Studio – 1.0.7.2 Counter Visitor for Woocommerce: by TaxarPro – 1.2.0 Disable Cart Fragments: by Optimocha – 2.0 Easy Theme and Plugin Upgrades: by Chris Jean – 2.0.1 Elementor: by Elementor.com – 3.2.3 Facebook for WooCommerce: by Facebook – 2.4.1 Heartbeat Control by WP Rocket: by WP Rocket – 2.0 Kadence WooCommerce Email Designer: by Kadence WP – 1.4.7 Kirki Customizer Framework: by David Vongries – 3.1.6 Liker: by Merkulove – 2.0.4 Metric Converter: by Vitaly Kukin – 1.5.4 Redirection: by John Godley – 5.1.1 Shortcode For Current Date: by Imtiaz Rayhan – 2.1.4 Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.56 Abandoned Cart Reports For WooCommerce: by Small Fish Analytics – 2.6.2 Bulk Assign Linked Products For WooCommerce: by vinod vaswani – 1.0 WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.12 Notification for WooCommerce: by Andy Ha (villatheme.com) – 1.2.3.7 Orders Tracking for WooCommerce: by VillaTheme – 1.1.8.5 Product Feed PRO for WooCommerce: by AdTribes.io – 10.1.2 Aliexpress Dropshipping and Fulfillment for WooCommerce: by VillaTheme(villatheme.com) – 1.0.2 WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.1 WooCommerce Conversion Tracking: by woopt – 1.10.4 WooCommerce Google Analytics Integration: by WooCommerce – 1.5.1 WooCommerce Order Status Manager: by SkyVerge – 1.13.1 WooCommerce Orders Tracking Premium: by VillaTheme – 1.0.6 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.8.3 WooCommerce PDF Invoices & Packing Slips Professional: by Ewout Fernhout – 2.7.4 WooCommerce Photo Reviews Premium: by VillaTheme – 1.1.5.0 WooCommerce: by Automattic – 5.3.0 Yoast SEO: by Team Yoast – 16.2 WP File Manager: by mndpsingh287 – 7.1.1 WP Mail Logging: by MailPoet – 1.9.7 WP Mail SMTP: by WPForms – 2.8.0 WPForms Lite: by WPForms – 1.6.7 ### Inactive Plugins (5) ### File Manager Advanced: by modalweb – 3.9 Price Commander for WooCommerce: by XforWooCommerce – 1.2.1 WooCommerce Pricing & Discounts!: by Lagudi Domenico – 13.3 WooCommerce Smart Coupons: by StoreApps – 4.15.0 WooCommerce Stripe Gateway: by WooCommerce – 5.1.0 ### 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-catalog (exclude-from-catalog-2) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-2 (rated-2-2) rated-3 (rated-3) rated-3 (rated-3-2) rated-4 (rated-4) rated-4 (rated-4-2) rated-5 (rated-5) Connected to WooCommerce.com: – ### 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: Shoptimizer Child Theme Version: 1.2.0 Author URL: Child Theme: ? Parent Theme Name: Shoptimizer Parent Theme Version: 2.4.1 Parent Theme Author URL: https://www.commercegurus.com/ WooCommerce Support: ? ### Templates ### Overrides: shoptimizer-child-theme/woocommerce/single-product/add-to-cart/simple.php shoptimizer-child-theme/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php shoptimizer-child-theme/woocommerce/single-product/tabs/description.php ### Action Scheduler ### Complete: 8,815 Oldest: 2021-04-19 20:21:25 +0300 Newest: 2021-05-17 12:59:25 +0300 Failed: 5,330 Oldest: 2021-04-27 00:53:08 +0300 Newest: 2021-05-09 23:08:54 +0300 In-progress: 1 Oldest: – Newest: – Pending: 4 Oldest: 2021-05-17 18:01:50 +0300 Newest: 2021-05-23 02:33:46 +0300 ### Status report information ### Generated at: 2021-05-17 13:01:14 +03:00
Thank you so much for your answer.
This is an obsolete function. This change was made to ensure that we will only change the nonces of WooCommerce and not all plugins as before, this will give greater stability to WooCommerce.
But there is nothing wrong with the plugin. This will soon be updated and this message will disappear.
In addition, if you want the message to disappear now (while there is no update yet), you can disable WP_DEBUG_DISPLAY.
To disable this setting, add the following line to the wp-config.php file:
define (‘WP_DEBUG_DISPLAY’, false)
(If you have any questions about this procedure, you can ask your hosting to assist you)
Let me know if you have any further questions.
- The topic ‘nonce_user_logged_out function is deprecated’ is closed to new replies.