Rocket Theme Terran Tribune IE6 parentnode null or not an object

October 11, 2008 · Filed Under Joomla 

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.

<br />
Event thread: DOMContentLoaded<br />
Error:<br />
name: TypeError<br />
message: Statement on line 27: Cannot convert undefined or null to Object<br />
Backtrace:<br />
Line 27 of linked script http://www.nonchecubes.com/media/system/js/mootools.js<br />
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;}<br />
Line 10 of linked script http://www.nonchecubes.com/templates/rt_terrantribune_j15/js/rokutils.js<br />
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]);}<br />
Line 21 of linked script http://www.nonchecubes.com/media/system/js/mootools.js<br />
function(fn){for(var i=0;i<this;i++)fn(i);}<br />
Line 10 of linked script http://www.nonchecubes.com/templates/rt_terrantribune_j15/js/rokutils.js<br />
function(){if(!window.webkit&amp;&amp;!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]);});}}}<br />
...  Line 21 of linked script http://www.nonchecubes.com/media/system/js/mootools.js<br />
function(){return fn.apply($pick(options.bind,fn),args);}<br />
Line 21 of linked script http://www.nonchecubes.com/media/system/js/mootools.js<br />
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();}<br />
Line 50 of linked script http://www.nonchecubes.com/media/system/js/mootools.js<br />
function(fn){fn.create({'bind':this,'delay':delay,'arguments':args})();}<br />
...  Line 50 of linked script http://www.nonchecubes.com/media/system/js/mootools.js<br />
function(type,args,delay){if(this.$events&amp;&amp;this.$events[type]){this.$events[type].keys.each(function(fn){fn.create({'bind':this,'delay':delay,'arguments':args})();},this);}<br />
Line 59 of linked script http://www.nonchecubes.com/media/system/js/mootools.js<br />
function(){if(window.loaded)return;window.loaded=true;window.timer=$clear(window.timer);this.fireEvent('domready');}<br />
...  Line 21 of linked script http://www.nonchecubes.com/media/system/js/mootools.js<br />
function(){return fn.apply($pick(options.bind,fn),args);}<br />
Line 21 of linked script http://www.nonchecubes.com/media/system/js/mootools.js<br />
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();}

Social bookmarking:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Technorati
  • Live
  • StumbleUpon

No related posts.

Comments

2 Responses to “Rocket Theme Terran Tribune IE6 parentnode null or not an object”

  1. WaterGirl on February 14th, 2009 19:45

    “if you dont need any articles setup front page to show zero leading articles zero intro articles”

    How do set up the front page to show zero leading articles zero & zero intro articles?

  2. Hellas on February 19th, 2009 9:21

    Go to Menu – Main Menu
    Click on Homepage (frontpage)

    Under parameters:

    # Leading
    # Intro
    # Columns
    # Links

    Set them all to zero.

    On that way your will have zero articles shown on frontpage and with one published article on frontpage you will avoid bug :D

Leave a Reply