Development

#2672 (sfMySQLSessionStorage -- exception)

You must first sign up to be able to contribute.

Ticket #2672 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

sfMySQLSessionStorage -- exception

Reported by: redhat24 Assigned to: fabien
Priority: minor Milestone:
Component: other Version: 1.1.0 DEV
Keywords: Cc:
Qualification: Unreviewed

Description

Fatal error: Uncaught exception 'sfDatabaseException' with message 'You need to pass a "sfMySQLDatabase" to the "sfMySQLSessionStorage".' in /usr/share/php5/symfony/lib/storage/sfDatabaseSessionStorage.class.php:102 Stack trace: #0 [internal function]: sfDatabaseSessionStorage->sessionOpen('/var/lib/php5', 'symfony') #1 /usr/share/php5/symfony/lib/storage/sfDatabaseSessionStorage.class.php(70): session_start() #2 /usr/share/php5/symfony/lib/storage/sfStorage.class.php(33): sfDatabaseSessionStorage->initialize(Array) #3 /home/balint/public_html/myproject/cache/forum/dev/config/config_factories.yml.php(45): sfStorage->__construct(Array) #4 /usr/share/php5/symfony/lib/util/sfContext.class.php(51): require('/home/balint/pu...') #5 /usr/share/php5/symfony/lib/util/sfContext.class.php(87): sfContext->initialize() #6 /home/balint/public_html/myproject/web/forum.php(12): sfContext::getInstance() #7 {main} thrown in /usr/share/php5/symfony/lib/storage/sfDatabaseSessionStorage.class.php on line 102

Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /usr/share/php5/symfony/lib/storage/sfMySQLSessionStorage.class.php on line 147

Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /usr/share/php5/symfony/lib/storage/sfMySQLSessionStorage.class.php on line 148

Fatal error: Exception thrown without a stack frame in Unknown on line 0

I'm getting this Exception when I try to run my app. My whole app was working under 1.0.9, i just upgraded, now I'm getting this. Why?

Change History

12/16/07 13:26:37 changed by fabien

After upgrading, you need to launch the project:upgrade task and then clear the cache.

12/16/07 13:30:05 changed by redhat24

I did it:

./symfony project:upgrade1.1
./smyfony cc

But the exception is still there.

12/16/07 14:13:56 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

in r6524