Those of you who have WordPress 2.7, or indeed later versions of 2.6, might find that the latest version of StatTraq (22.214.171.124) 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.