Problem/Motivation

Fatal error when upgrading to Drupal 10.2.3(not seen in earlier versions)

PHP Fatal error: Uncaught TypeError: Drupal\msqrole\RoleManager::__construct(): Argument #5 ($uuid) must be of type Drupal\Component\Uuid\Php, Drupal\Component\Uuid\Pecl given in /var/www/html/web/modules/contrib/msqrole/src/RoleManager.php:72

Steps to reproduce

Update to latest version of the module - run drush deploy

Proposed resolution

Replace @param \Drupal\Component\Uuid\Php $uuid with @param \Drupal\Component\Uuid\UuidInterface

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#5 3424420-2.patch1.39 KBastoker88
#3 3424420.patch1.38 KBastoker88

Comments

astoker88 created an issue. See original summary.

astoker88’s picture

Forgot to mention, this error doesn't appear with DDEV:

Lifted from CoreServiceProvider:

// Debian/Ubuntu uses the (broken) OSSP extension as their UUID
// implementation. The OSSP implementation is not compatible with the
// PECL functions.

astoker88’s picture

StatusFileSize
new1.38 KB

  • astoker88 authored a16cfec8 on 1.0.x
    Issue #3424420 by astoker88: Incorrect UUID service definition
    
astoker88’s picture

StatusFileSize
new1.39 KB
randalv’s picture

Version: 1.0.13 » 1.0.x-dev
Status: Active » Fixed

Thank you for reporting and fixing the issue 🙏🏼 🙏🏼

I pushed it, and released 1.0.14 containing this fix.

astoker88’s picture

Much appreciated :) confirm its all working now

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.