Just installed the most recent textpattern (so commit 87aff51) on an Ubuntu 16.04 server - PHP 7.0.6, MySQL 5.7.12 - and the admin area was unusable, stuck on the Admin -> Languages page (though the site itself seems to work).
The traceback I got was:
User_Error "Truncated incorrect date value: '0000-00-00'"
in /srv/www/textpattern/lib/txplib_db.php at line 405.
textpattern/lib/txplib_misc.php:1677 adminErrorHandler()
updateErrorHandler()
textpattern/lib/txplib_db.php:405 trigger_error()
textpattern/lib/txplib_db.php:433 safe_query()
textpattern/update/_to_4.6.0.php:254 safe_delete()
textpattern/update/_update.php:84 include()
textpattern/index.php:180 include()
The offending line in _to_4.6.0.php is:
safe_delete('txp_discuss_nonce', "DATE(issue_time) = '0000-00-00'");
And there are a bunch of other lines that check for "0000-00-00" dates, I presume to handle updates and fix issue #591.
When I comment out all 12 safe_delete and safe_update lines that check for "0000-00-00" dates, the admin area appears to work fine.
Just installed the most recent textpattern (so commit 87aff51) on an Ubuntu 16.04 server - PHP 7.0.6, MySQL 5.7.12 - and the admin area was unusable, stuck on the Admin -> Languages page (though the site itself seems to work).
The traceback I got was:
The offending line in
_to_4.6.0.phpis:And there are a bunch of other lines that check for "0000-00-00" dates, I presume to handle updates and fix issue #591.
When I comment out all 12
safe_deleteandsafe_updatelines that check for "0000-00-00" dates, the admin area appears to work fine.