WordPress.org

Support

can't activate

Viewing 7 replies - 1 through 7 (of 7 total)
  • I received the same error! Any fix?

    same error for me.

    any idea`s / fixes?

    thx

    Same here, shame.

    put an if statement in front and after the class definition.

    if ( !class_exists( 'Mobile_Detect' ) ) {
    
        class Mobile_Detect {
            ...original class code....
        }
    
    }

    I’m the author of the “Mobile CSS” plugin here:
    http://wordpress.org/plugins/mobile-css/

    It uses the same class but correctly checks to see if it’s already defined.

    Any progress here?

    Jon B

    @jbinjpn

    Shame – seems like a really good plugin – I tried this, but to no avail. You may need to be a bit clearer as to where the closing brackets go (or better still, post the code in it’s entirety if possible

    Thanks

    @jbinjpn

    Put
    if ( !class_exists( 'Mobile_Detect' ) ) {

    on the line right before

    class Mobile_Detect {

    and put

    }

    right after

    }

    that is the closing bracket for the Mobile_Detect class.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘can't activate’ is closed to new replies.
Skip to toolbar