• 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.

    The page I need help with: [log in to see the link]

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

    (@macmanx)

    Try manually resetting your plugins (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, 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

    (@highlandview)

    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.
    • This reply was modified 5 years, 7 months ago by highlandview.
    Moderator James Huff

    (@macmanx)

    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

    (@highlandview)

    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

    (@macmanx)

    Does your hosting provider offer any caching?

    Thread Starter highlandview

    (@highlandview)

    There is no caching provided by the hosting provider.

    Moderator James Huff

    (@macmanx)

    Are you using Cloudflare or any sort of caching DNS reverse-proxy?

    Thread Starter highlandview

    (@highlandview)

    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

    (@macmanx)

    Many plugins handle versioning, there are also server-level setups which handle versioning.

    Which plugins are you running?

    Thread Starter highlandview

    (@highlandview)

    Seems as though WordPress is appending the /?ver= to the URL. See https://developer.ww.wp.xz.cn/reference/functions/wp_enqueue_style/

    I also found this resource: 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.
    Moderator James Huff

    (@macmanx)

    $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.