- FICHEIRO: /home2/nsomed/library/Zend/Db/Statement/Pdo.php
- LINHA: 235
- MENSAGEM: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, query was: SELECT `banners_banner`.`id` AS `banners_banner_id`, `banners_banner`.`ordem` AS `banners_banner_ordem`, `banners_banner`.`categoria_id` AS `banners_banner_categoria_id`, `banners_banner`.`pagina_id` AS `banners_banner_pagina_id`, `banners_banner`.`data_inicio` AS `banners_banner_data_inicio`, `banners_banner`.`data_fim` AS `banners_banner_data_fim`, `banners_banner`.`titulo` AS `banners_banner_titulo`, `banners_banner`.`caption` AS `banners_banner_caption`, `banners_banner`.`description` AS `banners_banner_description`, `banners_banner`.`button` AS `banners_banner_button`, `banners_banner`.`link` AS `banners_banner_link`, `banners_banner`.`link_popup` AS `banners_banner_link_popup`, `banners_banner`.`clicks` AS `banners_banner_clicks`, `banners_banner`.`views` AS `banners_banner_views`, `banners_banner`.`width` AS `banners_banner_width`, `banners_banner`.`height` AS `banners_banner_height`, `banners_banner`.`video` AS `banners_banner_video`, `banners_banner`.`imagem` AS `banners_banner_imagem`, `banners_banner`.`lazy_image` AS `banners_banner_lazy_image`, `banners_banner`.`thumbnail` AS `banners_banner_thumbnail`, `banners_banner`.`activo` AS `banners_banner_activo`, `banners_banner`.`actualizado` AS `banners_banner_actualizado`, `banners_banner`.`criado` AS `banners_banner_criado`, `banners_banner`.`ip` AS `banners_banner_ip` FROM `banners_banner` WHERE (banners_banner.`id` = '23')
- 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: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/library/Goweb/Db/Model.php
- LINHA: 464
- 460. $result = $this->_db->fetchRow($this->_select);
- 461. $cache->save($result, $this->_table . '_' . md5($this->_select->__toString()), array($this->_table));
- 462. }
- 463. } else {
- 464. $result = $this->_db->fetchRow($this->_select);
- 465. }
- 466.
- 467. // limpa as configuracoes do $this->select, criando uma nova instancia
- 468. $this->_select = $this->_db->select();
- 469.
- FICHEIRO: /home2/nsomed/application/Banners/GenericController.php
- LINHA: 494
- 490. * e exibido no front-office.
- 491. */
- 492. protected function _addViews($banner_id) {
- 493. $this->_bannerModel->loadForeigns(false);
- 494. if (($this->_validateId($banner_id)) && ($this->_bannerModel->find($banner_id)) && $this->_bannerModel->activo) {
- 495. $this->_bannerModel->views++;
- 496. $this->_bannerModel->save();
- 497. }
- 498. }
- 499.
- FICHEIRO: /home2/nsomed/application/Banners/Controller.php
- LINHA: 188
- 184.
- 185. $id_banner = $linha['id'];
- 186.
- 187. //incrementa as visualizacoes para cada banner
- 188. $this->_addViews($id_banner);
- 189.
- 190. //para cada coluna da tabela banners
- 191. foreach ($this->_bannerModel->getColsNames() as $col) {
- 192. //se a coluna for pagina_id, coloca no array o parametro recebido
- 193. if ($col == 'pagina_id') {
- FICHEIRO: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/views/base.tpl
- LINHA: 51
- 47. </nav>
- 48. <?php endif; ?>
- 49.
- 50. <section class="page__section">
- 51. <?php echo $this->component('Banners/bannersPagina/categoria_id/2/pagina_id/' . $id); ?>
- 52. </section>
- 53.
- 54. <?php if ((isset($error) && $error) || (isset($message) && $message)) : ?>
- 55. <section class="page__section">
- 56. <div class="section">
- FICHEIRO: /home2/nsomed/views/base.tpl
- LINHA: 51
- 47. </nav>
- 48. <?php endif; ?>
- 49.
- 50. <section class="page__section">
- 51. <?php echo $this->component('Banners/bannersPagina/categoria_id/2/pagina_id/' . $id); ?>
- 52. </section>
- 53.
- 54. <?php if ((isset($error) && $error) || (isset($message) && $message)) : ?>
- 55. <section class="page__section">
- 56. <div class="section">
- FICHEIRO: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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. /**
- 290. * Obter Caracteres especiais usados em windows
- 291. *
- FICHEIRO: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/library/Goweb/Application.php
- LINHA: 449
- 445. }
- 446.
- 447. public function runApp(){
- 448. $frontController = Zend_Controller_Front::getInstance();
- 449. $frontController->dispatch();
- 450. }
- 451. }
- FICHEIRO: /home2/nsomed/public_html/index.php
- LINHA: 54
- 50. $application->initPainel();
- 51. $lang = isset($_GET['lang']) ? $_GET['lang'] : null;
- 52. $application->initLanguage($lang, true, false);
- 53. $application->initLanguageAdmin($lang, true, true);
- 54. $application->runApp();
- 55.
- 56.
- 57. /**
- 58. * Efectua a traducao de uma string.
- 59. */