WordPress.org

Forums

Simple LDAP Login
fatal error when activate plugins in WP 3.8.1 (10 posts)

  1. htc123
    Member
    Posted 1 year ago #

    Hi,

    I am new to simple-ldap-login plugin. When I activate the plugin in WordPress 3.8.1, I got a fatal error.
    Uncaught exception 'adLDAPException' with message 'No LDAP support for PHP. See http://www.php.net/ldap' in /var/www/html/wp-content/plugins/simple-ldap-login/includes/adLDAP.php:338 …'

    Any ideas please?

    Thanks in advance

    https://wordpress.org/plugins/simple-ldap-login/

  2. ITastc
    Member
    Posted 1 year ago #

    i have had a similar issue,
    when activated the plug in, my site seemed to crash and wouldn't let me open any page, went through the fix that was mentioned on the forums here,
    (which was rename the simple-ldap-login folder on the FTP)

    I renamed the file back to "simple-ldap-login" and now once trying to re-activate it i get a huge "fatal error";

    Fatal error: Uncaught exception 'adLDAPException' with message 'No LDAP support for PHP. See: http://www.php.net/ldap' in /var/www/html/intranet/wp-content/plugins/simple-ldap-login/includes/adLDAP.php:338 Stack trace: #0 /var/www/html/intranet/wp-content/plugins/simple-ldap-login/Simple-LDAP-Login.php(31): adLDAP->__construct(Array) #1 /var/www/html/intranet/wp-content/plugins/simple-ldap-login/Simple-LDAP-Login.php(49): SimpleLDAPLogin->__construct() #2 /var/www/html/intranet/wp-content/plugins/simple-ldap-login/Simple-LDAP-Login.php(389): SimpleLDAPLogin::getInstance() #3 /var/www/html/intranet/wp-admin/plugins.php(147): include('/var/www/html/i...') #4 /var/www/html/intranet/wp-admin/plugins.php(149): plugin_sandbox_scrape('simple-ldap-log...') #5 {main} thrown in /var/www/html/intranet/wp-content/plugins/simple-ldap-login/includes/adLDAP.php on line 338

  3. ITastc
    Member
    Posted 1 year ago #

    i have had a similar issue,
    when activated the plug in, my site seemed to crash and wouldn't let me open any page, went through the fix that was mentioned on the forums here,
    (which was rename the simple-ldap-login folder on the FTP)

    I renamed the file back to "simple-ldap-login" and now once trying to re-activate it i get a huge "fatal error";

    Fatal error: Uncaught exception 'adLDAPException' with message 'No LDAP support for PHP. See: http://www.php.net/ldap' in /var/www/html/intranet/wp-content/plugins/simple-ldap-login/includes/adLDAP.php:338 Stack trace: #0 /var/www/html/intranet/wp-content/plugins/simple-ldap-login/Simple-LDAP-Login.php(31): adLDAP->__construct(Array) #1 /var/www/html/intranet/wp-content/plugins/simple-ldap-login/Simple-LDAP-Login.php(49): SimpleLDAPLogin->__construct() #2 /var/www/html/intranet/wp-content/plugins/simple-ldap-login/Simple-LDAP-Login.php(389): SimpleLDAPLogin::getInstance() #3 /var/www/html/intranet/wp-admin/plugins.php(147): include('/var/www/html/i...') #4 /var/www/html/intranet/wp-admin/plugins.php(149): plugin_sandbox_scrape('simple-ldap-log...') #5 {main} thrown in /var/www/html/intranet/wp-content/plugins/simple-ldap-login/includes/adLDAP.php on line 338

  4. mrmmd4988
    Member
    Posted 1 year ago #

    This worked for me and found it hidden in the PHP manual. Make sure you put the location of libeay32.dll and ssleay32.dll in your windows path.

    This is assuming your running on a windows machine: You can set your path using command line. Type "Path" and press enter to see current path then Set Path=xxxxxxxxxxx Copying exacly as show then at end adding the path to the files above.

    This needs to be done on the server running your PHP.

    Here is the easier way: Click start then Run or windows button + R to open a Run window. Type "systempropertiesadvanced" (don't type the quotes)
    Now click on "Environment Variables"
    In the bottom half under "System Variables" find the path entry.
    Edit this line by adding a semi-colon to the end of the line then the path to the files.
    Click Ok, Ok, Ok. Now try it again and it should work.

    The location of these files for me was d:\xampp\php and remember the semi-colon to separate your entries.

  5. ITastc
    Member
    Posted 1 year ago #

    unfortunately we are using a linux system,
    not windows

  6. ITastc
    Member
    Posted 1 year ago #

    ....still having issue,
    require support in regards to this addon please.

  7. Martin Hynek
    Member
    Posted 1 year ago #

    Do you have installed php ldap extension? From this msg

    Fatal error: Uncaught exception 'adLDAPException' with message 'No LDAP support for PHP

    it seems you don't maybe..

  8. ITastc
    Member
    Posted 1 year ago #

    im not sure... im not even sure how adLDAP works?
    are you able to point me in the right direction on how i need to get that working?

  9. Martin Hynek
    Member
    Posted 1 year ago #

    What is LDAP?

    To use LDAP you need its extensions (for example php5-ldap, mod_ldap for apache, etc)...

    Its possible that not all shared webhostings use that...

    Maybe this will be useful...

  10. Philip
    Member
    Posted 11 months ago #

    Same issue on a WordPress server.
    Running WordPress 4.0 on openSUSE 13.1.

    Without php5-ldap, the admin-webpage is blank. After installing php5-ldap, the problem is solved.

  11. ITastc
    Member
    Posted 11 months ago #

    did actually work this out and the solution was exactly that my php needed updating.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple LDAP Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic