Skip navigation.

Željko Aščić

nazad na bosanski lonac

Rocket Theme Terran Tribune IE6 parentnode null or not an object problem

, , , , ,

I found interesting bug in Terran Tribune template for Joomla by Rockettheme. If you dont have any article on frontpage published and you setuped to show only one leading article you will experience next error in IE "parentnode null or not an object" in mootools.js. Solution is that you publish at least one article on frontpage and then if you dont need any articles setup front page to show zero leading articles zero intro articles. So your frontpage article will never show up. In cases that you are using your frontpage for articles you will not expereince this error. Actualy error can be seen in Opera (check the error console) and Firefox but they will not warn you with annoying popup window.
I am almost sure that another Rocket theme templates have a same issue.

And actualy this is error in Opera. So it is definatly something with java script of mootools. However i am not expert for javascript neither i found solution across the internet.

Event thread: DOMContentLoaded
Error:
name: TypeError
message: Statement on line 27: Cannot convert undefined or null to Object
Backtrace:
  Line 27 of linked script http://www.nonchecubes.com/media/system/js/mootools.js
    function(el,where){el=$(el);switch(where){case'before':el.parentNode.insertBefore(this,el);break;case'after':var next=el.getNext();if(!next)el.parentNode.appendChild(this);else el.parentNode.insertBefore(this,next);break;case'top':var first=el.firstChild;if(first){el.insertBefore(this,first);break;}
  Line 10 of linked script http://www.nonchecubes.com/templates/rt_terrantribune_j15/js/rokutils.js
    function(E){C=new Element("div",{"class":"content-surround"}).inject(B[E],"before");tl=new Element("div",{"class":"content-corner-tl"}).inject(C);tr=new Element("div",{"class":"content-corner-tr"}).inject(tl);bl=new Element("div",{"class":"content-corner-bl"}).inject(tr);br=new Element("div",{"class":"content-corner-br"}).inject(bl).adopt(B[E]);}
  Line 21 of linked script http://www.nonchecubes.com/media/system/js/mootools.js
    function(fn){for(var i=0;i<this;i++)fn(i);}
  Line 10 of linked script http://www.nonchecubes.com/templates/rt_terrantribune_j15/js/rokutils.js
    function(){if(!window.webkit&&!window.ie6){maxHeight("sameheight");maxHeight.delay(500,maxHeight,"sameheight");}var D=$$("table.blog tbody")[0];if(D){D=D.getChildren();if(D.length){var B=[];B.push(D.getFirst()[0].getFirst());var A=D.getFirst()[1];if(A){A=A.getFirst();B.push(A);}var C=tl=tr=bl=br=null;(B.length).times(function(E){C=new Element("div",{"class":"content-surround"}).inject(B[E],"before");tl=new Element("div",{"class":"content-corner-tl"}).inject(C);tr=new Element("div",{"class":"content-corner-tr"}).inject(tl);bl=new Element("div",{"class":"content-corner-bl"}).inject(tr);br=new Element("div",{"class":"content-corner-br"}).inject(bl).adopt(B[E]);});}}}
  ...  Line 21 of linked script http://www.nonchecubes.com/media/system/js/mootools.js
    function(){return fn.apply($pick(options.bind,fn),args);}
  Line 21 of linked script http://www.nonchecubes.com/media/system/js/mootools.js
    else args=options.arguments||arguments;var returns=function(){return fn.apply($pick(options.bind,fn),args);};if(options.delay)return setTimeout(returns,options.delay);if(options.periodical)return setInterval(returns,options.periodical);if(options.attempt)try{return returns();}catch(err){return false;};return returns();}
  Line 50 of linked script http://www.nonchecubes.com/media/system/js/mootools.js
    function(fn){fn.create({'bind':this,'delay':delay,'arguments':args})();}
  ...  Line 50 of linked script http://www.nonchecubes.com/media/system/js/mootools.js
    function(type,args,delay){if(this.$events&&this.$events[type]){this.$events[type].keys.each(function(fn){fn.create({'bind':this,'delay':delay,'arguments':args})();},this);}
  Line 59 of linked script http://www.nonchecubes.com/media/system/js/mootools.js
    function(){if(window.loaded)return;window.loaded=true;window.timer=$clear(window.timer);this.fireEvent('domready');}
  ...  Line 21 of linked script http://www.nonchecubes.com/media/system/js/mootools.js
    function(){return fn.apply($pick(options.bind,fn),args);}
  Line 21 of linked script http://www.nonchecubes.com/media/system/js/mootools.js
    else args=options.arguments||arguments;var returns=function(){return fn.apply($pick(options.bind,fn),args);};if(options.delay)return setTimeout(returns,options.delay);if(options.periodical)return setInterval(returns,options.periodical);if(options.attempt)try{return returns();}catch(err){return false;};return returns();}
  ...

14 Good Reasons why Star Trek is better than Star WarsFree wordpress theme Foggy Forest

Comments

Anonymous 16. October 2008, 10:18

Anonymous writes:

Thank you very much... I fought with this error for two days!

Luca

Anonymous 16. October 2008, 13:16

chihei writes:

be praised. i lost two days to!

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

Download Opera, the fastest and most secure browser
December 2009
M T W T F S S
November 2009January 2010
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31