WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] LDAP plugin fatal error in 2.2.1 (4 posts)

  1. alistairskye
    Member
    Posted 6 years ago #

    I've just upgraded from 2.0 to 2.2.1 and my LDAP plugin has stopped working:

    "Plugin could not be activated because it triggered a fatal error"

    The plugin overrides wp_login and wp_setcookie.

    Is there any way to find out why it won't start?

  2. alistairskye
    Member
    Posted 6 years ago #

    Found the problem. In the plugin, I had to surround the functions with:

    if ( !function_exists('wp_login') ) :

    ...

    endif;

    and

    if ( !function_exists('wp_setcookie') ) :

    ...

    endif;

    you don't need these function_exists checks in 2.0 in your plugin but you certainly need them in 2.2.1

  3. htdefiant
    Member
    Posted 6 years ago #

    Hey,
    Can someone provide me with a sample file with the fix? I'm a little new to PHP. Thanks

  4. Stephane Daury (stephdau)
    Member
    Posted 6 years ago #

    After getting in touch in and getting "approval" from its author, I'm attempting to fork off and revive wpLDAP and would like the code to be peer reviewed by other developers before I release my version.

    Please see http://wordpress.org/support/topic/129814

    Thanks for any help I can get. :)

Topic Closed

This topic has been closed to new replies.

About this Topic