DATE_FORMAT_STRING undefined?

Ask the community for help and support.
Post Reply
plamastus
VIP Member
VIP Member
Posts: 83
Joined: Fri Mar 12, 2021 2:09 am
Has thanked: 1 time
Been thanked: 2 times

DATE_FORMAT_STRING undefined?

Post by plamastus »

Hi,

Phoenix 1.0.8.0

[08-Apr-2021 12:03:50 America/New_York] PHP Warning: Use of undefined constant DATE_FORMAT_STRING - assumed 'DATE_FORMAT_STRING' (this will throw an Error in a future version of PHP) in /home/lamastus/public_html/advanced_search_result.php on line 36

I got the error from error_log how do I fix this?
patrick
ecartz
Lead Developer
Lead Developer
Posts: 2637
Joined: Tue Nov 05, 2019 6:02 pm
Has thanked: 4 times
Been thanked: 181 times

Re: DATE_FORMAT_STRING undefined?

Post by ecartz »

In includes/languages/english/advanced_search.php change

Code: Select all

// text for date of birth example
define('DOB_FORMAT_STRING', 'mm/dd/yyyy');
to

Code: Select all

const DATE_FORMAT_STRING = 'mm/dd/yyyy';
Post Reply