• 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 `agenda_agenda_pt`.`id` AS `agenda_agenda_pt_id`, `agenda_agenda_pt`.`titulo` AS `agenda_agenda_pt_titulo`, `agenda_agenda_pt`.`url` AS `agenda_agenda_pt_url`, `agenda_agenda_pt`.`local` AS `agenda_agenda_pt_local`, `agenda_agenda_pt`.`categoria_id` AS `agenda_agenda_pt_categoria_id`, `agenda_agenda_pt`.`data_inicio` AS `agenda_agenda_pt_data_inicio`, `agenda_agenda_pt`.`data_fim` AS `agenda_agenda_pt_data_fim`, `agenda_agenda_pt`.`texto` AS `agenda_agenda_pt_texto`, `agenda_agenda_pt`.`infolateral` AS `agenda_agenda_pt_infolateral`, `agenda_agenda_pt`.`imagem` AS `agenda_agenda_pt_imagem`, `agenda_agenda_pt`.`activo` AS `agenda_agenda_pt_activo`, `agenda_agenda_pt`.`destaque` AS `agenda_agenda_pt_destaque`, `agenda_agenda_pt`.`actualizado` AS `agenda_agenda_pt_actualizado`, `agenda_agenda_pt`.`criado` AS `agenda_agenda_pt_criado`, `agenda_agenda_pt`.`ip` AS `agenda_agenda_pt_ip`, `agenda_categoria_pt`.`id` AS `agenda_categoria_pt_id`, `agenda_categoria_pt`.`pai_id` AS `agenda_categoria_pt_pai_id`, `agenda_categoria_pt`.`ordem` AS `agenda_categoria_pt_ordem`, `agenda_categoria_pt`.`titulo` AS `agenda_categoria_pt_titulo`, `agenda_categoria_pt`.`url` AS `agenda_categoria_pt_url`, `agenda_categoria_pt`.`infolateral` AS `agenda_categoria_pt_infolateral`, `agenda_categoria_pt`.`cor` AS `agenda_categoria_pt_cor`, `agenda_categoria_pt`.`activo` AS `agenda_categoria_pt_activo`, `agenda_categoria_pt`.`actualizado` AS `agenda_categoria_pt_actualizado`, `agenda_categoria_pt`.`criado` AS `agenda_categoria_pt_criado` FROM `agenda_agenda_pt` LEFT JOIN `agenda_categoria_pt` ON agenda_agenda_pt.categoria_id=agenda_categoria_pt.id WHERE (agenda_agenda_pt.`url` = 'ensagem-covid-19---a-nossa-resposta')
  •  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:    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/fundacao/library/Goweb/Db/Model.php
  • LINHA:    555
  •  551.
  •  552.         if ($this->_useCache){
  •  553.             $cache = Zend_Registry::get('cache');
  •  554.             if(($result = $cache->load($this->_table . '_' . md5($this->_select->__toString()))) === false) {
  •  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.         }

  • FICHEIRO: /home/fundacao/application/Agenda/GenericController.php
  • LINHA:    36
  •  32.             $pathInfo = str_replace($sub, '', $this->_request->getPathInfo());
  •  33.             if ($pathInfo == '/') $pathInfo = '';
  •  34.             if ($pathInfo && 
  •  35.                     ($this->_agendaModel->findBy('url', $pathInfo) || 
  •  36.                     $this->_agendaModel->findBy('url', substr($pathInfo, 1)))){
  •  37.                         $this->_setParam('id', $this->_agendaModel->id);
  •  38.                         return $this->detailAction();
  •  39.             }
  •  40.             /*
  •  41.             if ($this->_categoriaModel->colExists('url') && $pathInfo && 

  • 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/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.  */