- FICHEIRO: /home/fundacao/library/Zend/Db/Statement/Pdo.php
- LINHA: 235
- MENSAGEM: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, query was: SELECT `banners_banner_pt`.`titulo` AS `banners_banner_pt_titulo`, `banners_banner_pt`.`imagem` AS `banners_banner_pt_imagem`, `banners_banner_pt`.`linka` AS `banners_banner_pt_linka`, `banners_banner_pt`.`descricao` AS `banners_banner_pt_descricao`, `banners_banner_pt`.`link_popup` AS `banners_banner_pt_link_popup` FROM `banners_banner_pt` WHERE (banners_banner_pt.activo = '1') AND (banners_banner_pt.categoria_id = '2') AND (banners_banner_pt.pagina_id like "%\"17\"%") ORDER BY `banners_banner_pt`.`ordem` ASC
- 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/fundacao/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/fundacao/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/fundacao/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/fundacao/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/fundacao/library/Goweb/Db/Model.php
- LINHA: 1106
- 1102. $result = $this->_db->fetchAll($this->_select);
- 1103. $cache->save($result, $this->_table . '_' . md5($this->_select->__toString()), $tags);
- 1104. }
- 1105. } else {
- 1106. $result = $this->_db->fetchAll($this->_select);
- 1107. }
- 1108.
- 1109. // guarda as colunas extras submetidas
- 1110. // $extraCols = $this->_select->getExtraCols();
- 1111.
- FICHEIRO: /home/fundacao/application/Banners/Controller.php
- LINHA: 37
- 33. $this->_bannerModel->where($table.'.activo = ?', '1');
- 34. $this->_bannerModel->where($table.'.categoria_id = ?', $this->_getParam('categoria_id'));
- 35. $this->_bannerModel->where($table.'.pagina_id like "%\"'.$this->_getParam('pagina_id').'\"%"');
- 36. $this->_bannerModel->order('ordem');
- 37. if($result = $this->_bannerModel->fetchAll(array('titulo', 'imagem', 'linka', 'descricao', 'link_popup')))
- 38. $listbanner = $result->toArray();
- 39. } elseif ($this->_validateId($this->_getParam('categoria_id'))) {
- 40. $table = $this->_bannerModel->getTableName();
- 41. $this->_bannerModel->where($table.'.activo = ?', '1');
- 42. $this->_bannerModel->where($table.'.categoria_id = ?', $this->_getParam('categoria_id'));
- FICHEIRO: /home/fundacao/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/fundacao/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/fundacao/library/Zend/View/Helper/Action.php
- LINHA: 135
- 131. ->setControllerName($controller)
- 132. ->setActionName($action)
- 133. ->setDispatched(true);
- 134.
- 135. $this->dispatcher->dispatch($this->request, $this->response);
- 136.
- 137. // reset the viewRenderer object to it's original state
- 138. Zend_Controller_Action_HelperBroker::addHelper($viewRendererObj);
- 139.
- 140.
- FICHEIRO: /home/fundacao/library/Goweb/View/Helper/Component.php
- LINHA: 56
- 52. $params['directRequest'] = false;
- 53.
- 54. //$controllerName = $this->_formatControllerName($controller);
- 55. //$actionName = $this->_formatActionName($action);
- 56. $return = $this->action($action, $controller, null, $params);
- 57. //goweb::dump($return);
- 58. //exit();
- 59. return $return;
- 60. }
- 61. }
- FICHEIRO: /home/fundacao/library/Zend/View/Abstract.php
- LINHA: 350
- 346. // call the helper method
- 347. return call_user_func_array(
- 348. array($helper, $name),
- 349. $args
- 350. );
- 351. }
- 352.
- 353. /**
- 354. * Given a base path, sets the script, helper, and filter paths relative to it
- 355. *
- FICHEIRO: /home/fundacao/views/base.tpl
- LINHA: 82
- 78. <?php endforeach; ?>
- 79. </div>
- 80. <?php endif; ?>
- 81. </div>
- 82. <?php echo $this->component('/banners/bannersPagina/pagina_id/'.$id.'/categoria_id/2/position/bottom'); ?>
- 83. <?php echo $this->partial('Cms/footer.tpl', array('id' => $id)); ?>
- 84. <?php include_once('Cms/bottom_scripts.tpl'); ?>
- 85. <!--[if lt IE 9]>
- 86. <script type="text/javascript" src="/media/js/html5shiv.min.js"></script>
- 87. <script type="text/javascript" src="/media/js/respond.min.js"></script>
- FICHEIRO: /home/fundacao/views/base.tpl
- LINHA: 82
- 78. <?php endforeach; ?>
- 79. </div>
- 80. <?php endif; ?>
- 81. </div>
- 82. <?php echo $this->component('/banners/bannersPagina/pagina_id/'.$id.'/categoria_id/2/position/bottom'); ?>
- 83. <?php echo $this->partial('Cms/footer.tpl', array('id' => $id)); ?>
- 84. <?php include_once('Cms/bottom_scripts.tpl'); ?>
- 85. <!--[if lt IE 9]>
- 86. <script type="text/javascript" src="/media/js/html5shiv.min.js"></script>
- 87. <script type="text/javascript" src="/media/js/respond.min.js"></script>
- FICHEIRO: /home/fundacao/library/Goweb/View.php
- LINHA: 49
- 45. extract(get_object_vars($this));
- 46. if ($this->_useViewStream && $this->useStreamWrapper()) {
- 47. include 'zend.view://' . func_get_arg(0);
- 48. } else {
- 49. include func_get_arg(0);
- 50. }
- 51. }
- 52.
- 53. /**
- 54. * Escapes a value for output in a view script.
- FICHEIRO: /home/fundacao/library/Zend/View/Abstract.php
- LINHA: 888
- 884. $this->_file = $this->_script($name);
- 885. unset($name); // remove $name from local scope
- 886.
- 887. ob_start();
- 888. $this->_run($this->_file);
- 889.
- 890. return $this->_filter(ob_get_clean()); // filter output
- 891. }
- 892.
- 893. /**
- FICHEIRO: /home/fundacao/library/Zend/Controller/Action/Helper/ViewRenderer.php
- LINHA: 912
- 908. $name = $this->getResponseSegment();
- 909. }
- 910.
- 911. $this->getResponse()->appendBody(
- 912. $this->view->render($script),
- 913. $name
- 914. );
- 915.
- 916. $this->setNoRender();
- 917. }
- FICHEIRO: /home/fundacao/library/Zend/Controller/Action/Helper/ViewRenderer.php
- LINHA: 933
- 929. public function render($action = null, $name = null, $noController = null)
- 930. {
- 931. $this->setRender($action, $name, $noController);
- 932. $path = $this->getViewScript();
- 933. $this->renderScript($path, $name);
- 934. }
- 935.
- 936. /**
- 937. * Render a script based on specification variables
- 938. *
- FICHEIRO: /home/fundacao/library/Zend/Controller/Action/Helper/ViewRenderer.php
- LINHA: 972
- 968. */
- 969. public function postDispatch()
- 970. {
- 971. if ($this->_shouldRender()) {
- 972. $this->render();
- 973. }
- 974. }
- 975.
- 976. /**
- 977. * Should the ViewRenderer render a view script?
- FICHEIRO: /home/fundacao/library/Zend/Controller/Action/HelperBroker.php
- LINHA: 277
- 273. */
- 274. public function notifyPostDispatch()
- 275. {
- 276. foreach (self::getStack() as $helper) {
- 277. $helper->postDispatch();
- 278. }
- 279. }
- 280.
- 281. /**
- 282. * getHelper() - get helper by name
- FICHEIRO: /home/fundacao/library/Goweb/Controller/Action.php
- LINHA: 286
- 282.
- 283. // whats actually important here is that this action controller is
- 284. // shutting down, regardless of dispatching; notify the helpers of this
- 285. // state
- 286. $this->_helper->notifyPostDispatch();
- 287. }
- 288.
- 289. protected function _clearString($str) {
- 290. setlocale(LC_CTYPE, 'en_US.UTF8');
- 291. $str = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str);
- FICHEIRO: /home/fundacao/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/fundacao/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/fundacao/library/Goweb/Application.php
- LINHA: 449
- 445. }
- 446.
- 447. public function runApp(){
- 448. $frontController = Zend_Controller_Front::getInstance();
- 449. $frontController->dispatch();
- 450. }
- 451. }
- 452.
- FICHEIRO: /home/fundacao/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. */