- FICHEIRO: /home/obrigadoprofesso/library/Zend/Db/Statement/Pdo.php
- LINHA: 235
- MENSAGEM: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'www.canal4.pt' in 'where clause', query was: SELECT * FROM galeria_categoria_pt WHERE activo = 1 AND pai_id = www.canal4.pt ORDER BY ordem
- 231. }
- 232. } catch (PDOException $e) {
- 233. require_once 'Zend/Db/Statement/Exception.php';
- 234. $message = sprintf('%s, query was: %s', $e->getMessage(), $this->_stmt->queryString);
- 235. throw new Zend_Db_Statement_Exception($message, (int) $e->getCode(), $e);
- 236. }
- 237. }
- 238.
- 239. /**
- 240. * Fetches a row from the result set.
- FICHEIRO: /home/obrigadoprofesso/library/Zend/Db/Statement.php
- LINHA: 303
- 299. /*
- 300. * Simple case - no query profiler to manage.
- 301. */
- 302. if ($this->_queryId === null) {
- 303. return $this->_execute($params);
- 304. }
- 305.
- 306. /*
- 307. * Do the same thing, but with query profiler
- 308. * management before and after the execute.
- FICHEIRO: /home/obrigadoprofesso/library/Zend/Db/Adapter/Abstract.php
- LINHA: 480
- 476. }
- 477.
- 478. // prepare and execute the statement with profiling
- 479. $stmt = $this->prepare($sql);
- 480. $stmt->execute($bind);
- 481.
- 482. // return the results embedded in the prepared statement object
- 483. $stmt->setFetchMode($this->_fetchMode);
- 484. return $stmt;
- 485. }
- FICHEIRO: /home/obrigadoprofesso/library/Zend/Db/Adapter/Pdo/Abstract.php
- LINHA: 238
- 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';
- FICHEIRO: /home/obrigadoprofesso/library/Zend/Db/Adapter/Abstract.php
- LINHA: 737
- 733. {
- 734. if ($fetchMode === null) {
- 735. $fetchMode = $this->_fetchMode;
- 736. }
- 737. $stmt = $this->query($sql, $bind);
- 738. $result = $stmt->fetchAll($fetchMode);
- 739. return $result;
- 740. }
- 741.
- 742. /**
- FICHEIRO: /home/obrigadoprofesso/application/Galeria/GenericController.php
- LINHA: 390
- 386. * cache nesta sucatisse, implementar menu como deve ser, com cerca de 100 categorias são feitas mais de 400 queries, o que é incomportável
- 387. * @todo refazer e manter compatibilidades
- 388. */
- 389. if(($result = $this->_customCache->load(md5($query))) === false) {
- 390. $result = $db->fetchAll($query);
- 391. $this->_customCache->save($result, md5($query));
- 392. }
- 393.
- 394. if ($result) {
- 395. $this->view->total = count($result);
- FICHEIRO: /home/obrigadoprofesso/application/Galeria/GenericController.php
- LINHA: 270
- 266. $this->_categoriaModel->where($this->_categoriaModel->getTableName() . '.pai_id = ?', $categoriaId);
- 267. $this->_categoriaModel->where($this->_categoriaModel->getTableName() . '.activo = 1');
- 268. $this->_resultCategorias = $this->_categoriaModel->count();
- 269. if ($this->_resultCategorias > 0) {
- 270. return $this->listCategoriasAction($categoriaId);
- 271. } else {
- 272. return $this->listImagensAction();
- 273. }
- 274. } else {
- 275. return $this->listImagensAction();
- FICHEIRO: /home/obrigadoprofesso/library/Goweb/Controller/Action.php
- LINHA: 276
- 272. */
- 273. /*if ($this->getInvokeArg('useCaseSensitiveActions')) {
- 274. trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
- 275. }*/
- 276. $this->$action();
- 277. } else {
- 278. $this->__call($action, array());
- 279. }
- 280. $this->postDispatch();
- 281. }
- FICHEIRO: /home/obrigadoprofesso/library/Zend/Controller/Dispatcher/Standard.php
- LINHA: 308
- 304. ob_start();
- 305. }
- 306.
- 307. try {
- 308. $controller->dispatch($action);
- 309. } catch (Exception $e) {
- 310. // Clean output buffer on error
- 311. $curObLevel = ob_get_level();
- 312. if ($curObLevel > $obLevel) {
- 313. do {
- FICHEIRO: /home/obrigadoprofesso/library/Zend/Controller/Front.php
- LINHA: 954
- 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);
- FICHEIRO: /home/obrigadoprofesso/library/Goweb/Application.php
- LINHA: 453
- 449. }
- 450.
- 451. public function runApp(){
- 452. $frontController = Zend_Controller_Front::getInstance();
- 453. $frontController->dispatch();
- 454. }
- 455. }
- 456.
- FICHEIRO: /home/obrigadoprofesso/public_html/index.php
- LINHA: 53
- 49. $application->initSession('_FRONT', true);
- 50. $application->initPainel();
- 51. $application->initLanguage(isset($_GET['lang']) ? $_GET['lang'] : null, true, false);
- 52. $application->initLanguageAdmin(isset($_GET['lang']) ? $_GET['lang'] : null, true, true);
- 53. $application->runApp();
- 54.
- 55.
- 56. /**
- 57. * Efectua a traducao de uma string.
- 58. */