Open GoogleCodeExporter opened 9 years ago
I'm getting the same error, but under different circumstances.
OS:win7
Firefox:15.0.1
Firebug:1.10.4
FirePHP Extension:0.7.1
Error can be reproduced on the following link:
http://home.designscope.com.au/beta/allan_wolf_tasker/index.php
I get the following from the Firebug error list:
Error: TypeError: firephp.app is undefined
Source File: chrome://firephp/content/lib/firephp.js
Line: 491
firephp.app.logger.debug("Adding FirePHP headers to request: " + httpChannel.URI.spec);
However if I set break on error in Firebug, it stops on line 16 of
jquery-1.5.1.min.js (one of the js script libraries i've loaded)
:
(function(a,b){function cg(a){return
d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function
cd(a){if(!bZ[a]){var
b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==
="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var
c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return
c}function bY(){try{return new
a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new
a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in
bU)bU[a](0,1)})}function
bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var
e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)f
or(h in a.converters)typeof
h==="string"&&(f[h.toLowerCase()]=a.converters[h]);l=k,k=e[g];if(k==="*")k=l;els
e if(l!=="*"&&l!==k){m=l+" "+k,n=f[m]||f["* "+k];if(!n){p=b;for(o in
f){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=f[j[1]+"
"+k];if(p){o=f[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&d.error("No
conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return
c}function bP(a,c,d){var
e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in
d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponse
Header("content-type"));if(h)for(i in
e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in
d){if(!f[0]||a.converters[i+"
"+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return
d[j]}}function
bO(a,b,c,e){if(d.isArray(b)&&b.length)d.each(b,function(b,f){c||bq.test(a)?e(a,f
):bO(a+"["+(typeof f==="object"||d.isArray(f)?b:"")+"]",f,c,e)});else
if(c||b==null||typeof b!=="object")e(a,b);else
if(d.isArray(b)||d.isEmptyObject(b))e(a,"");else for(var f in
b)bO(a+"["+f+"]",b[f],c,e)}function
bN(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var
h=a[f],i=0,j=h?h.length:0,k=a===bH,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof
l==="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bN(a,c,d,e,l,g)));(k||!l)&
&!g["*"]&&(l=bN(a,c,d,e,"*",g));return l}function bM(a){return
function(b,c){typeof b!=="string"&&(c=b,b="*");if(d.isFunction(c)){var
e=b.toLowerCase().split(bB),f=0,g=e.length,h,i,j;for(;f<g;f++)h=e[f],j=/^\+/.tes
t(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function
bo(a,b,c){var
e=b==="width"?bi:bj,f=b==="width"?a.offsetWidth:a.offsetHeight;if(c==="border")r
eturn
f;d.each(e,function(){c||(f-=parseFloat(d.css(a,"padding"+this))||0),c==="margin
"?f+=parseFloat(d.css(a,"margin"+this))||0:f-=parseFloat(d.css(a,"border"+this+"
Width"))||0});return f}function
ba(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval(b.text
||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}func
tion _(a){return"getElementsByTagName"in
a?a.getElementsByTagName("*"):"querySelectorAll"in
a?a.querySelectorAll("*"):[]}function $(a,b){if(b.nodeType===1){var
c=b.nodeName.toLowerCase();b.clearAttributes(),b.mergeAttributes(a);if(c==="obje
ct")b.outerHTML=a.outerHTML;else
if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selecte
d=a.defaultSelected;else
if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else
a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.
value);b.removeAttribute(d.expando)}}function
Z(a,b){if(b.nodeType===1&&d.hasData(a)){var
c=d.expando,e=d.data(a),f=d.data(b,e);if(e=e[c]){var
g=e.events;f=f[c]=d.extend({},e);if(g){delete f.handle,f.events={};for(var h in
g)for(var
i=0,j=g[h].length;i<j;i++)d.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].nam
espace,g[h][i],g[h][i].data)}}}}function Y(a,b){return
d.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerD
ocument.createElement("tbody")):a}function O(a,b,c){if(d.isFunction(b))return
d.grep(a,function(a,d){var e=!!b.call(a,d,a);return
e===c});if(b.nodeType)return d.grep(a,function(a,d){return
a===b===c});if(typeof b==="string"){var e=d.grep(a,function(a){return
a.nodeType===1});if(J.test(b))return d.filter(b,e,!c);b=d.filter(b,e)}return
d.grep(a,function(a,e){return d.inArray(a,b)>=0===c})}function
N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function
F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function
E(a){var
b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==th
is&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(
n=new
RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.live
Fired=this;var
t=s.live.slice(0);for(i=0;i<t.length;i++)g=t[i],g.origType.replace(p,"")===a.typ
e?r.push(g.selector):t.splice(i--,1);f=d(a.target).closest(r,a.currentTarget);fo
r(j=0,k=f.length;j<k;j++){m=f[j];for(i=0;i<t.length;i++){g=t[i];if(m.selector===
g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,e=null;if(g.pr
eType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,e=d(a.relatedTar
get).closest(g.selector)[0];(!e||e!==h)&&q.push({elem:h,handleObj:g,level:m.leve
l...:{top:0,left:0};var
h=f.body,i=cg(f),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l
=i.pageYOffset||d.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||d.
support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top
:n,left:o}}:d.fn.offset=function(a){var b=this[0];if(a)return
this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)ret
urn null;if(b===b.ownerDocument.body)return
d.offset.bodyOffset(b);d.offset.initialize();var
c,e=b.offsetParent,f=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaul
tView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft
;while((b=b.parentNode)&&b!==i&&b!==h){if(d.offset.supportsFixedPosition&&k.posi
tion==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTo
p,m-=b.scrollLeft,b===e&&(l+=b.offsetTop,m+=b.offsetLeft,d.offset.doesNotAddBord
er&&(!d.offset.doesAddBorderForTableAndCells||!ce.test(b.nodeName))&&(l+=parseFl
oat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),f=e,e=b.offsetPare
nt),d.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=p
arseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.pos
ition==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;d.offse
t.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scroll
Top),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},d.offset={ini
tialize:function(){var
a=c.body,b=c.createElement("div"),e,f,g,h,i=parseFloat(d.css(a,"marginTop"))||0,
j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid
#000;padding:0;width:1px;height:1px;'><div></div></div><table
style='position:absolute;top:0;left:0;margin:0;border:5px solid
#000;padding:0;width:1px;height:1px;' cellpadding='0'
cellspacing='0'><tr><td></td></tr></table>";d.extend(b.style,{position:"absolute
",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),
b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.n
extSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.does
AddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="
20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.posi
tion=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.s
ubtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginIn
BodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize
=d.noop},bodyOffset:function(a){var
b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMargin
InBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"mar
ginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var
e=d.css(a,"position");e==="static"&&(a.style.position="relative");var
f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArr
ay("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||
0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(
k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in
b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])retu
rn null;var
a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,
left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat
(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.
left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c
.left-e.left}},offsetParent:function(){return this.map(function(){var
a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")=
=="static"))a=a.offsetParent;return
a})}}),d.each(["Left","Top"],function(a,c){var
e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return
null;if(c!==b)return
this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scro
llTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in
g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElemen
t[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var
e=c.toLowerCase();d.fn["inner"+c]=function(){return
this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a)
{return
this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(
a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return
this.each(function(b){var
c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var
g=f.document.documentElement["client"+c];return
f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nod
eType===9)return
Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scr
oll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var
h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof
a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window);
Original comment by Clay.Ra...@gmail.com
on 11 Oct 2012 at 1:44
Hmm. I cannot reproduce this error.
Original comment by christ...@christophdorn.com
on 15 Oct 2012 at 2:51
Hmm. ^^ that's not an answer!
In fact you could have simply asked Daniel to tell everybody to click on the
line in the console and say what file and what code was guilty for that
firephp.app notice.
As it were, I have been able to reproduce it, at home, at work, on different
computers, and with all kinds of Firefox versions. Currently 33, on FireBug
2.0.6.
Let me suggest here a resolution process that worked for me, for that error,
and a similar one (Error: TypeError: document.getElementById(...) is null
Source File: chrome://web-developer/content/overlay/javascript/overlay.js
Line: 7333)
1. Click on that error line in the console to let FF open the source code that
it doesn’t like.
2. Notice the full path to that file in the title bar of that window?
3. Open that file.
4. If it’s an xpi jar file, no worries, just rename it “.zip”, extract
it, and continue until you see that file, and eventually open it. An
exclamation
mark (!) in the path would indicate that what follows sits inside of the jar.
5. Locate the faulty line. In the example of “firephp.app is undefined”, I
had a simple logger line, such as firephp.app.logger.debug("showNotification
('" + name + "')");
6. I didn’t have too much time to investigate why the firephp.app property
was undefined, so instead, since it was just a logger, I decided to simply
comment it out:
// firephp.app.logger.debug("showNotification('" + name + "')");
And I did the same for the two other logger lines I found down the same file.
7. Close Firefox at this stage.
8. Then save that file, and compressed the all archive again. There’s an
option to only extract that one file, and squeeze it back into the archive once
finished, but it’s a lot quicker to unpack/pack the whole thing at once.
9. Restore its original extension to .xpi
10. Start Firefox
In my case, the error that once filled up the entire console with hundreds of
the same line, was gonna for good.
It also fixed the overall FireBug system so that it displayed again the
<script> tags. It used to tell me “no <script> tag found in your page”,
whereas I
obviousl had dozens of them.
I also did the same operation for the TypeError line 7333 in overlay.js
described above, and since I’ve been able to be productive again.
Hope this helps!
Original comment by djymaild...@gmail.com
on 20 Nov 2014 at 3:09
Attachments:
Thanks a lot for the detailed info. I'll take a look at this over the next few
months as I revamp firephp.
Original comment by christ...@christophdorn.com
on 20 Nov 2014 at 6:05
Original issue reported on code.google.com by
daniel.h...@gmail.com
on 23 Jun 2012 at 9:38Attachments: