Error Entity/field definitions Mismatched entity and/or field definitions

Created on 23 January 2023, over 1 year ago
Updated 22 May 2023, about 1 year ago

Problem/Motivation

Error after install with drupal 9.5.2 and mysql 5.37 and php 8.1

Entity/field definitions
Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Pathauto pattern
The Pathauto pattern entity type needs to be installed.

🐛 Bug report
Status

Active

Version

1.11

Component

Code

Created by

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

Comments & Activities

  • Issue created by @Nelo_Drup
  • And create node and save display next error:

    Deprecated function: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in Drupal\pathauto\AliasCleaner->cleanString() (line 197 of modules/contrib/pathauto/src/AliasCleaner.php).
    Drupal\pathauto\AliasCleaner->cleanString(Object, Array) (Line: 348)
    Drupal\pathauto\AliasCleaner->cleanTokenValues(Array, Array, Array, Object) (Line: 263)
    Drupal\Core\Utility\Token->doReplace(1, '[node:title]', Array, Array, Object) (Line: 189)
    Drupal\Core\Utility\Token->replace('[node:title]', Array, Array, Object) (Line: 228)
    Drupal\pathauto\PathautoGenerator->createEntityAlias(Object, 'insert') (Line: 381)
    Drupal\pathauto\PathautoGenerator->updateEntityAlias(Object, 'insert') (Line: 86)
    pathauto_entity_insert(Object)

  • Assigned to nivethitha
  • 🇮🇳India nivethitha

    PHP 7 and lower just would ignore the missing parameter, while PHP 8+ displays the warning. It may also vary with your environment / debug settings.

  • #3 the problem is that it does not generate the clean link that should be example.com/page-demo but it generates it as follows example.com/pagedemo as you can see it doesn't replace the space with the hyphen

  • Issue was unassigned.
  • 🇺🇸United States DamienMcKenna NH, USA

    Changing back to "unassigned"; as a reminder, once you're finished with your work, or are not able to follow up on it, please set the "assigned" field back to "unassigned" so that others know they can continue your work. Thank you.

Production build 0.69.0 2024