I haven’t seen this warning, but, generally speaking, warnings are essentially PHP saying, “You shouldn’t be doing this this way, however, I’m not going to stop you from doing it…but, still, you should fix it. Now, carry on.”
Warnings are often an indicator that something which works now may stop working the same way in the future. While warnings aren’t necessarily critical, it’s still a good idea to get the bottom of them.
Looking at the error message, a use of the copy()
function seems to be awry. The PHP Error Log plugin doesn’t use this function, but, I did look at line 281 in /wp-admin/includes/class-wp-filesystem-direct.php
and find a return false;
at line 281…
public function delete($file, $recursive = false, $type = false) {
if ( empty( $file ) ) // Some filesystems report this as /, which can cause non-expected recursive deletion of all files in the filesystem.
return false; // <------- This is line 281...
$file = str_replace( '\\', '/', $file ); // for win32, occasional problems deleting files otherwise
I’m looking at ClassicPress 1.1.1; can you confirm that your line 281 reads the same as mine?
If so, it may be either the copy()
or the delete()
function… The PHP Error Log plugin doesn’t use either of these functions, I suspect the plugin is merely reporting the issue, rather than causing it.
You might scan your files (core/plugins/themes/everything) for the strings delete(
and/or copy(
, to determine everywhere the functions are used. My guess is that a plugin (or theme) has used one of them incorrectly, so, I’d start with any results you find in the plugins or themes directories.
If you find a plugin using these functions, deactivate it, clear your error log, and see if you can reproduce the error. If you can, deactivate the next one, repeat…and so on… It may take a few tries, but, I suspect this may be the best path forward.