fixes for php_errors.log notices
Merge remote-tracking branch 'origin/v2.0'