Forums

[Plugin: wp-stattraq] missing ABSPATH definition (3 posts)

  1. netzgeschaedigt
    Member
    Posted 10 months ago #

    Attention: in order to get this plug-in to work in 2.7+, you have to make a small adjustments in 'stattraq-install.php'.

    You can fix the problem of the missing ABSPATH declaration (actually it's defined in wp-config.php ^_~) by replacing 'ABSPATH.' with a normal variable containing the path to your blog installation.

    $path = 'http://your.wordpress.url';
    require_once($path.'/wp-config.php');

    Please remember, if your blog is placed in a sub-folder you have to consider this in the '$path' variable, e.g.:

    $path = 'http://your.domain.url/wpfolder';

    This is only one possible solution - maybe not the nicest one but a fast, quick and dirty trick to make the installation work ^-^

    http://wordpress.org/extend/plugins/wp-stattraq/

  2. strings28
    Member
    Posted 3 months ago #

    I'm going to be changing the way this works in 1.3.1 so that when you first log into the StatTraq interface it uses the Options view to give you what you need as far as installation and upgrading goes. It'll also do it behind the scenes so everything feels more fluid.

    I know, its late, but its better than never :)

  3. Gersprenz
    Member
    Posted 3 months ago #

    In some cases the file "wp-config.php" is not in the Wordpress root directory (for security reasons). Then the installation failed.

    And in some cases it's impossible to call the initial setup-script ('stattraq-install.php' ) in the plugin directory directly via the browser (also for security reasons).

Reply

You must log in to post.

About this Topic