Just installed the Facebook connect on two different vBulletin instalations.
I am getting this annoying one liner error at the top of both forums now, can figure out what is is. Any ideas appreciated. Thanks.
When I disable the Facebook connect product the error disappears.
Parse error: syntax error, unexpected '{' in /home/tvallyc/public_html/includes/functions.php(5586) : eval()'d code on line 9
I did these changes to function.php (a developer did this for me):
// parse PHP include ##################
if (!is_demo_mode())
{
//echo "hook = ".$hook."<br>";
//($hook = vBulletinHook::fetch_hook('global_complete')) ? eval($hook) : false;
$hook = vBulletinHook::fetch_hook('global_complete');
print_r($hook);
if($hook) eval($hook);
}
And got this:
require_once(DIR . '/includes/facebook/facebook.php'); if ($_GET['fblogout']) { if ($vbulletin->facebook == null) $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']); try { $vbulletin->facebook->kill_cookies(); } catch(FacebookRestClientException $ex) { } }
Parse error: syntax error, unexpected '{' in /home/tvallyc/public_html/includes/functions.php(5590) : eval()'d code on line 9
UPDATE:
This was actually a PHP 4 error, I had PHP 4 installed and it worked smooth as soon as I went to PHP 5.
|