I got this error when I requested to update the PHP version from 5.2.17 to PHP 5.3.21 on the server.
print(gmdate("Y")); ?>
instead of
print(date("Y")); ?>
worked for me (shows current year and no more shows the error message). (Thanks to Chris above)