Hi,
when I try to visit any of the invitation settings pages, I'm getting this error:

InvalidArgumentException: Class "\Drupal\webform\Controller\WebformController" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (line 24 of /siteroot/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php).

When I remove the _title_callback in het webform_invitation.routing.yml file, the error is gone (and of course I do not get titles for my admin pages)

Comments

maxplus created an issue. See original summary.

maxplus’s picture

I have attached my quick fix (not the best one but I needed a fast solution)

broon’s picture

Are you going to work on a better solution? If not, please do not assign yourself to this bug.

Apart from that, which Webform version are you using?

kyberman’s picture

Version: 8.x-1.0-beta2 » 8.x-1.x-dev
Assigned: maxplus » kyberman
Status: Active » Needs work

@Paul Webform did few changes during last releases, so I'll try to bring better patch and we should update minimum version constraint.

broon’s picture

That was my guess and that's why I was asking for the module version used.

As long as Webform doesn't have a stable release, each update may break Webform Invitation.

kyberman’s picture

Status: Needs work » Needs review
StatusFileSize
new2.51 KB

These problems started with webform version 8.x-5.0-beta20, where WebformController was replaced by more specific WebformEntityController. Patch attached.

kyberman’s picture

Assigned: kyberman » Unassigned
Status: Needs review » Fixed

Patch merged into dev. Going to create beta3 with note about compatibility.

maxplus’s picture

Thanks Guys ,

I’m using webform 8.x-5.0-beta22.

What a super quick response and solution!

  • kyberman committed a5ff8d6 on 8.x-1.x
    Issue #2920715 by maxplus, kyberman: InvalidArgumentException: Class "\...

Status: Fixed » Closed (fixed)

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