Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: phai commentedI forgot to write that I'm working on another module version.
I change the tag just in this message.
Comment #4
ibandyop CreditAttribution: ibandyop commentedI fixed it a different way here: http://drupal.org/user/408838
Comment #5
13rac1 CreditAttribution: 13rac1 commentedLooks fixed. Closing old issue.