[resolved] Ajax refresh goes through https even if site is http (4 posts)

  1. huyz
    Posted 4 years ago #

    This is similar to the problem in core with image headers: http://core.trac.wordpress.org/ticket/14835

    What happens is that for some reason generalstats is making an https call to https://mysite.com/wp-admin/admin-ajax.php even though I'm connecting to http://mysite.com/ via http.

    That's because my admin interface is accessed through https with a self-signed certificate, which breaks silently with Ajax (no browser warning popup in this case). What GeneralStats should do is check what protocol the page is using, just as in the core ticket above and invoke http if the site is http.

    Otherwise, Ajax refresh will not work with sites with a self-signed certificate.

  2. Bernhard Riedl
    Plugin Author

    Posted 4 years ago #

    Hi huyz,

    Thanks for the info and the link. - I've implemented the changes but unfortunately have no environment setup for testing. - Could you help me out and give the new version a spin on your system?

    Here's a link to my mail-address.


  3. huyz
    Posted 4 years ago #

    Email sent.

  4. huyz
    Posted 4 years ago #

    The new alpha resolves it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GeneralStats
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic