Hey, I gotta tell you, this is a GREAT module!! but....

Anonymous users cannot see the site and get the error:
Fatal error: Call to undefined function drupal_add_js() in /home/travelle/public_html/sites/all/modules/fbconnect/fbconnect.module on line 1196

I really don't understand this but I think it's due to the code placed in the page.tpl file. Let me explain why I think this. I enabled the module exactly as described in the readme file except that I forgot to place the xmlns:fb="http://www.facebook.com/2008/fbml" in the page.tpl file. (oops) Without this it did allow me to create an account with my facebook account but the resulting invite page was blank and I got an error that read:
"the selected file /tmp/fileW0lLAc could not be uploaded, because the destination is not properly configured."

So I went through the instructions again and saw that I had left out the last step. I included the code and now that line of my page.tpl file reads:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">

So I reload the page and the module worked nicely until I logged out and then boom, I got the fatal error above.

I've disabled the module and everything is OK now. If you need me to test anything please let me know and I'll be happy to help. This is, indeed, a module worth working for.

Thanks for your efforts!!

Jim

Comments

LaNets’s picture

Hello,

Could you tell me what version of drupal you're using and also the theme name.
I will try to reproduce this bug.

jusyjim’s picture

Hi,

Thanks for the very swift reply. I'm on v5.15 and using the bluebreeze theme (fixed, if that matters) @ http://drupal.org/project/bluebreeze .

Thanks again!!

Jim

jusyjim’s picture

Hi,

I'd like to ask a question on what may be some confusion on my part..

In the instructions it says: Copy the facebook-platform/php folder content to the facebook-client repertory.

I interpreted that to mean take everything in that php folder and place it in the facebook-client directory. So the structure is now:

/sites/all/modules/fbconnect/facebook-client/facebook_desktop.php
/sites/all/modules/fbconnect/facebook-client/facebookapi_php5_restlib.php
/sites/all/modules/fbconnect/facebook-client/facebook.php
/sites/all/modules/fbconnect/facebook-client/jsonwrapper

Did I misinterpret that? Should the php folder with it's contents inside have been loaded in the facebook-client directory so that the structure would be:

/sites/all/modules/fbconnect/facebook-client/php/facebook_desktop.php
/sites/all/modules/fbconnect/facebook-client/php/facebookapi_php5_restlib.php
/sites/all/modules/fbconnect/facebook-client/php/facebook.php
/sites/all/modules/fbconnect/facebook-client/php/jsonwrapper

Since that was my only possible interpretation with the instructions I wanted to be sure before you started trouble shooting.

Thanks.

Jim

LaNets’s picture

 Your first interpretation is correct,

I made an install with version 5.15 and the theme bluebreeze, i've not encountered problem.
The problem seems identical to those found here

chrisbuck’s picture

I've been having a similar problem (http://drupal.org/node/370109). Also using v. 5.15, with the Pixture theme, cache disabled. I added the code to the page.tpl file and get the same error. Module works great when a user is already registered with the website, but if they're trying to link a new registration to their facebook account, the fatal error occurs.

I have also observed not being able to navigate away from any page other than the option to import facebook profile information into drupal. For some reason, once that submit button is clicked, it's impossible to visit any other page without clearing the cache in Firefox. Also replicated in Chrome and IE.

LaNets’s picture

Hello,

I just released a new version (5.x-1.0-beta2) that should fix this bug.

jusyjim’s picture

Hi,

I updated to the latest update (thanks for that) and the bug with anonymous users seems to be fixed. However, the error message The selected file /tmp/fileXuFCol could not be uploaded, because the destination is not properly configured. is back at the page /fbconnect/invite/friends.

I think I did everything right, double and triple checked.

Thanks.

Jim

LaNets’s picture

Go to admin/user/settings page revalidate the parameters.
I think it should fix this problem.

jusyjim’s picture

Hi,

I'm not sure what you mean by revalidate. I looked at those settings, they looked OK so, just in case this is what you meant, I clicked save without changing anything. So I guess that that's not what you meant because I'm still getting that error. I should add, though, that it seems to be working, but I haven't tried story sharing or anything else except viewing and inviting fb friends.

Thanks.

Jim

vectoroc’s picture

Status: Active » Closed (fixed)