Title: Feed Statistics (./../../wp-config.php) error
Last modified: August 19, 2016

---

# Feed Statistics (./../../wp-config.php) error

 *  [gregjsmith](https://wordpress.org/support/users/gregjsmith/)
 * (@gregjsmith)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/feed-statistics-wp-configphp-error/)
 * This plugin is supposed to be able to track clicks on feeds. However when clicking
   a link it generates these errors.
 * Warning: require(./../../wp-config.php) [function.require]: failed to open stream:
   No such file or directory in /home/dir_name/public_html/wp-content/plugins/wordpress-
   feed-statistics/feed-statistics.php on line 32
 * Warning: require(./../../wp-config.php) [function.require]: failed to open stream:
   No such file or directory in /home/dir_name/public_html/wp-content/plugins/wordpress-
   feed-statistics/feed-statistics.php on line 32
 * Fatal error: require() [function.require]: Failed opening required ‘./../../wp-
   config.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/dir_name/
   public_html/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php 
   on line 32
 * [http://wordpress.org/extend/plugins/wordpress-feed-statistics/](http://wordpress.org/extend/plugins/wordpress-feed-statistics/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [rmsylte](https://wordpress.org/support/users/rmsylte/)
 * (@rmsylte)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/feed-statistics-wp-configphp-error/#post-1002362)
 * This error has still not been corrected. Anyone know what is happening?
 *  [jtimar](https://wordpress.org/support/users/jtimar/)
 * (@jtimar)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/feed-statistics-wp-configphp-error/#post-1002371)
 * I emailed the author, but he didn’t seem to care, just claimed everything was
   working fine for him.
 *  [Matt Cohen](https://wordpress.org/support/users/mattyza/)
 * (@mattyza)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/feed-statistics-wp-configphp-error/#post-1002372)
 * Hi gregjsmith, rmsylte and jtimar,
    I’ve installed this plugin and have an idea
   as to where the error is coming in.
 * It seems like the call to the WordPress config file isn’t working, as it is looking
   for the file in the incorrect directory.
 * If you could please try the following:
 * Replace `require("./../../wp-config.php");` on line 32 of _feed-statistics.php_
   with `require("../../../wp-config.php");`
 * (Note the extra dot (.) after _require(“_.)
 * Please advise if this resolves the issue.
 * I hope this helps. 🙂
 * Cheers,
    Matty.
 *  [curiouschaos](https://wordpress.org/support/users/curiouschaos/)
 * (@curiouschaos)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/feed-statistics-wp-configphp-error/#post-1002373)
 * That still doesn’t fix the error. I’ve also tried a few combinations of dots 
   and slashes and nothing seems to work. Could it be a permissions error? I doubt
   it, but I can’t see any other reason why it won’t work.
 *  [whigu](https://wordpress.org/support/users/whigu/)
 * (@whigu)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/feed-statistics-wp-configphp-error/#post-1002379)
 * I have had this same issue but now I changed that line to this:
    require(“../
   wp-config.php”); and now it seems to work.
 * I get some annoying gif headers:
    GIF89a�����������!�����,�������D�;
   on the top of the page but it still seems to work ok. Probably that header comes
   from these lines:
 * header(“Content-Type: image/gif”);
    echo base64_decode(“R0lGODlhAQABAIAAANvf7wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw
   ==”); return;
 * But I haven’t tried to remove those cos I have no idea what that does 😀
 * Try that and let me know if that helped.
 *  [rmsylte](https://wordpress.org/support/users/rmsylte/)
 * (@rmsylte)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/feed-statistics-wp-configphp-error/#post-1002380)
 * Looking for information on the base64_decode, I found this page
    [http://techpp.com/2008/11/29/how-to-decode-encoded-php-script-in-wordpress-themes/](http://techpp.com/2008/11/29/how-to-decode-encoded-php-script-in-wordpress-themes/)
 * which led me to this page:
    [http://www.motobit.com/util/base64-decoder-encoder.asp](http://www.motobit.com/util/base64-decoder-encoder.asp)
 * and that showed that
    base64_decode(“R0lGODlhAQABAIAAANvf7wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw
   ==”) translated to GIF89a�����������!�����,�������D�;
 * I simply removed the line
    base64_decode(“R0lGODlhAQABAIAAANvf7wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw
   ==”)
 * and it seems to be working ok. Hope this helps.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Feed Statistics (./../../wp-config.php) error’ is closed to new replies.

 * 6 replies
 * 6 participants
 * Last reply from: [rmsylte](https://wordpress.org/support/users/rmsylte/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/feed-statistics-wp-configphp-error/#post-1002380)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
