Not Solved phpBB3 > MyBB Merge Fatal Error: Uncaught exception
#10
Not Solved
(2015-06-22, 03:58 PM).m. Wrote: ^ removed end brace (}) needs to be added back !

OK, now I get the same error:

Quote:Parse error: syntax error, unexpected T_CATCH in C:\HostingSpaces\crsq\creationresearch.org\wwwroot\MyBB\merge\resources\functions.php on line 1020

To be sure we're communicating, this is now the end of the functions.php:

// Converts a String timezone (Europe/Berlin) to a MyBB number
 function get_timezone($zone)
 {
$time = new DateTime('now', new DateTimeZone($zone));
$off = $time->format('P');
} catch(Exception $e) {
return '';
}
  
  list($h, $m) = explode(":", $off);
  
list($h, $m) = explode(":", $off);

$v = substr($h, 0, 1);
$h = substr($h, 1);

if(substr($h, 0, 1) == 0)
   $h = substr($h, 1);

if($m == 30)
   $h .= ".5";
else if($m == 45)
   $h .= ".75";

if($v == "-")
   $h = "-{$h}";

return $h;
}
?>
Lane
Reply


Messages In This Thread
RE: phpBB3 > MyBB Merge Fatal Error: Uncaught exception - by LaneLester - 2015-06-22, 04:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)