• Resolved Jeman_wp

    (@jeman_wp)


    My issue is that the same plugin installed on two different instances of wordpress which are on the same machine and share the same DB works differently: one works fine while the other has some issues with the filters and time.
    For instance when I click on the “Today” filter button the shown date is the one of the previous day and “Pageviews” graph shows also data from the same day.
    Any ideas of how I can debug it considering that:
    I cannot deactivate any plugin.

    Thanks

    https://www.ads-software.com/plugins/wp-slimstat/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Jeman_wp

    (@jeman_wp)

    Hi,
    I found the bug:
    If the timezone is set to UTC+# then the plugin works fine, while if you set a city, in my case Berlin/Rome/Madrid, plugin does not recognize the timezone properly and returns with a filter of a day before.
    Any idea how to correct this bug?

    Thank you

    Plugin Author Jason Crouse

    (@coolmann)

    Hi,

    Thank you for troubleshooting the issue on your own. Slimstat uses date_i18n to calculate all its dates and times. We will investigate to see if there’s a bug affecting this core function or the way we use it.

    Best,
    Camu

    Plugin Author Jason Crouse

    (@coolmann)

    We’ve been trying, without success, to replicate this issue. We suspect it’s a conflict with another plugin, taking over ‘date_i18n’ and thus passing the wrong value to Slimstat, depending on the timezone setting. Could you try deactivating all your other plugins to see if that makes a difference?

    Thanks,
    Camu

    Thread Starter Jeman_wp

    (@jeman_wp)

    Hi Camu,

    Unfortunately I cannot deactivate the plugins as I have the issue on the production side. What I can do is to reproduce the same wp instance on a test environment with the same plugins.

    Plugin Author Jason Crouse

    (@coolmann)

    Sure, whatever works for you.

    Thread Starter Jeman_wp

    (@jeman_wp)

    so the problem is with the
    “WP Events Calendar”: I tried to enable and disable this plugin in the test environment and indeed the issue goes and come back.
    Any idea on how to solve it?
    Thanks!

    Plugin Author Jason Crouse

    (@coolmann)

    Hi,

    You may want to contact the developer and see if they might know why this is happening. Also because it might be affecting other plugins relying on date_i18n, so if they fix the issue on their end, everybody wins ??

    Thank you,
    Camu

    Plugin Author Jason Crouse

    (@coolmann)

    PS: keep us posted!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Filter "today" goes back one day’ is closed to new replies.