• I am using Ozh’s ClickCounter Plugin. I do have to go.php file copied to my blog’s root directory.

    Clicks are counted however the redirection no longer works. Is this maybe due to the changed way of handling permalinks in WP 2.0? Anybody encountered the same difficulties?

    If you want to give it a try you can manually invoke the go.php script by going to:

    https://www.rottmann.net/blog/go.php?https://www.www.ads-software.com

    You will see that the go.php script no longer works. For the sake of completeness here is the content of the go.php script. I have not touched any of the original code.

    <?php
    require('./wp-blog-header.php');
    // IMPORTANT :
    // if you don't put this file in your blog root (where your index.php is)
    // then modify the path to wp-blog-header.php above

    header('Expires: Mon, 23 Mar 1972 07:00:00 GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache');

    // IMPORTANT :
    // same notice as above. This is to ensure the redirection still works even
    // if you deactivate the plugin.
    if (!function_exists("wp_ozh_click_increment")) {
    require('./wp-content/plugins/wp_ozh_clickcounter.php');
    }

    if ($_SERVER["QUERY_STRING"]) {
    $url = $_SERVER["QUERY_STRING"];
    $test= wp_ozh_click_increment($url);

    if ($is_IIS) {
    header("Refresh: 0;url=$url");
    } else {
    header("Location: $url");
    }

    } else {
    echo "Hmmm ? ";
    echo "<a href=\"" . get_settings('siteurl') . "\">Back to Blog</a> !";
    }
    ?>

    Your help is greatly appreciated.

Viewing 11 replies - 16 through 26 (of 26 total)
  • Weird. No errors or anything. Did you edit code or anything, besides the error_reporting?

    I did edit the path to wp-blog-header.php and now it seem to work, but it doesnt register any clicks… ??

    Well that’s something you’ll have to take up with the developer. ??

    It seems to work now, I didn’t change anything more. I really appreciate your help Viper007Bond!

    Thread Starter ralfrottmann

    (@ralfrottmann)

    The version 2.0 wp-blog-header.php definitely breaks stuff in Click Counter – maybe not always but as it appears obviously in some cases.

    I have now applied a dirty workaround:

    1.) I have renamed the version 1.5.2 wp-blog-header.php to wp-blog-header-old.php .

    2.) I have uploaded it to my blog’s root dir. It sits there nicely in parallel to wp-blog-header.php from version 2.0.

    3.) I have changed the require('./wp-blog-header-old.php'); to reference the old (version 1.5.2).

    Click Counter works again. Obviously this is dirty. I hope somebody will find the root cause, soon.

    Thread Starter ralfrottmann

    (@ralfrottmann)

    Any news on this issue?

    hi there,
    I am having the same troubles https://www.ads-software.com/support/topic/66203?replies=5

    I’ll try to copy your dirt-solution ?? but I’d like to find a cleaner way to work things out.

    I will contact the plugin’s author as well.

    sorry, here I am again.
    maybe I am too tired now, but I cannot find go.php into my wp directory.

    I think I need a little rest and will try to work on it later.

    That’s not a WP file. Probably it comes with the faulty plugin…

    …yep %o)…but I cannot locate it in my wp-dir.. nor the old nor the upgraded one.



    I should search for it INSIDE a different .php file ?

    Have forwarded our discussion to the author… crossing my fingers.

    SOLVED!

    I really apologize, the problem is EXACTLY I was not able to find the go.php file as I had to rename it and just forgot to rename-it-back as go.php

    now everything seems to work just fine…!

    really stupid.

    thank you to you all for your help.

    ??

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘ClickCounter Plugin no longer works (WP 2.0)’ is closed to new replies.