Fatal error after updating to version 2.0

I updated Extra Paragraph Types (EPT): Core and Extra Paragraph Types (EPT): Image Gallery to version 2.0.
I receive a fatal error after updating.

The website encountered an unexpected error. Try again later.

ArgumentCountError: Too few arguments to function Drupal\ept_core\Plugin\Field\FieldWidget\EptSettingsDefaultWidget::__construct(), 5 passed in /.../web/modules/contrib/ept_image_gallery/src/Plugin/Field/FieldWidget/EptSettingsImageGalleryWidget.php on line 49 and exactly 7 expected in Drupal\ept_core\Plugin\Field\FieldWidget\EptSettingsDefaultWidget->__construct() (line 46 of modules/contrib/ept_core/src/Plugin/Field/FieldWidget/EptSettingsDefaultWidget.php).
Drupal\ept_image_gallery\Plugin\Field\FieldWidget\EptSettingsImageGalleryWidget->__construct('ept_settings_image_gallery', Array, Object, Array, Array, Object) (Line: 57)
Drupal\ept_image_gallery\Plugin\Field\FieldWidget\EptSettingsImageGalleryWidget::create(Object, Array, 'ept_settings_image_gallery', Array) (Line: 123)
Drupal\Core\Field\WidgetPluginManager->createInstance('ept_settings_image_gallery', Array) (Line: 81)
Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin('ept_settings_image_gallery') (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection->get('ept_settings_image_gallery') (Line: 152)
Drupal\Component\Plugin\LazyPluginCollection->getIterator() (Line: 131)
Drupal\Core\Plugin\DefaultLazyPluginCollection->getConfiguration() (Line: 310)
Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object) (Line: 272)
Drupal\Core\Entity\EntityDisplayBase->preSave(Object) (Line: 582)
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object) (Line: 537)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 239)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 371)
Drupal\Core\Entity\EntityBase->save() (Line: 643)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 429)
Drupal\Core\Config\ConfigInstaller->createConfiguration('', Array) (Line: 175)
Drupal\Core\Config\ConfigInstaller->installDefaultConfig('module', 'ept_image_gallery', Object) (Line: 448)
Drupal\Core\Extension\ModuleInstaller->doInstall(Array, Array, ) (Line: 229)
Drupal\Core\Extension\ModuleInstaller->install(Array) (Line: 186)
Drupal\system\Form\ModulesListConfirmForm->submitForm(Array, Object) (Line: 108)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 45)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 620)
Drupal\Core\Form\FormBuilder->processForm('system_modules_confirm_form', Array, Object) (Line: 343)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::wrapControllerExecutionInRenderContext():121}() (Line: 638)
Drupal\Core\Render\Renderer::{closure:Drupal\Core\Render\Renderer::executeInRenderContext():638}()
Fiber->resume() (Line: 653)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::onController():96}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 30)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 118)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 92)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 61)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 54)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 753)
Drupal\Core\DrupalKernel->handle(Object) (Line: 34)
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (Line: 32)
require_once('/home/pogoria/ftp/PROJECT/install-test/web/autoload_runtime.php') (Line: 13)

The same error occurs with a clean, new installation of version 2.0.

PHP 8.4
Drupal 11.4.1
Updated and installed using Composer

Comments

pingwin_cracow created an issue. See original summary.

levmyshkin’s picture

Hi, pingwin_cracow, thank you for your report! I tested how EPT paragraphs looks, but I didn't try to edit them. Needs some tests for editing them as well.

I fixed the problem and added new releases for EPT Image Gallery and EPT Hero. Run composer update for ept_* modules and it will be fixed for you:
composer update ept_* -W

levmyshkin’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

levmyshkin’s picture

Status: Fixed » Closed (fixed)