Title: Javascript causing problems accessing site?
Last modified: August 19, 2016

---

# Javascript causing problems accessing site?

 *  [wildbug](https://wordpress.org/support/users/wildbug/)
 * (@wildbug)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/)
 * I am using WP 2.8.4. Some people are unable to access my site – they get a blank
   screen with only the background color. Another WP member tested my site ([**planetthrive.com**](http://www.planetthrive.com))
   in the Camino browser that was having the same access problem. When he removed
   either:
 * `<script type="text/javascript" src="Planet%20Thrive%20Files/prototype.js"></
   script>`
 * or
 * `<script type="text/javascript" src="Planet%20Thrive%20Files/scripts.js"></script
   ><link rel="stylesheet" type="text/css" href="Planet%20Thrive%20Files/javascript.
   css">`
 * the site would load properly again…
 * Also, disabling javascript in the browser and then removing
 * `<link rel="stylesheet" type="text/css" href="Planet%20Thrive%20Files/javascript.
   css">`
 * also made it work again. However, removing the .css without first disabling javascript
   didn’t seem to fix the problem.
 * The javascript.css file only contains
 * `#wrapper { display: none; }`
 * Can anyone tell me what I would need to do to fix the problem? I am not a programmer
   so I have no idea. I am anxious to solve this problem as a bunch of former members
   can no longer access my site since I switched to WordPress.
 * Thanks!

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

 *  Thread Starter [wildbug](https://wordpress.org/support/users/wildbug/)
 * (@wildbug)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/#post-1257296)
 * Is there anyone out there that can help me???
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/#post-1257297)
 * It’s likely a problem in your scripts, however, as for your code, I see several
   errors:
 * 1. Blank spaces (converted to %20) in your directory name. Use only web-safe 
   characters for files and directories.
    2. Relative links to the files. You must
   use absolute links (full links) with WordPress. 3. The css link tag is unclosed.
 * >  The javascript.css file only contains
   >  `#wrapper { display: none; }`
 * Are you sure this isn’t causing your page content not to display?
 *  Thread Starter [wildbug](https://wordpress.org/support/users/wildbug/)
 * (@wildbug)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/#post-1257299)
 * Thanks iridiax. The problem is I am not a programmer.
 * 1. Blank spaces (converted to %20) in your directory name. Use only web-safe 
   characters for files and directories. **HOW/WHERE DO I CHANGE THIS?**
 * 2. Relative links to the files. You must use absolute links (full links) with
   WordPress. **I DON’T KNOW WHAT THIS MEANS – HOW DO I FIX IT?**
 *  The javascript.css file only contains
    #wrapper { display: none; }
 * Are you sure this isn’t causing your page content not to display? **IT MIGHT 
   BE. I DON’T KNOW WHAT THE PROBLEM IS THOUGH. WHAT CAN I DO TO RESOLVE IT? DELETE
   IT? CHANGE IT? IF SO, TO WHAT?**
 * Unfortunately I really need it spelled out, as I am not a programmer and do not
   speak the language….any help appreciated. I’m going on my second week of people
   not being able to access my site. It is so hard to find help with this! Very 
   frustrating.
 *  Thread Starter [wildbug](https://wordpress.org/support/users/wildbug/)
 * (@wildbug)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/#post-1257300)
 * Iridiax, you wrote:
 * “3. The css link tag is unclosed.”
 * But this is the code I see in my page source:
 *     ```
       <link rel="stylesheet" type="text/css" href="http://planetthrive.com/wp-content/themes/quickrise/assets/css/style.css" />
       <link rel="stylesheet" type="text/css" href="http://planetthrive.com/wp-content/themes/quickrise/styles/planet thrive/style.css" />
       <link rel="stylesheet" type="text/css" href="http://planetthrive.com/wp-content/themes/quickrise/assets/css/lightbox.css" />
       ```
   
 * All three look closed to me. Can you specify what is wrong with this code? Could
   it be because there is a space in one directory name (“planet thrive”)?
 * Thank you.
 *  Thread Starter [wildbug](https://wordpress.org/support/users/wildbug/)
 * (@wildbug)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/#post-1257301)
 * As far as I can see, there are no files with “Planet%20Thrive%20Files” in the
   directory. I think he was just using “Planet%20Thrive%20Files” to represent my
   file base. So the problem is not in the name, but in the script.
 * I don’t understand why the script would cause the problem – these are used by
   everyone.
 * It seems most likely a CSS error…if someone could tell me what to change this
   to in the javascript.css file I would be so appreciative!
 * The javascript.css file only contains
    #wrapper { display: none; }
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/#post-1257302)
 * > I think he was just using “Planet%20Thrive%20Files” to represent my file base.
 * I see now, your pasted code examples are not actually found on your site. For
   real help with code problems, use actual code. If there is a javascript.css file,
   I’d recommend not using it since its **display: none;** could be causing problems
   and it’s a red flag for Google that there might be hidden text.
 * To find the whatever is causing the trouble, try temporarily disabling all plugins
   and see if the problem goes away. If it does, re-enable the plugins one by one
   to find the culprit. Also try switching to the default theme and see if that 
   fixes anything. If these don’t fix it, try disabling widgets.
 *  Thread Starter [wildbug](https://wordpress.org/support/users/wildbug/)
 * (@wildbug)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/#post-1257318)
 * I ended up fixing the problem (sort of) by just removing the code from the javascript
   css file:
 * `#wrapper { display: none; }`
 * Is there a potential problem in doing so?
 * Some people still cannot access my site if linked to from Facebook, but if they
   go directly to my site they can see it. Any ideas what is wrong?
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/#post-1257319)
 * > I ended up fixing the problem (sort of) by just removing the code from the 
   > javascript css file:
   > #wrapper { display: none; }
   > Is there a potential problem in doing so?
 * I don’t see any problems in removing it. Your site loads fine for me. It’s possible
   that people having trouble are still accessing old, bad, browser cached versions
   of your site. Try having them empty their browser cache and see if that fixes
   anything.
 *  Thread Starter [wildbug](https://wordpress.org/support/users/wildbug/)
 * (@wildbug)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/#post-1257320)
 * THANK YOU!!

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

The topic ‘Javascript causing problems accessing site?’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [wildbug](https://wordpress.org/support/users/wildbug/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/javascript-causing-problems-accessing-site/#post-1257320)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
