when I enable the twitter panel and the twitter plugin, checkschema is fine. when i stop daemons then restart it throws the following errors:
Starting /srv/www/parlementum.net/public_html/statusnet/plugins/TwitterBridge/daemons/synctwitterfriends.php...PHP Fatal error: Uncaught PEAR_Exception: DB Error: no database selected in unknown on line unknown
#0 [internal function]: PEAR_ErrorToPEAR_Exception(Object(DB_Error))
#1 /srv/www/parlementum.net/public_html/statusnet/extlib/PEAR.php(890): call_user_func('PEAR_ErrorToPEA...', Object(DB_Error))
#2 /srv/www/parlementum.net/public_html/statusnet/extlib/DB.php(966): PEAR_Error->PEAR_Error('DB Error: no da...', -14, 16, 'PEAR_ErrorToPEA...', 'SELECT * ? FROM...')
#3 /srv/www/parlementum.net/public_html/statusnet/extlib/PEAR.php(531): DB_Error->DB_Error(-14, 16, 'PEAR_ErrorToPEA...', 'SELECT * ? FROM...')
#4 /srv/www/parlementum.net/public_html/statusnet/extlib/DB/common.php(1908): PEAR->raiseError(NULL, -14, NULL, NULL, 'SELECT * ? FROM...', 'DB_Error', true)
#5 /srv/www/parlementum.net/public_html/statusnet/extlib/DB/mysqli.php(928): DB_common->raiseError(-14, NULL, NULL, NULL, '2006 ** MySQL s...')
#6 /srv/www/parlementum.net/public_html/statusnet/extlib/DB/mysqli.php(387): DB_mysqli->mysqliRaiseError(-14)
#7 /srv/www/parlement in /srv/www/parlementum.net/public_html/statusnet/lib/framework.php on line 155
DONE.
My config.php and results of setconfig are at:
http://privatepaste.com/913904b926
Comments
The default settings for mysqli.reconnect in /etc/php5/cgi/php.ini was:
mysqli.reconnect = On
while the CLI version of PHP had:
mysqli.reconnect = Off
Setting the PHP5 CLI .ini to have mysqli reconnect enabled fixed the issue of the scripts disconnecting from the database, which I believe may be your problem too!
Still getting these errors.
I run it with /usr/bin/php checkschema.php
this is correct, yes?