• Resolved baronne

    (@baronne)


    Hi, I have a theme I am using that appears to have a conflict with this plugin (which I really like by the way – thank you!).

    When I try enable the theme with this plugin, I get the following error

    Fatal error: Cannot redeclare hex2rgb() (previously declared…………

    so it seems to me the two have the same declaration – any thoughts on how I can get around this?

    cheers,
    baronne

    https://www.ads-software.com/plugins/custom-login/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Austin

    (@austyfrosty)

    In the theme add the function_exists wrapper around the function like so:

    if ( !function_exists( 'hex2rgb' ) ) {
    function hex2rgb() {
    ..
    }
    };

    It’s already wrapped like so in my plugin to avoid conflicts..

    Thread Starter baronne

    (@baronne)

    perfect. thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘hex2rgb declaration conflict’ is closed to new replies.