Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

The add comment, flag, delete and other such links will open a popup (eg: Mod link) are broken. Clicking on them does nothing.

Javascript error console says:

Uncaught TypeError: Cannot read property '0' of undefined

share|improve this question
I'm getting this, but not consistently. Refreshing the page sometimes works as does navigating away and reselecting the link to the page. – ChrisF Apr 4 '11 at 13:44
I only get the problem if I access a page via a link pointing to an answer, and not otherwise. – Mad Scientist Apr 4 '11 at 13:56
Happened to me a minute ago, now working fine. – Shadow Wizard Apr 4 '11 at 13:57
Oh, I thought Its only happened to me, and notice only on few questions and found out clicking on "active" "oldest" "votes" tabs could recover from that error. I thought my chrome dev 12 browser issue. – YOU Apr 4 '11 at 14:00
up vote 7 down vote accepted

This is fixed now.

It took a whole lot of single-stepping through callback after callback after callback, but in the end, it was actually a bug in the HTML code.

When you link directly to an answer (instead of just a question), this answer is shown in a highlight color which then fades back to normal (as everybody has probably seen).

We're in the process of converting our pages from the old ASPX view engine to Razor, and in the process of converting the partial view that shows a single answer (this conversion happened today), there was a little too much encoding happening, so the result for the highlighted answer looked like this:

<div id="answer-85877" class="answer" style=&quot;background-color:#F6F5EE;&quot;>

This is obviously anything but valid (but it actually depends on the browser how it gets handled). When the jQuery color animation plugin tried to find the current color, all it found was either garbage or nothing (depending on the browser). When it found nothing, this worked fine (except that you didn't see the animation); when it found garbage, this caused the code to throw up.

share|improve this answer

I think SO should upgrade to jQuery 1.5.2 according to error msg related to "resolveWith"

enter image description here

on jQuery 1.5.2 (around line 1062) (fixed following)

// Strange bug in FF4:
// Values changed onto the arguments object sometimes end up as undefined values
// outside the $.when method. Cloning the object into a fresh array solves the issue
deferred.resolveWith( deferred, args, 0 ) );

Edit: Its only happened on answer links, not questions.

If I commented out following line, looks like error gone.

$('#answer-XXXX').animate({ backgroundColor:'#FFF' }, 2000, 'linear', function() { $(this).css('background-color', ''); });
share|improve this answer
this error has nothing to do with resolveWith – balpha Apr 4 '11 at 15:08
aww, ok, but google chrome did give me that error d.extend._Deferred.f.resolveWith on console. – YOU Apr 4 '11 at 15:10
@YOU: I'll write up what happened :) – balpha Apr 4 '11 at 15:11
@balpha, but it is related to $.when? – YOU Apr 4 '11 at 15:19
@YOU: No -- it wasn't even a real JavaScript error. – balpha Apr 4 '11 at 15:26
@balpha, ok, I was just diffing codes, and noticed $.when is gone :-) May be just an unrelated case. – YOU Apr 4 '11 at 15:32
@YOU: Yeah, that's unrelated. I just removed the $.when because it was a no-op (since it received only one deferred). – balpha Apr 4 '11 at 15:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .