Bytescale::__construct(): Argument #5 ($uuid) must be of type Drupal\Component\Uuid\Php, Drupal\Component\Uuid\Pecl given

Created on 10 June 2024, 5 months ago
Updated 13 June 2024, 5 months ago

Problem/Motivation

Enabled the module
Configured a field
On saving of the node the following error occurs:

PHP message: Uncaught PHP Exception TypeError: "Drupal\elevenlabs_bytescale\Bytescale::__construct(): Argument #5 ($uuid) must be of type Drupal\Component\Uuid\Php, Drupal\Component\Uuid\Pecl given, called in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259" at /var/www/html/web/modules/contrib/elevenlabs_field/modules/elevenlabs_bytescale/src/Bytescale.php line 97

My config:
PHP via docker compose:
php:
image: wodby/drupal-php:8.2-dev-4.47.2

PHP: PHP Version 8.2.10
UUID extension enabled
Version 1.2.0 (stable)
Released 2020-10-06

Composer:
"drupal/ai_interpolator": "^1.0@RC"
"drupal/elevenlabs_field": "^1.0@beta",

Proposed resolution

Not sure what is the cause of this.
Just putting it here for future reference.

I managed to switch the PHP UUID implementation to the PECL one and get it working (see the diff)
https://git.drupalcode.org/issue/elevenlabs_field-3453715/-/compare/1.0....

Not sure how to proceed to fix thos for everybody.

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium wouters_f Leuven

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024