Problem/Motivation

File save issues:

  • I get an error uploading an image at /media/add/image or to an Image field on a node until I changed "FILE_STATUS_PERMANENT" to "FileInterface::STATUS_PERMANENT" in AffectedPathResolver.php. Error was: "Error: Undefined constant "Drupal\stale_404_purge\Service\FILE_STATUS_PERMANENT" in Drupal\stale_404_purge\Service\AffectedPathResolver->resolveFromFile() (line 259 of /var/www/html/web/modules/contrib/stale_404_purge/src/Service/AffectedPathResolver.php)."
  • Is the file 404 purging intended on first save? When I upload an image at /media/add/image or to an Image field on a node, resolveFromFile treats it as temporary, then I click save, and resolveFromFile runs again, but doesn't queue a purge because it compares URIs and they match.
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

dgroene created an issue. See original summary.

dgroene’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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