I'm sure this must have been previously covered but I can't find reference to this problem elsewhere on the forum

I have a shared hosting environment and whenever I use Devel it spurls out lots of unwanted files into the /tmp partition eventually causing all my sites to seize up.

This time there were over 2 thousand file beginning with "devel_themer"

How do I stop Devel from doing this?

Comments

moshe weitzman’s picture

Project: Devel » Theme developer
Version: 6.x-1.9 » 7.x-1.x-dev
Component: devel » Code
Status: Active » Closed (duplicate)

files are cleaned up during cron. also, theme developer is now its own project - not in devel.

AndyW’s picture

hold on, I've made a mistake

I don't know how the hell I've managed to submit this to theme developer version 7

It is for devel version 6 - shall I submit it again?

effulgentsia’s picture

Title: Problems with devel creating unwanted files on server » Create option for devel_themer to store page information in database instead of files.
Category: bug » feature
Priority: Minor » Normal
Status: Closed (duplicate) » Active

@Divisive: in the issue description, you ask how to stop devel from generating files. I think that's a good feature request, so I'm changing the issue title, and making it an active issue for 7.x.

If the issue is that the files are created in a directory that you have limited space on given your hosting arrangements, you can change the Drupal tmp files directory on the admin/settings/file-system page.

If the issue is that they're not being cleaned up often enough, they're being cleaned up on cron, so set your cron job to run /cron.php more often. Also, there's another issue to make them cleanup when the module is disabled: #578420: Cleaning of devel_themer_* files while disabling module..

Also, if you're not using the 'Theme developer' module, you can disable it (while still keeping the Devel module enabled), and the files won't get generated. But if you are using the module, the files need to be generated, because they contain information needed by the module.

JeremyFrench’s picture

I can see that this is an issue, looking through the code, I believe that the variables used to be in the database.

I think a reasonable work around would be to put the uid into the file names, and clear files on each request. I'll have to see how much of a hit that has on performance.

JeremyFrench’s picture

Title: Create option for devel_themer to store page information in database instead of files. » Theme developer creates too many files

Changing title to that of the problem rather than a solution.

JeremyFrench’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
JeremyFrench’s picture

Assigned: Unassigned » JeremyFrench
Priority: Normal » Major

There were a number of bugs in the issue queue around this.

They can be summarized as

  • Too many files being created.
  • Sometimes unable to create files.
  • Files not deleted when themer is turned off
  • On shared hosting devel themer tries to delete all files, not just those for specific site

So I am thinking that we need to clean files more often, and clean just the specific files that are used for a particular user/site.

I'll see what I can do.

geerlingguy’s picture

I'm having the same problem - unable to create files... I'm using private filesystem, and the files should be created in the /tmp directory on the server, which has proper permissions (777 - other modules create tmp files without a problem).

hkirsman’s picture

Need this!

raulmuroc’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Assigned: JeremyFrench » Unassigned
Priority: Major » Normal
Status: Active » Closed (duplicate)