Git Product home page Git Product logo

Comments (20)

Daandelange avatar Daandelange commented on June 13, 2024

Hello, Matthias,
Thanks for testing.

I don't know the minimum Kirby version yet. I've started writing this plugin before Kirby 3.4 but a big part of it has been written with Kirby 3.5. If anything is uncompatible, it should be quite easy to fix.

The site/logs folder should be created automatically, but you can try to manually create the folder. In it, simplestats.sqlite is the db file, simplestats_errors.txt holds silent errors / notices related to simplestats' inner mechanics (enabled by default). Db creation errors are logged there, if there's nothing, it probably crashes somewhere before/early. (view code)
For troubleshooting, I'd say, first get the tracking part right; if that works, move on to the panel. Visit a page page ( /!\ by default, connected users are not tracked! ) with Kirby's debugging on, you should see more information.

I hope that helps, good luck !

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

Dear Daan,
indeed, it seems if i create a site/logs folder by hand, the .sqlite file is being created... i'll wait now for 24hrs to see if any tracking will happen...
Thanks so far and with that i report the first bug: logs-folder is not being created automatically... :)

Matthias

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 13, 2024

Great! Fixed!
If you have the panel enabled, simplestats' information tabs shows some raw instant tracking info. Referrers are also instant.

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 13, 2024

Hey,
Regarding the errors, they should have been fixed by #9, did you install the latest version on both domains ?

No action should be required to enable tracking. (Soon there will be options to set for different tracking methods.)

  • The information tab should instantly show some data, as well as the referrers tab, if you got referrer visits. Other (computed) data appears after 24H.
  • If the panel shows "no data yet", it means that it succeeds in querying the database which returned 0 rows/data, so the panel communication with the plugin trough the API seems to be OK.

So it seems like your db is empty, despite having different sizes. 53Kb should about be the size of an empty db.
15Kb sounds too small so maybe there was a problem creating it.
I'd say, try opening your db file with a SQLite viewer (I use this one) to ensure if data gets collected or not.
db tables that should be there : (and some/all filled with rows)
image

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 13, 2024

Hey Matthias,
No worries, I'm happy that you try the plugin so let's figure this out !
The steps you took look OK.
Note : the image 2 posts above was not uploaded via email.

It's possible to debug, but to be honest I have no idea what's wrong. I'm surprised that there's nothing relevant written to the log. Did you try enabling Kirby debugging to see if any errors are thrown there ?
Also, in the database file, do you see any entries ? (in the pagevisitors table for example)
image

I'll soon push some more changes and features, with some small fixes, it will be worth trying that.

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 13, 2024

Ok, new changes pushed, maybe it will randomly fix your issue.
The information tab now also shows some debug information, which might help.

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 13, 2024

I still cannot see your images.
The update reports success but some tables are missing from the db... so weird !
What if you delete the database file and let it create a new one ?
Also, I updated the plugin again, fixes some single-language website issues, might be related to this.

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

:)
so, i first repaired this image mess above. you can now see the screens i wanted to send you in the previous comment.

i just installed the newest version, and this seems to work fine in establishing the database.
however, everytime i open the first Page Visits page, i get this error: Call to a member function code() on null

i have surfed the site with safari not being logged in, but the sqlite file never gets updated (its 61KB now). seems like there is still no visits being recorded.

i have installed it on a complex kirby site, with no results.
the error log states only:
[2021-01-22 19:46] [Notice] Successfully created a new SimpleStats database v_2 @ [site path] /site/config/../logs/simplestats.sqlite !

now i also installed it on a fresh starterkit with no other interference, and i get no tracking either, but a different error log:

[2021-01-22 19:54] [Tracking] Error tracking page: notes. Error=File "[site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/../../../data/referers.json" does not exist(file: [site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/Exception/InvalidArgumentException.php#L10)

[2021-01-22 19:54] [Tracking] Error tracking page: photography. Error=File "[site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/../../../data/referers.json" does not exist(file: [site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/Exception/InvalidArgumentException.php#L10)

[2021-01-22 19:54] [Tracking] Error tracking page: about. Error=File "[site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/../../../data/referers.json" does not exist(file: [site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/Exception/InvalidArgumentException.php#L10)

[2021-01-22 19:54] [Tracking] Error tracking page: home. Error=File "[site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/../../../data/referers.json" does not exist(file: [site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/Exception/InvalidArgumentException.php#L10)

[2021-01-22 19:54] [Tracking] Error tracking page: photography. Error=File "[site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/../../../data/referers.json" does not exist(file: [site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/Exception/InvalidArgumentException.php#L10)

[2021-01-22 19:54] [Tracking] Error tracking page: notes. Error=File "[site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/../../../data/referers.json" does not exist(file: [site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/Exception/InvalidArgumentException.php#L10)

[2021-01-22 19:54] [Tracking] Error tracking page: about. Error=File "[site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/../../../data/referers.json" does not exist(file: [site path...] /site/plugins/simplestats/vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/Exception/InvalidArgumentException.php#L10)

i have changed the sites path to not make it public...

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 13, 2024

Thanks for these screenshots, they helped me fix a bunch of mistakes.
I also forgot to test the single-lang panel view, which should work now.
If you update simplestats and delete the database file again, it should either work or show some next errors. :)

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

Hey Daan,
i just checked both installs of the plugin (plainkit and complex website) and both still say "No Data Yet". Its 24hrs since i installed, so there should be something.

The error log for the complex site only states this:
[2021-01-23 21:02] [Notice] Successfully created a new SimpleStats database v_2 @ /homepages/2/d771287486/htdocs/live/site/logs/simplestats.sqlite !

The plainkit as well:
[2021-01-23 21:00] [Notice] Successfully created a new SimpleStats database v_2 @ /usr/www/users/relates/lab/trackingtest/site/logs/simplestats.sqlite !

Do you have an idea how i can test further why there is no tracking?

Matthias

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

I could give you an FTP access to the plainkit site, so you can see yourself, if you want.

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 13, 2024

Hey Matthias, I guess there's still no tracking happening ?
To instantly check what's happening, there's a visitors table in the information tab which should be filled as soon as a visitor is tracked. Referrers are also instantly shown.
Before trying over FTP, could you try var_dump()ing some info in hooks.php's conditions, to figure out which ones are taken ? As any tracking error should be reported, it has to be the surrounding conditions that are not taken correctly.
Also, if you are using kirby cache, try disabling it, I have not tested behaviour with caching enabled yet. (it should work, but you never know)

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 13, 2024

Hey Matthias, any updates on this ?

from kirby3-simplestats.

possible-is avatar possible-is commented on June 13, 2024

from kirby3-simplestats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.