- Issue created by @arnoldbird
- πΊπΈUnited States arnoldbird
Based on the code in FileSystem.php, it looks like Drupal can't write to the temp directory. However, there is no indication on the status page or the file file system config page that there is any problem with my temp directory, and I am able to create media entities via the UI with no problem.
- πΊπΈUnited States arnoldbird
I tried creating a new temp directory and changing my settings file accordingly. All is well according to the status report page, but I still get the same memory errors when I visit any of the pages for adding media bundles. For example, /media/add/audio.
- Status changed to Closed: works as designed
over 1 year ago 6:29pm 9 August 2023 - πΊπΈUnited States arnoldbird
The problem is caused by the existence of a _media_create() function in a custom module. I don't know why that would be, but perhaps that function name conflicts with something else in Drupal. If I change the function name to _media_create2(), the problem goes away.
- πΊπΈUnited States arnoldbird
Naming collision with https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...
That was the problem.