Closed (cannot reproduce)
Project:
Drupal for Facebook
Version:
6.x-2.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2010 at 02:24 UTC
Updated:
3 Apr 2012 at 21:35 UTC
hi dave, i'm getting the above fatal error from logs
PHP Fatal error: Cannot redeclare class facebook in .../sites/all/modules/dcl_importer/importers/openinviter_engine/OpenInviter/plugins/facebook.plg.php on line 217, referer: http://apps.facebook.com/{dff}
after updating to beta7, no database update errors are reported, but the Facebook Application node disappears, along with the content type. rolled back to beta4.
Comments
Comment #1
Dave Cohen commentedIt sounds like two copies of the facebook api installed. You can add something like
to your settings.php file. Just edit the path to the place where your file is installed.
And yes, beta 7 no longer uses nodes to manage the facebook apps. After you upgrade, you can delete those nodes from admin >> content.
Comment #2
phai commentedI don't know why we get that fatal error...
The above suggestion doesn't work.
A solution was to clear the cache (DB also I think) and to rename the facebook-platform folder.
Then to refresh the page (in my case it was the main admin page) and get the FFD misconfiguraiton error.
At the end I set to the folder the original name... and it worked.
Bt changing some options it stopped to work...
I don't know what is the problem...
However I solved editing the facebook.php file.
I edited the beginning of the file in this way
---
define('FACEBOOK_API_VALIDATION_ERROR', 1);
if (!class_exists('Facebook')) {
class Facebook {
---
So I close the bracket at the end of the file:
---
}
---
But... this is a workaround, not a solution to the problem.
Comment #3
phai commentedI forgot to write that I'm working on another module version.
I change the tag just in this message.
Comment #4
ibandyop commentedI fixed it a different way here: http://drupal.org/user/408838
Comment #5
13rac1 commentedLooks fixed. Closing old issue.