• I just got an email from Google saying:

    Googlebot cannot access CSS and JS files

    on my site.

    Seems the robots.txt file is disallowing wp-admin/ and wp-includes/
    which it has always done.

    BUT there’s CSS and/or JS in there that Google wants to be able to see.

    How to fix? Allow all?

    Has the Googlebot lost its mind?

    THANKS!

Viewing 15 replies - 16 through 30 (of 94 total)
  • I’m having the same issue. We got an email from Google today saying “Googlebot cannot access your JavaScript and/or CSS files because of restrictions in your robots.txt file. “

    We use Cloudflare and our robots.txt is allowing everything except wp-admin

    User-agent: *
    Disallow: /wp-admin/

    sfeatherston, see my message above, remove /wp-admin/ and you will be OK.

    My Joomla sites are getting this notification today too.

    Same issue here, would love to hear if anyone figures it out.

    pbensin, if you read above I posted the solution and the reason everyone is getting these messages.

    We’ve received the same email for Joomla sites as well. When tested using webmaster tools, the sites passed, no issues.

    It is kind of ironic, some of the resources they want unblocked are Google-hosted scripts / fonts etc. as well as others on Facebook that are apparently blocked by Facebook.

    I can unblock resources on my own site and those on my CDN (canonical to prevent dupe content issues of course) but there is little else I can figure out to do about the rest of it.

    It seems that there is one thing it is trying to access without success: wp-admin/admin-ajax.php?action=wordfence_logHuman&hid=(x) which is a component of the Wordfence plugin. Disabling Live Traffic within the Wordfence options has cleared the error for me and is recommended, particularly for websites hosted on shared server environments due to the additional load it creates.

    So to try this yourself, log in to your WP admin, go to Wordfence > Options, uncheck Enable Live Traffic View [] This option enables live traffic logging.

    There may be other issues beyond this, but having gone through the same process as everyone above, this seems to be the most likely culprit for a lot of people. Hope it helps.

    I recently got the same emails from Google for websites that auto updated to WordPress versions 3.8.9 and 3.9.7 Neither are using a robots.txt file

    I think it’s something related to WordPress updates. These sites will get updated to 4.2.3 soon but i haven’t touched them in ages.

    Got the same mail and don’t know what to do..

    Thanks

    User-agent: *
    Disallow: /wp-admin/
    Disallow: /wp-includes/
    Disallow: /wp-content/cache/

    User-agent: Googlebot
    Disallow: /wp-admin/

    So do this now ?

    Same issue here but i think @Jesenworks has some point. I have WordFence active as well on the two of my sites that received this error message.

    Read on google forum that adding below code in robots.txt may help does anyone tried?

    Allow: *.css

    Allow: *.js

    It looks like it has something to do with this file. /wp-admin/js/password-strength-meter.min.js?ver=4.2.2

    Can anyone else confirm?

    I’m having the same issue with a number of sites. I just started getting emails today. I’m not sure if it’s coincidence, but someone mentioned Wordfence, which is a plugin that I use on all of my sites. Looking forward to hearing about solutions. Thanks!

Viewing 15 replies - 16 through 30 (of 94 total)
  • The topic ‘Googlebot cannot access CSS and JS files’ is closed to new replies.