Forums

Javascript causing problems accessing site? (10 posts)

  1. wildbug
    Member
    Posted 2 years ago #

    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) 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!

  2. wildbug
    Member
    Posted 2 years ago #

    Is there anyone out there that can help me???

  3. iridiax
    Member
    Posted 2 years ago #

    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?

  4. wildbug
    Member
    Posted 2 years ago #

    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.

  5. wildbug
    Member
    Posted 2 years ago #

    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.

  6. wildbug
    Member
    Posted 2 years ago #

    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; }

  7. iridiax
    Member
    Posted 2 years ago #

    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.

  8. wildbug
    Member
    Posted 2 years ago #

    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?

  9. iridiax
    Member
    Posted 2 years ago #

    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.

  10. wildbug
    Member
    Posted 2 years ago #

    THANK YOU!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags