#0 Database->getArray() called at [/home/klimatsmart/www3/application/model/GeoModel.php:115] #1 GeoModel->checkForCities(Array ([0] => Stockholm,[1] => Göteborg,[2] => Malmö), ) called at [/home/klimatsmart/www3/application/controller/ProductController.php:1201] #2 ProductController->listGeography() called at [/home/klimatsmart/www3/application/controller/ProductController.php:532] #3 ProductController->select(bliklimatsmart, ) #4 call_user_func_array(Array ([0] => ProductController Object ([] => Product,[] => ProductModel Object ([] => ,[] => ,[] => ,[] => ( `kpl`.LogoSize >= 50 AND `kpl`.`LogoStart` < NOW() AND (`kpl`.`LogoEnd`='0000-00-00 00:00:00' OR `kpl`.`LogoEnd` > NOW()) ) AND `kpl`.LogoActive = 1 AND quickad != 1 AND ,[] => ( `kpl`.LogoSize < 50 OR ( `kpl`.LogoSize >= 50 AND `kpl`.`LogoEnd` < NOW() ) OR `kpl`.LogoActive = 0 ) AND ,[] => Database Object ([] => mysqli Object (),[] => localhost,[] => root,[] => R45TY6,[] => klimatsmart2_1_live,[] => 1,[] => latin1,[] => mysqli_stmt Object (),[] => 1,[] => SELECT m.* FROM municipalities m INNER JOIN klimat_prod_list_ageography kpla ON kpla.municipality_id = m.id INNER JOIN klimat_prod_list kpl ON kpla.kpl_id = kpl.id WHERE m.id IN (?,?,?) AND ((CASE kpl.`LogoActive` WHEN 1 THEN ( CASE WHEN kpl.`LogoStart` < NOW() AND (kpl.`LogoEnd`='0000-00-00 00:00:00' OR kpl.`LogoEnd` > NOW()) THEN 1 ELSE 0 END ) ELSE 0 END ) = 1 OR kpl.LogoSize = 0) AND kpl.approved = 1 AND kpl.newProduct = 0 AND kpl.id IN ( SELECT kplg.kpl_id FROM klimat_prod_list_groups kplg WHERE kplg.kpc_id = ?) GROUP BY m.stub,[_paramTypes] => iii,[_paramValues] => Array ([0] => 142,[1] => 262,[2] => 114),[] => 1),[] => ),[] => View Object ([] => product,[] => select,[] => Array ([categoryId] => ),[] => Array ([0] => ui-autocomplete,[1] => jquery.ui.selectmenu.css),[] => Array ([0] => $(document).ready(function(){ var divId; // Default settings showSearchField("#searchProducts"); setFormAttr("produkter"); function setFormAttr(searchType) { if (searchType == "news") searchType = "nyheter"; if (searchType == "products") searchType = "produkter"; $("#searchForm").attr("action", "http://www.klimatsmart.se/sok/" + searchType + "/"); } function showSearchField(divId) { $(".searchType").hide(); $(divId).show(); } $("#typeRow input[type='radio']").live("change", function() { showSearchField("#search" + ucfirst($(this).val())); setFormAttr($(this).val()); $(".ui-autocomplete").css("top"); }); $("#searchButton").click(function(e) { e.preventDefault(); searchSubmit(); }); function searchSubmit() { var fieldVal; typeVal = $("#typeRow input[type='radio']:checked").val(); if (typeVal == "products") { fieldVal = rawurlencode($("#searchFieldProducts").val()); } else if (typeVal == "news") { fieldVal = rawurlencode($("#searchFieldNews").val()); } else { fieldVal = rawurlencode($("#searchFieldVideos").val()); } $("#searchForm").attr("action", $("#searchForm").attr("action") + str_replace("%2F","",fieldVal) + "/"); $("#searchForm").submit(); } $("input#searchFieldProducts").keypress(function(e) { // Enter pressed? if(e.which == 10 || e.which == 13) { e.preventDefault(); searchSubmit(); return true; } }); $("input#searchFieldVideos").keypress(function(e) { // Enter pressed? if(e.which == 10 || e.which == 13) { e.preventDefault(); searchSubmit(); return true; } }); $("input#searchFieldNews").keypress(function(e) { // Enter pressed? if(e.which == 10 || e.which == 13) { e.preventDefault(); searchSubmit(); return true; } }); $("#searchFieldProducts").autocomplete({ source: function(request, response) { var myterm = encodeURIComponent(str_replace("/","",request.term)); //alert(myterm); $.getJSON("http://www.klimatsmart.se/search/suggest/products/" + myterm + "/", { term: encodeURIComponent(myterm) }, response); }, select: function( event, ui ) { if (null != ui.item) { if (substr(ui.item.id,0,4) == "url-") { newurl = substr(ui.item.id,4)+".html"; window.location = "http://www.klimatsmart.se/" + newurl; } else { $( "#searchFieldProducts" ).val( strip_tags(ui.item.label) ); searchSubmit(); } } return false; }, focus: function(event, ui) { if (null != ui.item) { $( "#searchFieldProducts" ).val( strip_tags(ui.item.label) ); } return false; }, change: function(event, ui) { if (null != ui.item) { ( "#searchFieldProducts" ).val( strip_tags(ui.item.label) ); } return false; }, open: function() { $(".ui-autocomplete").css("width", "460px"); } }).data( "autocomplete" )._renderItem = function( ul, item ) { var result_item = item.label; return $( "
  • " ) .data( "item.autocomplete", item ) .append("" + result_item + "") .appendTo( ul ); }; $("#searchFieldNews").autocomplete({ source: function(request, response) { $.getJSON("http://www.klimatsmart.se/search/suggest/news/" + request.term + "/", { term: request.term }, response); }, select: function( event, ui ) { if (null != ui.item) { $( "#searchFieldNews" ).val( strip_tags(ui.item.id) ); } searchSubmit(); return false; }, focus: function(event, ui) { if (null != ui.item) { $( "#searchFieldNews" ).val( strip_tags(ui.item.id) ); } return false; }, change: function(event, ui) { if (null != ui.item) { ( "#searchFieldNews" ).val( strip_tags(ui.item.id) ); } return false; } }).data( "autocomplete" )._renderItem = function( ul, item ) { var result_item = item.label; return $( "
  • " ) .data( "item.autocomplete", item ) .append("" + result_item + "") .appendTo( ul ); }; $("#searchFieldVideos").autocomplete({ source: function(request, response) { $.getJSON("http://www.klimatsmart.se/search/suggest/videos/"+ request.term + "/", { term: request.term }, response); }, select: function( event, ui ) { if (null != ui.item) { $( "#searchFieldVideos" ).val( strip_tags(ui.item.id) ); } searchSubmit(); return false; }, focus: function(event, ui) { if (null != ui.item) { $( "#searchFieldVideos" ).val( strip_tags(ui.item.id) ); } return false; }, change: function(event, ui) { if (null != ui.item) { ( "#searchFieldVideos" ).val( strip_tags(ui.item.id) ); } return false; } }).data( "autocomplete" )._renderItem = function( ul, item ) { var result_item = item.label; return $( "
  • " ) .data( "item.autocomplete", item ) .append("" + result_item + "") .appendTo( ul ); }; $(".menuItemProduct a.parent").click(function() { $(".menuItemProduct ul").toggle("slow"); }); }); ,[1] => ,[2] => $(document).ready(function(){ // $("#geoSelect").selectmenu(); $("#geoSelect").change(function() { var fieldVal; fieldVal = "region/" + urlencode($("#geoSelect").val()); $("#geoSelectForm").attr("action", $("#geoSelectForm").attr("action") + fieldVal + "/"); $("#geoSelectForm").submit(); }) }); ),[] => Array (),[] => ,[] => ,[] => 1,[] => 1),[] => select,[] => Array ([0] => bliklimatsmart,[1] => ,[searchdata] => ,[geography] => ),[] => Array (),[] => Array ([url] => bliklimatsmart/),[] => 1),[1] => select), Array ([0] => bliklimatsmart,[1] => )) called at [/home/klimatsmart/www3/library/global.php:137] #5 callMain(Product, select, Array ([0] => bliklimatsmart,[1] => )) called at [/home/klimatsmart/www3/library/global.php:435] #6 initCleanUrl() called at [/home/klimatsmart/www3/library/global.php:472] #7 initMain() called at [/home/klimatsmart/www3/library/global.php:504] #8 require_once(/home/klimatsmart/www3/library/global.php) called at [/home/klimatsmart/www3/library/bootstrap.php:8] #9 require_once(/home/klimatsmart/www3/library/bootstrap.php) called at [/home/klimatsmart/www3/index.php:32] Column 'log_cat_number' cannot be null#0 Database->query(INSERT INTO klimat_cat_log ( log_parent_id, log_cat_number, log_ip, log_useragent, log_created ) VALUES ( ?, ?, ?, ?, NOW() ), iiss, 0, , 54.205.242.179, ) called at [/home/klimatsmart/www3/application/model/LogModel.php:129] #1 LogModel->logCat() called at [/home/klimatsmart/www3/application/controller/ProductController.php:596] #2 ProductController->listCat() called at [/home/klimatsmart/www3/application/controller/ProductController.php:571] #3 ProductController->select(bliklimatsmart, ) #4 call_user_func_array(Array ([0] => ProductController Object ([] => Product,[] => ProductModel Object ([] => ,[] => ,[] => ,[] => ( `kpl`.LogoSize >= 50 AND `kpl`.`LogoStart` < NOW() AND (`kpl`.`LogoEnd`='0000-00-00 00:00:00' OR `kpl`.`LogoEnd` > NOW()) ) AND `kpl`.LogoActive = 1 AND quickad != 1 AND ,[] => ( `kpl`.LogoSize < 50 OR ( `kpl`.LogoSize >= 50 AND `kpl`.`LogoEnd` < NOW() ) OR `kpl`.LogoActive = 0 ) AND ,[] => Database Object ([] => mysqli Object (),[] => localhost,[] => root,[] => R45TY6,[] => klimatsmart2_1_live,[] => 1,[] => latin1,[] => ,[] => 1,[] => SELECT m.* FROM municipalities m INNER JOIN klimat_prod_list_ageography kpla ON kpla.municipality_id = m.id INNER JOIN klimat_prod_list kpl ON kpla.kpl_id = kpl.id WHERE m.id IN (?,?,?) AND ((CASE kpl.`LogoActive` WHEN 1 THEN ( CASE WHEN kpl.`LogoStart` < NOW() AND (kpl.`LogoEnd`='0000-00-00 00:00:00' OR kpl.`LogoEnd` > NOW()) THEN 1 ELSE 0 END ) ELSE 0 END ) = 1 OR kpl.LogoSize = 0) AND kpl.approved = 1 AND kpl.newProduct = 0 AND kpl.id IN ( SELECT kplg.kpl_id FROM klimat_prod_list_groups kplg WHERE kplg.kpc_id = ?) GROUP BY m.stubSELECT m.* FROM municipalities m INNER JOIN klimat_prod_list_ageography kpla ON kpla.municipality_id = m.id INNER JOIN klimat_prod_list kpl ON kpla.kpl_id = kpl.id WHERE m.id IN (?,?,?) AND kpl.approved = 1 AND kpl.newProduct = 0 AND ((CASE kpl.`LogoActive` WHEN 1 THEN ( CASE WHEN kpl.`LogoStart` < NOW() AND (kpl.`LogoEnd`='0000-00-00 00:00:00' OR kpl.`LogoEnd` > NOW()) THEN 1 ELSE 0 END ) ELSE 0 END ) = 1 OR kpl.LogoSize = 0) AND ( city LIKE ? OR city LIKE ? OR city LIKE ? ) AND kpl.id IN (SELECT kplg.kpl_id FROM klimat_prod_list_groups kplg WHERE kplg.kpc_id = ?) GROUP BY m.stub,[_paramTypes] => iiiiiisss,[_paramValues] => Array ([0] => 142,[1] => 262,[2] => 114,[3] => 142,[4] => 262,[5] => 114,[6] => %Stockholm%,[7] => %Göteborg%,[8] => %Malmö%),[] => 1),[] => ),[] => View Object ([] => product,[] => select,[] => Array ([categoryId] => ,[geoList] =>
    ,[categories] => Array ([0] => Array ([number] => 100,[cat_stub] => bilar-fordon,[cat] => Bilar & Fordon,[groups] => Array ([0] => Array ([number] => 101,[cat_stub] => bilar,[cat] => Bilar),[1] => Array ([number] => 103,[cat_stub] => biltillbehor,[cat] => Biltillbehör),[2] => Array ([number] => 105,[cat_stub] => bilvard,[cat] => Bilvård),[3] => Array ([number] => 102,[cat_stub] => batar,[cat] => Båtar),[4] => Array ([number] => 109,[cat_stub] => ecodriving,[cat] => Ecodriving),[5] => Array ([number] => 106,[cat_stub] => elbilar,[cat] => Elbilar),[6] => Array ([number] => 107,[cat_stub] => elcyklar-elmopeder,[cat] => Elcyklar & elmopeder),[7] => Array ([number] => 111,[cat_stub] => etanolbilar,[cat] => Etanolbilar),[8] => Array ([number] => 110,[cat_stub] => gasbilar,[cat] => Gasbilar),[9] => Array ([number] => 108,[cat_stub] => miljobransle,[cat] => Miljöbränsle),[10] => Array ([number] => 104,[cat_stub] => ovriga-fordon,[cat] => Övriga fordon))),[1] => Array ([number] => 200,[cat_stub] => ekonomi,[cat] => Ekonomi,[groups] => Array ([0] => Array ([number] => 201,[cat_stub] => bank,[cat] => Bank),[1] => Array ([number] => 202,[cat_stub] => forsakring,[cat] => Försäkring),[2] => Array ([number] => 204,[cat_stub] => pension,[cat] => Pension),[3] => Array ([number] => 203,[cat_stub] => vardepapper,[cat] => Värdepapper))),[2] => Array ([number] => 300,[cat_stub] => energi,[cat] => Energi,[groups] => Array ([0] => Array ([number] => 301,[cat_stub] => bergvarme,[cat] => Bergvärme),[1] => Array ([number] => 314,[cat_stub] => bioenergi,[cat] => Bioenergi),[2] => Array ([number] => 318,[cat_stub] => energi-elmatare,[cat] => Energi- & Elmätare),[3] => Array ([number] => 308,[cat_stub] => energibesparing,[cat] => Energibesparing),[4] => Array ([number] => 316,[cat_stub] => energideklarationer,[cat] => Energideklarationer),[5] => Array ([number] => 317,[cat_stub] => energiradgivning,[cat] => Energirådgivning),[6] => Array ([number] => 309,[cat_stub] => fjarrvarme,[cat] => Fjärrvärme),[7] => Array ([number] => 313,[cat_stub] => franluftsvarme,[cat] => Frånluftsvärme),[8] => Array ([number] => 306,[cat_stub] => luftvarme,[cat] => Luftvärme),[9] => Array ([number] => 302,[cat_stub] => miljoel,[cat] => Miljöel),[10] => Array ([number] => 303,[cat_stub] => pellets,[cat] => Pellets),[11] => Array ([number] => 310,[cat_stub] => prognosstyrning,[cat] => Prognosstyrning),[12] => Array ([number] => 304,[cat_stub] => solenergi,[cat] => Solenergi),[13] => Array ([number] => 315,[cat_stub] => termografi,[cat] => Termografi),[14] => Array ([number] => 311,[cat_stub] => vattenkraft,[cat] => Vattenkraft),[15] => Array ([number] => 305,[cat_stub] => vindkraft,[cat] => Vindkraft),[16] => Array ([number] => 312,[cat_stub] => vindkraftsandelar,[cat] => Vindkraftsandelar))),[3] => Array ([number] => 500,[cat_stub] => hem-tradgard,[cat] => Hem & Trädgård,[groups] => Array ([0] => Array ([number] => 511,[cat_stub] => arkitekter,[cat] => Arkitekter),[1] => Array ([number] => 501,[cat_stub] => belysning,[cat] => Belysning),[2] => Array ([number] => 518,[cat_stub] => brasa-grill,[cat] => Brasa & Grill),[3] => Array ([number] => 502,[cat_stub] => bygg,[cat] => Bygg),[4] => Array ([number] => 512,[cat_stub] => fasadtvatt,[cat] => Fasadtvätt),[5] => Array ([number] => 520,[cat_stub] => farg-tapet,[cat] => Färg & Tapet),[6] => Array ([number] => 510,[cat_stub] => fonster,[cat] => Fönster),[7] => Array ([number] => 522,[cat_stub] => golv,[cat] => Golv),[8] => Array ([number] => 516,[cat_stub] => grona-tak,[cat] => Gröna tak),[9] => Array ([number] => 519,[cat_stub] => hemelektronik,[cat] => Hemelektronik),[10] => Array ([number] => 506,[cat_stub] => hemtextilier,[cat] => Hemtextilier),[11] => Array ([number] => 507,[cat_stub] => hushallsapparater,[cat] => Hushållsapparater),[12] => Array ([number] => 521,[cat_stub] => hustillverkare,[cat] => Hustillverkare),[13] => Array ([number] => 508,[cat_stub] => inredning,[cat] => Inredning),[14] => Array ([number] => 513,[cat_stub] => isolering,[cat] => Isolering),[15] => Array ([number] => 514,[cat_stub] => koksavfall,[cat] => Köksavfall),[16] => Array ([number] => 517,[cat_stub] => miljovanligt-boende,[cat] => Miljövänligt boende),[17] => Array ([number] => 503,[cat_stub] => mobler,[cat] => Möbler),[18] => Array ([number] => 509,[cat_stub] => passivhus,[cat] => Passivhus),[19] => Array ([number] => 504,[cat_stub] => tradgard,[cat] => Trädgård),[20] => Array ([number] => 505,[cat_stub] => vitvaror,[cat] => Vitvaror),[21] => Array ([number] => 515,[cat_stub] => vvs,[cat] => VVS))),[4] => Array ([number] => 400,[cat_stub] => hotell-resor,[cat] => Hotell & Resor,[groups] => Array ([0] => Array ([number] => 401,[cat_stub] => buss-tag-flyg,[cat] => Buss, Tåg & Flyg),[1] => Array ([number] => 402,[cat_stub] => hotell-konferens,[cat] => Hotell & Konferens),[2] => Array ([number] => 403,[cat_stub] => resebyraer,[cat] => Resebyråer),[3] => Array ([number] => 404,[cat_stub] => tagcharter,[cat] => Tågcharter))),[5] => Array ([number] => 600,[cat_stub] => industri-teknik,[cat] => Industri & Teknik,[groups] => Array ([0] => Array ([number] => 613,[cat_stub] => foreningar-opinion,[cat] => Föreningar & Opinion),[1] => Array ([number] => 604,[cat_stub] => forpackningar,[cat] => Förpackningar),[2] => Array ([number] => 606,[cat_stub] => klimatkompensation,[cat] => Klimatkompensation),[3] => Array ([number] => 607,[cat_stub] => kontor-lokaler,[cat] => Kontor & lokaler),[4] => Array ([number] => 610,[cat_stub] => ljuskallor-styrning,[cat] => Ljuskällor & Styrning),[5] => Array ([number] => 609,[cat_stub] => luftteknik,[cat] => Luftteknik),[6] => Array ([number] => 614,[cat_stub] => miljocertifiering,[cat] => Miljöcertifiering),[7] => Array ([number] => 601,[cat_stub] => miljokonsulter,[cat] => Miljökonsulter),[8] => Array ([number] => 603,[cat_stub] => renhallning,[cat] => Renhållning),[9] => Array ([number] => 608,[cat_stub] => stadning-lokalvard,[cat] => Städning & Lokalvård),[10] => Array ([number] => 602,[cat_stub] => teknikkonsulter,[cat] => Teknikkonsulter),[11] => Array ([number] => 611,[cat_stub] => utbildningar-kurser,[cat] => Utbildningar & Kurser),[12] => Array ([number] => 612,[cat_stub] => vattenteknik,[cat] => Vattenteknik),[13] => Array ([number] => 605,[cat_stub] => atervinning,[cat] => Återvinning))),[6] => Array ([number] => 700,[cat_stub] => it-media,[cat] => It & Media,[groups] => Array ([0] => Array ([number] => 701,[cat_stub] => datorer,[cat] => Datorer),[1] => Array ([number] => 711,[cat_stub] => foto-framkallning,[cat] => Foto & framkallning),[2] => Array ([number] => 709,[cat_stub] => it-konsulter,[cat] => IT-konsulter),[3] => Array ([number] => 708,[cat_stub] => miljotoner,[cat] => Miljötoner),[4] => Array ([number] => 706,[cat_stub] => reklam-pr,[cat] => Reklam & PR),[5] => Array ([number] => 702,[cat_stub] => sokmotorer,[cat] => Sökmotorer),[6] => Array ([number] => 703,[cat_stub] => telekommunikation,[cat] => Telekommunikation),[7] => Array ([number] => 705,[cat_stub] => tidskrifter,[cat] => Tidskrifter),[8] => Array ([number] => 707,[cat_stub] => trycksaker,[cat] => Trycksaker),[9] => Array ([number] => 704,[cat_stub] => webbhotell,[cat] => Webbhotell))),[7] => Array ([number] => 1300,[cat_stub] => klader-mode,[cat] => Kläder & Mode,[groups] => Array ([0] => Array ([number] => 1304,[cat_stub] => accessoarer,[cat] => Accessoarer),[1] => Array ([number] => 1301,[cat_stub] => barnklader,[cat] => Barnkläder),[2] => Array ([number] => 1305,[cat_stub] => garn-tyger,[cat] => Garn & Tyger),[3] => Array ([number] => 1307,[cat_stub] => grossister-klader,[cat] => Grossister (kläder)),[4] => Array ([number] => 1302,[cat_stub] => klader,[cat] => Kläder),[5] => Array ([number] => 1306,[cat_stub] => kladtvatt,[cat] => Klädtvätt),[6] => Array ([number] => 1303,[cat_stub] => skor,[cat] => Skor))),[8] => Array ([number] => 1200,[cat_stub] => mat-dryck,[cat] => Mat & Dryck,[groups] => Array ([0] => Array ([number] => 1201,[cat_stub] => brod,[cat] => Bröd),[1] => Array ([number] => 1202,[cat_stub] => eko-butiker,[cat] => Eko-butiker),[2] => Array ([number] => 1203,[cat_stub] => fisk,[cat] => Fisk),[3] => Array ([number] => 1204,[cat_stub] => frukt-gront,[cat] => Frukt & Grönt),[4] => Array ([number] => 1220,[cat_stub] => fagel-kyckling,[cat] => Fågel & Kyckling),[5] => Array ([number] => 1216,[cat_stub] => glass,[cat] => Glass),[6] => Array ([number] => 1215,[cat_stub] => grossister-mat,[cat] => Grossister (mat)),[7] => Array ([number] => 1212,[cat_stub] => gardsbutiker,[cat] => Gårdsbutiker),[8] => Array ([number] => 1213,[cat_stub] => hemleverans,[cat] => Hemleverans),[9] => Array ([number] => 1221,[cat_stub] => halsokost-tillskott,[cat] => Hälsokost & tillskott),[10] => Array ([number] => 1207,[cat_stub] => kaffe-te-kryddor,[cat] => Kaffe, Te & Kryddor),[11] => Array ([number] => 1205,[cat_stub] => kott,[cat] => Kött),[12] => Array ([number] => 1219,[cat_stub] => mataffarer,[cat] => Mataffärer),[13] => Array ([number] => 1206,[cat_stub] => mejeri,[cat] => Mejeri),[14] => Array ([number] => 1217,[cat_stub] => middagsprenumeration,[cat] => Middagsprenumeration),[15] => Array ([number] => 1218,[cat_stub] => storkoksleverantorer,[cat] => Storköksleverantörer),[16] => Array ([number] => 1210,[cat_stub] => sotsaker-snacks,[cat] => Sötsaker & Snacks),[17] => Array ([number] => 1214,[cat_stub] => agg,[cat] => Ägg),[18] => Array ([number] => 1208,[cat_stub] => ol-vin,[cat] => Öl & Vin),[19] => Array ([number] => 1209,[cat_stub] => ovriga-drycker,[cat] => Övriga drycker),[20] => Array ([number] => 1211,[cat_stub] => ovriga-matvaror,[cat] => Övriga matvaror))),[9] => Array ([number] => 800,[cat_stub] => restaurang-nojen,[cat] => Restaurang & Nöjen,[groups] => Array ([0] => Array ([number] => 803,[cat_stub] => eko-cafeer,[cat] => Eko-caféer),[1] => Array ([number] => 801,[cat_stub] => nojen-evenemang,[cat] => Nöjen & Evenemang),[2] => Array ([number] => 802,[cat_stub] => restauranger,[cat] => Restauranger))),[10] => Array ([number] => 900,[cat_stub] => shopping,[cat] => Shopping,[groups] => Array ([0] => Array ([number] => 901,[cat_stub] => barnartiklar,[cat] => Barnartiklar),[1] => Array ([number] => 913,[cat_stub] => behandlingar-spa,[cat] => Behandlingar & Spa),[2] => Array ([number] => 905,[cat_stub] => bocker,[cat] => Böcker),[3] => Array ([number] => 910,[cat_stub] => eko-affarer,[cat] => Eko-affärer),[4] => Array ([number] => 911,[cat_stub] => eko-frisorer,[cat] => Eko-frisörer),[5] => Array ([number] => 912,[cat_stub] => hygienartiklar,[cat] => Hygienartiklar),[6] => Array ([number] => 903,[cat_stub] => halsa-skonhet,[cat] => Hälsa & Skönhet),[7] => Array ([number] => 907,[cat_stub] => papper-kontorsvaror,[cat] => Papper & Kontorsvaror),[8] => Array ([number] => 908,[cat_stub] => rengoringsmedel,[cat] => Rengöringsmedel),[9] => Array ([number] => 909,[cat_stub] => tvattmedel,[cat] => Tvättmedel))),[11] => Array ([number] => 1000,[cat_stub] => sport-fritid,[cat] => Sport & Fritid,[groups] => Array ([0] => Array ([number] => 1005,[cat_stub] => djurfoder-tillbehor,[cat] => Djurfoder & tillbehör),[1] => Array ([number] => 1003,[cat_stub] => skog-tradplantering,[cat] => Skog & Trädplantering),[2] => Array ([number] => 1001,[cat_stub] => sportfritid,[cat] => Sport & Fritid),[3] => Array ([number] => 1002,[cat_stub] => aventyr-natur,[cat] => Äventyr & Natur))),[12] => Array ([number] => 1100,[cat_stub] => transport,[cat] => Transport,[groups] => Array ([0] => Array ([number] => 1101,[cat_stub] => bilpooler,[cat] => Bilpooler),[1] => Array ([number] => 1102,[cat_stub] => biluthyrning,[cat] => Biluthyrning),[2] => Array ([number] => 1103,[cat_stub] => bud-frakt-spedition,[cat] => Bud, Frakt & Spedition),[3] => Array ([number] => 1104,[cat_stub] => flyg,[cat] => Flyg),[4] => Array ([number] => 1107,[cat_stub] => post-logistik,[cat] => Post & Logistik),[5] => Array ([number] => 1105,[cat_stub] => taxi,[cat] => Taxi),[6] => Array ([number] => 1106,[cat_stub] => tag,[cat] => Tåg)))),[type] => category),[] => Array ([0] => ui-autocomplete,[1] => jquery.ui.selectmenu.css,[2] => subpage,[3] => products),[] => Array ([0] => $(document).ready(function(){ var divId; // Default settings showSearchField("#searchProducts"); setFormAttr("produkter"); function setFormAttr(searchType) { if (searchType == "news") searchType = "nyheter"; if (searchType == "products") searchType = "produkter"; $("#searchForm").attr("action", "http://www.klimatsmart.se/sok/" + searchType + "/"); } function showSearchField(divId) { $(".searchType").hide(); $(divId).show(); } $("#typeRow input[type='radio']").live("change", function() { showSearchField("#search" + ucfirst($(this).val())); setFormAttr($(this).val()); $(".ui-autocomplete").css("top"); }); $("#searchButton").click(function(e) { e.preventDefault(); searchSubmit(); }); function searchSubmit() { var fieldVal; typeVal = $("#typeRow input[type='radio']:checked").val(); if (typeVal == "products") { fieldVal = rawurlencode($("#searchFieldProducts").val()); } else if (typeVal == "news") { fieldVal = rawurlencode($("#searchFieldNews").val()); } else { fieldVal = rawurlencode($("#searchFieldVideos").val()); } $("#searchForm").attr("action", $("#searchForm").attr("action") + str_replace("%2F","",fieldVal) + "/"); $("#searchForm").submit(); } $("input#searchFieldProducts").keypress(function(e) { // Enter pressed? if(e.which == 10 || e.which == 13) { e.preventDefault(); searchSubmit(); return true; } }); $("input#searchFieldVideos").keypress(function(e) { // Enter pressed? if(e.which == 10 || e.which == 13) { e.preventDefault(); searchSubmit(); return true; } }); $("input#searchFieldNews").keypress(function(e) { // Enter pressed? if(e.which == 10 || e.which == 13) { e.preventDefault(); searchSubmit(); return true; } }); $("#searchFieldProducts").autocomplete({ source: function(request, response) { var myterm = encodeURIComponent(str_replace("/","",request.term)); //alert(myterm); $.getJSON("http://www.klimatsmart.se/search/suggest/products/" + myterm + "/", { term: encodeURIComponent(myterm) }, response); }, select: function( event, ui ) { if (null != ui.item) { if (substr(ui.item.id,0,4) == "url-") { newurl = substr(ui.item.id,4)+".html"; window.location = "http://www.klimatsmart.se/" + newurl; } else { $( "#searchFieldProducts" ).val( strip_tags(ui.item.label) ); searchSubmit(); } } return false; }, focus: function(event, ui) { if (null != ui.item) { $( "#searchFieldProducts" ).val( strip_tags(ui.item.label) ); } return false; }, change: function(event, ui) { if (null != ui.item) { ( "#searchFieldProducts" ).val( strip_tags(ui.item.label) ); } return false; }, open: function() { $(".ui-autocomplete").css("width", "460px"); } }).data( "autocomplete" )._renderItem = function( ul, item ) { var result_item = item.label; return $( "
  • " ) .data( "item.autocomplete", item ) .append("" + result_item + "") .appendTo( ul ); }; $("#searchFieldNews").autocomplete({ source: function(request, response) { $.getJSON("http://www.klimatsmart.se/search/suggest/news/" + request.term + "/", { term: request.term }, response); }, select: function( event, ui ) { if (null != ui.item) { $( "#searchFieldNews" ).val( strip_tags(ui.item.id) ); } searchSubmit(); return false; }, focus: function(event, ui) { if (null != ui.item) { $( "#searchFieldNews" ).val( strip_tags(ui.item.id) ); } return false; }, change: function(event, ui) { if (null != ui.item) { ( "#searchFieldNews" ).val( strip_tags(ui.item.id) ); } return false; } }).data( "autocomplete" )._renderItem = function( ul, item ) { var result_item = item.label; return $( "
  • " ) .data( "item.autocomplete", item ) .append("" + result_item + "") .appendTo( ul ); }; $("#searchFieldVideos").autocomplete({ source: function(request, response) { $.getJSON("http://www.klimatsmart.se/search/suggest/videos/"+ request.term + "/", { term: request.term }, response); }, select: function( event, ui ) { if (null != ui.item) { $( "#searchFieldVideos" ).val( strip_tags(ui.item.id) ); } searchSubmit(); return false; }, focus: function(event, ui) { if (null != ui.item) { $( "#searchFieldVideos" ).val( strip_tags(ui.item.id) ); } return false; }, change: function(event, ui) { if (null != ui.item) { ( "#searchFieldVideos" ).val( strip_tags(ui.item.id) ); } return false; } }).data( "autocomplete" )._renderItem = function( ul, item ) { var result_item = item.label; return $( "
  • " ) .data( "item.autocomplete", item ) .append("" + result_item + "") .appendTo( ul ); }; $(".menuItemProduct a.parent").click(function() { $(".menuItemProduct ul").toggle("slow"); }); }); ,[1] => ,[2] => $(document).ready(function(){ // $("#geoSelect").selectmenu(); $("#geoSelect").change(function() { var fieldVal; fieldVal = "region/" + urlencode($("#geoSelect").val()); $("#geoSelectForm").attr("action", $("#geoSelectForm").attr("action") + fieldVal + "/"); $("#geoSelectForm").submit(); }) }); ),[] => Array (),[] => ,[] => ,[] => 1,[] => ),[] => select,[] => Array ([0] => bliklimatsmart,[1] => ,[searchdata] => ,[geography] => ),[] => Array (),[] => Array ([url] => bliklimatsmart/),[] => 1),[1] => select), Array ([0] => bliklimatsmart,[1] => )) called at [/home/klimatsmart/www3/library/global.php:137] #5 callMain(Product, select, Array ([0] => bliklimatsmart,[1] => )) called at [/home/klimatsmart/www3/library/global.php:435] #6 initCleanUrl() called at [/home/klimatsmart/www3/library/global.php:472] #7 initMain() called at [/home/klimatsmart/www3/library/global.php:504] #8 require_once(/home/klimatsmart/www3/library/global.php) called at [/home/klimatsmart/www3/library/bootstrap.php:8] #9 require_once(/home/klimatsmart/www3/library/bootstrap.php) called at [/home/klimatsmart/www3/index.php:32]
    Fatal error: Call to a member function fetch_field() on a non-object in /home/klimatsmart/www3/library/Database.class.php on line 190