Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Receiving this error when trying to access /admin/config if I have an LDAP server configured but my server does not have the PHP LDAP extension enabled:
Fatal error: Call to undefined function ldap_connect() in /vagrant/docroot/sites/all/modules/contrib/ldap/ldap_servers/LdapServer.class.php on line 274
We need to guard against this; shouldn't throw a fatal just due to the requirements check.
Comment | File | Size | Author |
---|---|---|---|
#2 | ldap-fatal_error_if_ldap_ext_missing-2892479-2.patch | 655 bytes | azinck |
Comments
Comment #2
azinck CreditAttribution: azinck commentedComment #3
grahlHi
From my perspective there is a requirements check during installation for the extension and a runtime check as well. I worry that if we have some sites not failing hard but running in such an inconsistent state that we might receive additional issues with subtle bugs pertaining to it.
If this is something other people are unhappy with and report back that the patch works well, I'd consider adding it.
Comment #6
grahlThought about this some more and since it's more convenient, I'm adding it.