Fatal Error with Password Reset
-
Hello
I’m experiencing this fatal error on my WordPress site, when certain users try to reset their password:
Error message:
Uncaught TypeError: gmdate(): Argument #2 ($timestamp) must be of type ?int, string given in /wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php:791
WordPress Version: 6.7.2
Active Theme: WP Astra
Affected Plugin: WooCommerce (version 9.4.3)
PHP Version: 8.2.27The error occurs in this file:
/wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php
It seems WooCommerce is passing a string instead of an int value to the gmdate() function, causing a type error.
Additional details:
The issue does not affect all users, only some users who were imported some time ago using a plugin (I did not do it myself, so I do not know which plugin, or how they were imported).When switching back to PHP 7, the error does not occur.
Have you encountered this issue before? Is there a fix or workaround for WooCommerce on PHP 8?
Thank you
The topic ‘Fatal Error with Password Reset’ is closed to new replies.