Hi,

A fresh installed OpenPublic (7.x-1.0-beta16) with LDAP module (7.x-2.0-beta3) installed, configured and connected. Got the following error:

******************
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/htdocs/hfcportal/hfcportal/includes/common.inc:2681) in /usr/local/apache/htdocs/hfcportal/hfcportal/includes/bootstrap.inc on line 1212 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/htdocs/hfcportal/hfcportal/includes/common.inc:2681) in /usr/local/apache/htdocs/hfcportal/hfcportal/includes/bootstrap.inc on line 1216
Home
HFC Portal
Error
Error message
Recoverable fatal error: Object of class EntityFieldQuery could not be converted to string in syslog_watchdog() (line 115 of /usr/local/apache/htdocs/hfcportal/hfcportal/modules/syslog/syslog.module).
The website encountered an unexpected error. Please try again later.
**********************

After disabled the LDAP server, the error disappeared. We use IBM Tivoli Directory Server and it is crucial to have a working LDAP connection with OpenPublic. Please advise.

Thank you!

Note: Tried the LDAP module with just Drupal(7.16) installed and NO errors after LDAP server was configured and connected.

CommentFileSizeAuthor
#4 ldap error.PNG23.7 KBtoralpatelin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

toralpatelin’s picture

I am also having the same issue but with Active Directory. Subscribing....

toralpatelin’s picture

Issue summary: View changes

add more details.

hfcdrupal’s picture

I need to pick a Drupal distribution for our Intranet soon, hope OpenPublic can reply this in a timely fashion.

johnbarclay’s picture

Some ways to narrow this down are:

  • debug what the $log_entry['variables'] are on line 115 of http://drupalcode.org/project/drupal.git/blob/refs/heads/7.x:/modules/sy...
  • turn off logging altogether and see if its simply the thrown error of trying to use and object in the text tokens; or if its a larger problem that needs to be resolved
  • backtrace from where the error is thrown and see what part of the code is populating the watchdog variable array with the object

My guess is this is an ldap module issue since there is a lot of watchdog token array work in the module. Also be sure to turn of detailed logging on the first config page if you are uing the ldap help module.

toralpatelin’s picture

FileSize
23.7 KB

Thanks John for the reply.

I got it resolved. I changed ldap User settings for orphaned user to "Do not check for orphaned Drupal accounts".
before I had set it to "Disable the account and keep its content".

Didn't read note below clearly said "This is a new feature as of 11/7/2012! It is highly recommended to use the "Perform no action, but email list of orphaned accounts" for some time before using the "Disable the account" options. :)

hefox’s picture

Title: OpenPublic not compatible with LDAP module » Make OpenPublic compatible with LDAP module
Category: bug » feature

(Unless a module claims to be compatible with another module, two contrib modules/profiles do not need to be compatible with each other -- consider how many thousands of modules there are. Don't think openpublic claims to support ldap out of box?) .

hefox’s picture

Issue summary: View changes

add more details

hefox’s picture

Category: Feature request » Support request
Priority: Critical » Normal
Issue summary: View changes
Status: Active » Fixed

Based on #4, closing this

Status: Fixed » Closed (fixed)

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