PHP 8 TypeError: Unsupported operand types: string * int in video_cron_queue_info()

Created on 27 December 2024, about 2 months ago

Problem/Motivation

I'm using this module on a PHP 8.2 instance (Drupal 7.101) and I got a 500 error when running cron, when I looked in the "Recent log messages" page, I found this error:

TypeError: Unsupported operand types: string * int in video_cron_queue_info() (/docroot/sites/all/modules/contrib/video/video.module).

I'm not sure if the 7.x-2.x branch is still supported here, but this can be fixed by casting to int the values returned from variable_get:

 time' => 60 * (int) variable_get('video_transcode_timeout', 5) * (int) variable_get('video_ffmpeg_instances', 5),
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada danrod Ottawa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024