URGENT! error

Hy! i'm reciving these errors when i use multi db:

Warning: Invalid argument supplied for foreach() in /home/***user removed for privacy***/public_html/blog-in.ws/wp-content/db.php on line 770

Warning: Invalid argument supplied for foreach() in /home/***user removed for privacy***/public_html/blog-in.ws/wp-content/db.php on line 750

Warning: Cannot modify header information - headers already sent by (output started at /home/***user removed for privacy***/public_html/blog-in.ws/wp-content/db.php:770) in /home/***user removed for privacy***/public_html/blog-in.ws/wp-content/mu-plugins/wp-super-cache/wp-cache-phase2.php on line 38

what to do?

    webmastaz

    i'm using 256
    add_db_server('000', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***000', 'yourwebl_bidatus', '***');
    add_db_server('001', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***001', 'yourwebl_bidatus', '***');
    add_db_server('002', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***002', 'yourwebl_bidatus', '***');
    add_db_server('003', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***003', 'yourwebl_bidatus', '***');
    add_db_server('004', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***004', 'yourwebl_bidatus', '***');
    add_db_server('005', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***005', 'yourwebl_bidatus', '***');
    add_db_server('006', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***006', 'yourwebl_bidatus', '***');
    add_db_server('007', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***007', 'yourwebl_bidatus', '***');
    add_db_server('008', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***008', 'yourwebl_bidatus', '***');
    add_db_server('009', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***009', 'yourwebl_bidatus', '***');
    add_db_server('00a', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***00a', 'yourwebl_bidatus', '***');

    -> * reprezents masked items

    webmastaz

    sorry, the full one:

    <?php
    // Plugin Name: Multi-DB
    // Plugin URI: https://premium.wpmudev.org/project/Multiple-Databases
    // Author: Andrew Billits (Incsub)
    // Version: 2.7.0
    //------------------------------------------------------------------------//
    //---DB Scaling-----------------------------------------------------------//
    //------------------------------------------------------------------------//
    // 16,256,4096
    define ('DB_SCALING', '256');
    //------------------------------------------------------------------------//
    //---DC IPs---------------------------------------------------------------//
    //------------------------------------------------------------------------//
    // Usage: add_dc_ip(IP, DC)
    // EX: add_dc_ip('123.123.123.', 'dc1');
    add_dc_ip('174.132.189.190', 'dc1');
    //------------------------------------------------------------------------//
    //---Global Tables--------------------------------------------------------//
    //------------------------------------------------------------------------//
    // Do not include default global tables
    // Leave off base prefix (eg: wp_)
    //
    // Usage: add_global_table(TABLE_NAME)
    // EX: add_global_table('something');
    add_global_table(’blogs’);
    add_global_table(’blogs_cets_topics’);
    add_global_table(’blogs_cets_topics_relationships’);
    add_global_table(’blog_activity’);
    add_global_table(’blog_types’);
    add_global_table(’blog_versions’);
    add_global_table(’comment_activity’);
    add_global_table(’mass_mailer’);
    add_global_table(’post_activity’);
    add_global_table(’registration_log’);
    add_global_table(’signups’);
    add_global_table(’wsignup_blog_types’);
    add_global_table(’site’);
    add_global_table(’sitecategories’);
    add_global_table(’sitemeta’);
    add_global_table(’spam’);
    add_global_table(’support_faq’);
    add_global_table(’support_faq_cats’);
    add_global_table(’support_tickets’);
    add_global_table(’support_tickets_cats’);
    add_global_table(’support_tickets_messages’);
    add_global_table(’wusermeta’);
    add_global_table(’users’);
    add_global_table(’user_activity’);
    //------------------------------------------------------------------------//
    //---DB Servers-----------------------------------------------------------//
    //------------------------------------------------------------------------//
    // Database servers grouped by dataset.
    // R can be 0 (no reads) or a positive integer indicating the order
    // in which to attempt communication (all locals, then all remotes)
    //
    // Usage: add_db_server(DS, DC, READ, WRITE, HOST, LAN_HOST, NAME, USER, PASS)
    // EX: add_db_server('global', 'dc1', 1, 1,'global.mysql.example.com:3509','global.mysql.example.lan:3509', 'global-db', 'globaluser', 'globalpassword');
    //
    // Note: you can also place this section in a file called db-list.php in wp-content
    // EX: add_db_server('global', 'dc1', 1, 1,'global.mysql.example.com:3509','global.mysql.example.lan:3509', 'global-db', 'globaluser', 'globalpassword');

    add_db_server('global', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***global', 'yourwebl_***atus', '***');

    add_db_server('000', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***000', 'yourwebl_***atus', '***');
    add_db_server('001', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***001', 'yourwebl_***atus', '***');
    add_db_server('002', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***002', 'yourwebl_***atus', '***');
    add_db_server('003', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***003', 'yourwebl_***atus', '***');
    add_db_server('004', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***004', 'yourwebl_***atus', '***');
    add_db_server('005', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***005', 'yourwebl_***atus', '***');
    add_db_server('006', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***006', 'yourwebl_***atus', '***');
    add_db_server('007', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***007', 'yourwebl_***atus', '***');
    add_db_server('008', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***008', 'yourwebl_***atus', '***');
    add_db_server('009', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***009', 'yourwebl_***atus', '***');
    add_db_server('00a', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***00a', 'yourwebl_***atus', '***');
    add_db_server('00b', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***00b', 'yourwebl_***atus', '***');
    add_db_server('00c', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***00c', 'yourwebl_***atus', '***');
    add_db_server('00d', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***00d', 'yourwebl_***atus', '***');
    add_db_server('00e', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***00e', 'yourwebl_***atus', '***');
    add_db_server('00f', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***00f', 'yourwebl_***atus', '***');
    add_db_server('010', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***010', 'yourwebl_***atus', '***');
    add_db_server('011', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***011', 'yourwebl_***atus', '***');
    add_db_server('012', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***012', 'yourwebl_***atus', '***');
    add_db_server('013', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***013', 'yourwebl_***atus', '***');
    add_db_server('014', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***014', 'yourwebl_***atus', '***');
    add_db_server('015', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***015', 'yourwebl_***atus', '***');
    add_db_server('016', 'dc1', 1, 1,'localhost','localhost', 'yourwebl_***016', 'yourwebl_***atus', '***');

    Andrew

    Hiya,

    Replace this:
    add_dc_ip('174.132.189.190', 'dc1');

    With this:
    add_dc_ip('174.132.189.', 'dc1');

    Replace this:
    add_global_table(’wsignup_blog_types’);

    With this:
    add_global_table(’signup_blog_types’);

    Remove these lines:
    add_global_table(’blogs’);
    add_global_table(’blog_versions’);
    add_global_table(’signups’);
    add_global_table(’site’);
    add_global_table(’sitecategories’);
    add_global_table(’sitemeta’);
    add_global_table(’wusermeta’);
    add_global_table(’users’);

    Also make sure your blog tables are in the 256 databases and the global tables are in your global db.

    Thanks,
    Andrew