Title: Fatal error: Cannot redeclare DNH function
Last modified: February 11, 2021

---

# Fatal error: Cannot redeclare DNH function

 *  Resolved [tezalsec](https://wordpress.org/support/users/tezalsec/)
 * (@tezalsec)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/)
 * Hi, FYI, just posted this here:
 * [https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function/#new-topic-0](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function/#new-topic-0)
 * Function names are conflicting in this and the other plugin. Maybe put it in 
   a class?
 * Cheers.
    -  This topic was modified 5 years, 3 months ago by [tezalsec](https://wordpress.org/support/users/tezalsec/).

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

 *  [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14040107)
 * As developer of another plugin I confirm this plugin create conflicts since more
   than a month.
    This plugin uses a fork of a library that is not updated since
   2018, instead the original one it was updated a month ago.
 * [https://wordpress.org/support/topic/fatal-error-plugin-conflict-3/](https://wordpress.org/support/topic/fatal-error-plugin-conflict-3/)
   
   [https://wordpress.org/support/topic/fatal-error-on-a-fresh-install-2-0-8/](https://wordpress.org/support/topic/fatal-error-on-a-fresh-install-2-0-8/)
 *  Thread Starter [tezalsec](https://wordpress.org/support/users/tezalsec/)
 * (@tezalsec)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14040155)
 * Daniele, Thanks for confirming.
 * [@nicolaskulka](https://wordpress.org/support/users/nicolaskulka/), please fix
   this. Thanks.
 *  Thread Starter [tezalsec](https://wordpress.org/support/users/tezalsec/)
 * (@tezalsec)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14045750)
 * [@nicolaskulka](https://wordpress.org/support/users/nicolaskulka/) , did I see
   correctly at github that you are working on this?
 * Do you have a workaround or just a temporary clean disabling of notice dismissal?
   Other plugin I need working can not function while this issue remains.
 * Thanks.
 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14053125)
 * new version 1.8.1
 *  Thread Starter [tezalsec](https://wordpress.org/support/users/tezalsec/)
 * (@tezalsec)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14053623)
 * I still get the same error, fatal error for redeclaring function. Shouldnt the
   DNH function be inside a class?
 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14053631)
 * It is a library present on many other plugins and there is no problem.
 * Can you copy me the fatal error?
 *  Thread Starter [tezalsec](https://wordpress.org/support/users/tezalsec/)
 * (@tezalsec)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14053659)
 * Fatal error: Cannot redeclare DNH() (previously declared in wp-content/plugins/
   wps-hide-login/vendor/nicolaskulka/wp-dismissible-notices-handler/includes/helper-
   functions.php:35) in wp-content/plugins/advanced-responsive-video-embedder/php/
   Admin/vendor/julien731/wp-dismissible-notices-handler/includes/helper-functions.
   php on line 34
 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14053677)
 * go to support advanced-responsive-video-embedder plugin now
 *  [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14058065)
 * Hi NicolasKulka,
    on my analysis the issue is in your plugin that use a fork 
   of that library that is not updated since a few years.
 * The issue is that the one of Glossary is the version updated from few months 
   ago and has a code to avoid the error.
    So this is what happening:
 * Now Glossary is executed before that plugin and the code of the library that 
   check if function exists doesn’t find anything.
    Later the wps-hide-plugin is
   executed with the library from 2018 and from a fork that doesn’t have this check
   so load the function also if it is already defined. If that plugin not use the
   fork and the original one, the function will not added again because there is
   a check.
 * If you add that check in your fork, rename the library’s fork stuff or move to
   the original library all the plugins that use the original library version, everything
   will be fine.
 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14058097)
 * The fork has been updated with and the problem remains with the Glossary plugin
 *  [nicomahe](https://wordpress.org/support/users/nicomahe/)
 * (@nicomahe)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14089241)
 * Hi [@nicolaskulka](https://wordpress.org/support/users/nicolaskulka/),
    I have
   the same problem. Impossible to reach the control panel and the site is down.
   here is the message i Got from WP:
 * Une erreur de type E_COMPILE_ERROR a été causée dans la ligne 36 du fichier /
   home/nicomahebf/www/wp-content/plugins/wps-hide-login/vendor/nicolaskulka/wp-
   dismissible-notices-handler/includes/helper-functions.php. Message d’erreur :
   Cannot redeclare DNH() (previously declared in /home/nicomahebf/www/wp-content/
   plugins/wps-bidouille/vendor/NicolasKulka/wp-dismissible-notices-handler/handler.
   php:629)
 * I already read the upper posts but I don’t know how to fix that… i saw you asked
   to “go to support advanced-responsive-video-embedder plugin now” but i don’t 
   understand what and where (do you hve a link?) and I don’t know how to access
   the admin panel. I just can get into the folder thru Filezilla; Please, help 
   me, I’m totally lost….
    Thank you in advance, Nico
 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14089409)
 * update plugin wps-hide-login and wps-bidouille plz

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

The topic ‘Fatal error: Cannot redeclare DNH function’ is closed to new replies.

 * ![](https://ps.w.org/wps-hide-login/assets/icon-256x256.png?rev=1820667)
 * [WPS Hide Login](https://wordpress.org/plugins/wps-hide-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wps-hide-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wps-hide-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wps-hide-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wps-hide-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wps-hide-login/reviews/)

 * 12 replies
 * 4 participants
 * Last reply from: [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-dnh-function-2/#post-14089409)
 * Status: resolved