Problem/Motivation

After Drupal Core was updated, we are seeing the following error in the status page:

error screenshot

While I was doing Google search for resolution, I came to this page and it was suggesting to open a support request in its issue queue.
https://www.drupal.org/node/3034742

Using:
Drupal Version
9.4.15
Recurring Events module
2.0.0-rc12

Please let me know if you need more information.
Thank you for your help!

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

cswan created an issue. See original summary.

owenbush’s picture

I think this must be a hangover from:

https://git.drupalcode.org/project/recurring_events/-/commit/6bdc2517395...

I'll have to think how to resolve this.

cswan’s picture

Hi!
Thank you for responding to this ticket.
I found the following solution that had seemed to work for us. Do you think that this is a good solution?:
https://www.drupal.org/node/3034742#comment-13999920

Thank you for your help!

AndyF made their first commit to this issue’s fork.

andyf’s picture

Version: 2.0.0-rc12 » 2.0.x-dev
Status: Active » Needs review

I think this must be a hangover from:

https://git.drupalcode.org/project/recurring_events/-/commit/6bdc2517395...

I think that's right: in that commit the new trait doesn't set the field as revisionable although the original was, this seems to be the cause of the mismatch.

owenbush’s picture

StatusFileSize
new34.82 KB

Thanks, Andy. It looks to me like in some other circumstances some of these other fields can end up mismatching, so I went ahead and added a hook update to resolve those too. Good find on the revisionable though.

For example I had this locally:

So the hook update should update uid for those who may have already tried to resolve this, and then also those other mismatches.

rpayanm made their first commit to this issue’s fork.

rpayanm’s picture

Please review.

  • owenbush committed f54b8b43 on 2.0.x authored by AndyF
    Issue #3384389: Mismatched entity and/or field definitions: The User ID...
owenbush’s picture

Status: Needs review » Fixed

This has been merged in 2.0.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kasperg’s picture

Issue summary: View changes

In case anyone stumbles upon this I encountered an error when running the database update when going from 2.0.0-rc16 to 2.0.0.

>  [error]  Exception thrown while performing a schema update. SQLSTATE[01000]: Warning: 1265 Data truncated for column 'uid' at row 1: ALTER TABLE "eventseries_field_revision" CHANGE "uid" "uid" INT unsigned NOT NULL COMMENT 'The ID of the target entity.'; Array
> (
> )
>
>  [error]  Update failed: recurring_events_update_91002

It is not important to me at this point but it may be relevant for others upgrading.

kasperg’s picture

Issue summary: View changes
plopesc’s picture