Title: [Plugin: MXC LDAP] Fixed first visit error message
Last modified: August 20, 2016

---

# [Plugin: MXC LDAP] Fixed first visit error message

 *  [KernelPaniK](https://wordpress.org/support/users/kernelpanik/)
 * (@kernelpanik)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-mxc-ldap-fixed-first-visit-error-message/)
 * When I first enabled this plugin everything worked with one exception. When I
   clicked on “Log In” from my welcome page it took me to the wp-login screen and
   I was give my new English error “Please provide a username”. I should not get
   an error since I have not yet clicked “Log In” on this page. After looking at
   the mxc-ldap.php file I figured out the issue. My fix was to change the line:
   
   if ( !function_exists(‘wp_authenticate’) ) :
 * to look like this:
    if ( !function_exists(‘wp_authenticate’) && isset($_POST[‘
   wp-submit’]) ) :
 * Everything works like it should.
 * Enjoy!!!!!!!!
 * [http://wordpress.org/extend/plugins/mxc-ldap/](http://wordpress.org/extend/plugins/mxc-ldap/)

The topic ‘[Plugin: MXC LDAP] Fixed first visit error message’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mxc-ldap.svg)
 * [MXC LDAP](https://wordpress.org/plugins/mxc-ldap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mxc-ldap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mxc-ldap/)
 * [Active Topics](https://wordpress.org/support/plugin/mxc-ldap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mxc-ldap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mxc-ldap/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [KernelPaniK](https://wordpress.org/support/users/kernelpanik/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-mxc-ldap-fixed-first-visit-error-message/)
 * Status: not resolved