Diagnostics: error_log replaced with file_put_contents