WordPress directory generated temp-write-test * and other 0 byte file solution

Suddenly found WordPress wp-content directory generated a lot of temp-write-test * 0 byte file, although 0 bytes do not take up hard disk capacity, but the number is too large, sometimes up to hundreds of thousands of files, very much affecting the operation of the site, this article will describe how to prohibit the generation of such files.

Image [1]-WordPress directory to generate temp-write-test* and other 0 byte file solution - Photon Fluctuation Network | Professional WordPress repair services, worldwide, rapid response

This file is usually in the /wp-content/ directory, or the /wp-content/plugins/ directory, or the /wp-content/themes/ directory, as shown here:

Image [2]-WordPress directory to generate temp-write-test* and other 0-byte file solution - Photon Flux | Professional WordPress repair services, worldwide, rapid response

Let's talk about the solution:

Find and open wp-config.php in the root directory of the website:.

Image [3]-WordPress directory to generate temp-write-test* and other 0 byte file solution - Photon Fluctuation Network | Professional WordPress repair services, worldwide, fast response

Open it and find the following code:

define( 'WP_DEBUG', false );

Add the following code below it:

define('FS_METHOD', 'direct').

It looks like this when the additions are complete:

Image [4]-WordPress directory to generate temp-write-test* and other 0 byte file solution - Photon Fluctuation Network | Professional WordPress repair services, worldwide, fast response

This completes the setup to disable the generation of temp-write-test files.

Next, we'll just delete the temp-write-test file that we've generated before in the file manager of our website.

Image [5]-WordPress directory to generate temp-write-test* and other 0 byte file solution - Photon Fluctuation Network | Professional WordPress repair services, worldwide, fast response

Contact Us
Can't read the article? Contact us for free answers! Free help for personal, small business sites!
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
This article was written by Jack
THE END
If you like it, support it.
kudos0 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments