Under account information, Facebook Connect tab, I'm getting two warnings:
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home/....../sites/all/modules/fbconnect/modules/fbconnect_profile/fbconnect_profile.module on line 82.
* warning: implode() [function.implode]: Invalid arguments passed in /home/...../sites/all/modules/fbconnect/modules/fbconnect_profile/fbconnect_profile.module on line 82.
The module seems to be working OK, but does anyone know why these warnings appear? Thanks.
Comments
Comment #1
LaNets commentedComment #2
Tomunist commentedI'm getting the same error messages, but preceded by the following:
user warning: Unknown column 'import_setting' in 'field list' query: SELECT import_setting FROM fbconnect_users WHERE uid = 3 in /home/tomunis/public_html/libertyguide/modules/fbconnect/modules/fbconnect_profile/fbconnect_profile.module on line 256.I'm using the latest stable release of the module. No other functionality seems to be affected.
Comment #3
iggymon commentedI'm using the latest stable release of the module and getting the same error messages
Comment #4
cgdigitaltreats commenteduser warning: Unknown column 'import_setting' in 'field list' query: SELECT import_setting FROM fbconnect_users WHERE uid = 1 in /home/pojack1/public_html/learntheinternet/modules/fbconnect/modules/fbconnect_profile/fbconnect_profile.module on line 256.
warning: array_filter() [function.array-filter]: The second argument, 'fbconnect_import_filter', should be a valid callback in /home/pojack1/public_html/learntheinternet/modules/fbconnect/modules/fbconnect_profile/fbconnect_profile.module on line 82.
warning: implode() [function.implode]: Invalid arguments passed in /home/pojack1/public_html/learntheinternet/modules/fbconnect/modules/fbconnect_profile/fbconnect_profile.module on line 82.
I didn't get this in the previous fbconnect versions. Updated to latest release and this is what I get on two different sites.
Antonio
Comment #6
arohacs commentedI'm getting this error, too. Regardless of whether it affects usability or performance of the site, it's not good for the user to see the path of your host directories, etc. (looks bad, for one, security issue, for two). Is there a way to hush the messages until this is fixed in the next release? Otherwise, I'd appreciate a link to a release that doesn't produce these errors, since I cannot download previous releases from the module page.
Thanks.
Comment #7
drupal3008 commentedI had an old version of the the fbconnect module and just did a couple things as a temporary hack (and it works cause it shows the import options on the fbconnect tab:
1) added import_setting column ("text",null) into the fbconnect_users
2) added this code into the fbconnect.module:
function fbconnect_import_filter($var) {
return (is_string($var)) ? $var : NULL;
}
AFTER:
/**
* Check if user already registered in the fbconnect_users table
*
* @param integer $fbuid
* Facebook user id
* @return array
*/
function _is_fbconnect_user($fbuid) {
$data = db_fetch_array(db_query('SELECT uid FROM {fbconnect_users} WHERE fbuid = %d', $fbuid));
return ($data) ? $data : FALSE;
}
Comment #8
drupal3008 commentedI think the contributor took out the functionality to abide by the terms of service to refresh the stored fb settings every 24 hours, and since there was no built in functionality for this it was removed.
Comment #9
HS commentedJust updated and now seeing this in my log entries.
Comment #10
saloob commentedThanks, makingbigthings. Handy tip to get her going. Cheers.
Comment #11
vectoroc commented