Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • After doing some testing, I believe wp-hive works fine with the modifications above. I had no problem adding new sites.

    Please let me know if you find a problem. I’ll try to help.

    I know what’s wrong and what needs to be done to get it working with WP 3.1. It’s not a hard fix.

    But it’s a long way from posting a patch here and distributing a fully tested plugin and maintaining it for the future.

    I’m thinking about it.

    But in the mean time, next week I will post a more complete fix for WP 3.1 that will allow new sites to be added.

    J

    I fixed this problem with wp-hive and now have it working with WP 3.1. I modified two wp-hive files.
    db.php (in the wp-content folder)

    if ( ! defined('ABSPATH') ) die("Hmmm...");
    //require_once( ABSPATH . WPINC . '/wp-db.php' );
    if ( ! defined( 'WP_PLUGIN_DIR' ) )
        define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
    global $wpdb;
    if ( !isset( $wpdb ) )
        $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
    if ( file_exists(WP_PLUGIN_DIR . '/wp-hive/do-prefix.php'))
        require_once( WP_PLUGIN_DIR . '/wp-hive/do-prefix.php');

    do-prefix.php (in the wp-hive plugin folder)

    Commented out two function calls in the last few lines:

    //wphive_force_plugin_active();
    
    // Check if this is a fresh install and fix Siteurl for proper redirect
    //wphive_siteurl_for_install($wphive->current_site->path, $table_prefix, $orig_hostname, $wphive->current_site->host);

    I realize more changes are needed to add and initialize new sites, but at least this works with existing installations.

    It may not be “legal” but I fixed this for the time being by placing a “@” in front of the code on line 1459 of RSS.PHP.

    It was:
    $rss->header[$field] = $val;

    I made it:
    @$rss->header[$field] = $val;

    Now it works fine.

    I know, there is still an error, and a problem, but my blog displays OK and that’s what I needed for now.

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