- FICHEIRO: /home/capaenergies/library/Zend/Db/Statement/Pdo.php
- LINHA: 235
- MENSAGEM: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'capaener_db.noticias_noticia_pt' doesn't exist, query was: SELECT `noticias_noticia_pt`.`id` AS `noticias_noticia_pt_id`, `noticias_noticia_pt`.`data` AS `noticias_noticia_pt_data`, `noticias_noticia_pt`.`ordem` AS `noticias_noticia_pt_ordem`, `noticias_noticia_pt`.`categoria_id` AS `noticias_noticia_pt_categoria_id`, `noticias_noticia_pt`.`edicao_id` AS `noticias_noticia_pt_edicao_id`, `noticias_noticia_pt`.`imagem` AS `noticias_noticia_pt_imagem`, `noticias_noticia_pt`.`titulo` AS `noticias_noticia_pt_titulo`, `noticias_noticia_pt`.`url` AS `noticias_noticia_pt_url`, `noticias_noticia_pt`.`texto` AS `noticias_noticia_pt_texto`, `noticias_noticia_pt`.`destaque` AS `noticias_noticia_pt_destaque`, `noticias_noticia_pt`.`activo` AS `noticias_noticia_pt_activo`, `noticias_noticia_pt`.`actualizado` AS `noticias_noticia_pt_actualizado`, `noticias_noticia_pt`.`criado` AS `noticias_noticia_pt_criado`, `noticias_noticia_pt`.`ip` AS `noticias_noticia_pt_ip`, `noticias_categoria_pt`.`id` AS `noticias_categoria_pt_id`, `noticias_categoria_pt`.`pai_id` AS `noticias_categoria_pt_pai_id`, `noticias_categoria_pt`.`ordem` AS `noticias_categoria_pt_ordem`, `noticias_categoria_pt`.`titulo` AS `noticias_categoria_pt_titulo`, `noticias_categoria_pt`.`url` AS `noticias_categoria_pt_url`, `noticias_categoria_pt`.`activo` AS `noticias_categoria_pt_activo`, `noticias_categoria_pt`.`actualizado` AS `noticias_categoria_pt_actualizado`, `noticias_categoria_pt`.`criado` AS `noticias_categoria_pt_criado`, `noticias_edicao_pt`.`id` AS `noticias_edicao_pt_id`, `noticias_edicao_pt`.`titulo` AS `noticias_edicao_pt_titulo`, `noticias_edicao_pt`.`data` AS `noticias_edicao_pt_data`, `noticias_edicao_pt`.`ficheiro` AS `noticias_edicao_pt_ficheiro`, `noticias_edicao_pt`.`activo` AS `noticias_edicao_pt_activo`, `noticias_edicao_pt`.`actualizado` AS `noticias_edicao_pt_actualizado`, `noticias_edicao_pt`.`criado` AS `noticias_edicao_pt_criado` FROM `noticias_noticia_pt`
LEFT JOIN `noticias_categoria_pt` ON noticias_noticia_pt.categoria_id=noticias_categoria_pt.id
LEFT JOIN `noticias_edicao_pt` ON noticias_noticia_pt.edicao_id=noticias_edicao_pt.id WHERE (noticias_noticia_pt.`url` = 'go/sistema-de-producao-de-energia-solar-fotovoltaica-em-regime-de-minigeracao----adp--aguas-de-portugal')
- 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/capaenergies/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/capaenergies/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/capaenergies/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/capaenergies/library/Zend/Db/Adapter/Abstract.php
- LINHA: 756
- 752. {
- 753. if ($fetchMode === null) {
- 754. $fetchMode = $this->_fetchMode;
- 755. }
- 756. $stmt = $this->query($sql, $bind);
- 757. $result = $stmt->fetch($fetchMode);
- 758. return $result;
- 759. }
- 760.
- 761. /**
- FICHEIRO: /home/capaenergies/library/Goweb/Db/Model.php
- LINHA: 559
- 555. $result = $this->_db->fetchRow($this->_select);
- 556. $cache->save($result, $this->_table . '_' . md5($this->_select->__toString()), array($this->_table));
- 557. }
- 558. } else {
- 559. $result = $this->_db->fetchRow($this->_select);
- 560. }
- 561.
- 562. // limpa as configuracoes do $this->select, criando uma nova instancia
- 563. $this->_select = $this->_db->select();
- 564.
- FICHEIRO: /home/capaenergies/application/Noticias/GenericController.php
- LINHA: 123
- 119. $modulosModel = Goweb::getModelInstance('Sistema_Model_Modulo', 'db', false);
- 120. $tabela_modulos = substr($modulosModel->getTableName(), 0, -3);
- 121. $controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
- 122.
- 123. if (($this->_noticiaModel->colExists('url') && $pathInfo && ($this->_noticiaModel->findBy('url', $pathInfo) || $this->_noticiaModel->findBy('url', substr($pathInfo, 1))))
- 124. || ($this->_categoriaModel->colExists('url') && $pathInfo && ($this->_categoriaModel->findBy('url', $pathInfo) || $this->_categoriaModel->findBy('url', substr($pathInfo, 1))))
- 125. ){
- 126.
- 127. foreach($session->linguas_activas as $lang)
- 128. {
- FICHEIRO: /home/capaenergies/library/Zend/Controller/Action.php
- LINHA: 133
- 129. $this->setRequest($request)
- 130. ->setResponse($response)
- 131. ->_setInvokeArgs($invokeArgs);
- 132. $this->_helper = new Zend_Controller_Action_HelperBroker($this);
- 133. $this->init();
- 134. }
- 135.
- 136. /**
- 137. * Initialize object
- 138. *
- FICHEIRO: /home/capaenergies/library/Goweb/Controller/Action.php
- LINHA: 86
- 82. if(!$response) $response = new Zend_Controller_Response_Http();
- 83. if(!$invokeArgs) $invokeArgs = array();
- 84. $this->_auth = Zend_Auth::getInstance();
- 85. $response->setHeader('Content-Type', 'text/html; charset=' . CHARSET);
- 86. parent::__construct($request, $response, $invokeArgs);
- 87. $this->view->assign('baseUrl', str_replace('/admin', '', str_replace('/index.php', '', $this->_request->getBaseUrl())));
- 88. $this->_helper->viewRenderer->setNoController(true);
- 89. $this->_session = Goweb::registry('session');
- 90. $this->view->session = $this->_session;
- 91. if($this->_getParam('lang') && $this->_getParam('lang') != $this->_session->lang && is_array($this->_session->langs) && in_array($this->_getParam('lang'), $this->_session->langs)){
- FICHEIRO: /home/capaenergies/library/Zend/Controller/Dispatcher/Standard.php
- LINHA: 281
- 277. /**
- 278. * Instantiate controller with request, response, and invocation
- 279. * arguments; throw exception if it's not an action controller
- 280. */
- 281. $controller = new $moduleClassName($request, $this->getResponse(), $this->getParams());
- 282. if (!($controller instanceof Zend_Controller_Action_Interface) &&
- 283. !($controller instanceof Zend_Controller_Action)) {
- 284. require_once 'Zend/Controller/Dispatcher/Exception.php';
- 285. throw new Zend_Controller_Dispatcher_Exception(
- 286. 'Controller "' . $moduleClassName . '" is not an instance of Zend_Controller_Action_Interface'
- FICHEIRO: /home/capaenergies/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/capaenergies/library/Goweb/Application.php
- LINHA: 449
- 445. }
- 446.
- 447. public function runApp(){
- 448. $frontController = Zend_Controller_Front::getInstance();
- 449. $frontController->dispatch();
- 450. }
- 451. }
- FICHEIRO: /home/capaenergies/public_html/index.php
- LINHA: 43
- 39. $application->initSession('_FRONT', true);
- 40. $application->initPainel();
- 41. $lang = isset($_GET['lang'])?$_GET['lang']:null;
- 42. $application->initLanguage($lang, true, false);
- 43. $application->runApp();
- 44.
- 45. function translate() {
- 46. static $translator = null;
- 47. if(is_null($translator)) {
- 48. if(!Goweb::isRegistered('translator'))