Hi there,
I'm trying to update the module to 6.3, but I keep getting this warning messages. Although it seems to work fine is really bad since users of the site also get them. Does anybody know what's going on with the module? Thanks!
warning: include(sites/all/libraries/facebook-php-sdk/src/facebook.php) [function.include]: failed to open stream: No such file or directory in (...)/sites/all/modules/fb/fb.module on line 361.
warning: include() [function.include]: Failed opening 'sites/all/libraries/facebook-php-sdk/src/facebook.php' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php') in (...)/sites/all/modules/fb/fb.module on line 361.
Failed to find the Facebook client libraries at sites/all/libraries/facebook-php-sdk/src/facebook.php. Read the README.txt and follow the instructions carefully.
Comments
Comment #1
thedavidmeister commentedOk, firstly you shouldn't have your PHP set to display errors to end users on a production site. That's something you'll have to configure yourself on your server.
This issue seems to be a duplicate of #1804172: catch a failed include.
Please check that you do have the latest version of the facebook-php-sdk at the path you're getting warnings for. The instructions in README.txt go over this so read through that once more.
Comment #2
dresde commentedSolved! I didn't have the facebook-php-sdk in place. Thanks a lot.
I'll also work on hidding the errors, I thought that was a Drupal thing and not in the server itself.
Cheers!
Comment #3
thedavidmeister commentedIt is both. Drupal can be configured to display/log errors in different places, but you can also set the server to not display errors at all so Drupal never even sees them.