Error when saving block in layout builder form - exception class

Created on 18 January 2023, over 1 year ago
Updated 16 March 2023, over 1 year ago

Problem/Motivation

When trying to update a block in Layout Builder on a page that has a language dropdown, the following error is thrown:

Error: Call to undefined method Drupal\Core\Form\FormAjaxException::getStatusCode() in Drupal\dropdown_language\Plugin\Block\DropdownLanguage->build() (line 142 of /var/www/web/modules/composer/dropdown_language/src/Plugin/Block/DropdownLanguage.php)

This is due to the exception not being an HttpException as DropdownLanguage is assuming.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024