• Resolved ejm

    (@llizard)


    I am running WP2.0.11 and would like to install the Feedstats plugin, which “requires WordPress Version: 1.5 or higher” and is “Compatible up to: 2.7”

    I uploaded the plugin folder and files to WordPress. When I activate the file this is the message I receive:

    Error in file: [pathtowordpressfolder]/wp-content/plugins/feedstats-de/feedstats-de.php on line: 223.
    The WordPress file "upgrade-functions.php" or "upgrade.php" could not be included.

    I went to the Feedstats plugin homepage to see if there were hints.

    Das Plugin funktioniert seit WP 1.5* uneingeschr?nkt, bisher ohne Ausnahme in jeder Version von WordPress

    My German is a bit shaky (ha. read non-existent) but Google translation confirms what I thought the sentence said: “The plugin works since WP 1.5* fully, so far without exception, in every version of WordPress

    Lucky me to have discovered a version that the plugin malfunctions. :-/

    I stared at the file feedstats-de.php and found a section entitled “Pre-2.6 compatibility” but that’s about as far as I could get with debugging with just enough knowledge of PHP to get me in trouble.

    Is there another plugin that I have to install and/or where must I put this “upgrade.php” page and what does it have to contain?

    OR how do I find an earlier (stable) version of Feedstats that will work on WP2.0.11?

    Thank you for any assistance.

    E Morris, running WinXP, Firefox 2.0.0.17, WP2.0.11

    (Upgrading WP to a version higher than 2.0.11 is not an option right now.)

Viewing 1 replies (of 1 total)
  • Thread Starter ejm

    (@llizard)

    Excuse me for replying to myself.

    I received a reply from the author on the plugin homepage. It turns out that when the script is installed on 2.0.11, it will not create the required tables. He recommended that I create them manually, in PHPmyadmin. Just in case someone else would like to run feedstats plugin on 2.0.11, here’s what I did:

    Go to SQL in PHPmyadmin and type the following:

    CREATE TABLE wp_fs_data (
    time_install int(11) NOT NULL DEFAULT '0',
    max_visits mediumint(8) UNSIGNED NOT NULL DEFAULT '0',
    max_visits_time int(11) NOT NULL DEFAULT '0',
    max_online mediumint(8) UNSIGNED NOT NULL DEFAULT '0',
    max_online_time int(11) NOT NULL DEFAULT '0'
    ) TYPE=MyISAM;
    
    CREATE TABLE wp_fs_visits (
    visit_id mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT,
    IP varchar(20) NOT NULL DEFAULT '',
    url varchar(255) NOT NULL DEFAULT '',
    time_begin int(11) NOT NULL DEFAULT '0',
    time_last int(11) NOT NULL DEFAULT '0',
    PRIMARY KEY (visit_id)
    ) TYPE=MyISAM;

    There will be a message on the wp_fs_data table saying “No index defined!” I foolishly tried to create the index from WP but got the same message “The WordPress file “upgrade-functions.php” or “upgrade.php” could not be included.

    Returning to SQL in PHPmyadmin, with a little difficulty, I created an index for wp_fs_data there using the following coding:

    ALTER TABLE wp_fs_data ADD PRIMARY KEY (time_install)

    And it now appears that the feedstats plugin is working on WP2.0.11.

    E Morris, running WinXP, Firefox 2.0.0.17, WP2.0.11

Viewing 1 replies (of 1 total)
  • The topic ‘error message after activating Feedstats Plugin for WP 2.0.11’ is closed to new replies.