- enable theme developer module
- use it for a while
- look at the "prefix_file_managed" table and note lots of items like

22 1 devel_themer_9563682274da5aac5d27da temporary://devel_themer_9563682274da5aac5d27da application/octet-stream 5118422 1 1302702787

- disable theme developer module and check the table: items still there
- uninstall theme developer module and check the table: items still there

I think that at the latest, after uninstalling the module it should clean up after itself: clean the database table and clean the temp file folder as mentioned in other issues

CommentFileSizeAuthor
#1 1130400.patch830 bytesramlev

Comments

ramlev’s picture

StatusFileSize
new830 bytes

My patch calls devel_themer_cleanup() in hook_uninstall() which cleans up temporary files.

jackalope’s picture

Applied this patch to the most recent dev version and it didn't work; tried to uninstall via drush and got this error: "Error: Call to undefined function devel_themer_cleanup()"

I noticed that in the column description in the MySQL database the status column reads "A field indicating the status of the file. Two status are defined in core: temporary (0) and permanent (1). Temporary files older than DRUPAL_MAXIMUM_TEMP_FILE_AGE will be removed during a cron run." All of the devel_themer_* entries have 1 in this column, indicating they're permanent. Could that be related to this problem?

ramlev’s picture

Well, Have just installed the latest master branch (7.x), and applied the patch, and dont recall the issues you are showing.

Which version of drush are you running ? I have tested with 4.4 with no problems at all.

kenneth.venken’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #327512: devel_themer leaves files in /tmp. After applying the ported patch, the entries get deleted from the database.