Log in

View Full Version : Error: Parse error: syntax error, unexpected '{' in /home/tvallyc/public_html/include


emailapphost
04-08-2009, 05:20 PM
Just installed the Facebook connect product.

I am getting this annoying one liner error at the top of the forum 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

Lynne
04-08-2009, 05:46 PM
Problems with modifications need to be posted in the modification thread.

emailapphost
04-08-2009, 06:15 PM
OK,
Can you please move my post to the Facebook connect modification?
Thank you.

Lynne
04-08-2009, 06:57 PM
You should go find the modification thread you downloaded the modification from and make your post there. I don't make guesses as to which modification you are using.