Error Message: call_user_func() expects parameter 1 to be a valid callb

Support MB Group Error Message: call_user_func() expects parameter 1 to be a valid callb

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #667
    SaschaSascha
    Participant

    Hello,

    I just installed and activated the metabox plugin and the extension. It works well - great job. The problem is, if i don't active the Extension "MB Group" this error messages appears:

    Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in C:\xampp\htdocs\wordpress\wp-content\plugins\meta-box\inc\meta-box.php on line 402
    
    Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in C:\xampp\htdocs\wordpress\wp-content\plugins\meta-box\inc\meta-box.php on line 80

    How can I prevent that if a user doesn't activate the plugin?

    #668
    SaschaSascha
    Participant

    With this code it works:

    if ( class_exists( 'RWMB_Group' ) ) {
    // Register Metabox with type "group"
    }
    #672
    Anh TranAnh Tran
    Keymaster

    Yes, that's right. When you want to register fields with type "group", you need to activate MB Group extension, otherwise it will show the error like you saw.

    #701
    SaschaSascha
    Participant

    Thank you for the new version. Now the error no longer appears.

    Thanks again for the great plugin!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Error Message: call_user_func() expects parameter 1 to be a valid callb’ is closed to new replies.