PHP 8 Multiplication by unsupported operand

Created on 7 December 2022, about 2 years ago
Updated 16 January 2024, 11 months ago

We were getting an error when we upgraded our site to PHP 8 about multiplication by an unsupported operand (a string). Patch forthcoming

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bennybobw

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡ΊπŸ‡ΈUnited States raywright

    Thanks so much @bennynonw that patch worked for me!

  • πŸ‡¨πŸ‡¦Canada freeform.steph

    We found with php 8 we could no longer save fields if we were using custom string keys, error show was:

    TypeError: Unsupported operand types: string * int in _form_options_from_text() (line 404 of .../sites/all/modules/contrib/options_element/options_element.inc).

    This patch resolved this error, thank you.

  • πŸ‡ΊπŸ‡ΈUnited States ilessing

    this same issue cropped up for us when we upgraded to D7.99

    We had the same error message as #4

    and the patch in #2 worked for us. Thank You!

Production build 0.71.5 2024