Hi All,

I am using propel for my project and I get the following exception on
loading  a page with propel stuff.

Message
===========
No connection information in your runtime configuration file for datasource
[inwtng]

  Stack Trace
===============
0:
/home/shoan/public_html/inw-tng/libs/propel/runtime/classes/propel/Propel.php
(line: 423)
1:
/home/shoan/public_html/inw-tng/app/models/inwtng/om/BaseMfCategoryPeer.php
(line: 278)
2:
/home/shoan/public_html/inw-tng/app/models/inwtng/om/BaseMfCategoryPeer.php
(line: 260)
3: /home/shoan/public_html/inw-tng/app/models/inwtng/MfCategoryPeer.php
(line: 28)
4:
/home/shoan/public_html/inw-tng/app/modules/Gallery/models/CategoryModel.class.php
(line: 16)
5:
/home/shoan/public_html/inw-tng/app/modules/Gallery/actions/Gallery/IndexAction.class.php
(line: 42)
6:
/home/shoan/public_html/inw-tng/libs/agavi/filter/AgaviExecutionFilter.class.php
(line: 550)
7:
/home/shoan/public_html/inw-tng/libs/agavi/filter/AgaviExecutionFilter.class.php
(line: 270)
8: /home/shoan/public_html/inw-tng/libs/agavi/filter/AgaviFilter.class.php
(line: 83)
9:
/home/shoan/public_html/inw-tng/libs/agavi/filter/AgaviFilterChain.class.php
(line: 94)
10:
/home/shoan/public_html/inw-tng/libs/agavi/filter/AgaviExecutionTimeFilter.class.php
(line: 64)
11:
/home/shoan/public_html/inw-tng/libs/agavi/filter/AgaviFilterChain.class.php
(line: 94)
12:
/home/shoan/public_html/inw-tng/libs/agavi/controller/AgaviExecutionContainer.class.php
(line: 323)
13:
/home/shoan/public_html/inw-tng/libs/agavi/filter/AgaviDispatchFilter.class.php
(line: 50)
14:
/home/shoan/public_html/inw-tng/libs/agavi/filter/AgaviFilter.class.php
(line: 83)
15:
/home/shoan/public_html/inw-tng/libs/agavi/filter/AgaviFilterChain.class.php
(line: 94)
16:
/home/shoan/public_html/inw-tng/libs/agavi/controller/AgaviController.class.php
(line: 185)
17: /home/shoan/public_html/inw-tng/pub/index.php (line: 23)


My runtime-conf.xml looks like this:
<?xml version="1.0" encoding="ISO-8859-1"?>

<config>
 <propel>
  <datasources default="inw">
   <datasource id="inw">
    <!-- the Propel adapter will usually be the same as phptype of
connection DSN -->
    <adapter>mysql</adapter>
    <connection>
     <dsn>mysql:host=localhost;dbname=inwng</dsn>
     <user>inwuser</user>
     <password>inwuser</password>
    </connection>
   </datasource>
  </datasources>
 </propel>
</config>


My proj-conf.php  contains:
<?php
// This file generated by Propel 1.3.0-dev convert-props target on Tue Apr
 3 12:23:03 2007
// from XML runtime conf file
/home/shoan/public_html/inw-tng/app/config/runtime-conf.xml
return array (
  'propel' =>
  array (
    'datasources' =>
    array (
      'inw' =>
      array (
        'adapter' => 'mysql',
        'connection' =>
        array (
          'dsn' => 'mysql:host=localhost;dbname=inwng',
          'user' => 'inwuser',
          'password' => 'inwuser',
        ),
      ),
      'default' => 'inw',
      'inwtng' =>
      array (
        'classes' =>
        array (
          'MfCategoryMapBuilder' => 'inwtng/map/MfCategoryMapBuilder.php',
          'MfCategoryPeer' => 'inwtng/MfCategoryPeer.php',
          'MfCategory' => 'inwtng/MfCategory.php',
          'MfImageMapBuilder' => 'inwtng/map/MfImageMapBuilder.php',
          'MfImagePeer' => 'inwtng/MfImagePeer.php',
          'MfImage' => 'inwtng/MfImage.php',
          'MfTagMapBuilder' => 'inwtng/map/MfTagMapBuilder.php',
          'MfTagPeer' => 'inwtng/MfTagPeer.php',
          'MfTag' => 'inwtng/MfTag.php',
          'MfCommentMapBuilder' => 'inwtng/map/MfCommentMapBuilder.php',
          'MfCommentPeer' => 'inwtng/MfCommentPeer.php',
          'MfComment' => 'inwtng/MfComment.php',
          'MfRatingMapBuilder' => 'inwtng/map/MfRatingMapBuilder.php',
          'MfRatingPeer' => 'inwtng/MfRatingPeer.php',
          'MfRating' => 'inwtng/MfRating.php',
        ),
      ),
    ),
    'generator_version' => '1.3.0-dev',
  ),
);

My databases.xml is as shown below:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configurations>
        <configuration>
                <databases default="propel">
<!--
                        <database name="postgres"
class="AgaviPostgresqlDatabase">
                                <parameters>
                                        <parameter
name="host">localhost</parameter>
                                        <parameter
name="username">username</parameter>
                                        <parameter
name="password">passphrase</parameter>
                                        <parameter
name="database">sample</parameter>
                                </parameters>
                        </database>
-->
                        <database name="propel" class="AgaviPropelDatabase">
                                <parameters>
                                        <parameter
name="config">%core.app_dir%/config/inwtng-conf.php</parameter>
                                </parameters>
                        </database>

                </databases>
        </configuration>
</configurations>


I have set use_database to true in settings.xml. What am I missing here?

Thanks in advance.

Peace,
Shoan.




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

Reply via email to