I did a lot digging around for a solution to this problem and was unable to come to a solution.
Problem: I have a Zend Framework 1.10.7 application running on the terminal and through a web interface. When it is running over the web it works flawlessly but when I run it through command line it keeps giving me an error
Notice: Failed saving metadata to metadataCache
I looked at various other topics including Accessing the Zend Application Bootstrap _init Functions After Bootstrapping and I was still unable to solve the problem because I really couldn't follow what was going on there. It seems to be the same problem but I just couldn't understand what to do.
Could someone please help me out with this?
Here is the basic of what I have:
Bootstrap
protected function _initRouter()
{
if (PHP_SAPI == 'cli') {
$this->bootstrap('frontcontroller');
$front = $this->getResource('frontcontroller');
$front->setRouter(new PP_Tasks_Init());
//$front->setRequest(new Zend_Controller_Request_Simple());
}
}