2011-06-22, 01:19 PM
Having a very strange error. I was modifying this file, then reinstalled the original global.php file from the source. I don't even understand why it's occuring.
So this error is being caused by the default global.php file
Error:
Some code around Line 526... (Lines 504 to 527)
This can be solved by either removing $task_image = ''; totally or even removing the whole else { } .
But I don't wan't to do that as it might conflict with something in the future. else { $task_image = ''; } is included in global.php from your install, so it's nothing I've added. Why is this causing an error?
So this error is being caused by the default global.php file
Error:
Parse error: syntax error, unexpected $end in /home/susite/public_html/global.php on line 526
Some code around Line 526... (Lines 504 to 527)
// Are we showing version numbers in the footer?
if($mybb->settings['showvernum'] == 1)
{
$mybbversion = ' '.$mybb->version;
}
else
{
$mybbversion = '';
}
// Check to see if we have any tasks to run
$task_cache = $cache->read("tasks");
if(!$task_cache['nextrun'])
{
$task_cache['nextrun'] = TIME_NOW;
}
if($task_cache['nextrun'] <= TIME_NOW)
{
$task_image = "<img src=\"{$mybb->settings['bburl']}/task.php\" border=\"0\" width=\"1\" height=\"1\" alt=\"\" />";
}
else
{
$task_image = '';
}
This can be solved by either removing $task_image = ''; totally or even removing the whole else { } .
But I don't wan't to do that as it might conflict with something in the future. else { $task_image = ''; } is included in global.php from your install, so it's nothing I've added. Why is this causing an error?