Title: mg2015's Replies | WordPress.org

---

# mg2015

  [  ](https://wordpress.org/support/users/mg2015/)

 *   [Profile](https://wordpress.org/support/users/mg2015/)
 *   [Topics Started](https://wordpress.org/support/users/mg2015/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mg2015/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mg2015/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mg2015/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mg2015/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mg2015/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [custom.tmp just keeps creating in tmp folder](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/)
 *  [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.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [custom.tmp just keeps creating in tmp folder](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/)
 *  [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?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress FTP Filesystem is creating .tmp files and not deleting them](https://wordpress.org/support/topic/wordpress-ftp-filesystem-is-creating-tmp-files-and-not-deleting-them/)
 *  Thread Starter [mg2015](https://wordpress.org/support/users/mg2015/)
 * (@mg2015)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wordpress-ftp-filesystem-is-creating-tmp-files-and-not-deleting-them/#post-6525802)
 * Josh, It seems like we were able to stop the custom.tmp files from being generated
   by passing `define('FS_METHOD', 'direct');` inside the wp-config.php directory.
   We’re not sure why but the js_composer plugin was trying to make an ftp connection
   with the FTP File system module however, we don’t support FTP uploads in our 
   environment. Are there any issues with defining the direct as FS_METHOD?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [custom.tmp just keeps creating in tmp folder](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/)
 *  [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
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress FTP Filesystem is creating .tmp files and not deleting them](https://wordpress.org/support/topic/wordpress-ftp-filesystem-is-creating-tmp-files-and-not-deleting-them/)
 *  Thread Starter [mg2015](https://wordpress.org/support/users/mg2015/)
 * (@mg2015)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wordpress-ftp-filesystem-is-creating-tmp-files-and-not-deleting-them/#post-6525793)
 * Josh, I tried turning on error reporting but I dont get a debug.log in /wp-content/.
   I followed the example from [https://codex.wordpress.org/Debugging_in_WordPress](https://codex.wordpress.org/Debugging_in_WordPress)(
   Example wp-config.php for Debugging)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [custom.tmp just keeps creating in tmp folder](https://wordpress.org/support/topic/customtmp-just-keeps-creating-in-tmp-folder/)
 *  [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 ) )`

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