Error: PHP Warning: Use of undefined constant Y - assumed 'Y' (this will throw an Error in a future version of PHP)
Cause: Warning occurs in PHP function like date(Y) where the string Y is not in enclosed with quotation marks.
Solution: Enclose string with single or double quotation marks.
Example: date('Y')
Last Updated: October 4, 2020