Error on install

Created on 11 December 2024, 4 months ago

Hello,

I get this error on install on Drupal 10.3.6

Fatal error: Declaration of Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint::validatedBy() must be compatible with Symfony\Component\Validator\Constraint::validatedBy(): string in /home/.../web/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UniqueFieldConstraint.php on line 35

Any help ?

Thanks

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇧🇪Belgium jbfelix

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

Comments & Activities

  • Issue created by @jbfelix
  • 🇮🇳India priti197 Mumbai - India

    This issue is due to improper declaration of function validatedBy() in Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint.
    You may have to open an issue for Drupal core. Hope this helps. Thanks.

  • 🇧🇪Belgium oldeb Namur 🇧🇪

    I have similar issues when upgrading from 4.0.0 to 4.0.1 on Drupal 10.3.

    Fatal error: Declaration of Drupal\Core\Entity\Plugin\Validation\Constraint\EntityHasFieldConstraint::getDefaultOption() must be compatible with Symfony\Component\Validator\Constraint::getDefaultOption(): ?string in /app/app/web/core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php on line 50

    PHP Fatal error: Declaration of Drupal\ckeditor5\Plugin\Validation\Constraint\ToolbarItemDependencyConstraint::getRequiredOptions() must be compatible with Symfony\Component\Validator\Constraint::getRequiredOptions(): array in /app/app/web/core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemDependencyConstraint.php on line 39

    Downgrading to 4.0.0 fixes the problem.

  • 🇧🇪Belgium oldeb Namur 🇧🇪
Production build 0.71.5 2024