How To Solve The StatTraq Install Error

Those of you who have WordPress 2.7, or indeed later versions of 2.6, might find that the latest version of StatTraq (1.2.6.4) plugin does not install and provides the following error when you visit the install page:

Warning: main(ABSPATH/wp-config.php) [function.main]: failed to open stream: No such file or directory in /home/xxxxxx/xxxxxx/public_html/wp-content/plugins/wp-stattraq/stattraq-install.php on line 19

Fatal error: main() [function.require]: Failed opening required ‘ABSPATH/wp-config.php’ (include_path=’.:/usr/share/pear’) in /home/xxxxxx/xxxxxx/public_html/wp-content/plugins/wp-stattraq/stattraq-install.php on line 19

There is a way to solve this problem and it is pretty simple.

You will need to edit the stattraq-install.php file. Don’t panic though because it really is very simple to do and it is only one line.

1. Open stattraq-install.php

2. Find the offending line (in my example it says line 19)

3. You should see:

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

4. Remove it and add:

$path = '/home/xxxxxx/xxxxxx/public_html/';
require_once($path.'/wp-config.php');

The ‘/home/xxxxxx/xxxxxx/public_html/’ part should be the server path to the folder directory that you have WordPress installed in.

5. run the stattraq-install.php file and it should work now.

Let me know how this worked for you. :)

Image by 200 Degrees from Pixabay

About Dean Saliba

Dean Saliba is a freelance writer, professional blogger, media enthusiast, keen long-distance runner, and huge professional wrestling fan, who covers a wide range of subjects and niches including: making money online, traffic generating, pro wrestling, blog reviews, football, how-to guides, music, internet marketing, running, and more.

Check Also

WordPress for Android No Longer Supporting Gingerbread

If you use WordPress’ Android app to update and manage your site then I’m afraid …