WordPress.org

Ready to get started?Download WordPress

Forums

Custom Login
[resolved] hex2rgb declaration conflict (3 posts)

  1. baronne
    Member
    Posted 11 months ago #

    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

    http://wordpress.org/plugins/custom-login/

  2. Austin Passy
    Member
    Plugin Author

    Posted 11 months ago #

    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..

  3. baronne
    Member
    Posted 11 months ago #

    perfect. thanks!

Reply

You must log in to post.

About this Plugin

About this Topic