Can't see users after adding LDAP setup

Hello.

After adding LDAP setup I have a problem with Users page:

When I click at any group usrers are showing.
When I disable LDAP plugin users are showing.
But, sometimes it load only few records from LDAP.

The users from AD can log in with no problems. At least the few ones which I tested today.
I have over 1500 users at my OU.

Log from occ:
sudo -u apache php …/occ user:list
PHP Fatal error: Call to a member function composeAndStoreDisplayName() on a non-object in /var/www/html/nextcloud/apps/user_ldap/lib/Access.php on line 552

Appraciate any help.

OS:
CentOS Linux release 7.2.1511 (Core) (fully patched)

PHP:
Version: 5.5.21
Memory Limit: 512.0 MB
Max Execution Time: 3600
Upload max size: 513.0 MB

Database:
Type: mysql (mariadb)
Version: 10.1.18
Size: 5.5 MB

Log from nextcloud.log:
{“reqId”:“WC2vEydN091KQvUN1grNGAAAAAs”,“remoteAddr”:“REMOVED SENSITIVE VALUE”,“app”:“PHP”,“message”:“Call to a member function composeAndStoreDisplayName() on a non-object at /var/www/html/nextcloud/apps/user_ldap/lib/Access.php#552”,“level”:3,“time”:“2016-11-17T13:22:27+00:00”,“method”:“GET”,“url”:"/nextcloud/settings/users/users?offset=20&limit=10&gid=&pattern=",“user”:“admin”}

My config:

{
“system”: {
“instanceid”: “ocmvtc6rlvl3”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
REMOVED SENSITIVE VALUE”,
REMOVED SENSITIVE VALUE
],
“datadirectory”: “/var/www/html/nextcloud/data”,
“overwrite.cli.url”: “http://REMOVED SENSITIVE VALUE/nextcloud”,
“dbtype”: “mysql”,
“version”: “9.1.1.5”,
“dbname”: “nextcloud”,
“dbhost”: “localhost”,
“dbport”: “”,
“dbtableprefix”: “oc_”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“logtimezone”: “UTC”,
“installed”: true,
“appstore.experimental.enabled”: true,
“loglevel”: 0,
“mail_smtpmode”: “smtp”,
“mail_from_address”: “nextcloud”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “25”,
“htaccess.RewriteBase”: “/nextcloud”,
“knowledgebaseenabled”: false,
“enable_avatars”: false,
“allow_user_to_change_display_name”: false,
“enable_previews”: false,
“ldapIgnoreNamingRules”: false,
“ldapProviderFactory”: “\OCA\User_LDAP\LDAPProviderFactory”
},
“apps”: {
“activity”: {
“enabled”: “no”,
“installed_version”: “2.3.2”,
“types”: “filesystem”
},
“admin_audit”: {
“enabled”: “yes”,
“installed_version”: “1.0.0”,
“types”: “logging”
},
“backgroundjob”: {
“lastjob”: “16”
},
“comments”: {
“enabled”: “no”,
“installed_version”: “1.0.0”,
“types”: “logging”
},
“core”: {
“backgroundjobs_mode”: “cron”,
“installedat”: “1476946379.8253”,
“lastcron”: “1479388502”,
“lastupdateResult”: “[]”,
“lastupdatedat”: “1479387411”,
“oc.integritycheck.checker”: “[]”,
“public_files”: “files_sharing/public.php”,
“public_webdav”: “dav/appinfo/v1/publicwebdav.php”,
“shareapi_allow_links”: “no”,
“shareapi_enabled”: “no”,
“umgmt_send_email”: “true”,
“umgmt_show_backend”: “true”,
“umgmt_show_email”: “true”,
“umgmt_show_last_login”: “true”,
“umgmt_show_storage_location”: “true”
},
“dav”: {
“enabled”: “yes”,
“installed_version”: “1.0.1”,
“types”: “filesystem”
},
“federatedfilesharing”: {
“enabled”: “yes”,
“installed_version”: “1.0.1”,
“types”: “”
},
“federation”: {
“autoAddServers”: “0”,
“enabled”: “no”,
“installed_version”: “1.0.1”,
“types”: “authentication”
},
“files”: {
“cronjob_scan_files”: “500”,
“enabled”: “yes”,
“installed_version”: “1.5.2”,
“types”: “filesystem”
},
“files_pdfviewer”: {
“enabled”: “yes”,
“installed_version”: “0.8.1”,
“ocsid”: “166049”,
“types”: “”
},
“files_sharing”: {
“enabled”: “no”,
“incoming_server2server_share_enabled”: “no”,
“installed_version”: “1.0.0”,
“outgoing_server2server_share_enabled”: “no”,
“types”: “filesystem”
},
“files_texteditor”: {
“enabled”: “no”,
“installed_version”: “2.1”,
“ocsid”: “166051”,
“types”: “”
},
“files_trashbin”: {
“enabled”: “no”,
“installed_version”: “1.0.0”,
“types”: “filesystem”
},
“files_versions”: {
“enabled”: “yes”,
“installed_version”: “1.3.0”,
“types”: “filesystem”
},
“files_videoplayer”: {
“enabled”: “no”,
“installed_version”: “0.9.8”,
“types”: “”
},
“firstrunwizard”: {
“enabled”: “[“admin”]”,
“installed_version”: “1.1”,
“ocsid”: “166055”,
“types”: “”
},
“gallery”: {
“enabled”: “no”,
“installed_version”: “15.0.0”,
“types”: “”
},
“notifications”: {
“enabled”: “yes”,
“installed_version”: “0.3.0”,
“types”: “logging”
},
“password_policy”: {
“enabled”: “yes”,
“enforceNumericCharacters”: “0”,
“enforceUpperLowerCase”: “0”,
“installed_version”: “1.0.0”,
“types”: “”
},
“provisioning_api”: {
“enabled”: “yes”,
“installed_version”: “1.0.0”,
“types”: “prevent_group_restriction”
},
“serverinfo”: {
“enabled”: “yes”,
“installed_version”: “1.1.1”,
“types”: “”
},
“survey_client”: {
“apps”: “no”,
“database”: “no”,
“enabled”: “no”,
“encryption”: “no”,
“files_sharing”: “no”,
“installed_version”: “0.1.5”,
“php”: “no”,
“server”: “no”,
“stats”: “no”,
“types”: “”
},
“systemtags”: {
“enabled”: “no”,
“installed_version”: “1.0.2”,
“types”: “logging”
},
“theming”: {
“cachebuster”: “3”,
“enabled”: “yes”,
“installed_version”: “1.0.1”,
“name”: “REMOVED SENSITIVE VALUE”,
“slogan”: “”,
“types”: “logging”,
“url”: “http://REMOVED SENSITIVE VALUE
},
“updatenotification”: {
“enabled”: “yes”,
“installed_version”: “1.0.1”,
“types”: “”
},
“user_ldap”: {
“cleanUpJobOffset”: “150”,
“enabled”: “yes”,
“has_memberof_filter_support”: “1”,
“home_folder_naming_rule”: “”,
“installed_version”: “1.0.1”,
“last_jpegPhoto_lookup”: “0”,
“ldap_agent_password”: “REMOVED SENSITIVE VALUE”,
“ldap_attributes_for_group_search”: “”,
“ldap_attributes_for_user_search”: “”,
“ldap_backup_host”: “”,
“ldap_backup_port”: “”,
“ldap_base”: “ou=REMOVED SENSITIVE VALUE,ou=Accounts,dc=REMOVED SENSITIVE VALUE,dc=com,dc=pl”,
“ldap_base_groups”: “ou=REMOVED SENSITIVE VALUE,ou=Accounts,dc=REMOVED SENSITIVE VALUE,dc=com,dc=pl”,
“ldap_base_users”: “ou=REMOVED SENSITIVE VALUE,ou=Accounts,dc=REMOVED SENSITIVE VALUE,dc=com,dc=pl”,
“ldap_cache_ttl”: “600”,
“ldap_configuration_active”: “1”,
“ldap_display_name”: “displayname”,
“ldap_dn”: “cn=app_nextcloud,ou=services,ou=Accounts,dc=REMOVED SENSITIVE VALUE,dc=com,dc=pl”,
“ldap_dynamic_group_member_url”: “”,
“ldap_email_attr”: “mail”,
“ldap_experienced_admin”: “0”,
“ldap_expert_username_attr”: “”,
“ldap_expert_uuid_group_attr”: “”,
“ldap_expert_uuid_user_attr”: “”,
“ldap_group_display_name”: “cn”,
“ldap_group_filter”: “”,
“ldap_group_filter_mode”: “0”,
“ldap_group_member_assoc_attribute”: “uniqueMember”,
“ldap_groupfilter_groups”: “”,
“ldap_groupfilter_objectclass”: “”,
“ldap_host”: “REMOVED SENSITIVE VALUE”,
“ldap_login_filter”: “(&(&(|(objectclass=person)))(samaccountname=%uid))”,
“ldap_login_filter_mode”: “0”,
“ldap_loginfilter_attributes”: “”,
“ldap_loginfilter_email”: “0”,
“ldap_loginfilter_username”: “1”,
“ldap_nested_groups”: “0”,
“ldap_override_main_server”: “”,
“ldap_paging_size”: “2000”,
“ldap_port”: “389”,
“ldap_quota_attr”: “”,
“ldap_quota_def”: “5 GB”,
“ldap_tls”: “0”,
“ldap_turn_off_cert_check”: “0”,
“ldap_user_display_name_2”: “”,
“ldap_user_filter_mode”: “1”,
“ldap_userfilter_groups”: “”,
“ldap_userfilter_objectclass”: “person”,
“ldap_userlist_filter”: “(&(|(objectclass=person)))”,
“types”: “authentication”,
“use_memberof_to_detect_membership”: “0”
},
“workflowengine”: {
“enabled”: “yes”,
“installed_version”: “1.0.1”,
“types”: “filesystem”
}
}
}

LDAP:
±------------------------------±---------------------------------------------------------------------+
| Configuration | |
±------------------------------±---------------------------------------------------------------------+
| hasMemberOfFilterSupport | 1 |
| hasPagedResultSupport | |
| homeFolderNamingRule | |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | cn=app_nextcloud,ou=services,ou=Accounts,dc=REMOVED SENSITIVE VALUE,dc=com,dc=pl |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | |
| ldapAttributesForUserSearch | |
| ldapBackupHost | |
| ldapBackupPort | |
| ldapBase | ou=REMOVED SENSITIVE VALUE,ou=Accounts,dc=REMOVED SENSITIVE VALUE,dc=com,dc=pl |
| ldapBaseGroups | ou=REMOVED SENSITIVE VALUE,ou=Accounts,dc=REMOVED SENSITIVE VALUE,dc=com,dc=pl |
| ldapBaseUsers | ou=REMOVED SENSITIVE VALUE,ou=Accounts,dc=REMOVED SENSITIVE VALUE,dc=com,dc=pl |
| ldapCacheTTL | 600 |
| ldapConfigurationActive | 1 |
| ldapDynamicGroupMemberURL | |
| ldapEmailAttribute | mail |
| ldapExperiencedAdmin | 0 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | |
| ldapExpertUsernameAttr | |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | |
| ldapGroupFilterGroups | |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | |
| ldapGroupMemberAssocAttr | uniqueMember |
| ldapHost | REMOVED SENSITIVE VALUE |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | (&(&(|(objectclass=person)))(samaccountname=%uid)) |
| ldapLoginFilterAttributes | |
| ldapLoginFilterEmail | 0 |
| ldapLoginFilterMode | 0 |
| ldapLoginFilterUsername | 1 |
| ldapNestedGroups | 0 |
| ldapOverrideMainServer | |
| ldapPagingSize | 0 |
| ldapPort | 389 |
| ldapQuotaAttribute | |
| ldapQuotaDefault | 5 GB |
| ldapTLS | 0 |
| ldapUserDisplayName | displayname |
| ldapUserDisplayName2 | |
| ldapUserFilter | (&(|(objectclass=person))) |
| ldapUserFilterGroups | |
| ldapUserFilterMode | 1 |
| ldapUserFilterObjectclass | person |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 0 |
| useMemberOfToDetectMembership | 0 |
±------------------------------±---------------------------------------------------------------------+

i have same problem do you resolve it?