Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter Pratyaksh

    (@pratyaksh99)

    Hello James,

    Thanks for the prompt response.
    I forgot to mention, I also did below also:

    1) tried to re-install wordpress
    2) tried to roll back.

    Nothing worked.
    I removed below lines from my child theme functions.php and voila the admin is back.

    //firebase from defer
    function add_defer_to_cf7( $url )
    {
    //If not js file OR js file with ‘jquery.ui.core.min’ OR ‘jquery.min’ name string, then no need to apply defer
    if(FALSE === strpos( $url, ‘.js’) || ((strpos( $url, ‘firebase-app’) > 0) || (strpos($url, ‘firebase-auth’) > 0))){
    return $url;
    }
    else{
    //set defer for .js files
    return “$url’ defer=’defer”;
    }
    }
    add_filter( ‘clean_url’, ‘add_defer_to_cf7’, 11, 1 );

    Actually I was looking to remove firebase.js from the list of defered js. And this actually worked at front end, but not at backend.

    Regards
    Pratyaksh

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

The topic ‘Broken Javascripts at Dashboard’ is closed to new replies.