• Hi,

    Due to a temporary out-of-space condition we experienced some downtime on our site, due to better-wp-security updating the files at exatly that moment.

    Looking at the code, this should be possible to be handled by writing a temporary file in the same directory and calling rename() if the write doesn’t fail, in ITSEC_Lib_File::write() for all cases that are non-append. This will help also in situations in which for some other reason the file writing might fail (completely or partially).

    Does that make sense, and if yes, would a patch for this functionality be accepted?

Viewing 1 replies (of 1 total)
  • Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @vloo, thank you for this valuable suggestion!

    Indeed, running low on disk space can cause Solid Security’s automatic writing to config files to be incomplete, leading to site issues. You can find a similar discussion on this topic here: https://www.ads-software.com/support/topic/htaccess-becomes-corrupt/

    I’ve escalated your suggestion to our dev team so they can review it, and rest assured, I’ll circle back to you when I receive feedback.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘truncated .htaccess and wp-config.php on out-of-disk-space condition’ is closed to new replies.