Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Jan-Peter

    (@starguide)

    Hi,

    could you provide a link to your site?

    JP

    Thread Starter Christoph

    (@camthor)

    barma.burma-center.org – it’s under development

    Thread Starter Christoph

    (@camthor)

    Not sure if that is connected, but I also don’t manage to get the English texts on the frontend. Language is everywhere set to “auto”.

    Plugin Author Jan-Peter

    (@starguide)

    Your backend seems to work fine. If you move your mouse over the shariff buttons the share counts are shown correctly. Do you still get the error message on the status section?

    The button language is a small bug that will be fixed in the next hours.

    Thread Starter Christoph

    (@camthor)

    Thanks!

    The status still shows in red “Error” and then “Backend Error”. I just sent a test tweet but the number does not change (“Cache TTL” is 60 secs, I waited some time; page cache is off).

    Thread Starter Christoph

    (@camthor)

    That error is triggered in shariff.php, right?
    I dumped $backend_output_json[‘googleplus’] and $backend_output_json[‘facebook’], both are NULL.

    Thread Starter Christoph

    (@camthor)

    Seems that turning off SSL verification does the trick:

    $backend_output = sanitize_text_field( wp_remote_retrieve_body( wp_remote_get( $backend_testurl, array('sslverify' => false) )));
    Thread Starter Christoph

    (@camthor)

    Would be great if you could implement it in the next version so that I needn’t change the code again after the update. I assume it is no security issue to skip verification at this point. Many websites may use self-signed certificates.

    Plugin Author Jan-Peter

    (@starguide)

    I just shared your homepage with one of my test accounts on Facebook and Twitter and both shared counts increased as it is supposed to be. So the backend is working, only the test in the status section does not seem to.

    Since the status section only serves the purpose of providing information for the site owner, this has actually no influence on the buttons itself. The backend does not use the shariff.php to retrieve the share counts.

    If sslverify false does the trick for you, it indicates a problem with an outdated or missing copy of the CA Root Certificates. In general it is not advised to turn sslverify of for security reasons.

    Thread Starter Christoph

    (@camthor)

    In general not, but here it only checks the right functioning, I assume. In the worst case a “man in the middle” tells me the stats are working, while they actually don’t. ??

    OK, it is your decision.

    Plugin Author Jan-Peter

    (@starguide)

    You could also just accept the error message in the status section, since it doesn’t do any harm I guess and the share counts are working anyways. ??

    But I’ll look into it, to see if I can optimize the status section to reflect ssl problems for easier verification of issues like this.

    Cheers,
    JP

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Backend error of Statistics’ is closed to new replies.