When user login in to drupal (openatrium) see error:

Recoverable fatal error: Argument 1 passed to file_delete() must be an instance of stdClass, boolean given, called in */sites/all/modules/ldap/ldap_servers/LdapServer.class.php on line 1092 and defined w file_delete() (linia 1268 z */includes/file.inc).

CommentFileSizeAuthor
#2 2014-11-18_13-54-34.jpg9.15 KBmatthewgann
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnbarclay’s picture

Title: Thumbnail photo import error » LDAP User: Thumbnail photo import error
Version: 7.x-2.0-beta8 » 7.x-2.x-dev
Status: Active » Postponed (maintainer needs more info)

What format is the image stored in in LDAP? If its binary, is it set to binary in the ldap user config?

matthewgann’s picture

FileSize
9.15 KB

I'm having the same issue. It is binary, but the checkbox to choose binary is disabled (see image).

matthewgann’s picture

Status: Postponed (maintainer needs more info) » Active
crystalgrafix’s picture

Hi, I'm facing the same problem right now. Can anyone please tell me if there's a patch for this?

Thanks

crystalgrafix’s picture

I can confirm that this issue is also in 7.x-2.0-beta8 as well.

asmeets’s picture

Hello everyone -

Have you checked that "Enable User Pictures" is checked in /admin/config/people/accounts? Without that being checked the thumbnail photo can't be stored in Drupal's profile for the user. We had this issue and this was the fix.

Adam

crystalgrafix’s picture

Status: Active » Fixed

Thanks asmeets. This worked for me!

asmeets’s picture

Assigned: Unassigned » asmeets

Glad to hear it!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.