Page 1 of 1

CTR data not updating as expected.

Posted: Sun Oct 12, 2014 6:08 pm
by pyrorain
Good morning.

On two sites, the CTR stats are respectively stuck at 9.99999/9.0/8.0/7.0 and 0.00000.

These are running update 51 from today.

The relevant rewrite:

Code: Select all

if ($args) {
    rewrite ^/gallery/([^/]+)/index.html$ /scj/cgi/out.php?link=images/$query_string&url=content&slug=$1 last;
}
The rewrite log, indicating that the above rewrite is the one being used:

Code: Select all

2014/10/12 19:51:44 [notice] 22836#0: *14387 "^/gallery/([^/]+)/index.html$" matches "/gallery/oh-no/index.html", client: 1.3.3.7, server: thedomain.tld, request: "GET /gallery/oh-no/index.html?4x10x1012 HTTP/1.1", host: "thedomain.tld", referrer: "http://thedomain.tld/videos.php"
2014/10/12 19:51:44 [notice] 22836#0: *14387 rewritten data: "/scj/cgi/out.php", args: "link=images/4x10x1012&url=content&slug=oh-no&4x10x1012", client: 1.3.3.7, server: thedomain.tld, request: "GET /gallery/oh-no/index.html?4x10x1012 HTTP/1.1", host: "thedomain.tld", referrer: "http://thedomain.tld/videos.php"
1.3.3.7 - - [12/Oct/2014:19:51:44 +0200] "GET /gallery/oh-no/index.html?4x10x1012 HTTP/1.1" 302 5 "http://thedomain.tld/videos.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0"
And the template code:

Code: Select all

<thumb num=1-120>
    <div class="item">
        <a href="/gallery/<!--GALLERY_SLUG-->/index.html?<!--THUMB_LINK-->" title="<!--ALT-->" target="_blank"><img src="<!--THUMB_URL-->" alt="<!--ALT-->">
            <h4><!--ALT_35--></h4>
            <span class="date clearfix"><!--ACTIVATION_DATE--></span>
            <span class="views clearfix">Views: <!--CLICKS--></span>
        </a>
    </div>
</thumb>
Bonus http stream:

Code: Select all

GET /gallery/oh-no/index.html?4x10x1012 HTTP/1.1
Host: thedomain.tld
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://thedomain.tld/videos.php
Cookie: [irrelevant]
Connection: keep-alive


HTTP/1.1 302 Moved Temporarily
Server: nginx/1.4.6 (Ubuntu)
Date: Sun, 12 Oct 2014 17:24:58 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.10-1ubuntu3.13
Set-Cookie: [also irrelevant]
Location: http://awesome_videos.example.com/?id=15

0
Is there something obvious I'm missing? The MD5 checksum of out.php is 2486f720e0347c16f48527abacce97f4, if that helps.

Re: CTR data not updating as expected.

Posted: Mon Oct 13, 2014 12:25 pm
by admin
Looks good here.
If you tried to click and it's all the same ie doesn't count your clicks or count too match - send me ftp and where to click - i'll check it.

Re: CTR data not updating as expected.

Posted: Wed Oct 15, 2014 7:52 am
by pyrorain
I sent you the log i info vua PM, Wondering if you had a chance to look at the site.

Re: CTR data not updating as expected.

Posted: Wed Oct 15, 2014 11:58 am
by admin
Are you sure you sent it ?
I have nothing in PM
You can check our outbox

Re: CTR data not updating as expected.

Posted: Wed Oct 15, 2014 8:54 pm
by pyrorain
for some reason, the message was in sent messages and not outbox, i sent another one, now it does appaer in outbox

Re: CTR data not updating as expected.

Posted: Fri Oct 17, 2014 1:55 pm
by admin
CTR is 0 because you decided to rename rot_in into logo.php
where you have following lines

Code: Select all

<?
include('rot_in.php');
header('Content-Type: image/png');
readfile('logo.png');

while rot_in.php is not in the same folder.

You'd see an error but it you have error reporting 0 in php ini.

Re: CTR data not updating as expected.

Posted: Sat Oct 18, 2014 11:47 am
by pyrorain
ah man, I see, we've fixed teh problem , thank you for your help

Re: CTR data not updating as expected.

Posted: Sat Oct 18, 2014 1:38 pm
by admin
NP