Using ZF1.6, I just went to production today, but got the following error:

*Uncaught exception 'Zend_Controller_Action_Exception' with message
'ViewRenderer initialization failed: retrieved view base path is empty'*

and I'm still struggling to find out the main source of the problem. Anyone
could help me?
Have you ever faced with this error?

By the way, this is the relevant part of the code:

        $viewRenderer =
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
        $viewRenderer->initView();
*        $viewRenderer->setViewBasePathSpec(APP_DIR . '/languages/' . $lang
. '/views/:module');*
        $viewRenderer->view
            ->setEncoding('UTF-8')
            ->addHelperPath(
                APP_DIR . '/languages/' . $lang . '/views/' .
                $this->_frontController->getDispatcher()->getDefaultModule()
.
                '/helpers', 'My_View_Helper_')
            ->doctype('XHTML1_STRICT');

As you see, I've already set the base path, so what's wrong here?

Reply via email to