The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. lesb55
    Posted 4 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?


  2. lacohido
    Posted 3 years 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'),
    ajaxURL' => admin_url('admin-ajax.php', 'http' ),

    Also, see admin_url function reference

  3. Dave Ross
    Plugin Author

    Posted 3 years 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

  • Dave's WordPress Live Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.