0
votes

Pardon me guys, I am new to ZF. I need to move my codes from MAMP production server to LAMP Live Server.

When I am working on localhost with the codes are all working fine. However when I upload it to live server, 60% of the modules reflect this error.

Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script 'layout.phtml' not found in path (/home/lifeoppc/public_html/application/layouts/:/home/lifeoppc/public_html/application/modules/default/views/scripts/:./views/scripts/)' in /home/lifeoppc/public_html/public/Zend/View/Abstract.php:988 Stack trace: #0 /home/lifeoppc/public_html/public/Zend/View/Abstract.php(884): Zend_View_Abstract->_script('layout.phtml') #1 /home/lifeoppc/public_html/public/Zend/Layout.php(796): Zend_View_Abstract->render('layout.phtml') #2 /home/lifeoppc/public_html/public/Zend/Layout/Controller/Plugin/Layout.php(143): Zend_Layout->render() #3 /home/lifeoppc/public_html/public/Zend/Controller/Plugin/Broker.php(333): Zend_Layout_Controller_Plugin_Layout->postDispatch(Object(Zend_Controller_Request_Http)) #4 /home/lifeoppc/public_html/public/Zend/Controller/Front.php(965): Zend_Controller_Plugin_Broker->postDispatch(Object(Zend_Controller_Request_Http)) #5 /home/lifeoppc/public_html/public/Zend/Application/Bootstrap/Bootstrap.php(9 in /home/lifeoppc/public_html/public/Zend/Controller/Plugin/Broker.php on line 336

I really really need help! Site is going live on Monday and I am really desperate right now =(

1
What do you have in your application.ini? Your viewPaths are probably not the same than the ones on your MAMP server.Liyali
Hi Liyali, [production] phpSettings.display_startup_errors = 0 phpSettings.display_errors = 0 includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" appnamespace = "Application" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController.params.displayExceptions = 0 autoloaderNamespaces[] = "LifeOpp_" resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" resources.modules[] = "" resources.layout.layoutpath = APPLICATION_PATH "/layouts"Shi Wei
i point to the five different layouts using this code in each controller's init() $this->_helper->layout->setLayout('employee-layout');Shi Wei
And where are employee-layout.phtml and layout.phtml in your directory structure?Liyali
it is housed under APPLICATION_PATH/layouts/employee-layout.phtmlShi Wei

1 Answers

0
votes

Search for file layout.phtml inside your project and then copy paste it inside directory

/home/lifeoppc/public_html/application/layouts/