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

Dave Cohen’s picture

Category: bug » support

It sounds like two copies of the facebook api installed. You can add something like

$conf['fb_api_file'] = 'profiles/custom/modules/fb/facebook-platform/facebook.php';

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.

phai’s picture

I 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.

phai’s picture

Version: 6.x-2.0-beta7 » 6.x-2.0-rc1

I forgot to write that I'm working on another module version.
I change the tag just in this message.

ibandyop’s picture

I fixed it a different way here: http://drupal.org/user/408838

13rac1’s picture

Status: Active » Closed (cannot reproduce)

Looks fixed. Closing old issue.