• 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

    (@sem8seo)

    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

    (@sem8seo)

    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!

    How many WordPress did you install on your server ?
    Can you plublish the list of plugins ?

    I found the plugin that create custom.tmp
    WPBakery Visual Composer

    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 ) )

    @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.

    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

    @keiron77 @mwilbers

    Any luck?

    Hi @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.

    @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.

    @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.