Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jason Crouse

    (@coolmann)

    I just installed wp-jalali, and I was able to reproduce the issue. I will run some tests and let you know.

    Plugin Author Jason Crouse

    (@coolmann)

    Apparently, wp-jalali doesn’t return a number as expected for given date strings. It returns the Farsi representation of that number (like ?? ). Slimstat expects to get a western number (0, 1, 2, etc) and thus the SQL generated to retrieve the results from the database is broken and returns an empty set. The only way to fix this problem is to tell the plugin’s developers to make their code compliant with PHP’s date format:

    https://php.net/manual/en/function.date.php

    Plugin Author Jason Crouse

    (@coolmann)

    Nevermind, I found a way to temporarily deactivate whatever wp-jalali does, so that it doesn’t interfere with our code ?? Test 3.9.1 and see if it works for you.

    Thread Starter yashara

    (@yashara)

    Oh, thank you. You’re a good plugin developer!

    Plugin Author Jason Crouse

    (@coolmann)

    A vote for Slimstat would be the good way to say thank you ??

    Thread Starter yashara

    (@yashara)

    excuse me, but it doesn’t work yet! there is no data in all pages!
    you can see here
    thank you!

    Plugin Author Jason Crouse

    (@coolmann)

    Are you using version 3.9.1?

    Thread Starter yashara

    (@yashara)

    Yes. I was removed last version. then i install 3.9.1.

    Plugin Author Jason Crouse

    (@coolmann)

    Really strange. I installed wp-jalali on my test site and after my changes to the code, it worked as expected. It must be something else then. Can you try deactivating your other plugins to see what happens?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Problem with wp-jalali’ is closed to new replies.