Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Error for file scripts.js on page crawl #3

Open
4 tasks done
ghost opened this issue Apr 24, 2017 · 2 comments
Open
4 tasks done

404 Error for file scripts.js on page crawl #3

ghost opened this issue Apr 24, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 24, 2017

Make sure these boxes are checked before submitting your issue.

  • You are using this for WordPress.

  • You have Divi installed.

  • You have lint your code to ensure the problem isn't caused by your code.

  • You have already searched the GitHub issues and it has not been reported before.

  • I use this child theme for a number of sites and it works great. However, when I do a page crawl of any site I use this theme on I always get a 404 error for this scripts.js file that is in child-theme/js/
    It looks like anything I write in there works fine, but I can't figure out what I always get that crawl error.

It looks like this:
404 Error
/wp-content/plugins/home/rw1982/robwcreate.com/wp-content/themes/rw-child-theme/js/scripts.js

Is there any reason why this error would would show? It doesn't seem like there are any actual console errors, so I'm confused.

@ciraben
Copy link

ciraben commented Jul 19, 2021

(A bit late but) I was experiencing the same thing recently while working on a client's site. I found this article blaming file permissions for this type of error. I found that scripts.js has the following default permissions:

-rw-r--r-- 1 vinegipy vinegipy   56 Apr 29  2018 scripts.js

I modified these to the "755" permissions (-rwxr-xr-x) suggested in the article, and sure enough, no more errors.

You can do this too:

  1. SSH into your server, or whatever if your files are local.
  2. cd wp-content/themes/[this-guy] or wherever your theme's located.
  3. Use chmod 755 js/scripts.js to update permissions.

Credit to Alvin Brown for this fix.

@francoisPE
Copy link

Hello
May be your issue is the same than mine
This is the mime type that is to be changed from text/html to application/javascript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants