Title: script and reference errors
Last modified: October 30, 2020

---

# script and reference errors

 *  [highlandview](https://wordpress.org/support/users/highlandview/)
 * (@highlandview)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/)
 * public and admin pages throwing considerable script errors. Site is almost unusable.
 * Examples include:
 * The script from “https://www.bcri.org/?ver=bb7c3c45d012206bfcd73d6a31f84d9e” 
   was loaded even though its MIME type (“text/html”) is not a valid JavaScript 
   MIME type.
 * The script from “https://www.bcri.org/?ver=7.4.12” was loaded even though its
   MIME type (“text/html”) is not a valid JavaScript MIME type.
    -  This topic was modified 5 years, 7 months ago by [highlandview](https://wordpress.org/support/users/highlandview/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fscript-and-reference-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13599977)
 * Try [manually resetting your plugins](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, access your server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel (consult your hosting
   provider’s documentation for specifics on these), navigate to /wp-content/themes/
   and rename the directory of your currently active theme. This will force the 
   default theme to activate and hopefully rule-out a theme-specific issue (theme
   functions can interfere like plugins).
 *  Thread Starter [highlandview](https://wordpress.org/support/users/highlandview/)
 * (@highlandview)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13600938)
 * Unfortunately, I’ve tried both of these. I changed the theme to twentytwenty 
   and disabled all plugins.
 * I even went as far as standing up a new install of WordPress, which although 
   it ran faster, continues to have the same issues. I’m certain it’s neither a 
   themes or plugins issue (at least at the files level). My hunch is that it’s 
   something configured incorrectly or affecting the rendering from the database.
   What should i try next?
 * I have full access to the database, file system, and server. I’m also certain
   it’s not infrastructure, because other WordPress sites are running correctly.
    -  This reply was modified 5 years, 7 months ago by [highlandview](https://wordpress.org/support/users/highlandview/).
    -  This reply was modified 5 years, 7 months ago by [highlandview](https://wordpress.org/support/users/highlandview/).
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13602851)
 * This `/?ver=bb7c3c45d012206bfcd73d6a31f84d9e` and `/?ver=7.4.12` isn’t something
   WordPress itself would be adding.
 * Are you running any caching plugins?
 *  Thread Starter [highlandview](https://wordpress.org/support/users/highlandview/)
 * (@highlandview)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13602900)
 * That’s helpful information! I am not currently running any caching plugins, though
   it’s possible something we tried previously remains sufficiently in place to 
   continue affecting us.
 * I started from *literal* scratch with WordPress, using a stock theme and no plugins
   other than SSL Insecure, which runs fine with other sites I’m running in the 
   same environment. The new environment connected with the db, and we saw the same
   issues, so it must be something in the database.
 * Any ideas? what about a database repair?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13603050)
 * Does your hosting provider offer any caching?
 *  Thread Starter [highlandview](https://wordpress.org/support/users/highlandview/)
 * (@highlandview)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13603172)
 * There is no caching provided by the hosting provider.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13603421)
 * Are you using Cloudflare or any sort of caching DNS reverse-proxy?
 *  Thread Starter [highlandview](https://wordpress.org/support/users/highlandview/)
 * (@highlandview)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13605014)
 * We are on AWS behind a load balancer. From the errors, such as the versioning,
   does that have a signature of any particular plugin? As I mentioned before, there
   are several other WordPress sites running without any issues on the same server.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13605665)
 * Many plugins handle versioning, there are also server-level setups which handle
   versioning.
 * Which plugins are you running?
 *  Thread Starter [highlandview](https://wordpress.org/support/users/highlandview/)
 * (@highlandview)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13607241)
 * Seems as though WordPress is appending the /?ver= to the URL. See [https://developer.wordpress.org/reference/functions/wp_enqueue_style/](https://developer.wordpress.org/reference/functions/wp_enqueue_style/)
 * I also found this resource: [https://wordpress.stackexchange.com/questions/240543/css-ver-4-6-1-not-updating](https://wordpress.stackexchange.com/questions/240543/css-ver-4-6-1-not-updating)
 * Other thoughts of what I can explore. I’m not even sure the /?ver= is causing
   the problem.
 * (For added context, this issue occurs without any plugins running, other than
   SSL Insecure which is needed to handle the load balancer traffic, so I know that’s
   not too helpful either.)
    -  This reply was modified 5 years, 7 months ago by [highlandview](https://wordpress.org/support/users/highlandview/).
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13607762)
 * `$ver = false` is the default, you’d need to have it specifically set as `$ver
   = true` for WordPress to do this.
 * Are the other working sites under any load balancing?

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

The topic ‘script and reference errors’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/script-and-reference-errors/#post-13607762)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
