Some users still getting Fatal error: Class 'RWMB_Core' not found

Support General Some users still getting Fatal error: Class 'RWMB_Core' not found

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2675
    carassiuscarassius
    Participant

    I have Version: 4.8.5 running within my plugin

    This is how I am calling it

    // Include MetaBoxes
    function bl_add_meta() {
        
        if( !class_exists( 'RW_Meta_Box' ) ) {
            include( plugin_dir_path( __FILE__ ) . '/lib/resources/meta-box/meta-box.php');
        }
        
    }
    add_action( 'init', 'bl_add_meta' );

    Yet some people are still getting errors?

    Any thoughts?

    #2676
    Anh TranAnh Tran
    Keymaster

    Can you just try including the plugin's file directly without putting it inside the 'init' hook?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Some users still getting Fatal error: Class 'RWMB_Core' not found’ is closed to new replies.