Hi,

I'm not sure if the problem is drupal for facebook but I have a strong feeling that it is. I am hoping someone can have a look and advice.

In my site users log in to create events. Events have a thumbnail (CCK, ImageField). If they create a new drupal account then creating a new event works. However, If they log in using facebook connect they get the above error when they try to upload an Event image.

Note: This problem might be related to http://drupal.org/node/500646
The thread suggests the issue might be with CacheRouter OR memcache but I don't have any of them installed on my site neither do I use any default cache optimizations (this is my staging site)

The procedure of creating an event did work fine before installing drupal for facebook so I think this is also another indication.

Please let me know if you need more details.

Comments

sp_key’s picture

Any suggestions anyone?
This is really bugging me - I can't go live because of this problem.

Does anyone know if drupal for facebook uses any kind of caching?
I suspect this might be the problem (more info http://drupal.org/node/500646)

Dave Cohen’s picture

When using facebook connect, are you creating a local (drupal) user, or does drupal consider them anonymous?

Drupal for Facebook introduces no new caching, and if you have drupal configured to cache, it will attempt to disable that when user is connected to facebook.

Does this error happen every time or occasionally? Is the connect button on the same page as the event form?

sp_key’s picture

I am indeed creating a local (drupal) user.

For the moment I am testing on my staging environment so all cache optimizations are disabled which is what makes my case a bit different since most users are pointing fingers at cacherouter.

The error happens every time I try IF I'm connected using facebook connect. If I use the drupal default credentials then there is no problem.

Regarding the page where facebook connect is: Creating an event is only permitted if you are an authenticated user. So the way the logic works is: Once you select Add event you're directed to node/add/event as long as you are signed in. If not, you are redirected to the user page. This is set up in admin/settings/error-reporting. The /user page is my default 403 (access denied) page. Once you use facebook connect to log in you're then automatically redirected to node/add/event. Hope this makes sense?

Can I also bring to your attention the following link? http://drupal.org/node/795004
In particular comments #1, #3, #5, #10, #14

This is the first time I'm completely out of my depth with drupal and I'm more than happy to give you access to my staging environment if you have the time to check this confusing error for me.

Dave Cohen’s picture

Does this happen with every form? for example, do you see the same error creating a story or using a contact form?

sp_key’s picture

No problem with default contact form though no image upload there.

I've also just created a new content type called Story.
It only contains Title, Body and CCK field Image.
Once again, the problem happens only for facebook connect user. Using Drupal log in it's fine.

Dave Cohen’s picture

Sounds like a problem with the CCK image field, right?

sp_key’s picture

Maybe, I don't know but then why is this happening only for facebook connect authentication and not drupal log in?

Dave Cohen’s picture

Title: Unrecoverable error occured. this form was missing from the server cache. try reloading the page and submitting again » CCK Unrecoverable error occured. this form was missing from the server cache. try reloading the page and submitting again

Agreed that is a great question. If you can tell me how to fix it in modules/fb, I'd like to, and I'll leave this issue active. I just suspect the fix has to come from CCK. I don't understand the cause and personally don't have time to track it down. If anyone does, please let us know why this problem occurs.