Error on update from 3.01 to 3.02

Created on 7 March 2024, 10 months ago
Updated 17 April 2024, 8 months ago

Problem

Error on update from 3.01 to 3.02 and sit down.

The website encountered an unexpected error. Try again later.
ParseError: syntax error, unexpected identifier "NAME_MAX_LENGTH", expecting "=" in Composer\Autoload\includeFile() (line 55 of modules/easy_entity_field/src/Entity/EasyEntityField.php).

Drupal 10.2.3
PHP 8.2.16

I fixed error by changing
public const int NAME_MAX_LENGTH = 32;
to previous
public const NAME_MAX_LENGTH = 32;

πŸ› Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada psaleks

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

Comments & Activities

  • Issue created by @psaleks
  • Status changed to Needs review 8 months ago
  • πŸ‡ΈπŸ‡°Slovakia coaston

    Looks like it is fixed with 3.x-dev version. Actually the same issue was when I want to install it from the scratch (no upgrade) when I used 3.0.2 version.

    Admin should be able to push the same fix for stable version 3.0.2 like it is in dev.

  • Status changed to Needs work 8 months ago
  • πŸ‡ΈπŸ‡°Slovakia coaston

    Now when I upgraded from 3.0.2 to 3.x-dev I can see following error in Status report:
    Mismatched entity and/or field definitions
    The following changes were detected in the entity type and field definitions.
    Easy entity field
    The Easy entity field entity type needs to be installed.

    Update.php does not resolved the issue.

  • πŸ‡¨πŸ‡³China qiutuo

    Prompt in status:

    The following changes were detected in the entity type and field definitions.
    Easy entity field

    You only need to find a field created by the easy_entity_field module, click edit, and then perform a save once to solve the problem.

  • Status changed to Closed: works as designed 8 months ago
  • πŸ‡ΈπŸ‡°Slovakia coaston

    Hi @quituo - where can I find this field? It is right after I installed this module so i havenΒ΄t created any manually. Hence no idea where to determine it.

  • πŸ‡¨πŸ‡³China qiutuo

    This is the management path: /admin/config/development/easy-entity-field

    Set the content entity type to be used here.

Production build 0.71.5 2024