Title: Causing problems with wpDirAuth Plugin
Last modified: August 21, 2016

---

# Causing problems with wpDirAuth Plugin

 *  Resolved [holzhannes](https://wordpress.org/support/users/holzhannes/)
 * (@holzhannes)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/causing-problems-with-wpdirauth-plugin/)
 * If Image Source Control is active wpDirAuth is not working, it is showing this
   Error:
    **Error Note of wpDirAuth Version 1.7.6**
 * >  wpDirAuth is now running in safe mode as to not impair the other plugin’s 
   > operations.’
   > The wp_authenticate and wp_setcookie WordPress pluggable functions have already
   > been redefined, and wpDirAuth cannot provide directory authentication without
   > having access to these functions.
   > Please disable any WP plugins that deal with authentication in order to use
   > wpDirAuth. Unfortunately, we cannot provide you with more info as to which 
   > plugin is in conflict.
   > wpDirAuth 1.7.6
 * [http://wordpress.org/plugins/image-source-control-isc/](http://wordpress.org/plugins/image-source-control-isc/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/causing-problems-with-wpdirauth-plugin/#post-4109215)
 * thanks for reporting this error
    never heard of wpDirAuth before. The plugin 
   wasn’t updated for a year and is not very popular, so, to be honest, I am not
   sure if this is worth digging into or just a bit too specific. ISC doesn’t use
   wp_authenticate and wp_setcookie so I wouldn’t even know where to begin.
 * Maybe you can ask their support to give advise on how to fix it or just a concrete
   hint on where to start.
 * Thanks!
 *  [Josh Nankivel](https://wordpress.org/support/users/joshnankivel/)
 * (@joshnankivel)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/causing-problems-with-wpdirauth-plugin/#post-4109341)
 * FYI, same issue occurred with the latest version of WordPress Twitter Bootstrap
   CSS and wpDirAuth
 * [http://wordpress.org/support/topic/plugin-conflict-wpdirauth-and-wordpress-twitter-bootstrap-css?replies=1#post-4649377](http://wordpress.org/support/topic/plugin-conflict-wpdirauth-and-wordpress-twitter-bootstrap-css?replies=1#post-4649377)
 *  [Josh Nankivel](https://wordpress.org/support/users/joshnankivel/)
 * (@joshnankivel)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/causing-problems-with-wpdirauth-plugin/#post-4109342)
 * The use of pluggable.php is what’s doing it, but I can’t say if it’s a problem
   with wpDirAuth or the other plugins.
 * This is where the conflict is coming from with WordPress Twitter Boostrap CSS:
 *     ```
       // Handle any upgrades as necessary (only go near this if it's the admin area)
       		if ( is_admin() ) {
       			require_once( ABSPATH . 'wp-includes/pluggable.php' );
       			if ( current_user_can( 'manage_options' ) ) {
       				$this->updateHandler();
       			}
       		}
       ```
   
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/causing-problems-with-wpdirauth-plugin/#post-4109361)
 * Thanks Josh! Will have a look into that
    Thomas
 *  [Paul Gilzow](https://wordpress.org/support/users/gilzow/)
 * (@gilzow)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/causing-problems-with-wpdirauth-plugin/#post-4109380)
 * Correct, the issue is caused because the plugins (Image Source Control and Twitter
   Boostrap CSS) are including pluggable.php before wpDirAuth is loaded, there by
   defining wp_authenticate and wp_setcookie before wpDirAuth has the ability to.
   The functions in pluggable.php are specifically written to have the ability to
   be overridden by plugins. A plugin that loads this file hijacks the ability for
   any other plugins to override any of these functions.
 * The situation isn’t unique to wpDirAuth: any plugin that needs to overwrite any
   of the functions in pluggable.php that load after one of these plugins (e.g. 
   ISC) will not be compatible. The situation is just worse for wpDirAuth because
   plugins are loaded alphabetically and ‘w’ is at the end of the list.
 * I’m working on a method that will reduce some of the reliance on overwriting 
   wp_authenticate (even though the wordpress plugin structure was written specifically
   for authors to over ride the functions in pluggable.php), but these other methods
   are introducing other conflicts. I guess the other option is to do plugin-loading
   hacks to make sure wpDirAuth is loaded first, or maybe rename it to aWpDirAuth
   so it’s higher in the alphabet. o_O
 * **[@webzunft](https://wordpress.org/support/users/webzunft/)**, wpdirauth is 
   a niche plugin that allows wordpress to authenticate its users against LDAP/AD
   instead of local user accounts. It was actually updated last November so not 
   quite a year. Also, considering it is a niche plugin, it is actually quite popular
   with over 14K downloads. 😉
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/causing-problems-with-wpdirauth-plugin/#post-4109381)
 * thank you, gilzow
    I am going to have a second look on the issue. Thomas
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/causing-problems-with-wpdirauth-plugin/#post-4109387)
 * @wpdirauth-users please check with the newest version (1.3.4) if we really managed
   to fix it now

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Causing problems with wpDirAuth Plugin’ is closed to new replies.

 * ![](https://ps.w.org/image-source-control-isc/assets/icon.svg?rev=2694143)
 * [Image Source Control Lite – Show Image Credits and Captions](https://wordpress.org/plugins/image-source-control-isc/)
 * [Support Threads](https://wordpress.org/support/plugin/image-source-control-isc/)
 * [Active Topics](https://wordpress.org/support/plugin/image-source-control-isc/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-source-control-isc/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-source-control-isc/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/causing-problems-with-wpdirauth-plugin/#post-4109387)
 * Status: resolved