Support Forum

Those using RSS feeds showing as permanently online

26 Answers

New Answer

CF Conrad_Farlow
Conrad_Farlow
Member

I looked at the database when this occurred. I looked at the db table  _sftrack and in both cases the pageview entry said feed.

Before I made the modification Brian Kelly appeared permanently but now he does occasionally disappear from the stats.

Conrad

MP Mr Papa
Mr Papa
Member

okay, lets try this… please remove anything in sftrack with pageview of feed…  and see if any come back…

CF Conrad_Farlow
Conrad_Farlow
Member

Did that and after a few minutes there were 2 entries in _sftrack with a page view of feed. One has a trackname of Brian Kelly and the other has a trackname of my IP address, presumably because my mobile device RSS reader is using the same wireless router as this machine. That is not showing in the stats though. I’ll unsubscribe and delete them all again.

MP Mr Papa
Mr Papa
Member

then I have to ask, are you sure you made the code change???  in sp-db-statistics.php… near the top of sp-track-online.php:

function sp_track_online() {
    global $spThisUser, $sfvars;

    # dont track feed views
    if ($sfvars['pageview'] == 'feed') return;

because not sure how you would get a track page of feed with that in place…

CF Conrad_Farlow
Conrad_Farlow
Member

That’s what I couldn’t understand either so I closed down notepad++ which I use for editing and downloaded the file anew  just to make sure.

Guess what?

In notepad++ the file shows the code exactly as you do above but after uploading when I re-opened the file from the server there was a very important carriage return missing at the end of line 4. So the if statement was commented out!

It did this twice by the way, even after I had corrected it, I needed to put a blank line in between lines 4 and 5.

I will have to be very careful of this in the future.

I expect that we won’t be having any more problems of this nature.

Conrad

MP Mr Papa
Mr Papa
Member

good news.  and partly why I use an LSE (language sensitive editor)…

CF Conrad_Farlow
Conrad_Farlow
Member

Well notepad++ does format php code in a very readable way but it does not check for syntax errors. What do you recommend.

MP Mr Papa
Mr Papa
Member

I use and love phpDesigner…   connects with svn, ftp and others…  formats many languages and yes, shows css, html, php, etc errors…   It is PC only I believe…

CF Conrad_Farlow
Conrad_Farlow
Member

Mr Papa said
I use and love phpDesigner…  It is PC only I believe…

Me too, I’m PC only – thanks!

CF Conrad_Farlow
Conrad_Farlow
Member

This is definitely working 100% fine now Steve!