Title: custom.tmp just keeps creating in tmp folder
Last modified: August 30, 2016

---

# custom.tmp just keeps creating in tmp folder

 *  [sem8seo](https://wordpress.org/support/users/sem8seo/)
 * (@sem8seo)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/)
 * I am running multisite and tmp folder it just getting creating custom.tmp folder.
   How to stop it?
 *     ```
       20:59:44 access(".../wp-content/uploads/sites/6/2015/07", F_OK) = 0
       20:59:44 stat64(".../wp-content/uploads/sites/6/2015/07", {st_mode=S_IFDIR|0775, st_size=36864, ...}) = 0
       20:59:44 stat64("./wp-content/uploads/sites/6/js_composer/custom.css", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
       20:59:44 stat64("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=7581696, ...}) = 0
       20:59:44 access("/tmp", W_OK)           = 0
       20:59:44 access("/tmp//custom.tmp", F_OK) = 0
       20:59:44 access("/tmp//custom1.tmp", F_OK) = 0
       20:59:44 access("/tmp//custom2.tmp", F_OK) = 0
       20:59:44 access("/tmp//custom3.tmp", F_OK) = 0
       20:59:44 access("/tmp//custom4.tmp", F_OK) = 0
       20:59:44 access("/tmp//custom5.tmp", F_OK) = 0
       ```
   
 *  etc.

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Thread Starter [sem8seo](https://wordpress.org/support/users/sem8seo/)
 * (@sem8seo)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379751)
 * I spent hours and hours trying to solve it.
 * Can someone jumpin with suggestion please!
 * Disabiling plugins does not help.
 * Theme support is redirecting to VC plugin support, and VC plugin is redirecting
   to theme support.
 * This problem is causing OOM every few days.
 *  Thread Starter [sem8seo](https://wordpress.org/support/users/sem8seo/)
 * (@sem8seo)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379759)
 * Now I can not even delete it anymore.
 * `find /tmp/*.tmp | xargs rm`
 * does not work.
 * There are millions of custom.tmp files.
 * Can someone jumpin for a help, please!
 *  [akstern](https://wordpress.org/support/users/akstern/)
 * (@akstern)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379780)
 * How many WordPress did you install on your server ?
    Can you plublish the list
   of plugins ?
 *  [akstern](https://wordpress.org/support/users/akstern/)
 * (@akstern)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379817)
 * I found the plugin that create custom.tmp
    WPBakery Visual Composer
 *  [mg2015](https://wordpress.org/support/users/mg2015/)
 * (@mg2015)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379838)
 * Has there been any resolution to this? It seems to be an issue if you do not 
   have FTP/SFTP configured. The issue is found on line 107 of wp-admin/includes/
   class-wp-filesystem-ftpext.php, `if ( ! @ftp_fget($this->link, $temp, $file, 
   FTP_BINARY ) )`
 *  [keiron77](https://wordpress.org/support/users/keiron77/)
 * (@keiron77)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379839)
 * [@mg2015](https://wordpress.org/support/users/mg2015/) do you know this is the
   issue? We have been trying to debug Visual Composer and haven’t got anywhere 
   with it. Have you applied a fix and seen these files stop being created? And 
   if so, did you fix in the core file or using another method – for us, adding 
   FTP settings is not an option.
 *  [mg2015](https://wordpress.org/support/users/mg2015/)
 * (@mg2015)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379840)
 * Keiron77
 * We may have seemed to have found a potential solution although I’m not offering
   this as a recommendation, we were able to stop tmp files from being generated
   by adding `define('FS_METHOD', 'direct');` in the wp-config.php file, let me 
   know if this stops it for you as well
 *  [mg2015](https://wordpress.org/support/users/mg2015/)
 * (@mg2015)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379843)
 * [@keiron77](https://wordpress.org/support/users/keiron77/) [@mwilbers](https://wordpress.org/support/users/mwilbers/)
 * Any luck?
 *  [keiron77](https://wordpress.org/support/users/keiron77/)
 * (@keiron77)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379846)
 * Hi [@mg2015](https://wordpress.org/support/users/mg2015/), I wasn’t working on
   Friday, but we have been testing it on the dev versions of our site and it does
   work for us. We have had it there for 4 days and it does exactly what it needs
   to and it doesn’t adversly affect anything else on the build.
 * Thanks for the pointer – without it our high traffic site was creating 1000s 
   of these problem files which was causing our (very over-specced) server to slow
   down.
 *  [mg2015](https://wordpress.org/support/users/mg2015/)
 * (@mg2015)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379847)
 * [@keiron77](https://wordpress.org/support/users/keiron77/)
 * Glad to hear it worked out. It looks like js_composer calls the filesystem module.
   js_composer attempts to make an FTP connection but if a site is not properly 
   configured for FTP, it hangs at the line I mentioned previously and never gets
   around to deleting the file. With FS_METHOD, you have the flexibility of telling
   WP how to access the file system, in this case not letting WP attempt to use 
   FTP.
 *  [robertopucc](https://wordpress.org/support/users/robertopucc/)
 * (@robertopucc)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379878)
 * [@mg2015](https://wordpress.org/support/users/mg2015/)
 * works great!!!!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘custom.tmp just keeps creating in tmp folder’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 5 participants
 * Last reply from: [robertopucc](https://wordpress.org/support/users/robertopucc/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/#post-6379878)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
