The MU forums have moved to WordPress.org

some little fixes (7 posts)

  1. NetAndif
    Inactive
    Posted 17 years ago #

    During the installation process there are some errors, as we all know. Althoug they are mostly 'cosmetic' ones. But that can be confusing.

    wp-inst/index.php
    line 131:
    Warning: Wrong parameter count for print_r()
    - Caused by php < 4.3, which allows only one parameter

    Wordpress Database errors during install:

    wpmu-functions.php
    lines 397 -

    /*
    Determine if there are any plugins that need installing or configuring
    This will enable not just the auto install/configure of plugins - but updates (to plugins or plugin data
    */

    /* I have added this code - NetAndif */

    if ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/install.php') || defined('WP_INSTALLING') )
    $installing = 'true';

    /* For my installer i do also need this line */
    if ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/install-blogs.php') || defined('WP_INSTALLING') )
    $installing = 'true';

    /* Maybe check if install is running? */

    if (!$installing) {

    $pendingPlugins = wpmu_blogOption_get($wpblog,'wpmu_plugins_pending', null);

    if (is_null($pendingPlugins)) {
    // If null is returned - then this is a brand new blog
    $adminPlugins = wpmu_adminOption_get('wpmu_global_blog_plugins',null);
    if (!is_null($adminPlugins)) {
    // We've something to do
    wpmu_autoInstallPlugins($adminPlugins);
    }
    } else {
    if (count($pendingPlugins)>0) {
    wpmu_autoInstallPlugins($pendingPlugins);
    }
    }
    }

    upgrade-schema.php
    line 150 - 183:
    It tries to create tables which exist already,
    because they do not have the extension for the blogs
    Should these tables only exist in the main blog?
    Or can we just remove the referers function?
    It would be better to use plugins for stats, i think.
    (like BAStats for example)

    CREATE TABLE referer_blacklist (
    ID int(11) NOT NULL auto_increment,
    blogID varchar(32) NOT NULL default '',
    URL varchar(250) NOT NULL default '',
    t timestamp(14) NOT NULL,
    PRIMARY KEY (ID),
    KEY blogID (blogID,URL),
    KEY URL (URL)
    );
    CREATE TABLE referer_visitLog (
    blogID char( 32 ) default NULL ,
    visitID int( 11 ) NOT NULL AUTO_INCREMENT ,
    visitTime timestamp( 14 ) NOT NULL ,
    visitURL char( 250 ) default NULL ,
    referingURL char( 250 ) default NULL ,
    baseDomain char( 250 ) default NULL ,
    refpost int( 11 ) NOT NULL default '0',
    visitTimes int( 10 ) NOT NULL default '0',
    dayofmonth smallint( 2 ) NOT NULL default '0',
    PRIMARY KEY ( visitID ) ,
    KEY blogID ( blogID ) ,
    KEY refpost ( refpost ) ,
    KEY dayofmonth ( dayofmonth )
    );
    CREATE TABLE wp_linkclicks (
    blogID varchar(11) default NULL,
    link_id int(11) NOT NULL auto_increment,
    link_url text NOT NULL,
    link_clicks int(11) NOT NULL default '0',
    link_date datetime NOT NULL default '0000-00-00 00:00:00',
    link_title text NOT NULL,
    UNIQUE KEY link_id (link_id),
    KEY blogID (blogID)

    Others:

    wp-inst/wp-admin/admin-header.php
    line 89:
    get_settings('home')
    - get_settings('siteurl') would be better

  2. billdennis5
    Member
    Posted 13 years ago #

    I just felt bad that no one replied to this.

  3. MrBrian
    Member
    Posted 13 years ago #

    lol, it was 3 years ago.

  4. billdennis5
    Member
    Posted 13 years ago #

    Exactly.

    This poor SOB has been checking this forum every day for three years, wondering when someone, ANYONE, would reply.

    That's a lonely feeling.

  5. billdennis5
    Member
    Posted 13 years ago #

    Life is a circle. I searched for posts about "referer_visitLog" tables and landed here.

  6. andrea_r
    Moderator
    Posted 13 years ago #

    "Started 2010 years ago"

    Apparently we're in some sort of time warp. Wait for the flash of light.

  7. tdjcbe
    Member
    Posted 13 years ago #

    "It's full of php code!"

    What's strange is that I'm reading 2010 right now.

About this Topic

  • Started 2024 years ago by NetAndif
  • Latest reply from tdjcbe