WordPress.org

Ready to get started?Download WordPress

Forums

Cannot modify header information - headers already sent by (9 posts)

  1. JimmyGlee
    Member
    Posted 1 year ago #

    Everything was running well until a day where errors came by themselves.

    I can't access my wp-admin page. I have thoses errors :

    Notice: wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in C:\Inetpub\vhosts\apiengi.net\nextdays\wp-includes\functions.php on line 2959
    
    Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\apiengi.net\nextdays\wp-includes\functions.php:2959) in C:\Inetpub\vhosts\apiengi.net\nextdays\wp-includes\pluggable.php on line 876

    I also have a new error message on my main page : http://www.nextdays.com
    I have tried a lot of things I saw on Internet but nothing works.

    Do you have any idea ?

    Thank you very much.

  2. JimmyGlee
    Member
    Posted 1 year ago #

    And this message appears on my index page : Notice: wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in [SERVER INFO]\wp-includes\functions.php on line 2959

  3. x500.net
    Member
    Posted 1 year ago #

    and one more thing... paste the wp_deregister_script from your functions file as it's hard to guess what's there.
    you'll find it in functions.php on line 2959 and around

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Try:
    - switching to the default theme by renaming your current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides.

    - resetting the plugins folder by FTP or phpMyAdmin.

  5. JimmyGlee
    Member
    Posted 1 year ago #

    I tried to reset the plugins as you told me. => It doesn't work
    Tried to switch to default theme => doesn't work
    I can't find the wp_deregister_script. => Not in wp-includes/functions.php

    What is this CSS error message on my index now ?

    How could I access to my wp-admin page please ?

  6. JimmyGlee
    Member
    Posted 1 year ago #

    Here is the code in pluggable.php at line 876

    function status_header( $header ) {
    	$text = get_status_header_desc( $header );
    
    	if ( empty( $text ) )
    		return false;
    
    	$protocol = $_SERVER["SERVER_PROTOCOL"];
    	if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol )
    		$protocol = 'HTTP/1.0';
    	$status_header = "$protocol $header $text";
    	if ( function_exists( 'apply_filters' ) )
    		$status_header = apply_filters( 'status_header', $status_header, $header, $text, $protocol );
    
    	return @header( $status_header, true, $header );
    }

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  7. JimmyGlee
    Member
    Posted 1 year ago #

    No idea for anybody ?

  8. JimmyGlee
    Member
    Posted 1 year ago #

    The URL of my website is

  9. JimmyGlee
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.