PHP warning with new installation
-
I’m getting the following warning on a new install of Sucuri, using Windows.
WARNING: E:\web\htdocs\wordpress\wp-content\plugins\sucuri-scanner\src\hardening.lib.php:98 - fopen(E:\web\htdocs\wordpress//E:/web/htdocs/wordpress/wp-content/uploads/sucuri/.htaccess): failed to open stream: No such file or directoryThe bug appears to be in the static function htaccess(). On my localhost, that method is returning the following path name to .htaccess:
E:\web\htdocs\wordpress//E:/web/htdocs/wordpress/wp-content/uploads/sucuri/.htaccessIn turn that seems to be caused because
$folderbeing passed to thehtaccessmethod has forward slashes, whileABSPATHhas backslashes (although with a forward slash at the end, thanks to lines 11-13 of wp-admin/load-scripts.php).
The topic ‘PHP warning with new installation’ is closed to new replies.