- FICHEIRO: /home/fundacao/library/Zend/Db/Statement/Pdo.php
- LINHA: 228
- MENSAGEM: PDOStatement::execute(): send of 1972 bytes failed with errno=32 Broken pipe
- 224. public function _execute(array $params = null)
- 225. {
- 226. try {
- 227. if ($params !== null) {
- 228. return $this->_stmt->execute($params);
- 229. } else {
- 230. return $this->_stmt->execute();
- 231. }
- 232. } catch (PDOException $e) {
- 233. require_once 'Zend/Db/Statement/Exception.php';
- FICHEIRO: /home/fundacao/library/Zend/Db/Statement/Pdo.php
- LINHA: 228
- 224. public function _execute(array $params = null)
- 225. {
- 226. try {
- 227. if ($params !== null) {
- 228. return $this->_stmt->execute($params);
- 229. } else {
- 230. return $this->_stmt->execute();
- 231. }
- 232. } catch (PDOException $e) {
- 233. require_once 'Zend/Db/Statement/Exception.php';
- 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/Catalogo/detail.tpl
- LINHA: 174
- 170. <?php echo $this->component('/relacoes/list/modulo/Catalogo/id/'.$produto->id); ?>
- 171. </div>
- 172.
- 173. </div>
- 174. <?php echo $this->component('/cms/miniView/id/78'); ?>
- 175. <div class="clear"></div>
- 176. </div>
- FICHEIRO: /home/fundacao/views/Catalogo/detail.tpl
- LINHA: 174
- 170. <?php echo $this->component('/relacoes/list/modulo/Catalogo/id/'.$produto->id); ?>
- 171. </div>
- 172.
- 173. </div>
- 174. <?php echo $this->component('/cms/miniView/id/78'); ?>
- 175. <div class="clear"></div>
- 176. </div>
- 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/application/Cms/GenericController.php
- LINHA: 2219
- 2215. $view->titulo = $titulo;
- 2216. if(!empty($extraParams)) {
- 2217. $view->extraParams = $extraParams;
- 2218. }
- 2219. $view->output = $view->render($template);
- 2220. $view->setViewsPath(VIEWS_PATH);
- 2221. if ($print)
- 2222. $canal = 'print.tpl';
- 2223. $viewRenderer->setRender(str_replace('.' . $viewRenderer->getViewSuffix(), '', $canal));
- 2224. }
- FICHEIRO: /home/fundacao/application/Catalogo/Controller.php
- LINHA: 292
- 288. }
- 289.
- 290. if ($this->_directRequest) { // significa que foi chamado directamente.
- 291. Goweb::loadClass('Cms_Controller', APPLICATION_PATH);
- 292. Cms_Controller::renderOutput($this->view, 'detail.tpl', 'Catalogo', 'catalogo-detail', $produto->titulo, $this->_getParam('print'));
- 293. if (!$this->_getParam('print'))
- 294. $this->_helper->viewRenderer->setRender($this->_canal);
- 295. }
- 296. }
- 297. else {
- FICHEIRO: /home/fundacao/application/Catalogo/Controller.php
- LINHA: 333
- 329. return $this->listAction();
- 330. }
- 331. elseif($pathInfo && ($this->_produtoModel->findBy('url', $pathInfo) || $this->_produtoModel->findBy('url', substr($pathInfo, 1)))) {
- 332. $this->_setParam('id', $this->_produtoModel->id);
- 333. return $this->detailAction();
- 334. }
- 335. return $this->listAction();
- 336. }
- 337.
- 338. public function destaquesAction() {
- 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. */