• Hey!

    I was trying to improve my page speed and pagespeed insight recommanded me to defer my javascript.
    So i tried to find a way to defer jquery.js and found a website explaining how to do this.

    I copied this code in the functions.php of my child-theme:

    <?php
    // Defer jQuery Parsing using the HTML5 defer property
    if (!(is_admin() )) {
        function defer_parsing_of_js ( $url ) {
            if ( FALSE === strpos( $url, '.js' ) ) return $url;
            if ( strpos( $url, 'jquery.js' ) ) return $url;
            // return "$url' defer ";
            return "$url' defer onload='";
        }
        add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
    }
    ?>

    Now i’m getting a blank page when my index.php and themes.php .

    Of course, i deleted the code, made a clean installation of my theme but it doesn’t work. I renamed my plugins folders and it doesn’t change anything…

    I have no idea how to fix this. Any advices?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator t-p

    (@t-p)

    – Check the error logs on your server for a more specific error message. If you need help locating them, ask your hosting provider to help you with that.

    Thread Starter Vulgar

    (@vulgar)

    I don’t see any errors.

    Well, i guess there’s something wrong with the code i copied above. I don’t know anything about php so i don’t understand what it did. But if that code was the culprit, it should work once i deleted it right?

    i’m getting the same blanks, and i didn’t change anything, in fact, i just install my first-ever WP, and i can’t access the dashboard. the …/wp_admin or wp_login doesn’t work and i keep getting these blank pages.
    any advise, please?!

    mine the domain it self doesn’t please someone help

    Moderator t-p

    (@t-p)

    @frinteractives,
    @yoggie24,
    to get full attention to your specific issue, my suggestion would be to start your own thread. Despite any similarity in symptoms, your issue is likely to be completely different because of possible differences in physical servers, accounts, hosts, plugins, theme, configurations, etc. Thus one problem, on one setup is not indicative of the functionality and reliability of an application as a whole. To get the best attention to your specific issue as you deserve, please review how and where to post in this forum: http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    @vulgar,

    But if that code was the culprit, it should work once i deleted it right?

    theoretically, yes.
    But who knows what else that code may have messed up!

    try a few basic troubleshooting steps:
    – Flushing any caching plugins you might be running, as well as server and/or browser caches.
    – try uploading a fresh copy of functions.php file.
    – to rule out any theme specific issue, try switching to the unedited default Twenty Fourteen Theme for a moment via FTP or SFTP or whatever file management application your host provides.

    Thread Starter Vulgar

    (@vulgar)

    I already flushed the cache, uploaded a fresh copy of my theme, of my wp_includes and wp_admin.
    I can’t change the theme in the admin panel so i uploaded twentyfourteen and renamed it to my theme name.

    Nothing is working.

    And i’m getting a new blank page in the wp-admin/ now after uploading a fresh wp_includes and wp_admin even if i reuploaded the old ones after that.

    I don’t get it…

    Moderator t-p

    (@t-p)

    I can’t change the theme in the admin

    You don’t need excess to admin to do what I suggested in my previous post. Please read my previous reply again.

    Thread Starter Vulgar

    (@vulgar)

    Yup and that’s what i did. Didn’t change anything.

    After some google searches, i found out that i can access my admin panel when i’m adding “?” and a letter/number after the url. ( wp-admin/?X).

    Hope it helps… I want to fix this.

    Thread Starter Vulgar

    (@vulgar)

    Still no change but i find a way to access to these blank pages.

    I just add an extra slash at the end of /wp-admin/ and it works. Then, the admin panel works perfectly but there’s 2 slashes in my urls ( website/wp-admin//themes.php etc…).

    Still looking for a way to fix this…

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

The topic ‘wp-admin/index.php and wp-admin/themes.php blank pages’ is closed to new replies.