[PHP 8.0] TypeError: Unsupported operand types: string * int in _uc_roles_product_get_expiration() (line 1247 of /var/www/html/sites/all/modules/contrib/ubercart/uc_roles/uc_roles.module).

Created on 14 April 2022, about 2 years ago
Updated 2 May 2024, about 2 months ago

uc_roles_default_length is saved as literal "" when "never" is selected for the default role expiration

We could either fix it so it saves as empty/NULL or cast it to an int.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇺🇸United States djdevin

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇮Finland Anaconda777

    I am getting this:
    TypeError: Unsupported operand types: string * int function uc_roles_user_validate() (line 278 file ubercart/uc_roles/uc_roles.module).
    Maybe not the same error
    PHP 8.0

  • 🇩🇪Germany sachbearbeiter

    "I am getting this:
    TypeError: Unsupported operand types: string * int function uc_roles_user_validate() (line 278 file ubercart/uc_roles/uc_roles.module).
    Maybe not the same error
    PHP 8.0"

    Same problem ...

  • 🇫🇮Finland Anaconda777

    Did anyone fix this ?
    I get this still when I try to change a password for existing user when it has uc roles.

Production build 0.69.0 2024