• Resolved Andy Morton

    (@amorton)


    We recently upgraded to WordPress 6.2 (WPMU setup) and adding directory authenticated users was working fine in the previous version, but now when I use that method to add an ldap user I get a critical error message. However the user is still added but they do not receive an email. Since this plugin hasn’t been updated in so long do I just need to find another solution? I should add we moved from RHEL linux 7 to 8 and moved to PHP 8. Any ideas will be much appreciated!

    • This topic was modified 1 year, 3 months ago by Andy Morton.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Paul Gilzow

    (@gilzow)

    Is there anything in your logs that may indicate the cause of the error?

    And everything else is working without errors except adding a new LDAP user, correct?

    Plugin Author Paul Gilzow

    (@gilzow)

    oh, i think i found it.

    line 1825, change
    return sprintf($strMsg,$strUserID,$strSSOID,implode($arySiteMsgParts,', '),$strExtraMsg);
    to
    return sprintf($strMsg,$strUserID,$strSSOID, implode(', ', $arySiteMsgParts),$strExtraMsg);

    and then line 2190, change
    add_action('lostpassword_form',create_function('','echo get_site_option("dirAuthChangePassMsg");'));
    to
    add_action('lostpassword_form',function(){echo get_site_option("dirAuthChangePassMsg");});

    And see if that fixes it.

    Thread Starter Andy Morton

    (@amorton)

    Thanks, changed both lines and functioning normally again! Very much appreciated as we really rely on the plugin for a large pool of users!

    Plugin Author Paul Gilzow

    (@gilzow)

    Glad that worked. I need to try and remember how SVN works so I can go update it with these changes.!

    Plugin Author Paul Gilzow

    (@gilzow)

    Just a head’s up that I released v1.10.6 today which does _not_ address your issue (ie, if you update you’ll need to re-add the above lines), but a different one. Working up yet another release to address the PHP8.0 version but want to do so in such a way that those on PHP7.4 doesn’t break (since WordPress still supports 7.4).

    Plugin Author Paul Gilzow

    (@gilzow)

    I decided to go ahead and release 1.10.7 today as well which _does_ include the fixes for your issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress 6.2’ is closed to new replies.