• When I try to access the dashboard the wp-admin page is blank.

    I’ve tried through the FTP to rename the plugins folder and themes, but still can’t access the dashboard.

    I was pretty sure it was a php error so i ran debug and go this error message:

    Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/content/60/8670560/html/wp-includes/functions.php on line 3012

    website: http://www.salonposhhair.com

    Any help would be greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • lisa

    (@contentiskey)

    do you have a full backup of website?
    have you edited the functions.php or other theme files recently?
    are you using a child theme?
    what plugins do you have active and installed?

    Thread Starter andrew.terlouw

    (@andrewterlouw)

    I have a backup but it is with a plugin unfortunately since I can’t get to the dashboard.

    I haven’t updated the functions.php recently, it was with the update that came up that I noticed the problem.

    I am using a child theme from the foundation theme

    I’ve renamed the plugins folder to deactivate all the plugins be it didn’t help.

    Any thoughts?

    Thanks for your help!

    Try deactivating your theme by adding return; at the top most of your functions.php file then scan your functions.php file see if there’s a code wp_enqueue_script. If there’s any, comment it or remove it.

    Thread Starter andrew.terlouw

    (@andrewterlouw)

    I’ve commented out the only instance:

    function wp_auth_check_load() {
    if ( ! is_admin() && ! is_user_logged_in() )
    return;

    if ( defined( ‘IFRAME_REQUEST’ ) )
    return;

    $screen = get_current_screen();
    $hidden = array( ‘update’, ‘update-network’, ‘update-core’, ‘update-core-network’, ‘upgrade’, ‘upgrade-network’, ‘network’ );
    $show = ! in_array( $screen->id, $hidden );

    if ( apply_filters( ‘wp_auth_check_load’, $show, $screen ) ) {
    /** wp_enqueue_style( ‘wp-auth-check’ );
    wp_enqueue_script( ‘wp-auth-check’ ); */

    add_action( ‘admin_print_footer_scripts’, ‘wp_auth_check_html’, 5 );
    add_action( ‘wp_print_footer_scripts’, ‘wp_auth_check_html’, 5 );
    }
    }

    Still isn’t working. Thoughts?

    Thread Starter andrew.terlouw

    (@andrewterlouw)

    Does anyone know where i can find the code to fix this?

    Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘wp-admin Page Blank’ is closed to new replies.