Status: fully resolved

    Javascript error preventing chat from opening in Fx 2.0.0.6

    Issue Number:
    114
    Severity:
    Major
    Description:
    Chat popup will not open from Chat tab. Error in Console reported as:

    "popUp is not defined javascript:popUp('http://www.starfrontiers.us/chat'); "
    Comments:

    CleanCutRogue's picture
    CleanCutRogue
    October 19, 2007 - 7:16pm
    all better
    3. We wear sungoggles during the day. Not because the sun affects our vision, but when you're cool like us the sun shines all the time.

    -top 11 reasons to be a Yazirian, ShadowShack


    Corvus's picture
    Corvus
    October 19, 2007 - 9:29pm
    No, sorry, not fixed. I get the exact same error. I've flushed my cache, and made sure everything is as up-to-date as it can get. I'm still getting the "popUp is not defined" error along with a boatload of other errors (the list from a single click is as long as the road in front of my house, but not being a programmer I can't figure any of it out -- and no, I am not going to type it all out for you, sorry).

    Edit: Specifically, the "popUp" error is the only one that occurs from clicking on the Chat tab.  The other errors are caused by the rest of the site, so that's unrelated.  But this definitely is not fixed.  Are you sure you saved the change you made?  And what did you do between the day before yesterday and yesterday that changed what was working in the first place?
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Anonymous's picture
    Corjay (not verified)
    October 19, 2007 - 10:44pm
    You need to refresh your cache. It wasn't working for me last night either, but it is tonight.

    Corvus's picture
    Corvus
    October 20, 2007 - 2:19am
    Corjay wrote:
    You need to refresh your cache. It wasn't working for me last night either, but it is tonight.


    No, I don't, because I already did that.  To quote myself:

    Corvus wrote:
    No, sorry, not fixed. I get the exact same error. I've flushed my cache,


    Read what I say next time.
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Corvus's picture
    Corvus
    October 20, 2007 - 2:28am
    Bill: I still don't know if these other errors are having anything to do with this, but I'm seeing a lot of random capital Xs popping up in the error messages: such things as "dXisplay" "Xheight", "Xtop", "borXder".  These are all "unknown property" errors.  I'm also seeing a lot of "Expected declaration but found '/'" errors.  There must be two hundred errors or more, just from one page load.  The only error specifically being caused by the Chat tab is the "popUp" error, but could the rest of this be relevant in some way?
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Anonymous's picture
    Corjay (not verified)
    October 20, 2007 - 3:23am
    It could also be one of the add-ons in Firefox causing the problem. Again, I'm using the latest version of Firefox, but I'm not having this problem.

    Corvus's picture
    Corvus
    October 20, 2007 - 4:57am
    Corjay wrote:
    It could also be one of the add-ons in Firefox causing the problem. Again, I'm using the latest version of Firefox, but I'm not having this problem.


    Anything's possible.  What extensions do you run?
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Anonymous's picture
    Corjay (not verified)
    October 20, 2007 - 12:45pm
    I'm running Firefox on two computer accounts. On one I'm using just the bare Firefox, and on the other I'm using is loaded with add-ons. On both, I'm able to use the site, so I guess if you have an add-on that is not a part of the list of add-ons on that account, that might be causeing the problem. I'll get the list of add-ons from my other account later.

    You might also consider looking through your internet options to see if one of the applet or Java operation abilities has somehow been limited.

    Anonymous's picture
    Corjay (not verified)
    October 20, 2007 - 12:53pm
    By the way, you said 2.0.0.6 on Firefox. As of yesterday, Firefox is now at 2.0.0.8, though that shouldn't be a problem, but you may not have your automatic updates set up in Firefox.

    Corvus's picture
    Corvus
    October 20, 2007 - 1:32pm
    I could go see if Fx 2.0.0.8 is available for manual download.  Automatic updating works a bit different in Linux than it does in Windows, though.  (Manual downloads and replacements are unfortunately a real pain because of how Linux distributes files; it's one of the things I dislike about being a Linux user.)
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Corvus's picture
    Corvus
    October 20, 2007 - 2:12pm
    I manually updated to Fx 2.0.0.8 and now I can't even get the Java chat on the other site to load.  Java mysteriously disappeared and now will not install.  This issue has become a complete disaster and until somebody tells me exactly what's wrong and how to fix it I will not be able to join the chat at either site.  This is why I advocated an IRC channel.
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    CleanCutRogue's picture
    CleanCutRogue
    October 20, 2007 - 2:13pm
    I changed nothing that should result in a need for an upgrade in FF.  Here's what happened:

    I turned off three javascript modules, one at a time, while trying to track down an error.

    I found which one caused the error... and fixed it.

    Then I re-enabled each one.

    You made this issue....

    So I went back and looked, and realized I forgot to re-enable one of them.  I re-enabled it and it, and had to refresh my browser (F5) and then it worked fine.

    I'm not saying it works fine for me to anger you - please stop taking offense to that.  I'm trying to understand and get to the bottom of why it works for everyone else and not for you.  It's important for me to understand it and fix it.  If I think out-loud while trying to rationalize it, and in the process mention that it's working for everyone else, I'm not rubbing it in your face or anything.  I'm just rationalizing... troubleshooting out loud.

    I apologize if doing so upsets you.
    3. We wear sungoggles during the day. Not because the sun affects our vision, but when you're cool like us the sun shines all the time.

    -top 11 reasons to be a Yazirian, ShadowShack


    Corvus's picture
    Corvus
    October 20, 2007 - 9:35pm
    You apparently have no idea how your "thinking out loud" comes across.  "It works for me" is not an acceptible thing to say even if you are just thinking out loud because no matter how you mean it, what it says is, "It works for me, that means it should work for you, tough cookies."

    And now in trying to fix this problem, I've broken Firefox and can't fix it.  And I can't use the one feature of this site that I actually do use.  So you tell me why I'm upset.
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    CleanCutRogue's picture
    CleanCutRogue
    October 20, 2007 - 9:53pm
    Corvus wrote:
    You apparently have no idea how your "thinking out loud" comes across. "It works for me" is not an acceptible thing to say even if you are just thinking out loud because no matter how you mean it, what it says is, "It works for me, that means it should work for you, tough cookies."

    And now in trying to fix this problem, I've broken Firefox and can't fix it. And I can't use the one feature of this site that I actually do use. So you tell me why I'm upset.
    *sigh*
    3. We wear sungoggles during the day. Not because the sun affects our vision, but when you're cool like us the sun shines all the time.

    -top 11 reasons to be a Yazirian, ShadowShack


    Anonymous's picture
    Corjay (not verified)
    October 20, 2007 - 9:58pm
    Try updating your Java. Since your updating works differently on Linux, that too may need updating. But you may also want to check the Firefox and Java sites about their interactions with Linux. This is all sounding client-side to me.

    Browser updates and Java updates are the two biggest and most common issues that I know about, and behind that is operating system interactions with programs.

    I'm thinking what you need is to do some research on the problem on the sites I mentioned, and maybe, and perhaps especially, check out the Linux website. It may very well be a known issue there.

    The fact that it got worse after you updated is what makes it sound like program compatibility issues on your own computer.

    CleanCutRogue's picture
    CleanCutRogue
    October 20, 2007 - 10:22pm
    I'm telling you, it doesn't require an update of any sort. The chat works fine when he uses the one from www.starfrontiersman.com... meaning that neither his browser nor his java version are at fault. I was trying to troubleshoot this problem with him through chat when he understandably became upset at me for poorly wording my thoughts.

    Here's the key:

    I wrote a SIMPLE javascript function called popUp. Then, clicking the "CHAT" link executes this function onclick. Very simple. If you right-click on this window and select "View Source" you can do a search for the function and you'll find it just fine now.

    <script type="text/javascript">
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=0, width=740, height=440');");
    }
    </script>I accidentally turned that javascript function off while trying to find a different problem, then forgot to turn it back on. WHen he pointed out the problem (which very clearly stated that it couldn't find that function, pointing me directly to my omission), I immediately put it back. Because of the way browsers cache script, I did have to hit F5 the next time I viewed the site, but then it all functioned normally. I had two other testers (who happened to be online at the moment - thanks guys) test it and it seemed fine, so I closed the issue. I'd like to think that you can see why I thought the problem resolved.

    Since Corvus can get to Chat from starfrontiersman.com (it launches the same client application), his browser and java were/are fine. (well- were fine. Now it's all messed up!! Undecided ).

    The problem seems to be something about script caching, and a difference in how linux does it versus how windows does it. It does sound client-side, since everyone else's is functional, but since he is using a differnet OS than everyone else, his portion of troubleshooting is quite important. I was trying to troubleshoot it, it was important to me.... and really didn't want him to update his java or browser. I didn't even reccommend that as a solution.

    Corvus - are you able to backtrack to the last known configuration prior to the update that crashed firefox? Is there something more I can do to help out? I spent an hour or so online looking for caching differences, found no success yet. What can I do?

    Can everyone else please test that you can click on the Chat application and that it's functional?
    3. We wear sungoggles during the day. Not because the sun affects our vision, but when you're cool like us the sun shines all the time.

    -top 11 reasons to be a Yazirian, ShadowShack


    Anonymous's picture
    Corjay (not verified)
    October 20, 2007 - 10:51pm
    Actually, what he said was: "I can't even get the Java chat on the other site to load."

    Corvus's picture
    Corvus
    October 21, 2007 - 5:30am
    Thanks, Corjay. I took your advice and uninstalled/reinstalled the available Java packages through Synaptic, and now I can get back to the starfrontiersman.us Java chat. I'm going back to reread what Bill posted last now.

    Okay, it looks like we're at a completely insoluble impasse. I can find the "popUp" function in the page source now, unlike last time, so Bill's right in that it SHOULD be working with a simple refresh. The reality is different; the popup still will not load, and the "popUp undefined" error still appears in the console.

    Java is up to date: I cannot downgrade or backtrack. One of Windows's advantages is the ability to "turn back the clock" to a previous system snapshot. Ubuntu, at least, cannot do this. The strange thing is that my Windows XP laptop also cannot access the chat popup, and it is still running Fx 2.0.0.6 and not .8, and has not been tinkered with in any way.

    Further tinkering with TabMixPlus (an add-on for Firefox) options to allow all JavaScript popups likewise does not solve the issue, even with a complete cache refresh.  Also, for some reason, an additional issue of the "Page Up" and "Home" keys not working at all on this site has appeared; these keys work fine within editboxes and on every other website.
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Anonymous's picture
    Corjay (not verified)
    October 21, 2007 - 5:31am
    This is an interesting dilemma.

    Could there be a common program that you're running on both computers? I had one program one time that I was running on both my computers and there was another program that kept collapsing on both computers because of the first program. Then when I isolated the problem, I uninstalled the first program (which I found to be flawed for more than just interference with the second program, but had been causing other problems I didn't even realize I was having) and suddenly the second program and my computer were running like a charm.

    Just another thought you might consider.

    Corvus's picture
    Corvus
    October 21, 2007 - 5:34am
    Corjay wrote:
    Could there be a common program that you're running on both computers?


    Firefox, that's it.

    Edit: Now I can't find the "popUp" function in the page source, again.  The only mention of "popUp" or "popup" comes here:

    <li class="menu-1-4-2"><a href="javascript:popUp('http://www.starfrontiers.us/chat');" title="Click to open a simple popup chat application" class="menu-1-4-2">Chat</a></li>

    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Anonymous's picture
    Corjay (not verified)
    October 21, 2007 - 5:33am
    I just remembered what it was about the first program. It had adware attached. You know, one of those programs where you have to have the adware or the program won't run. It was messing everything up.

    Corvus's picture
    Corvus
    October 21, 2007 - 5:35am
    No adware here; the laptop has nothing but a base Windows install with Firefox added onto it, and adware just doesn't work in Linux so far as I know. Firefox is, as I said, the only shared application between the two systems, as well.
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Corvus's picture
    Corvus
    October 21, 2007 - 8:29am
    ADDITIONAL NOTE: This error is also happening to me in Opera 9.24, so it isn't a Firefox-only issue anymore.
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Corvus's picture
    Corvus
    October 21, 2007 - 8:36am
    All right, I don't get this at all -- by manually going to http://www.starfrontiers.us/chat/ I can get into the chat -- I just can't use the actual tab link to do it.  So this means I can access the chat, I just have to make a bookmark for the chat link.  I'm still annoyed as anything about that tab and the Javascript, but this issue can be downgraded to Minor.  No idea why the Page Up/Down and Home/End keys won't work on this site anymore, though.
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    CleanCutRogue's picture
    CleanCutRogue
    October 21, 2007 - 8:46am
    Corvus wrote:
    All right, I don't get this at all -- by manually going to http://www.starfrontiers.us/chat/ I can get into the chat -- I just can't use the actual tab link to do it. So this means I can access the chat, I just have to make a bookmark for the chat link. I'm still annoyed as anything about that tab and the Javascript, but this issue can be downgraded to Minor. No idea why the Page Up/Down and Home/End keys won't work on this site anymore, though.
    that's interesting, and helpful for me to understand.  Are you able to click the dice roller in the dice block or on Corjay's forum thread: here ?  They both access javascript in the same manner.  Knowing this will help me get to the bottom of this.
    3. We wear sungoggles during the day. Not because the sun affects our vision, but when you're cool like us the sun shines all the time.

    -top 11 reasons to be a Yazirian, ShadowShack


    Corvus's picture
    Corvus
    October 21, 2007 - 9:04am
    For the first set of dice I get a "Click here to download plugin" error box.  I see the second set, and can click on them, but they go to the blur and do not finish rolling.
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Anonymous's picture
    Corjay (not verified)
    October 21, 2007 - 2:30pm
    Don't take it wrong, but have you tried downloading the plugin offered? Just trying to cover all the bases.

    Here's the solution that blackchip found for Opera. Maybe it can help you (forgive me if you've done this already):

    Blackchip wrote:
    Okay, the problem is with the Debian base of Ubuntu, which uses Java 1.4. Part of the miracle that is the Debian administration process.

    The solution:
    1. Open Opera
    2. Choose menu item Tools | Preferences
    3. Select the Advanced tab
    4. Choose Content on the list box to the left
    5. Click the button titled Java Options
    6. Enter the path /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386
    7. Click Validate Java Path button
    8. If Opera says the path is good, click the OK button and restart Opera
    9. If not, you need to install the package "Sun Java 6 Web Start" from Ubuntu's Add/Remove Applications utility

    Corvus's picture
    Corvus
    October 21, 2007 - 9:38pm
    Corjay wrote:
    Don't take it wrong, but have you tried downloading the plugin offered? Just trying to cover all the bases.

    Here's the solution that blackchip found for Opera. Maybe it can help you (forgive me if you've done this already):

    Blackchip wrote:
    Okay, the problem is with the Debian base of Ubuntu, which uses Java 1.4. Part of the miracle that is the Debian administration process.

    The solution:
    1. Open Opera
    2. Choose menu item Tools | Preferences
    3. Select the Advanced tab
    4. Choose Content on the list box to the left
    5. Click the button titled Java Options
    6. Enter the path /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386
    7. Click Validate Java Path button
    8. If Opera says the path is good, click the OK button and restart Opera
    9. If not, you need to install the package "Sun Java 6 Web Start" from Ubuntu's Add/Remove Applications utility


    Yeah, the plugin is "unknown plugin (audio/x-wav)" and nothing is offered for installation, by package or manually. I already have the Sun Java 6 Web Star package installed and everything is configured. This is literally the only site where I am having any difficulty.

    The problem is not with me. "Logic dictates" that the problem is upstream from me somewhere, either here at the site or somewhere between us. That function is simply not appearing in the page source, and it's not my computer / Firefox / my Java doing it, because it's happening in both Firefox and Opera on two totally different computers, one of which is Linux and one of which is Windows XP.  If it were just me, it would only be one of my systems, or only one of those two browsers.  The fact that it's both systems and both browsers rules out that it's anything I have or have not done.
    If you wish to make an apple pie from scratch, you must first invent the universe. -- Carl Sagan

    Anonymous's picture
    Corjay (not verified)
    October 21, 2007 - 9:35pm
    Wieeeerrrrd.

    Anonymous's picture
    Corjay (not verified)
    October 21, 2007 - 9:38pm
    Are you sure you didn't simply say the wrong thing to a mage in a past life and get cursed for all time? Tongue out