Message: 2
Date: Sun, 20 Jan 2008 20:48:21 +0100
From: David Z?lke <[EMAIL PROTECTED]>
Subject: Re: [Agavi-Users] Propel Support in connection with Security
To: Agavi Users Mailing List <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Hi,
Hi David,
can you provide the exact error message by Propel?

There is no error message by propel. I logged in debug level, but the error appears before Propel is in action.

I pasted the complete Stack Trace at the end of the mail.

Also, which version of Propel are you using?
I'm using the version 1.2.1

I had this issue just the other day, but can't remember what it was exactly... is the Propel runtime (runtime/classes/propel) on your include path? Is your generated project on your include path?

Both is on my include_path. If I hard code the config path in the AgaviPropelDatabase class it will work fine.
So I guess there's problem concerning the bootstrap.

Many thanks
Sel


 PropelException

An exception of type *PropelException* was thrown, but did not get caught during the execution of the request. You will find information provided by the exception along with a stack trace below.

Unable to open configuration file: NULL


     Stack Trace

  1. at /exception origin/
     in _/Applications/xampp/xamppfiles/lib/php/pear/propel/Propel.php
     line 249 <http://localhost/cdb/pub/#frame1>
      246. |   */|
      247. |  public static function init($c)|
      248. |  {|
      249.
           |    self::configure($c);|
      250. |    self::initialize();|
      251. |  }|
      252. | |
  2. at *Propel::init(NULL)*
     in core.agavi_dir/database/AgaviPropelAutoload.php line 37
     <http://localhost/cdb/pub/#frame2>
       34. |// we don't need a _once here|
       35. |require('propel/Propel.php');|
       36. | |
       37.
           |Propel::init(AgaviPropelDatabase::getDefaultConfigPath());|
       38. | |
       39. |?>|
  3. at *require('/Users/sel/Development/we ...
     e/AgaviPropelAutoload.php')*
     in core.agavi_dir/core/Agavi.class.php line 69
     <http://localhost/cdb/pub/#frame3>
       66. | |
       67. |    if(isset(self::$autoloads[$class])) {|
       68. |      // class exists, let's include it|
       69.
           |      require(self::$autoloads[$class]);|
       70. |    }|
       71. | |
       72. |    /*|
  4. at *Agavi::__autoload('Propel')*
     in /unknown/
  5. at *spl_autoload_call('Propel')*
     in core.lib_dir/propel/cdb/om/BaseCdbMembersPeer.php line 578
     <http://localhost/cdb/pub/#frame5>
      575. |} // BaseCdbMembersPeer|
      576. | |
      577. |// static code to register the map builder for this Peer with the 
main Propel class|
      578.
           |if (Propel::isInit()) {|
      579. |  // the MapBuilder classes register themselves with Propel during 
initialization|
      580. |  // so we need to load them here.|
      581. |  try {|
  6. at *require_once('/Users/sel/Development/we ...
     om/BaseCdbMembersPeer.php')*
     in core.lib_dir/propel/cdb/CdbMembersPeer.php line 4
     <http://localhost/cdb/pub/#frame6>
        1. |<?php|
        2. |
           *Warning*: strpos() [function.strpos
           <http://localhost/cdb/pub/function.strpos>]: Offset not
           contained in string. in
           
*/Users/sel/Development/web/cdb/lib/agavi/exception/templates/shiny.php*
           on line *611*
            |
        3. |  // include base peer class|
        4.
           |  require_once 'cdb/om/BaseCdbMembersPeer.php';|
        5. | |
        6. |  // include object class|
        7. |  include_once 'cdb/CdbMembers.php';|
  7. at *require('/Users/sel/Development/we ...
     el/cdb/CdbMembersPeer.php')*
     in core.lib_dir/user/CdbUser.class.php line 3
     <http://localhost/cdb/pub/#frame7>
        1. |<?php|
        2. |
           *Warning*: strpos() [function.strpos
           <http://localhost/cdb/pub/function.strpos>]: Offset not
           contained in string. in
           
*/Users/sel/Development/web/cdb/lib/agavi/exception/templates/shiny.php*
           on line *611*
            |
        3.
           |require 
('/Users/sel/Development/web/cdb/app/lib/propel/cdb/CdbMembersPeer.php');|
        4. | |
        5. | |
        6. |/**|
        7. | * Responsible for Login and Logout|
  8. at *require('/Users/sel/Development/we ...
     ib/user/CdbUser.class.php')*
     in core.agavi_dir/core/Agavi.class.php line 69
     <http://localhost/cdb/pub/#frame8>
       66. | |
       67. |    if(isset(self::$autoloads[$class])) {|
       68. |      // class exists, let's include it|
       69.
           |      require(self::$autoloads[$class]);|
       70. |    }|
       71. | |
       72. |    /*|
  9. at *Agavi::__autoload('CdbUser')*
     in /unknown/
 10. at *spl_autoload_call('CdbUser')*
     in /unknown/
 11. at *ReflectionClass->__construct('CdbUser')*
     in core.agavi_dir/config/AgaviFactoryConfigHandler.class.php line
     223 <http://localhost/cdb/pub/#frame11>
      220. |        }|
      221. |        |
      222. |        try {|
      223.
           |          $rc = new ReflectionClass($data[$factory]['class']);|
      224. |        } catch(ReflectionException $e) {|
      225. |          $error = 'Configuration file "%s" specifies unknown class "%s" for 
entry "%s"';|
      226. |          $error = sprintf($error, $config, 
$data[$factory]['class'], $factory);|
 12. at *AgaviFactoryConfigHandler->execute('/Users/sel/Development/we
     ... /app/config/factories.xml', 'web')*
     in core.agavi_dir/config/AgaviConfigCache.class.php line 123
     <http://localhost/cdb/pub/#frame12>
      120. |        $validationFile = 
$handlerInfo['validation'][AgaviXmlConfigParser::VALIDATION_TYPE_XMLSCHEMA][0];|
      121. |      }|
      122. |      $handler->initialize($validationFile, null, 
$handlerInfo['parameters']);|
      123.
           |      $data = $handler->execute($config, $context);|
      124. |    }|
      125. | |
      126. |    self::writeCacheFile($config, $cache, $data, false);|
 13. at *AgaviConfigCache::callHandler('/Users/sel/Development/we ...
     /app/config/factories.xml', '/Users/sel/Development/we ...
     /app/config/factories.xml', '/Users/sel/Development/we ...
     s.xml_development_web.php', 'web')*
     in core.agavi_dir/config/AgaviConfigCache.class.php line 164
     <http://localhost/cdb/pub/#frame13>
      161. | |
      162. |    if(self::isModified($filename, $cache)) {|
      163. |      // configuration file has changed so we need to reparse it|
      164.
           |      self::callHandler($config, $filename, $cache, $context);|
      165. |    }|
      166. | |
      167. |    return $cache;|
 14. at *AgaviConfigCache::checkConfig('/Users/sel/Development/we ...
     /app/config/factories.xml', 'web')*
     in core.agavi_dir/core/AgaviContext.class.php line 291
     <http://localhost/cdb/pub/#frame14>
      288. |    $this->name = $profile;|
      289. |    |
      290. |    try {|
      291.
           |      
include(AgaviConfigCache::checkConfig(AgaviConfig::get('core.config_dir') . 
'/factories.xml', $profile));|
      292. |    } catch(Exception $e) {|
      293. |      AgaviException::printStackTrace($e, $this);|
      294. |    }|
 15. at *AgaviContext->initialize('web')*
     in core.agavi_dir/core/AgaviContext.class.php line 248
     <http://localhost/cdb/pub/#frame15>
      245. |      if(!isset(self::$instances[$profile])) {|
      246. |        $class = __CLASS__;|
      247. |        self::$instances[$profile] = new $class;|
      248.
           |        self::$instances[$profile]->initialize($profile);|
      249. |      }|
      250. |      return self::$instances[$profile];|
      251. |    } catch(Exception $e) {|
 16. at *AgaviContext::getInstance('web')*
     in _/Users/sel/Development/web/cdb/pub/index.php line 30
     <http://localhost/cdb/pub/#frame16>
       27. |// 
+---------------------------------------------------------------------------+|
       28. |// | Call the controller's dispatch method on the default context   
           ||
       29. |// 
+---------------------------------------------------------------------------+|
       30.
           |AgaviContext::getInstance('web')->getController()->dispatch();|
       31. | |
       32. | |
       33. |?>|


_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to