• Hi all

    Have spent 2 days staring at code and could really use some help! I installed a plugin, Huge-IT gallery, and immediately got 3 warnings:

    Warning: fopen(/home/r33971/public_html/wp-content/plugins/gallery-images/gallery-images.php) [function.fopen]: failed to open stream: No such file or directory in /home/r33971/public_html/wp-includes/functions.php on line 4463
    
    Warning: fread() expects parameter 1 to be resource, boolean given in /home/r33971/public_html/wp-includes/functions.php on line 4466
    
    Warning: fclose() expects parameter 1 to be resource, boolean given in /home/r33971/public_html/wp-includes/functions.php on line 4469

    At that point a blip in the power caused my pc to restart, but when I tried to log back into WP I got the following:

    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-login.php on line 387
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-login.php on line 400
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 977
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 978
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 979
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 980
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 981
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 982
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 985
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 986
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 987
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 988
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 991
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 992
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 993
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/r33971/public_html/wp-includes/functions.php:4463) in /home/r33971/public_html/wp-includes/pluggable.php on line 994

    the site loads,(link here) but with the first 3 error lines at the top of the screen.
    I’ve done quite a bit of research but gotten nowhere. I’ve checked for blank spaces / lines and can’t find any. As I understand it from the error messages, the problem lies with the code lines 4463 4466, and 4469 but having located those lines, I can’t see what the problem is other than I’m not positive the line numbers tie up:

    4455 */
    4456 function get_file_data( $file, $default_headers, $context = ” ) {
    4457 // We don’t need to write to the file, so just open for reading.
    4458 $fp = fopen( $file, ‘r’ );
    4459
    4460 // Pull only the first 8kiB of the file in.
    4461 $file_data = fread( $fp, 8192 );
    4462
    4463 // PHP will close file handle, but we are good citizens.
    4464 fclose( $fp );
    4465
    4466 // Make sure we catch CR-only line endings.
    4467 $file_data = str_replace( “\r”, “\n”, $file_data );
    4468
    4469 fclose( $fp );
    /**

    I’m not a web designer, just a technician in a school trying to update the website!

    All help gratefully appreciated

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Headers already sent plus 2 other warnings’ is closed to new replies.