Dustin, i spend the whole day with your plugin, so i hope i can give
you some feedback with problems i found. Today i tried to use database
sessions along with PDO. I used sfPDOSessionStorage for that. I know
you didn't mentioned it, so i think this is not tested.

The first thing i got was a 500 server error, with no log or output. I
know sessions and how hard it is to debug them. I installed xdebug and
found the problem: Fatal error: Maximum function nesting level of
'100' reached, aborting! in /usr/share/php/symfony/database/
sfDatabase.class.php on line 91

After config_factories.yml.php are loaded, here is the call stack:
...
6       0.1102  735332  sfStorage->__construct( )       
../config_factories.yml.php:
85
7       0.1102  735332  sfDatabaseSessionStorage->initialize( ) ../
sfStorage.class.php:33
8       0.1109  738080  session_start ( )       ../
sfDatabaseSessionStorage.class.php:70
9       0.1110  738192  sfDatabaseSessionStorage->sessionOpen( )        ../
sfDatabaseSessionStorage.class.php:0
10      0.1110  738192  sfDatabase->getConnection( )    ../
sfDatabaseSessionStorage.class.php:100
11      0.1111  738216  sfPropelDatabase->connect( )    ../sfDatabase.class.php:
75
12      0.1113  738708  sfPropelDatabase->log( )        ../
sfPropelDatabase.class.php:91
13      0.1113  738788  sfPDODatabase->__call( )        
../sfPDODatabase.class.php:0
14      0.1114  738788  sfDatabase->getConnection( )    ../
sfPDODatabase.class.php:125
15      0.1114  738788  sfPropelDatabase->connect( )    ../sfDatabase.class.php:
75
16      0.1116  739200  sfPropelDatabase->log( )        ../
sfPropelDatabase.class.php:91
17      0.1116  739280  sfPDODatabase->__call( )        
../sfPDODatabase.class.php:0
18      0.1116  739280  sfDatabase->getConnection( )    ../
sfPDODatabase.class.php:125
19      0.1116  739280  sfPropelDatabase->connect( )    ../sfDatabase.class.php:
75
20      0.1118  739692  sfPropelDatabase->log( )        ../
sfPropelDatabase.class.php:91
21      0.1118  739772  sfPDODatabase->__call( )        
../sfPDODatabase.class.php:0
22      0.1118  739772  sfDatabase->getConnection( )    ../
sfPDODatabase.class.php:125
23      0.1119  739772  sfPropelDatabase->connect( )    ../sfDatabase.class.php:
75
24      0.1120  740184  sfPropelDatabase->log( )        ../
sfPropelDatabase.class.php:91
25      0.1120  740264  sfPDODatabase->__call( )        
../sfPDODatabase.class.php:0
26      0.1120  740264  sfDatabase->getConnection( )    ../
sfPDODatabase.class.php:125
27      0.1121  740264  sfPropelDatabase->connect( )    ../sfDatabase.class.php:
75
28      0.1123  741252  sfPropelDatabase->log( )        ../
sfPropelDatabase.class.php:91
29      0.1123  741332  sfPDODatabase->__call( )        
../sfPDODatabase.class.php:0
30      0.1123  741332  sfDatabase->getConnection( )    ../
sfPDODatabase.class.php:125
...

In sfPropelDatabase i commented line 91 out: "// $this-
>log(sprintf("Connecting to database '%s' with dsn: %s" ..." and it
worked. Anyway i guess that i'm using two connections this way (didn't
look further) because using PDO is slower than my original setup with
propel/creole (form 132ms to 280ms on my machine).

I'll keep testing different things ...

Michael


On 29 Mai, 11:36, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Ok, one more i noticed:
>
> using DebugPDO i have no database output (query etc.) in my log file.
>
> Michael
>
> On 29 Mai, 11:03, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Okay, i did it ;o) and it works! Great!
>
> > So, this is my report:
>
> > - plugin:install still fails (see last post)
> > - leaving out "datasource" parameter works now
> > - setting "persistent: false" didn't work, i had to comment this line
> > completely out: "# persistent: false"
>
> > Great step for symfony, Thx!!!
> > Michael
>
> > On 29 Mai, 10:45, "[EMAIL PROTECTED]"
>
> > <[EMAIL PROTECTED]> wrote:
> > > Hi Dustin,
>
> > > plugin:install still has an error. But this time it's different:
> > > Plugin "sfPropelPlugin" installation failed: Package "http://
> > > pear.symfony-project.com/get/sfPropelPlugin/sfPropelPlugin-1.3.0.tgz"
> > > is not valid.
>
> > > I will check this later and report.
>
> > > Thx again Dustin.
> > > Michael
>
> > > On 29 Mai, 07:42, Neonard0 <[EMAIL PROTECTED]> wrote:
>
> > > > Hi, today May 29-2008 the pake command to install sfPropelPlugin still
> > > > dows not work I get the same error as michael.piecko mentioned. Is
> > > > there a way to fix this??
>
> > > > On 28 mayo, 14:43, Dustin Whittle <[EMAIL PROTECTED]>
> > > > wrote:
>
> > > > > Ady,
>
> > > > > This should be fixed now.
>
> > > > > Cheers,
>
> > > > > Dustin
>
> > > > > On 5/24/08 11:40 AM, "Ady" <[EMAIL PROTECTED]> wrote:
>
> > > > > > Ok - not sure if this was the way it was intended but I find that 
> > > > > > when
> > > > > > I add a datasource param everything is good, so:
>
> > > > > >       classname:   PropelPDO
> > > > > >       dsn:             ...
> > > > > >       username:    ....
> > > > > >       password:     ....
> > > > > >       datasource:   propel
>
> > > > > > On May 24, 1:47 pm, "[EMAIL PROTECTED]"
> > > > > > <[EMAIL PROTECTED]> wrote:
> > > > > >> I'm also here with only one database ;o(
>
> > > > > >> I tried your plugin yesterday and got also this issue. Everything
> > > > > >> before worked fine (i mean symfony's own propel). I followed 
> > > > > >> exactly
> > > > > >> your docs, checked cached yml files (settings are there), checked
> > > > > >> everything, but this message still appear.
>
> > > > > >> Michael
>
> > > > > >> On 24 Mai, 19:19, Ady <[EMAIL PROTECTED]> wrote:
>
> > > > > >>> Dustin - wonder if you could help me with this issue I'm having 
> > > > > >>> with
> > > > > >>> multiple DB config - the error I see is this:
>
> > > > > >>> 'No connection information in your runtime configuration file for
> > > > > >>> datasource [xxxDB]'
>
> > > > > >>> database.yml:
>
> > > > > >>> all:
> > > > > >>>   xxxDB:
> > > > > >>>     class:          sfPropelDatabase
> > > > > >>>     param:
> > > > > >>>       classname:  PropelPDO
> > > > > >>>       dsn:          mysql:dbname=xxxDB;host=xxxDB;port=3308
> > > > > >>>       username:     root
> > > > > >>>       password:     xxx
>
> > > > > >>>   propel:
> > > > > >>>     class:          sfPropelDatabase
> > > > > >>>     param:
> > > > > >>>       classname:  PropelPDO
> > > > > >>>       dsn:          mysql:dbname=xxxxDB;host=xxxDB;port=3306
> > > > > >>>       username:     root
> > > > > >>>       password:     xxx
>
> > > > > >>> It seems to pick up the last config as default which is why I had 
> > > > > >>> to
> > > > > >>> set the propel config at the end which is a problem as well.
>
> > > > > >>> Thanks in advance
> > > > > >>> A
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to