Hi Juan et al,

I believe I have resolved this with SVN r6556:

http://framework.zend.com/fisheye/changelog/Zend_Framework/?cs=6556

Please try the latest SVN and let us know your mileage. Thanks!

Best regards,
Darby

Juan Felipe Alavarez Saldarriaga wrote:
> :)
> 
> Hey, I upgrade from ZFW 1.0.1 to ZFW 1.0.2 and I got this exception on my 
> bootstrap start:
> 
> Fatal error: Uncaught exception 'Zend_Exception' with message 'File 
> "true.php" was not found' in 
> /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Loader.php:159
> 
> Stack trace:
> 
> #0 /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Loader.php(91): 
> Zend_Loader::loadFile('true.php', Array, true)
> #1 
> /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Db/Adapter/Abstract.php(334):
>  Zend_Loader::loadClass('true')
> #2 
> /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Db/Adapter/Abstract.php(227):
>  Zend_Db_Adapter_Abstract->setProfiler('true')
> #3 /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Db.php(252): 
> Zend_Db_Adapter_Abstract->__construct(Array)
> #4 /home/jfalvarez/php5/soficol/cms_dev/site/functions/index_db.php(14): 
> Zend_Db::factory('pdo_pgsql', Array)
> #5 /home/jfalvarez/php5/soficol/cms_dev/site/htdocs/index.php(45): 
> require_once('/home/jfalvarez...')
> #6 {main} thrown in 
> /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Loader.php on line 159
> 
> This is my index.php code:
> 
> #
> # Checking modules integrity.
> #
> 
> /**
>  * Check the existence of a class.
>  *
>  * @param string $strClass Class name.
>  * @return void.
>  */
> function __autoload( $strClass )
> {
>     Zend_Loader::loadClass( $strClass );
> }
> 
> // Load db.
> require_once( "index_db.php" );
> 
> And this is my index_db.php script code:
> 
> // Load DB info
> $arrDbConfig = array( 
>                               'host'     => $objConfiguration->database->host,
>                                 'username' => 
> $objConfiguration->database->username,
>                               'password' => 
> $objConfiguration->database->password,
>                               'dbname'   => $objConfiguration->database->name,
>                               'profiler' => 
> $objConfiguration->database->profiler
>                       );
> 
> // Set connection to the database.
> $objDb = Zend_Db::factory( $objConfiguration->database->type, $arrDbConfig );
> 
> // Register database object.
> Zend_Registry::set( 'db', $objDb );
> 
> I don't know why something returns "true" and tryes to execute 
> Zend_Loader::loadClass(). I set an echo one line before "$objDb = 
> Zend_Db::factory( $objConfiguration->database->type, $arrDbConfig );" and is 
> printed and the $strClass value before do "$objDb = Zend_Db::factory( 
> $objConfiguration->database->type, $arrDbConfig );" is Zend_Db, I don't have 
> this issue on ZFW 1.0.1
> 
> Thx for any help with this :).
> 

Reply via email to