Join The IND Mailing List Today!

The I Need Discipline mailing list is the ideal way to be kept well informed about the very latest posts that are published on this blog. You will also receive bonus articles that are not available on this blog and various freebies!

ghy

We respect your privacy!

How To Solve The Stattraq Install Error

by Dean Saliba on February 9, 2009 · Wordpress Tutorials


How To Make Stattraq Work

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

Article by

Dean Saliba is a freelance writer, professional blogger, media enthusiast, dirty football player 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 and more.

Connect with me on Facebook | Twitter | LinkedIn | Google+ | Website

Dean has written 357 awesome articles for us at I Need Di$cipline

Write for us a Guest Post!

{ 8 comments… read them below or add one }

Managed Security Services (1 comments) February 16, 2009 at 12:04 pm

Aah!! That was so easy.

I thought that will be very difficult.

Thanks a lot for sharing the article.

Reply

Dean Saliba (1314 comments) February 16, 2009 at 3:30 pm

I’m glad you found it helpful.

Thanks for dropping by. :)

Reply

Dean Saliba (1314 comments) March 18, 2009 at 2:19 am

Just a quick update, I have not been able to get this to work if the blog is in a sub folder.

Reply

deansaliba (59 comments) August 26, 2009 at 11:00 pm

Just thought I'd mention the new version 1.3 does not fix this problem but the solution I provided still works for it. :)

Reply

chanov (1 comments) September 11, 2009 at 3:07 pm

try

$path = = $_SERVER['DOCUMENT_ROOT'];

Reply

Dean Saliba (1314 comments) November 16, 2011 at 10:56 am

Thanks for your help. :) I haven’t tried this though as I have long since abandoned the plugin in favour of Google Analytic.

Reply

diamondback mountain bike (3 comments) November 12, 2011 at 11:27 am

I ever get the same problem and I have solve it too. Thank you for remind me.

Reply

Dean Saliba (1314 comments) November 16, 2011 at 10:58 am

You still use Stattraq? Has it changed much? I stopped using it about two years ago.

Reply

Leave a Comment

CommentLuv badge

Previous post:

Next post: