PHP Fatal error: Function name must be a string in ../TwitterBridge/twitterimport.php line 436

Constantly seeing this error:
PHP Fatal error: Function name must be a string in /var/www/status/plugins/TwitterBridge/twitterimport.php on line 436

twitterbridge randomly gives up and dies, and I have to restart it.
It will work fine for a while, then die again.

relevant code from /var/www/status/plugins/TwitterBridge/twitterimport.php (with line numbers, showing purportedly offending line)

417 function saveAvatars($user, $id)
418 {
419 global $config;
420
421 $path_parts = pathinfo($user->profile_image_url);
422 $ext = $path_parts['extension'];
423 $end = strlen('_normal' . $ext);
424 $img_root = substr($path_parts['basename'], 0, -($end+1));
425 $mediatype = $this->getMediatype($ext);
426
427 foreach (array('mini', 'normal', 'bigger') as $size) {
428 $url = $path_parts['dirname'] . '/' .
429 $img_root . '_' . $size . ".$ext";
430 $filename = 'Twitter_' . $user->id . '_' .
431 $img_root . "_$size.$ext";
432
433 if ($this->fetchAvatar($url, $filename)) {
434 $this->newAvatar($id, $size, $mediatype, $filename);
435 } else {
436 common_log(LOG_WARNING, $id() .
437 " - Problem fetching Avatar: $url");
438 }
439 }
440 }

Comments

  • server runs debian stable.
    my SN is running current code from gitorious, pulled today, but I've been seeing this error for at least a week. I pull a couple of times/week.
  • I get tonso this, too

    PHP Fatal error: Uncaught PEAR_Exception: DB Error: connect failed in unknown on line unknown
    #0 [internal function]: PEAR_ErrorToPEAR_Exception(Object(DB_Error))
    #1 /var/www/status/extlib/PEAR.php(890): call_user_func('PEAR_ErrorToPEA...', Object(DB_Error))
    #2 /var/www/status/extlib/DB.php(966): PEAR_Error->PEAR_Error('DB Error: conne...', -24, 16, 'PEAR_ErrorToPEA...', ' [nativecode=To...')
    #3 /var/www/status/extlib/PEAR.php(531): DB_Error->DB_Error(-24, 16, 'PEAR_ErrorToPEA...', ' [nativecode=To...')
    #4 /var/www/status/extlib/DB/common.php(1908): PEAR->raiseError(NULL, -24, NULL, NULL, ' [nativecode=To...', 'DB_Error', true)
    #5 /var/www/status/extlib/DB/mysqli.php(338): DB_common->raiseError(-24, NULL, NULL, NULL, 'Too many connec...')
    #6 /var/www/status/extlib/DB.php(556): DB_mysqli->connect(Array, false)
    #7 /var/www/status/extlib/DB/DataObject.php(2426): DB->connect('mysqli://snet:0...')
    #8 /var/www/status/classes/Memcached_DataObject.php(773): DB_DataObject->_connect()
    #9 /var/www/status/extlib/DB/DataObject.php(914): M in /var/www/status/lib/framework.php on line 172
  • I know in another discussion, a purported solution to this above is to put mysqli.reconnect = On in /etc/php5/cli/php.ini or apache2/php.ini, or both, or something,
    but it's already configured thus in both, so that is not solving this issue for me.
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