Error on changing the display type to Ticket QR code of the QR code field

Created on 9 October 2023, about 1 year ago
Updated 31 October 2023, about 1 year ago

Problem/Motivation

Error on choosing a layout of Ticket QR Code.


Ajax error is emitted. Indicator remains displayed.

Error

TypeError: Drupal\commerce_ticketing\Plugin\Field\FieldFormatter\CommerceTicketingQrCodeFormatter::__construct(): Argument #10 ($module_handler) must be of type Drupal\Core\Extension\ModuleHandler, Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given, called in
/Sites/kegworthevents/web/modules/contrib/commerce_ticketing/src/Plugin/Field/FieldFormatter/CommerceTicketingQrCodeFormatter.php on line 109 in Drupal\commerce_ticketing\Plugin\Field\FieldFormatter\CommerceTicketingQrCodeFormatter->__construct() (line 87 of
/Sites/kegworthevents/web/modules/contrib/commerce_ticketing/src/Plugin/Field/FieldFormatter/CommerceTicketingQrCodeFormatter.php) #0 /Sites/kegworthevents/web/modules/contrib/commerce_ticketing/src/Plugin/Field/FieldFormatter/CommerceTicketingQrCodeFormatter.php(109):
Drupal\commerce_ticketing\Plugin\Field\FieldFormatter\CommerceTicketingQrCodeFormatter->__construct('commerce_ticket...', Array, Object(Drupal\Core\Field\BaseFieldDefinition), Array, 'above', 'default', Array, Object(Drupal\Core\Entity\EntityTypeManager), Object(Drupal\Core\Render\Renderer),
Object(Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler))

Steps to reproduce

  1. Edit the display in the ticket type
  2. Change the display of the QR Code to Ticket QR code

The same error on PHP 7.4 and 8.2.

Proposed resolution

Related to hook_event_dispatcher? (version: '3.3.4')?

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇦🇺Australia interlated

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

Comments & Activities

Production build 0.71.5 2024