• 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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • This error has still not been corrected. Anyone know what is happening?

    I emailed the author, but he didn’t seem to care, just claimed everything was working fine for him.

    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.

    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.

    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.

    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/

    which led me to this page:
    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.