• FICHEIRO: /home/jordao/application/Catalogo/GenericController.php
  • LINHA:    175
  • MENSAGEM: Trying to get property of non-object
  •  171.             Cms_Controller::renderOutput($this->view,
  •  172.                                          'categorias.tpl',
  •  173.                                          'Categorias',
  •  174.                                          'catalogo-listCategorias',
  •  175.             ($categoria->titulo)?$categoria->titulo:'',
  •  176.             $this->_getParam('print'));
  •  177.             $this->_helper->viewRenderer->setRender($this->_canal);
  •  178.         }
  •  179.         else {
  •  180.             $this->_helper->viewRenderer->setRender('categorias');

  • FICHEIRO: /home/jordao/application/Catalogo/GenericController.php
  • LINHA:    175
  •  171.             Cms_Controller::renderOutput($this->view,
  •  172.                                          'categorias.tpl',
  •  173.                                          'Categorias',
  •  174.                                          'catalogo-listCategorias',
  •  175.             ($categoria->titulo)?$categoria->titulo:'',
  •  176.             $this->_getParam('print'));
  •  177.             $this->_helper->viewRenderer->setRender($this->_canal);
  •  178.         }
  •  179.         else {
  •  180.             $this->_helper->viewRenderer->setRender('categorias');

  • FICHEIRO: /home/jordao/application/Catalogo/GenericController.php
  • LINHA:    68
  •  64.             $this->_categoriaModel->order('ordem');
  •  65.             $this->_categoriaModel->where($this->_categoriaModel->getTableName() . '.pai_id = ?', $categoriaId);
  •  66.             $this->_categoriaModel->where($this->_categoriaModel->getTableName() . '.activo = 1');
  •  67.             if ($this->_categoriaModel->count('id'))
  •  68.                     return $this->listCategoriasAction($categoriaId);
  •  69.             else
  •  70.                 return $this->listProdutosAction();
  •  71.         }
  •  72.         return listProdutosAction();
  •  73.     }

  • FICHEIRO: /home/jordao/application/Catalogo/GenericController.php
  • LINHA:    50
  •  46.         if($tipoModel->findBy('url', trim($pathInfo, '/'))) {
  •  47.             $this->_setParam('id', $tipoModel->id);
  •  48.             return $this->tiponegocioAction();
  •  49.         }
  •  50.         return $this->listAction();
  •  51.     }
  •  52.     
  •  53.     public function listAction() {
  •  54.         $categoriaId = $this->_getParam('categoria_id');
  •  55.         if($this->_categoriaModel->colExists('url')) {

  • FICHEIRO: /home/jordao/library/Goweb/Controller/Action.php
  • LINHA:    179
  •  175.             if (null === $this->_classMethods) {
  •  176.                 $this->_classMethods = get_class_methods($this);
  •  177.             }
  •  178.             if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
  •  179.                 $this->$action();
  •  180.             } else {
  •  181.                 $this->__call($action, array());
  •  182.             }
  •  183.             $this->postDispatch();
  •  184.         }

  • FICHEIRO: /home/jordao/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/jordao/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/jordao/library/Goweb/Application.php
  • LINHA:    397
  •  393.     }
  •  394.
  •  395.     public function runApp(){
  •  396.         $frontController = Zend_Controller_Front::getInstance();
  •  397.         $frontController->dispatch();
  •  398.     }
  •  399. }

  • FICHEIRO: /home/jordao/public_html/index.php
  • LINHA:    39
  •  35. $application->initPainel();
  •  36. $lang = isset($_GET['lang']) ? $_GET['lang'] : null;
  •  37. $application->initLanguage($lang, true, false);
  •  38. $application->initLanguageAdmin($lang, true, true);
  •  39. $application->runApp();
  •  40. function translate() {
  •  41.     static $translator = null;
  •  42.     if (is_null($translator)) {
  •  43.         if (!Goweb::isRegistered('translator')){
  •  44.             return '';