Error fatal
-
Hello,
During the update to the latest version, the site crashed with a PHP Fatal Error triggered by the database schema update routine (
woo_wallet_update_161_db_schema).It appears to be a strict typing issue in PHP 8+, where the code attempts to access an array offset on a string variable at line 192 of
woo-wallet-update-functions.php.Stack trace: Uncaught TypeError: Cannot access offset of type string on string in /…/wp-content/plugins/woo-wallet/includes/helper/woo-wallet-update-functions.php:192 #0 /…/wp-content/plugins/woo-wallet/includes/class-woo-wallet-install.php(205): woo_wallet_update_161_db_schema() #1 /…/wp-content/plugins/woo-wallet/includes/class-woo-wallet-install.php(54): Woo_Wallet_Install::update() [Add the rest of the stack trace…]
I have rolled back to the previous version and disabled updates via a filter for now. Please add proper type checking (
is_array()) before accessing the offset in the next release. Let me know if you need more details.
You must be logged in to reply to this topic.