forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: BlackChart on February 19, 2009, 08:26:44 am

Title: PNphpBB2 (Zafenio) causing MySQL connection error when entering forum
Post by: BlackChart on February 19, 2009, 08:26:44 am
When I have an image block in my Zikula site and entering PNphpBB2 forum I only get this output:

Query0 failed : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I know this isn't related directly to pnCPG only, but do any of you have an idea on where to find the error??
Title: Re: PNphpBB2 (Zafenio) causing MySQL connection error when entering forum
Post by: casNuy on February 19, 2009, 06:41:05 pm
Check the definitions of the block (which block are you using?)
Title: Re: PNphpBB2 (Zafenio) causing MySQL connection error when entering forum
Post by: BlackChart on February 19, 2009, 06:58:25 pm
I use the one called block...

I've solved the problem by inserting the DBConnectionStack::init() call into the block.php script, just belov the pnSecAuthAction section...

Haven't tried any of the other blocks yet, but this fixed it for the one I use...