• 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 = 'https://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 = 'https://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 ^-^

    https://www.ads-software.com/extend/plugins/wp-stattraq/

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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 ??

    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).

    I am trying to get this plugin to work with Version 2.8.6

    I cant tell exactly where I need to edit the file….

    I need to edit stattraq-install.php, and replace line 19 from

    require_once(ABSPATH.'/wp-config.php');

    to

    require_once(https://www.mydomain.com/wordpress'/wp-config.php');

    ?

    I can’t get that to work, so that must not be it, but I can’t find any other ABSPATH references in the stattraq-install.php file.

    I also tried adding these 2 lines in place of line 19

    $path = 'https://www.mydomain.com/wordpress';
    require_once($path.'/wp-config.php');

    Should I edit wp-config.php?

    Where exactly?

    *deleted* duplicate

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: wp-stattraq] missing ABSPATH definition’ is closed to new replies.