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, 2 months ago by tezalsec.
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
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?
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, 2 months ago by agarari.
-
This reply was modified 3 years, 2 months ago by agarari.
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, 2 months ago by swizzlevibes.
-
This reply was modified 3 years, 2 months ago by swizzlevibes.
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.