2009年12月2日星期三

Re: [fw-mvc] Uncaught exception

2009/12/2 Matthew Weier O'Phinney <matthew@zend.com>
-- Andre Fernandes <fernandes.andre@gmail.com> wrote
(on Wednesday, 02 December 2009, 11:40 AM -0300):
> I have created a new project using the command line ('zf create project zf1')
> and when I try to execute that using the browser I get the following error:
>
> Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with
> message 'Circular resource dependency detected' in
> C:\Documents and Settings\andrecf\Meus documentos\zf1\library\Zend\Application\
> Bootstrap\BootstrapAbstract.php:655 Stack trace: #0 C:\Documents and Settings\
> andrecf\Meus documentos\zf1\library\Zend\Application\Bootstrap\
> BootstrapAbstract.php(622): Zend_Application_Bootstrap_BootstrapAbstract->
> _executeResource('view') #1 C:\Documents and Settings\andrecf\Meus documentos\
> zf1\library\Zend\Application\Bootstrap\BootstrapAbstract.php(579):
> Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap('view') #2 C:\
> Documents and Settings\andrecf\Meus documentos\zf1\application\Bootstrap.php
> (7): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap('view') #3 C:\
> Documents and Settings\andrecf\Meus documentos\zf1\library\Zend\Application\
> Bootstrap\BootstrapAbstract.php(662): Bootstrap->_initView() #4 C:\Documents
> and Settings\andrecf\Meus documentos\zf1\library\Zend\Application\Bootstrap\
> BootstrapAbstract.ph in C:\Documents and Settings\andrecf\Meus documentos\zf1\
> library\Zend\Application\Bootstrap\BootstrapAbstract.php on line 655
>
> What could that be? I am using the ZF 1.9.6. And I have not touched any source
> file yet.

Could you send your configuration file (application.ini) and bootstrap
class? I haven't seen the same issue, so I'd like to see exactly what
you have.

Hi,
the application.ini is the one created by zend_tools:

[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"

[staging : production]

[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1



And the bootstrap is:


<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{


}




I have deleted the project and recreated it and still the same.

Thanks a lot. Could it be some configuration in the Zend Server Community Edition? I am using it and I have updated the zf to 1.9.6 . At the command line, when I try:
zf show version

It says 1.9.6, what for me was "all right".

Thanks.

 

--
Matthew Weier O'Phinney
Project Lead            | matthew@zend.com
Zend Framework          | http://framework.zend.com/



--
André de Camargo Fernandes


没有评论: