Warning error plugins/EMPTY
-
I have a multisite.
I assume the following error may be from one of many plugins I have deleted (using the delete feature of the plugin).
When a new user clicks on the activation link and is directed to the wp-activate.php page the following warnings come up on the header of the page.
Warning:fopen(homeurl/blogs/wp-content/plugin/EMPTY)failed to open stream:No such file or director in homeurl/blogs/wp-include/functions.php on line 4305.
Warning”fread() expects parameter 1 to be resource, Boolean given in /homeurl/blogs/wp-includes/functions.php on line 4308.
Warning:fclose()expects parameter 1 to be resource, Boolean given in /homeurl/blogs/wp-includes/functions.php on line 4311.
Here is the code the above is referencing to:
/** * Retrieve metadata from a file. * * Searches for metadata in the first 8kiB of a file, such as a plugin or theme. * Each piece of metadata must be on its own line. Fields can not span multiple * lines, the value will get cut at the end of the first line. * * If the file data is not within that first 8kiB, then the author should correct * their plugin file and move the data headers to the top. * * @link https://codex.ww.wp.xz.cn/File_Header * * @since 2.9.0 * * @param string $file Path to the file. * @param array $default_headers List of headers, in the format array('HeaderKey' => 'Header Name'). * @param string $context Optional. If specified adds filter hook "extra_{$context}_headers". * Default empty. * @return array Array of file headers in <code>HeaderKey => Header Value</code> format. */ function get_file_data( $file, $default_headers, $context = '' ) { // We don't need to write to the file, so just open for reading. $fp = fopen( $file, 'r' ); // Pull only the first 8kiB of the file in. $file_data = fread( $fp, 8192 ); // PHP will close file handle, but we are good citizens. fclose( $fp ); // Make sure we catch CR-only line endings. $file_data = str_replace( "\r", "\n", $file_data );specifically:
line 4305 $fp = fopen( $file, 'r' ); line 4308 $file_data = fread( $fp, 8192 ); line 4311 fclose( $fp );
The topic ‘Warning error plugins/EMPTY’ is closed to new replies.