Open agenceKanvas opened 7 months ago
Hello :)
Since how many time do you have activated analytics?
As you've installed DecaLog (which is not mandatory for Sessions), can you tell me what you see if you run the wp log metrics dump
wp-cli command (only for wordpress_plugin_sessions*
metrics)?
Anaylics since at least 1 or 2 weeks.
For the dump, I've attached the file : dump.txt
Do you have some errors in your error log or DecaLog loggers?
Nothing related to Sessions or that seems related to sessions.
OK :( So I'm going to need a bit more context. You know: versions, framework, plugins, how Sessions was installed, etc. Thanks
Plugins : dump.txt Last version of wordpress. Session was installed via the plugin installer If needed, I also am on the WordPressFR slack !
Strange, I DO have data for the device stats
Hello!
I've asked several users who use this plugin to run tests, and we've been unable to reproduce it at all.
Can you verify you have the following table in your db: xxxx_sessions_statistics
?
Hello 8 I do, and it's empty
If that helps, that's what I have in the decalog options
Unfortunately, DecaLog has nothing to do with stats in Sessions plugin…
For now, the only reason I can think of such an issue is about shutdown
WP hook. Something which break its execution…
If you ok with that, can you try to modify the file wp-content/plugins/sessions/includes/features/class-schema.php
at line 56 an replace
add_action( 'shutdown', [ self::class, 'write' ], 11, 0 );
by
add_action( 'shutdown', [ self::class, 'write' ], PHP_INT_MIN, 0 );
After that (and maybe purging opcache) do you see something in the stats table?
Still empty. I logged out and logged in just in case
I installed IP Locator and I see the first session in the table !
Ah! So, let's give it a little time to see if the table continues to fill up...
Hello ! Is everything working smoothly now?
Stats are back. Thanks a lot. Now I have to work on them and understand how to improve everything !
Guess who's back :) Another website, another server. Sessions, IP and device installed. No stat for sessions but some for devices. Devices :
Sessions (same period) :
That's definitely a strange issue. Is this website on the same hosting type as the last one?
Not at all. The first is on a dedicated server and the other one (this one) on a cloudways/digital ocean
And is there something similar between both of them? Common framework, (mu-)plugins, cache, cdn, etc.
WooCommerce, WooCommerce Subscriptions, WooCommerce Memberships, ACF Pro, Redis i think, Stripe, Gravity Forms. These are the main plugin that are at least common on both
Could you try ton install IP Locator to see if it's modifying something (like the other site)
Ah ah, already tried :)
Have you tried to deactivate (or disable) all caching mechanisms (like redis, apcu, etc.) to see if it changes something? Could you confirm, too, the Sessions analytics db tables are created?
Describe the bug Even with Decalog installed and stats activated, I don't have any data in the stat page.
I do have sessions here :
And of course the options is checked :
Thanks !