i got this error on facebook after upgrading to the latest version

Fatal error: require_once() [function.require]: Failed opening required 'simplexml44-0_4_4/class/IsterXmlSimpleXMLImpl.php' (include_path='.:/usr/local/php5/lib/php') in /home/wogooh/public_html/sites/all/modules/fb/facebook-platform/php4client/facebookapi_php4_restlib.php on line 34

Comments

Dave Cohen’s picture

See the updated README.txt.

In order to fix the problem with uncaught exceptions, I had to force the use of facebook's PHP4 client, even when running on PHP5. You need to follow facebook's instructions and download simplexml.

If you find this objectionable, you can set

$conf['fb_use_php4_api'] = FALSE;

in your settings.php. But if you do, the slightest misconfiguration will lead to uncaught exceptions.

Ideally, we would use the PHP5 client. But until drupal updates to PHP5, it will be difficult for us. We'd have to put try-catch clauses all over the place.

abqaria’s picture

thank you

worldcoast’s picture

check your directory structure.

http://drupal.org/node/193047

Dave Cohen’s picture

Status: Active » Fixed

Recent versions of facebook_platform have changed their include paths. If you see something like :

include_once $_SERVER['PHP_ROOT'].'/lib/api/client/php_1_1/facebookapi_php5_restlib.php';

in facebook-platform/client/facebook.php, change it to something like:

require_once 'facebookapi_php5_restlib.php';

Look for the right line, depending on whether you're using php4 or php5 (php4 is used by default).

See modules/fb/README.txt for more.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.