• Resolved chuchava

    (@chuchava)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    Hi @chuchava,

    Thank you for reporting this issue. We’ve addressed it, and the patch has been uploaded. Please check and let us know if this resolves the problem for you.

    Thread Starter chuchava

    (@chuchava)

    Hi Subrata,

    Thank you for the quick turnaround!

    I have updated to the latest version and I can confirm that the fatal error is gone and the database schema update routine ran without issues. Everything is working smoothly now.

    I really appreciate the fast support and the fix.

    Best regards!

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

You must be logged in to reply to this topic.