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

Dave Cohen’s picture

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

caesarce’s picture

I'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)) {

Pheatus’s picture

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

caesarce’s picture

This works also and may address the file_exists() weakness:
if (require_once($fb_platform))

SewFresh’s picture

Status: Active » Fixed

Confirmed, this does indeed solve the problem. Thanks!!!

Dave Cohen’s picture

Priority: Critical » Normal
Status: Fixed » Closed (duplicate)
suddenfire’s picture

works this is great thank you