enabling Twitter with 1.0.0alpha5 throws PEAR DB errors.

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

  • @encyclomundi Try running checkschema.php after enabling the plugin.
  • i did, it's fine. It throws no errors.
  • I've got same thing. Both syncwithtwitterfriends and twitterstatusfetcher die with this "fatal: I'm a teapot" in unknown on line unknown. And I'm on 1.0.0 Gold.
  • Hey, I have had this problem too! My environment included running the site in php-cgi but running daemons (of course) through php-cli, under later versions of Ubuntu.

    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!
  • I have that, mysqli.reconnect = On in both /etc/php5/cli and apache2/php.ini
    Still getting these errors.
  • checkschema.php hangs and hangs and hangs....
    I run it with /usr/bin/php checkschema.php
    this is correct, yes?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID