- 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 `catalogo_cambio`.`id` AS `catalogo_cambio_id`, `catalogo_cambio`.`nome` AS `catalogo_cambio_nome`, `catalogo_cambio`.`cambio` AS `catalogo_cambio_cambio`, `catalogo_cambio`.`ordem` AS `catalogo_cambio_ordem`, `catalogo_cambio`.`activo` AS `catalogo_cambio_activo`, `catalogo_cambio`.`actualizado` AS `catalogo_cambio_actualizado`, `catalogo_cambio`.`criado` AS `catalogo_cambio_criado`, `catalogo_cambio`.`ip` AS `catalogo_cambio_ip` FROM `catalogo_cambio` WHERE (nome = 'Euro' AND activo = 1) ORDER BY `catalogo_cambio`.`id` DESC
- 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: 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: /home2/nsomed/library/Goweb/Db/Model.php
- LINHA: 1116
- 1112. $result = $this->_db->fetchAll($this->_select);
- 1113. $cache->save($result, $this->_table . '_' . md5($this->_select->__toString()), $tags);
- 1114. }
- 1115. } else {
- 1116. $result = $this->_db->fetchAll($this->_select);
- 1117. }
- 1118.
- 1119. // guarda as colunas extras submetidas
- 1120. // $extraCols = $this->_select->getExtraCols();
- 1121.
- FICHEIRO: /home2/nsomed/application/Catalogo/GenericController.php
- LINHA: 1256
- 1252. $cambio = '1';
- 1253. $cambioModel = Goweb::getModelInstance('Catalogo_Model_Cambio', 'db', false);
- 1254. $cambioModel->order('-id');
- 1255. $cambioModel->where("nome = '{$moeda_temp[0]}' AND activo = 1");
- 1256. $cambios = $cambioModel->fetchAll();
- 1257. if($cambios){
- 1258. foreach ($cambios as $cambio_temp) {
- 1259. $cambio = $cambio_temp->cambio;
- 1260. }
- 1261. }
- FICHEIRO: /home2/nsomed/application/Catalogo/GenericController.php
- LINHA: 91
- 87. $this->view->ficheiros_upload_path = $this->_moduleConfig->files->target . '/';
- 88. $this->view->loadCss('/media/css/catalogo.css');
- 89. $this->_customCache = Zend_Registry::get('cache');
- 90. if($this->_moduleConfig->cambios->activo) {
- 91. $this->setCambiosSessionAction();
- 92. }
- 93.
- 94. $this->view->ivaIncluido = 0;
- 95.
- 96. if(file_exists(APPLICATION_PATH.'/Loja' . DIRECTORY_SEPARATOR . 'config.ini')) {
- FICHEIRO: /home2/nsomed/application/Catalogo/Controller.php
- LINHA: 32
- 28. * Construtor da classe
- 29. */
- 30. public function init()
- 31. {
- 32. parent::init();
- 33. $this->view->setViewsPath(VIEWS_PATH . DIRECTORY_SEPARATOR . 'Catalogo');
- 34. $this->_tipoModel = Goweb::getModelInstance('Catalogo_Model_Tipo', 'db', false);
- 35. $this->_materialModel = Goweb::getModelInstance('Catalogo_Model_Material', 'db', false);
- 36. $this->_marcaModel = Goweb::getModelInstance('Catalogo_Model_Marca', 'db', false);
- 37. $this->_formaModel = Goweb::getModelInstance('Catalogo_Model_Forma', 'db', false);
- FICHEIRO: /home2/nsomed/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: /home2/nsomed/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: /home2/nsomed/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: /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. */