There is a notice
Use of undefined constant Ymd - assumed 'Ymd'.
The line with the error says date( Ymd, $row['date'] ) .
I don’t understand how it worked before, if date( 'Ymd', $row['date'] ); correct date( 'Ymd', $row['date'] );
The problem appeared after rebuilding php 5.2 (I did not reassemble).
Here is the question, how did the date (Ymd, $ row ['date']) work, what makes it correct? The following is written to phpinfo about date:
date/time support enabled "Olson" Timezone Database Version 2012.3 Timezone Database internal Default timezone Europe/Helsinki Directive Local Value Master Value date.default_latitude 31.7667 31.7667 date.default_longitude 35.2333 35.2333 date.sunrise_zenith 90.583333 90.583333 date.sunset_zenith 90.583333 90.583333