Closed (duplicate)
Project:
Drupal for Facebook
Version:
6.x-2.0-rc1
Component:
Facebook Connect
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2010 at 04:46 UTC
Updated:
26 Apr 2010 at 21:45 UTC
Hi Dave,
The rc1 is working fine. However, I got WSOD upon visiting "admin/reports/status".
Trial-and-error leads me to the culprit: dfb's submodule "Facebook Connect". No more WSOD upon disabling it. Idea?
Thanks for the great module.
Comments
Comment #1
Dave Cohen commentedSounds hard to believe, because fb_connect.install does not implement hook_requierments().
Can you see any errors in your apache or system logs? Can you make PHP more verbose?
Comment #2
jlee commentedSame here... this is the error that's printed to the screen:
Fatal error: Cannot redeclare class Facebook in /home/--------/sites/all/modules/fb/facebook-platform/php/facebook.php on line 37
Comment #3
cntlscrut commentedI'm getting the same error but, only on /admin. no other page but that.
Comment #4
jlee commentedto clarify... i get the error on both: "admin/reports/status" and "/admin"
thanks
Comment #5
Dave Cohen commentedHuh. I changed some code to include the facebook.php file, because of another bug reported that file_exists() was not a sufficient test.
Both approaches work fine for me. So this is confusing.
Do you have a second copy of facebook.php anywhere in your drupal directory?
Comment #6
jlee commented"Do you have a second copy of facebook.php anywhere in your drupal directory?"
Not that I'm aware of... and I've looked all over! Additionally, when I remove facebook.php from the facebook-platform/php/ directory, the error stops.
Comment #7
caesarce commentedI've noticed this same behavior at "/admin" and "/admin/reports/status". I have all modules except "Drupal for Facebook Actions" enabled. Only way to get the admin page back is disabling all FB Connect modules.
Server Log reflects:
PHP Fatal error: Cannot redeclare class Facebook in sites/all/modules/fb/facebook-platform/php/facebook.php on line 37.
changing line 48 in fb.install fixed it:
if (file_exists($fb_platform)) {
Comment #8
Dave Cohen commented#782228: Fatal error accessing admin page