error!

SQLSTATE[HY093]: Invalid parameter number: no parameters were bound

trace:

1 plik /library/Zend/Db/Statement/Pdo.php w linijce 234 :
228: ...
229:             } else {
230:                 return $this->_stmt->execute();
231:             }
232:         } catch (PDOException $e) {
233:             require_once 'Zend/Db/Statement/Exception.php';
234: throw new Zend_Db_Statement_Exception($e->getMessage(), (int) $e->getCode(), $e);
235: } 236: } 237: 238: /** 239: * Fetches a row from the result set. 240: ...


2 plik /library/Zend/Db/Statement.php w linijce 300 :
294: ...
295:     {
296:         /*
297:          * Simple case - no query profiler to manage.
298:          */
299:         if ($this->_queryId === null) {
300: return $this->_execute($params);
301: } 302: 303: /* 304: * Do the same thing, but with query profiler 305: * management before and after the execute. 306: ...


3 plik /library/Zend/Db/Adapter/Abstract.php w linijce 479 :
473: ...
474:             $bind = array($bind);
475:         }
476: 
477:         // prepare and execute the statement with profiling
478:         $stmt = $this->prepare($sql);
479: $stmt->execute($bind);
480: 481: // return the results embedded in the prepared statement object 482: $stmt->setFetchMode($this->_fetchMode); 483: return $stmt; 484: } 485: ...


4 plik /library/Zend/Db/Adapter/Pdo/Abstract.php w linijce 238 :
232: ...
233:                 }
234:             }
235:         }
236: 
237:         try {
238: return parent::query($sql, $bind);
239: } catch (PDOException $e) { 240: /** 241: * @see Zend_Db_Statement_Exception 242: */ 243: require_once 'Zend/Db/Statement/Exception.php'; 244: ...


5 plik /library/Zend/Db/Adapter/Abstract.php w linijce 734 :
728: ...
729:     public function fetchAll($sql, $bind = array(), $fetchMode = null)
730:     {
731:         if ($fetchMode === null) {
732:             $fetchMode = $this->_fetchMode;
733:         }
734: $stmt = $this->query($sql, $bind);
735: $result = $stmt->fetchAll($fetchMode); 736: return $result; 737: } 738: 739: /** 740: ...


6 plik /library/Koli/Model/Shop/Products.php w linijce 425 :
419: ...


7 plik /library/Koli/Controller/Shop/ProduktyController.php w linijce 31 :
25: ...
26:             $this->view->pageNumber = $this->_request->getParam("strona", 1);
27:             $paginator = new Koli_Tools_PaginatorCount();
28:             $this->view->paginator = $paginator->calculate_pages(
29:                     $this->_products->countAllFromCategory($category['id']), $this->view->pageNumber, $this->_productsPerPage, "/produkty/" . $category_link_name . "/strona/"
30:             );
31: $this->view->products = $this->_products->getProductsFromCategory($category['id'], $this->view->pageNumber, $this->_productsPerPage);
32: if (($newTit = $this->_categories->getSeoTitle($category)) != FALSE) 33: $this->view->title = $newTit; 34: if (($newMeta = $this->_categories->getSeoMeta($category)) != FALSE) 35: $this->view->meta = $newMeta; 36: if (($newDesc = $this->_categories->getSeoDescription($category)) != FALSE) 37: ...


8 plik /library/Zend/Controller/Action.php w linijce 513 :
507: ...
508:             // preDispatch() didn't change the action, so we can continue
509:             if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
510:                 if ($this->getInvokeArg('useCaseSensitiveActions')) {
511:                     trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
512:                 }
513: $this->$action();
514: } else { 515: $this->__call($action, array()); 516: } 517: $this->postDispatch(); 518: } 519: ...


9 plik /library/Zend/Controller/Dispatcher/Standard.php w linijce 295 :
289: ...
290:         if (empty($disableOb)) {
291:             ob_start();
292:         }
293: 
294:         try {
295: $controller->dispatch($action);
296: } catch (Exception $e) { 297: // Clean output buffer on error 298: $curObLevel = ob_get_level(); 299: if ($curObLevel > $obLevel) { 300: do { 301: ...


10 plik /library/Zend/Controller/Front.php w linijce 954 :
948: ...
949: 
950:                 /**
951:                  * Dispatch request
952:                  */
953:                 try {
954: $dispatcher->dispatch($this->_request, $this->_response);
955: } catch (Exception $e) { 956: if ($this->throwExceptions()) { 957: throw $e; 958: } 959: $this->_response->setException($e); 960: ...


11 plik /html/index.php w linijce 200 :
194: ...
195: 
196: function __($str){
197:     return $str;
198: }
199: 
200: $front->dispatch();