PHP notice due to deprecated Woo php method
-
Hello @inpsyde
when using your plugin I am seeing a php notice in our debug log, which states that a filter method (‘nonce_user_logged_out’) is in use which has been deprecated with an older WooCommerce version.
Thus I am kindly requesting you to implement a simple fix in your code to prevent this notice from popping up, as it is cluttering my debug log. Following files in your plugin contain the affected code snippets:/home/wp/disk/wordpress/wp-content/plugins/woo-paypalplus/src/Nonce.php: 'nonce_user_logged_out' /home/wp/disk/wordpress/wp-content/plugins/woo-paypalplus/src/ExpressCheckoutGateway/AjaxHandler.php: add_filter('nonce_user_logged_out', [wc()->session, 'nonce_user_logged_out']);
Debug log excerpt:
[13-Aug-2022 04:52:09 UTC] PHP Deprecated: Die Funktion WC_Session_Handler::nonce_user_logged_out ist seit Version?5.3 <strong>veraltet</strong>! Verwenden Sie stattdessen WC_Session_Handler::maybe_update_nonce_user_logged_out. in /home/wp/disk/wordpress/wp-includes/functions.php on line 5379
Thanks a lot in advance!
Saskia
- The topic ‘PHP notice due to deprecated Woo php method’ is closed to new replies.