WordPress.org

Ready to get started?Download WordPress

Forums

Dave's WordPress Live Search
Will not work with SSL in WPadmin (3 posts)

  1. lesb55
    Member
    Posted 2 years ago #

    If I set my wp-config to:
    define('FORCE_SSL_ADMIN', true);

    Dave's live search won't work (the little loading wheel just keeps spinning).
    I do have an SSL certificate correctly set up on my server.

    Anyone else struck this?

    http://wordpress.org/extend/plugins/daves-wordpress-live-search/

  2. lacohido
    Member
    Posted 1 year ago #

    I'm not an expert, but this is what I did... I don't know if this is a security issue. Maybe the developer can confirm this:

    I changed line 106 on DavesWordPressLiveSearch.php:
    ajaxURL' => admin_url('admin-ajax.php'),
    to
    ajaxURL' => admin_url('admin-ajax.php', 'http' ),

    Also, see admin_url function reference

  3. Dave Ross
    Member
    Plugin Author

    Posted 1 year ago #

    The problem with forcing it to use http like that is that some people have the public side of their site set up to use https. This could be for security, or it could be part of a SPDY integration. In that case, the public-facing page itself is loading with HTTPS, and if you you load the AJAX content with HTTP, that's going to cause a mixed content security warning.

    The way I'm doing it is the preferred way to call admin_url, according to the Codex. I'll ask around and see if any of the core devs have any insight.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.