• 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 `cms_pagina_pt`.`id` AS `cms_pagina_pt_id`, `cms_pagina_pt`.`pai_id` AS `cms_pagina_pt_pai_id`, `cms_pagina_pt`.`ordem` AS `cms_pagina_pt_ordem`, `cms_pagina_pt`.`titulo` AS `cms_pagina_pt_titulo`, `cms_pagina_pt`.`titulo_h1` AS `cms_pagina_pt_titulo_h1`, `cms_pagina_pt`.`titulo_site` AS `cms_pagina_pt_titulo_site`, `cms_pagina_pt`.`subtitulo` AS `cms_pagina_pt_subtitulo`, `cms_pagina_pt`.`slug` AS `cms_pagina_pt_slug`, `cms_pagina_pt`.`redireccionar` AS `cms_pagina_pt_redireccionar`, `cms_pagina_pt`.`canal` AS `cms_pagina_pt_canal`, `cms_pagina_pt`.`homepage` AS `cms_pagina_pt_homepage`, `cms_pagina_pt`.`altura` AS `cms_pagina_pt_altura`, `cms_pagina_pt`.`largura` AS `cms_pagina_pt_largura`, `cms_pagina_pt`.`texto` AS `cms_pagina_pt_texto`, `cms_pagina_pt`.`texto_stripped` AS `cms_pagina_pt_texto_stripped`, `cms_pagina_pt`.`infolateral` AS `cms_pagina_pt_infolateral`, `cms_pagina_pt`.`menu` AS `cms_pagina_pt_menu`, `cms_pagina_pt`.`menu_modulo` AS `cms_pagina_pt_menu_modulo`, `cms_pagina_pt`.`sem_url` AS `cms_pagina_pt_sem_url`, `cms_pagina_pt`.`semlink` AS `cms_pagina_pt_semlink`, `cms_pagina_pt`.`popup` AS `cms_pagina_pt_popup`, `cms_pagina_pt`.`privado` AS `cms_pagina_pt_privado`, `cms_pagina_pt`.`keywords` AS `cms_pagina_pt_keywords`, `cms_pagina_pt`.`description` AS `cms_pagina_pt_description`, `cms_pagina_pt`.`imagem` AS `cms_pagina_pt_imagem`, `cms_pagina_pt`.`url` AS `cms_pagina_pt_url`, `cms_pagina_pt`.`activo` AS `cms_pagina_pt_activo`, `cms_pagina_pt`.`pre_visualizar` AS `cms_pagina_pt_pre_visualizar`, `cms_pagina_pt`.`sistema` AS `cms_pagina_pt_sistema`, `cms_pagina_pt`.`modulo` AS `cms_pagina_pt_modulo`, `cms_pagina_pt`.`timestamp` AS `cms_pagina_pt_timestamp`, `cms_pagina_pt`.`actualizado` AS `cms_pagina_pt_actualizado`, `cms_pagina_pt`.`criado` AS `cms_pagina_pt_criado`, `cms_pagina_pt`.`ip` AS `cms_pagina_pt_ip` FROM `cms_pagina_pt` WHERE (cms_pagina_pt.`url` = 'pt/noticias/noticias1-rc-africana---nao-abandonem-africa--e-o-apelo-dramatico-do-padre-gaetan-kabasha-sobre-a-epidemia-de-covid19-em-mensagem-a-ais')
  •  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/Cms/GenericController.php
  • LINHA:    76
  •  72.         $pathInfo = str_replace($sub, '', $this->_request->getPathInfo());
  •  73.         if ($pathInfo == '/'){ $pathInfo = ''; }
  •  74.         $frontController = Zend_Controller_Front::getInstance();
  •  75.
  •  76.         if ($pathInfo && ($cmsModel->findBy('url', $pathInfo) || $cmsModel->findBy('url', substr($pathInfo, 1)))) {
  •  77.             if (!$cmsModel->homepage) {
  •  78.                 if($session->linguas_activas)
  •  79.                 {
  •  80.                     //tabela do translate
  •  81.                     $tabela = substr($cmsModel->getTableName(), 0, -3);

  • FICHEIRO: /home/fundacao/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/fundacao/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/fundacao/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/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/Cms/footer.tpl
  • LINHA:    81
  •  77.     </div>
  •  78.     
  •  79.     <div class="container bottom">    
  •  80.         <div class="right">
  •  81.             <?php echo $this->component('/cms/miniView/id/14'); ?>
  •  82.         </div>
  •  83.         <div class="info left">
  •  84.             <?php echo date('Y') . ' Fundação AIS&#32;&#124;&#32'.translate('Organiza&#231;&#227;o Dependente da Santa S&#233;. Todos os direitos reservados.'); ?>
  •  85.             <span>
  •  86.                 Powered with <span style="color: #f00;">❤</span> by<a target="_blank" href="https://gowebagency.pt/" title="Goweb | Web Design, Web Marketing, Solu&ccedil;&otilde;es Web">Goweb Agency</a>

  • FICHEIRO: /home/fundacao/views/Cms/footer.tpl
  • LINHA:    81
  •  77.     </div>
  •  78.     
  •  79.     <div class="container bottom">    
  •  80.         <div class="right">
  •  81.             <?php echo $this->component('/cms/miniView/id/14'); ?>
  •  82.         </div>
  •  83.         <div class="info left">
  •  84.             <?php echo date('Y') . ' Fundação AIS&#32;&#124;&#32'.translate('Organiza&#231;&#227;o Dependente da Santa S&#233;. Todos os direitos reservados.'); ?>
  •  85.             <span>
  •  86.                 Powered with <span style="color: #f00;">❤</span> by<a target="_blank" href="https://gowebagency.pt/" title="Goweb | Web Design, Web Marketing, Solu&ccedil;&otilde;es Web">Goweb Agency</a>

  • 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/View/Helper/Partial.php
  • LINHA:    109
  •  105.                 }
  •  106.             }
  •  107.         }
  •  108.
  •  109.         return $view->render($name);
  •  110.     }
  •  111.
  •  112.     /**
  •  113.      * Clone the current View
  •  114.      *

  • 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:    83
  •  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>
  •  88.         <script type="text/javascript" src="/media/js/jquery.placeholder.min.js"></script>

  • FICHEIRO: /home/fundacao/views/base.tpl
  • LINHA:    83
  •  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>
  •  88.         <script type="text/javascript" src="/media/js/jquery.placeholder.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.  */