Hello,
I also had the same issue. I was irritated about the fact that the api endpoint /wp-json/wp-statistics/v2/hit without any arguments is still working but the full request isn’t.
So, I played a little bit with the request. I found out that the parameter ‘referred’ caused the reported error. I changed the function get() in class Referred in order to return an empty string everytime. The visitors and hits are now recorded as expected.
Maybe this is helpful for other users to hotfix this issue.
I’m looking forward for an update for WP-Statistics.
Best regards
Dan
-
This reply was modified 3 years, 12 months ago by dand751801. Reason: fix typo :-)
-
This reply was modified 3 years, 12 months ago by dand751801. Reason: fix typo :-)