Hello,
I am working on a current install of 2.5.2.
I seem to be getting system errors from the most basic php enabled templates. I’ve switched them between input / output php parsing to see if it would make a difference.
Error Example:
Parse error: syntax error, unexpected ‘%’ in /home/dir1/public_html/system/expressionengine/libraries/Functions.php(680) : eval()‘d code on line 3
Code example:
<?php
$dob = new DateTime('{current_date format='%d %F %Y'}');
$now = new DateTime('{registration-first-day format='%d %F %Y'}');
// This returns a DateInterval object.
$age = $now->diff($dob);
// You output the date
echo 'This person is ' .$age->format('%y') .' years old.';
?>Tried embedding too:
$dob = new DateTime('{embed:the_current}');
$now = new DateTime('{embed:the_start}');Is there something wrong with my install?