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 ( 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:


4. Remove it and add:

$path = '/home/xxxxxx/xxxxxx/public_html/';

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

Oh hi there 👋 It’s nice to meet you.

Sign up to get access to all the sites that I have used to make money online.

We don’t spam! Read our privacy policy for more info.

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 …