WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. huyz
    Member
    Posted 2 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
    Member
    Plugin Author

    Posted 2 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.

    Cheers,
    Berny

  3. huyz
    Member
    Posted 2 years ago #

    Email sent.

  4. huyz
    Member
    Posted 2 years ago #

    The new alpha resolves it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic