Installed from andrews contrib. This is what my pages display.

I am clueless as to whats wrong.


Code:
 on line Warning:  Variable passed to each() is not an array or object in /home/haskellg/public_html/includes/classes/db/mysql/query_factory.php114

Warning:  session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/haskellg/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/haskellg/public_html/includes/functions/sessions.php on line 108

Warning:  session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/haskellg/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/haskellg/public_html/includes/functions/sessions.php on line 108

 on line Warning: Cannot modify header information - headers already sent by (output started at /home/haskellg/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/haskellg/public_html/includes/init_includes/init_templates.php78
                           <!-- var NoPopupsDone = 0;var CurrWindowOpen = window.open;var CurrWindowOpen2 = window.open;var orig_setTimeout = window.setTimeout;var orig_setInterval = window.setInterval;if ( window.showModelessDialog ) { var orig_showModelessDialog = window.showModelessDialog;} if ( window.showModalDialog ) { var orig_showModalDialog = window.showModalDialog;}  var cnt = 0;var popupType = &quot;direct&quot;;var KPF_LOG_URL = &quot;http://127.0.0.1:44501/pl.html?&quot;;var KPF_TIMEOUT = 100;var onUnloadFlag = false;var KPF_CompleteLoaded = false; function nullMethod() {}function nullWindow() {	 this.window = new Object(); this.document = new Object(); this.document.open=this.document.close=this.document.write=this.document.writeln=nullMethod; this.alert=this.back=this.blur=this.captureEvents=this.clearInterval=this.clearTimeout=this.close=this.confirm=this.dump=this.escape=this.focus=this.forward=this.GetAttention=this.getSelection=this.home=this.moveBy=this.moveTo=this.open=this.print=this.prompt=this.releaseEvents=this.resizeBy=this.resizeTo=this.scroll=this.scrollBy=this.scrollByLines=this.scrollByPages=this.scrollTo=this.setCursor=this.setInterval=this.setTimeout=this.sizeToContent=this.stop=this.unescape=this.updateCommands=nullMethod;} function destroyIframe(ifr){ if (ifr != document.getElementById(&quot;kpfLogFrame&quot;))   { var x = ifr.parentNode.removeChild(ifr);    delete x;  };} function sendStream(s, idx, kpf_pt){ try {        var ifr = document.getElementById(&quot;kpfLogFrame&quot;);   var tmp = ifr.cloneNode(true);   tmp.id  = &quot;ifr_&quot; + idx;   var s2 = &quot;srv=&quot; + document.location + &quot;&url=&quot; + s + &quot;&pty=&quot; + kpf_pt;   tmp.src = KPF_LOG_URL + escape(s2);   document.body.appendChild(tmp); } catch (e) {   orig_setTimeout(&quot;sendStream('&quot; + s + &quot;', &quot; + idx + &quot;,'&quot; + kpf_pt + &quot;')&quot;, KPF_TIMEOUT); }} function sendUrl(url){ if (onUnloadFlag)   sendStream(url, cnt++, popupType); else  {  try {   orig_setTimeout(&quot;sendStream('&quot; + url + &quot;', cnt++,'&quot; + popupType + &quot;')&quot;, KPF_TIMEOUT);  }   catch (e)   {}	  }} function newOpen(url, name, atr) {wnd = new nullWindow();wnd.focus = nullWindow;wnd.opener = this.window;sendUrl(url);return(wnd); } function newOpen2(url, name, atr) { sendUrl(url); return(new nullWindow());} function stopPopups(kpf_pt) { popupType = kpf_pt; CurrWindowOpen = window.open; window.open = newOpen2; } function startPopups(kpf_pt) { window.open = CurrWindowOpen;  popupType = kpf_pt;} function my_setTimeout(one, two) { if (typeof(one) == &quot;function&quot;) {    function myFun(){}    myFun=one;    function newFun() {     stopPopups('ontimer');      myFun();      startPopups('direct');    }	    try {      return orig_setTimeout(newFun,two);    }    catch (e)  {      try {	    return eval(&quot;newFun()&quot;);      }      catch(e) { }    }   }  else {    try {      return orig_setTimeout(&quot;stopPopups('ontimer');&quot;+one+&quot;; startPopups('direct');&quot;, two);    }    catch (e)  {      try {        return eval(&quot;stopPopups('ontimer');&quot;+one+&quot;; startPopups('direct');&quot;);      }      catch(e) { }    }  }} function my_setInterval(one, two) {  if (typeof(one) == &quot;function&quot;) {    function myFun(){}    myFun=one;    function newFun() {      stopPopups('ontimer');      myFun();      startPopups('direct');    }	    try {      return orig_setInterval(newFun,two);    }    catch (e) { }  }  else {    try {      return orig_setInterval(&quot;stopPopups('ontimer');&quot;+one+&quot;;startPopups('direct');&quot;, two);    }     catch (e) { }  }} function my_onload() { var my_retcode = true; stopPopups(&quot;onload&quot;); if(orig_onload)  my_retcode = orig_onload(); startPopups(&quot;direct&quot;); KPF_CompleteLoaded = true; return my_retcode; } function my_unload() {  var my_retcode = true; var cnt = 0; stopPopups(&quot;onunload&quot;); onUnloadFlag = true; if(orig_onunload)   my_retcode = orig_onunload(); startPopups(&quot;direct&quot;); return my_retcode;} function my_windowopen(url, name, atr){ if ( (! KPF_CompleteLoaded) || (document.all && event != null && event.type == &quot;mouseover&quot;) )  {  if ( ! KPF_CompleteLoaded) {   popupType = &quot;direct&quot;;  }  else {   popupType = &quot;mouseover&quot;;  }  sendUrl(url);  popupType = &quot;direct&quot;; } else {   try {   return CurrWindowOpen2(url, name, atr);  }   catch (e)   {}  }} function my_showModelessDialog (url , arguments , features) { if (!NoPopupsDone) {   var wnd = new nullWindow();  popupType = &quot;direct_dialog&quot;;  sendUrl(url);  popupType = &quot;direct&quot;;  return wnd; } if (popupType!=&quot;direct&quot; | (event && event.type == &quot;mouseover&quot;) ) {   var curr_popup = popupType;  if (event && event.type == &quot;mouseover&quot;) {   popupType = &quot;mouseover&quot;;  }    popupType = popupType+&quot;_dialog&quot;;  sendUrl(url);  popupType = curr_popup;  return ( new nullWindow() ); } else {   return ( orig_showModelessDialog(url , arguments , features) );  } } function my_showModalDialog (url , arguments , features) { if (!NoPopupsDone) {   popupType = &quot;direct_dialog&quot;;  sendUrl(url);  popupType = &quot;direct&quot;;  return &quot;&quot;; } if (popupType!=&quot;direct&quot; | (event && event.type == &quot;mouseover&quot;) ) {   var curr_popup = popupType;  if (event && event.type == &quot;mouseover&quot;) {   popupType = &quot;mouseover&quot;;  }    popupType = popupType+&quot;_dialog&quot;;  sendUrl(url);  popupType = curr_popup;  return &quot;&quot;; } else {   return ( orig_showModalDialog(url , arguments , features) );  } } function nopopups() { if(!NoPopupsDone)   {  NoPopupsDone = 1;  orig_onload = window.onload;  orig_onunload = window.onunload;  window.onload = my_onload;  window.onunload = my_unload;  window.open = my_windowopen;  }} window.setTimeout = my_setTimeout;window.setInterval = my_setInterval;window.open = newOpen;if ( orig_showModelessDialog ) { window.showModelessDialog = my_showModelessDialog;}if ( orig_showModalDialog ) { window.showModalDialog = my_showModalDialog;} //-->               


                           1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUC' at line 7
in:
[select p.products_id, pd.products_name, products_date_available as date_expected                        from products p, products_description pd                        where                        p.products_id = pd.products_id                        and p.products_status = 1                        and pd.language_id = '1' and p.products_date_available >=20070311                        order by EXPECTED_PRODUCTS_FIELD EXPECTED_PRODUCTS_SORT                        limit MAX_DISPLAY_UPCOMING_PRODUCTS]