• Resolved klartext-ne

    (@klartext-ne)


    Das Plugin konnte aufgrund eines fatalen Fehlers nicht reaktiviert werden.

    Fatal error: Cannot redeclare DNH() (previously declared in /var/www/vhosts/ooo/httpdocs/wp-content/plugins/wps-limit-login/vendor/NicolasKulka/wp-dismissible-notices-handler/handler.php:629) in /var/www/vhosts/ooo/httpdocs/wp-content/plugins/wps-hide-login/vendor/nicolaskulka/wp-dismissible-notices-handler/includes/helper-functions.php on line 34

    • This topic was modified 3 years, 9 months ago by klartext-ne.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author NicolasKulka

    (@nicolaskulka)

    Update wps-limit-login plugin now

    problem remains as long as DNH function is not within a class.

    edit: sorry, was looking in old version. Yet, issue remains.

    • This reply was modified 3 years, 9 months ago by tezalsec.
    Plugin Author NicolasKulka

    (@nicolaskulka)

    It is a library present on many other plugins and there is no problem.

    Can you copy me the fatal error?

    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

    (@nicolaskulka)

    go to support advanced-responsive-video-embedder plugin now

    Is this not a scope issue, where you and the other plugin developer both need to put the DNH function inside a class so they don’t get redeclared anymore?

    Plugin Author NicolasKulka

    (@nicolaskulka)

    No, I have a function that allows you to check if the function exists, if it already exists, I do not go to the rest of the file,
    but the plugin that I gave you must not do it surely.

    El plugin no ha podido activarse porque ha provocado un error fatal.

    He reinstalado el plugin y funciona.

    • This reply was modified 3 years, 9 months ago by agarari.
    • This reply was modified 3 years, 9 months ago by agarari.
    Plugin Author NicolasKulka

    (@nicolaskulka)

    Update wps-limit-login before

    Es lo que he hecho. Gracias

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

    Fatal error: Cannot redeclare DNH() (previously declared in /home/public_html/wp-content/plugins/wps-hide-login/vendor/nicolaskulka/wp-dismissible-notices-handler/includes/helper-functions.php:35) in /home/public_html/wp-content/plugins/advanced-responsive-video-embedder/libs/julien731/wp-dismissible-notices-handler/includes/helper-functions.php on line 34

    Hello, I think there is some conflict between your plugin and WPS Hide Login. when I enable the ops login plugin I get the above error from your plugin

    Thanks

    • This reply was modified 3 years, 9 months ago by swizzlevibes.
    • This reply was modified 3 years, 9 months ago by swizzlevibes.
    Plugin Author NicolasKulka

    (@nicolaskulka)

    you are here on WPS Hide Login support

    @nicolaskulka , I checked both your code in helper-functions.php, and my assumption is that you are both still at fault.

    The DNH function should be either in a class or have a unique function name, like “WPS_hide_login_DNH”. The check for double occurrence of functions happens by php itself before processing logic, so an if then statement at the start of the include file does not sufficiently solve this.

    Please consider renaming the DNH function to a unique variant.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Fatal error’ is closed to new replies.