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

    (@benaceur)

    open this file:
    C:\xampp\htdocs\aks\wp-content\plugins\notification-msg-interface-benaceur\msg-interface-benaceur.php

    and replace this code:

    // ADMIN NOTICES
        $plugin_data = get_plugin_data( __FILE__ );
    
        if ( $plugin_data['Version'] == '2.1.9' && $_GET['page'] == 'N-message-Ben' ) {
        include ('temp/notices-mib.php');
        }
    // ADMIN NOTICES

    by:

    // ADMIN NOTICES
        $plugin_data_mib = get_plugin_data( __FILE__ );
    
        if ( $plugin_data_mib['Version'] == '2.1.9' && $_GET['page'] == 'N-message-Ben' ) {
        include ('temp/notices-mib.php');
        }
    // ADMIN NOTICES
    Plugin Author Benaceur

    (@benaceur)

    Excuse me, but replace it by this code:

    // ADMIN NOTICES
        add_action( 'admin_init', 'mib_admin_notices' );
        function mib_admin_notices() {
    	if ( function_exists( 'get_plugin_data' ) ) {
        $plugin_data_mib = get_plugin_data( __FILE__ );
    
        if ( $plugin_data_mib['Version'] == '2.1.9' && $_GET['page'] == 'N-message-Ben' ) {
        include ('temp/notices-mib.php');
        }
    	}
    	}
    // ADMIN NOTICES

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal Erorr after activating the plugin’ is closed to new replies.