WordPress.org

Ready to get started?Download WordPress

Forums

Dave's WordPress Live Search
[resolved] Broken in WP 3.3 (7 posts)

  1. cadbloke
    Member
    Posted 3 years ago #

    It doesn't seem to work any more since I updated to 3.3.

    It doesn't matter whether I'm logged in or not.

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

  2. Dave Ross
    Member
    Plugin Author

    Posted 3 years ago #

    It was tested with all the RC versions before 3.3 came out, and works ok with 3.3 on my main blog. I know a lot of plugins did releases to coincide with 3.3 -- I wonder if one of those introduced an incompatibility.

    What, specifically, is it doing (if anything?)

  3. cadbloke
    Member
    Posted 3 years ago #

    Hi Dave

    My site is http://www.CADbloke.com I had a look with Fiddler and it doesn't seem to be sending the request data. The spinner comes up in the search box and it connects via an SSL tunnel but the request seems ot have no body - nothing happens after that. Note that the SSL cert on my server is not in my site's name because it is a shared server.

    If it's just me then it's probably an ajax thing. I'll look into it further over the xmas break (if I get around to it) and let you know if I find a clash

  4. Dave Ross
    Member
    Plugin Author

    Posted 3 years ago #

    Looks like you have FORCE_SSL_ADMIN turned on, which can cause cross-domain issues when the plugin calls out to admin-ajax.php. If I go to https://www.cadbloke.com/autocad-full-screen-shortcut/ the Live Search works fine.

    Now, if I pop open the Javascript console and override the AJAX URL to one without a protocol:

    DavesWordPressLiveSearchConfig.ajaxURL = "\/\/www.cadbloke.com\/wp-admin\/admin-ajax.php"

    It works ok on the HTTP version. So I guess I can safely strip the protocol from the ajaxURL and *knock on wood* it'll work.

  5. cadbloke
    Member
    Posted 3 years ago #

    Hi Dave

    Yes, I do have FORCE_SSL_ADMIN set to true.

    Curious that it works on the page you linked to but not http://www.cadbloke.com/autocad-lt-missing-plot-styles/ nor others I looked at. I thought I saw it work intermittently, then I thought I was going mad. I suppose this is still not guarantee that I'm not going mad but at least I was right about that.

    Let me know if you want me to test a version before you release it.

    cheers
    Ewen

    ps - sorry for the delay - I actually had a holiday, yay!

  6. Dave Ross
    Member
    Plugin Author

    Posted 3 years ago #

    The development version at http://downloads.wordpress.org/plugin/daves-wordpress-live-search.zip should have the fix you need. I found I can force the admin_url() function to give me an HTTP or HTTPS rule as needed, instead of letting it check FORCE_SSL_ADMIN. So now my code is going to be pulling the URL based on the current page's protocol instead.

    Give it a try and let me know how it works out for you. It seems pretty stable (I'm running it on csixty4.com), but I think I'm going to do a little more work before the next big release.

    Glad you got some time off. My wife made me take some extra time off around the holidays, too. It was nice to just relax and not think about work, volunteering, or even open source. But now I have a backlog of support requests. Thanks for your patience!

  7. cadbloke
    Member
    Posted 3 years ago #

    Hi Dave

    That works. Thanks ! Oddly enough the busy graphic is missing in the dev version of chrome. I wouldn't be concerned about that if I were you because I'm logged into it, and because it's the dev version. They break it all the time.

    Thanks for looking into it

    cheers
    Ewen

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic