Archive for November, 2010

Crash JP Morgan — Buy Silver!

Wednesday, November 17th, 2010

Especially now that it’s kind of cheap again.

True freedom begins with financial liberty.

Defeating weird “No database selected [Native Error: MySQL server has gone away]” error when moving code into a partial in Symfony

Friday, November 5th, 2010

So you’re working in an older version of Symfony (or maybe even a newer one..), trying to refactor some common code into a partial. Maybe something simple like this from within a global partial?:


And suddenly connections to the database start falling down with errors along the lines of:

SQLException: No database selected [Native Error: MySQL server has gone away]

In reality this is a problem with Symfony’s error reporting from within global partials. Do you actually mean?:


Remember that even if you’re in a global partial, Symfony doesn’t really know that’s where you are.