Just thought I’d share something that appears to work for me, though I’m not sure yet if it has any negative implications for the use of the plugin.
If you open really-simple-captcha.php and head to line 190 you’ll see:
foreach ( $suffixes as $suffix ) {
$filename = sanitize_file_name( $prefix . $suffix );
$file = trailingslashit( $this->tmp_dir ) . $filename;
if ( is_file( $file ) )
unlink( $file );
}
Line 190 is the line indicated in the error message you may either get back in your POST response, or displayed on the page if JavaScript is turned off.
I decided that this functionality can’t be that important so I changed this section to:
foreach ( $suffixes as $suffix ) {
$filename = sanitize_file_name( $prefix . $suffix );
$file = trailingslashit( $this->tmp_dir ) . $filename;
if ( is_file( $file ) ){
//Commented this out because it breaks things and makes me sad.
//unlink( $file );
}
}
This seems to do the trick for me, really annoying issue, hopefully it gets sorted at some point soon.