• I’m getting this warning on the top of all pages in the WP Admin

    Warning: printf() [function.printf]: Too few arguments in /home3/turbofan/public_html/farcry4gamer.com/wp-content/plugins/myvideoblog/mvb_main.php on line 217

    I’ve been in my cpanel and have look at line 217 , but i don’t even know what I’m looking for to fix this warning ….does anyone have any suggestions

    I am using the Gameleon Theme and the plugin warning is referring to is MVB (My Video Blog plugin)

Viewing 3 replies - 1 through 3 (of 3 total)
  • fh

    (@felipestyle77)

    Don’t worry, I use the plugin and I fixed this error few minutes ago.

    The owner of PHP MyVideoBlog has abandoned the plugin and we have no support since then. Their website is also offline, maybe this is the cause of that issue.

    First make a backup of the file mvb_main.php and delete these lines:

    $mvb_latest_version = curl_exec($ch);
    curl_close($ch);
    if($mvb_showversion >= $mvb_latest_version) {
    delete_user_meta($user_id, ‘mvb_check_notice_readed’);
    } else {
    add_action(‘admin_notices’, ‘mvb_notice’);
    }
    }

    And:

    function mvb_notice() {
    global $current_user, $mvb_latest_version;
    $user_id = $current_user->ID;
    $server_url = $_SERVER[‘REQUEST_URI’];
    if (strstr($server_url, “?”)) {
    $mvb_notice_url = strstr($server_url, “?”);
    $mvb_notice_url = str_replace(“?”, “&”, $mvb_notice_url);
    }
    $mvb_noteread = get_user_meta($user_id, ‘mvb_check_notice_readed’, true);
    if ((!$mvb_noteread) AND (current_user_can( ‘install_plugins’ ))) {
    echo ‘<div class=”updated”><p>’;
    printf(__(‘<font color=”green”><b>MVB Plugin</b></font> – A new version (‘.$mvb_latest_version.’) is available! Click here to download. | Hide Notice‘), ‘?mvb_close_notice=0’.$mvb_notice_url.”);
    echo “</p></div>”;
    }
    else if (($mvb_noteread < $mvb_latest_version) AND (current_user_can( ‘install_plugins’ ))) {
    echo ‘<div class=”updated”><p>’;
    printf(__(‘<font color=”green”><b>MVB Plugin</b></font> – A new version (‘.$mvb_latest_version.’) is available! Click here to download. | Hide Notice‘), ‘?mvb_close_notice=0’.$mvb_notice_url.”);
    echo “</p></div>”;
    }
    }

    Hope that helps you.

    Mitch

    (@n2rga)

    Hi I have the same problem and did what you said but I get this error
    Parse error: syntax error, unexpected end of file in /home/xxxxxx/public_html/wp-content/plugins/myvideoblog/mvb_main.php on line 323
    thats the end of the file
    ?>
    Please help

    His site was back up and now its gone again a few months later and this error is back its trying to call home. I tried the fix you proposed before and get the above error.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘getting this Warning: printf() [function.printf] while using MVB plugin’ is closed to new replies.