Score:0

Devel Generate keeps generating files after uninstalling it

cn flag

Some time ago I removed Devel from my site because it is in production now. However, when I look at the Content list I still see files being generated, like generateImage_J4d7CV.png and nq3cv2oMx9.txt

I tried to reinstall and deinstall Devel from scratch, that didn't solve it. A Google search on the issue rendered no solution either.

What could I do to prevent further generation of useless files?

Edit: I noticed that files are being generated when the layout is saved of a content type.

4uk4 avatar
cn flag
Core is able to generate these sample files without Devel. See https://api.drupal.org/api/drupal/core%21modules%21image%21src%21Plugin%21Field%21FieldType%21ImageItem.php/function/ImageItem%3A%3AgenerateSampleValue. It's unlikely, though, that Devel or any other module generates samples outside of tests and without someone triggering it. Please tell more how to reproduce this.
Score:0
cn flag

After your edit this is not Devel then, this is the Layout Builder using sample content for the preview. These are marked as temporary and should be deleted by cron after the time configured here:

/admin/config/media/file-system
C.A. Vuyk avatar
cn flag
I think you're right, when checking the files the images are temporary. However the generated txt files are permanent. So this could be a bug?
4uk4 avatar
cn flag
It's not so easy to locate the second file because the name consists only of a hash. If it's a bug it should be in one of the field types configured in the content type.
C.A. Vuyk avatar
cn flag
Yes, the .txt files are one of the field types, so it could be
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.