Closed (duplicate)
Project:
Drupal for Facebook
Version:
6.x-2.0-rc1
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2010 at 18:48 UTC
Updated:
8 May 2010 at 16:45 UTC
I read the README.txt from start to finish.
For some reason after installing the FB modules using the instructions in the read-me, my /admin page no longer works, neither does using the /?q=admin address. I have no idea what could cause this so I didn't want to play around with the code, was hoping someone here ran into the same issue. However I can still access all the options that are children to admin like create node etc, just not the /admin page itself.
Comments
Comment #1
Dave Cohen commentedI have not seen this myself, but I suspect only a recent change to fb.install could cause it. In fb_requirements, look for an include statement and either change it to file_exists() or comment it out. Let us know if that makes a difference. Thx.
Comment #2
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 #3
Pheatus commentedThanks caesarce! I had the same issue after upgrading to RC1 and your solution fixed it.
Changing line 48 in fb.install from
if (include($fb_platform)) {to
if (file_exists($fb_platform)) {solves it.
Comment #4
caesarce commentedThis works also and may address the file_exists() weakness:
if (require_once($fb_platform))
Comment #5
SewFresh commentedConfirmed, this does indeed solve the problem. Thanks!!!
Comment #6
Dave Cohen commented#782228: Fatal error accessing admin page
Comment #7
suddenfire commentedworks this is great thank you