Problem/Motivation

Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
File

The Original filename field needs to be installed.

Proposed resolution

Add the installing of the base field to an update hook.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#4 3119771-4.status-report-error.png57.38 KBdww
#2 3119771-2.patch861 bytesjoelpittet
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

joelpittet created an issue. See original summary.

joelpittet’s picture

Status: Active » Needs review
StatusFileSize
new861 bytes

This seems to have helped as written in this CR
https://www.drupal.org/node/2554097

joelpittet’s picture

Title: The Original filename field needs to be installed. » The Original filename field 'origname' needs to be installed on the file table
dww’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new57.38 KB

Good catch, thanks! I was wondering where this status report error was actually coming from. ;)

Status report error about 'Original filename' field out of sync on file entities

Finally googled it and found this. Applied #2 to a dev copy of the site, ran the update, and now the status report error is gone.

Code looks totally clean and proper.

RTBC!

Thanks again,
-Derek

ptmkenny’s picture

I can also confirm this fixes the error. There was a beta5 release recently; it would be great to get this in the next beta.

Loac’s picture

It's work.
God bless you!

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

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

jrglasgow’s picture

+1 for this to be committed - merge request created

  • jrglasgow committed 5eb461b on 8.x-1.x authored by joelpittet
    Issue #3119771: The Original filename field 'origname' needs to be...
voleger’s picture

Fixed, thanks

voleger’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

octaviosch’s picture

Please, I need help. This is happening to me in Drupal 10.3.2 with PHP 8.2.22 and module version 8.x-1.0-beta7.

I looked in the module files and the patch that is in solution #2 is already applied but it is still happening. Does anyone have any idea why it could be?

Please help <3

ptmkenny’s picture

@octaviosch This issue is closed; please open a new issue with detailed information and steps to reproduce. In the new issue, you can link to this one as a related issue.

octaviosch’s picture

I don't really know what happened, but I fixed it by uninstalling the module and deleting all the files I had already created just in case.

I reinstalled, configured, tested and no problem.

Sorry for posting here and not creating a new issue.

gilmord’s picture

Not sure why it was added in hook_update only, as it does not run on fresh install,
see this https://www.drupal.org/project/filefield_paths/issues/3556209