Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Statistics - "Problem with credentials" [RESOLVED]

bonitobonito New
edited January 14 in Vanilla 2.6 Help

Hi,

I'll start by saying that Vanilla is amazing and the community plugins are great.
I'm trying to enable the Vanilla forums statistics but keep getting "Problem with credentials" (with a notification of "Analytics: Unable to save").

I've googled for quite some time and couldn't find a solution. I'll mention that CURL is installed & ntpd is enabled as well. I also set the system timezone to EU.
I'm using CentOS 7 with PHP 7.2 (Vanilla 2.6.4)

Any suggestions?

Cheers

Comments

  • Debugging it for hours now. I've ended up with dumping the curl body response, what I get back is:
    string(211) "{ "isHomepage": false, "Exec": "Direct", "Method": "analytics/register.json", "Analytics": { "ResponseHandler": "Iceman", "Status": 500, "Reason": "Unable to save" } }"

    I'm trying to register it through a subdomain, any chance it's related?

  • bonitobonito New
    edited January 14

    Solved. I ended up sending a direct request through Postman (will probably work in Chrome as well) and got the secret and app ID back ( https://analytics.vanillaforums.com/analytics/register.json?ServerHostname=YOUR_DOMAIN&ServerType=YOUR_NGINX_VERSION&VanillaVersion=YOUR_VANILLA_VERSION ).

    With that being said. Initially, I was using FireFox and I believe that some JS files didn't load or there's some issue with mixed content since I couldn't see the stats\graph (maybe it was the issue in the first place). Everything is working perfect on Chrome. Hopefully it will help someone else in the future.

    Last and final edit, it seems like the adblocker was causing it, for some reason it identifies the vanillastats.js file as an ad file.

    R_J
  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    @bonito

    Welcome to the community.

    Thank you for taking the time to provide the solution you found.

    bonito
Sign In or Register to comment.