• JimmyGlee

    (@jimmyglee)


    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter JimmyGlee

    (@jimmyglee)

    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

    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

    esmi

    (@esmi)

    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.

    Thread Starter JimmyGlee

    (@jimmyglee)

    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 ?

    Thread Starter JimmyGlee

    (@jimmyglee)

    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.]

    Thread Starter JimmyGlee

    (@jimmyglee)

    No idea for anybody ?

    Thread Starter JimmyGlee

    (@jimmyglee)

    The URL of my website is

    Thread Starter JimmyGlee

    (@jimmyglee)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cannot modify header information – headers already sent by’ is closed to new replies.