Having some issues with search bar

This topic contains 34 replies, has 5 voices, and was last updated by  Kiran 7 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #340684

    Tom Rendle
    Buyer
    Post count: 46

    Please check out powerlily.io/hub and try to do a search for something and you’ll see what I mean. Seems to pull everything instead of the specified CPT. Even getting group buddy drive uploads.
    Might be a plugin conflict. I will leave admin details below in case they are needed.

    #340685

    Tom Rendle
    Buyer
    Post count: 46
    This reply has been marked as private.
    #340704

    Guust
    Moderator
    Post count: 29970

    Works fine for me.
    Are you searching with the GD Search or the normal WP search?

    #340960

    Tom Rendle
    Buyer
    Post count: 46

    Yeah I mean the GD search on the GD_Home top section. Currently you can’t search for anything because the hourglass spins indefinitely after you type something in. It’s not auto-completing categories either and pulling weird results. Definitely playing up. Try a search from https://powerlily.io/hub and you’ll see what I mean.

    #340961

    Tom Rendle
    Buyer
    Post count: 46

    Also the map won’t load new data when you scroll on it.

    #340964

    Tom Rendle
    Buyer
    Post count: 46

    Actually ignore that, I think it’d just being slowed down. I intend to use a cdn in the future so it should fix the map loading slowly.

    #340966

    Tom Rendle
    Buyer
    Post count: 46

    But the map icons now only say [object][object] when you click them instead of information…. It’s a bit tedious.

    #341047

    Kor
    Moderator
    Post count: 16516

    Hi Tom,

    I’ve tried searching for the keyword “Solar” and the map is not displaying. Upon inspecting, I noticed that there is console error with the message “You have included the Google Maps API multiple times on this page. This may cause unexpected errors.”. http://prntscr.com/ducorg

    This could be caused by some type of conflict with a plugin. Could you try deactivating all non-gd plugins and see if it fixes the issue there?

    Thanks!

    #341050

    Tom Rendle
    Buyer
    Post count: 46

    Yeah I’m not sure why it thinks there’s code twice on the page. The map does show for me and seems to be working normally now. The problem I’m having is with the gd search. It seems to be pulling all 48 odd posts whenever I try to search for something specific. If I keep the cpt to installer and set the region to quebec it just pulls everything, including group docs. It’s really weird. It will autocomplete places and when I click it it takes me there, so that’s good. But doing actually searches seems to be broken.

    #341060

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    there is a javascript error and GD Booster is not happy with it.

    
    
    TypeError: data.split is not a function
    http://powerlily.io/wp-content/plugins/geodir_gd_booster/booster_js.php?dir=%3E/%3E/booster_cache/25f7377fc59a7dac46ae56a97dac290e_plain.js,%3E/%3E/booster_cache/98fa24080102dd2789fc90b0e693de55_plain.js,%3E/%3E/%3E/wp-includes/js/jquery/jquery-migrate.min.js,%3E/%3E/%3E/wp-includes/js/plupload/plupload.full.min.js,%3E/%3E/booster_cache/f6a911ca37c43cb98723b80ffbd989b5_plain.js,%3E/buddypress/bp-core/js/confirm.min.js,%3E/buddypress/bp-core/js/widget-members.min.js,%3E/buddypress/bp-core/js/jquery-query.min.js,%3E/buddypress/bp-core/js/vendor/jquery-cookie.min.js,%3E/buddypress/bp-core/js/vendor/jquery-scroll-to.min.js,%3E/%3E/booster_cache/9eefb61cf48113ee1b96f618f8f7a758_plain.js,%3E/%3E/themes/kleo/buddypress/js/buddypress.js,%3E/geodir_advance_search_filters/js/frontend.min.js,%3E/geodir_claim_listing/js/claim-script.js,%3E/%3E/booster_cache/ebbfc33c4ab32ae92f76293c7997bcc5_plain.js,%3E/geodirectory/geodirectory-assets/js/geodirectory.min.js,%3E/geodirectory/geodirectory-assets/js/chosen.jquery.min.js,%3E/geodirectory/geodirectory-assets/js/ajax-chosen.min.js,%3E/uscanadahtmlmap/static/js/jquery.nicescroll.js,%3E/%3E/themes/kleo/assets/js/init.js,%3E/%3E/themes/kleo/assets/js/modernizr.custom.46504.js,%3E/%3E/booster_cache/43fa9dad344450166ec030dda62a3c10_plain.js,%3E/%3E/%3E/wp-includes/js/mediaelement/mediaelement-and-player.min.js,%3E/%3E/%3E/wp-includes/js/mediaelement/wp-mediaelement.min.js,%3E/%3E/booster_cache/5ed06f37a25d150906845dd855a3a2b1_plain.js,%3E/buddypress-media/app/assets/js/rtmedia.min.js,%3E/%3E/booster_cache/7c04522996ace56ee06acee8414a5e6e_plain.js,%3E/rtmedia-social-sync/app/assets/js/rtm-ss.min.js,%3E/%3E/booster_cache/fb5c07873a99bda941e6029a527d96fd_plain.js,%3E/%3E/booster_cache/843c7966b5103a876f30591155e96ab8_plain.js,%3E/%3E/booster_cache/05931b07afc39d29d951a70c1a477297_plain.js,%3E/%3E/booster_cache/ef844dddcda73a2acf205e6670f41260_plain.js&cachedir=%3E/%3E/booster_cache&nocache=1484159155
    Line 2228

    I’ve alerted the developers who will help us fix this.

    They will let us know asap.

    Thanks

    #341150

    Tom Rendle
    Buyer
    Post count: 46

    Okay great, thank you!

    #341184

    Guust
    Moderator
    Post count: 29970

    1. The double MAP API call is from “Location Autocomplete for BuddyPress Profiles” plugin.

    2. So far I have tried the search about 5 times and I get no issues while logged in. It only happens when not logged in for me.

    3. “It’s not auto-completing categories”: where do you expect that? Autocompletion is only for listing Titles or Locations, see
    https://wpgeodirectory.com/docs/search-filters-overview/#near
    and
    https://wpgeodirectory.com/docs/search-filters-overview/#search

    4. There is no map on the search page because there is no map widget added to any of the GD Search sections.

    #341189

    Tom Rendle
    Buyer
    Post count: 46

    I thought there might be an issue with that plugin since it deals with addresses. I am continuously having issues. The default category for the gd search is solar installers, if I keep this and select say, Canada, as a region, instead of pulling up anything remotely close to “solar installers” or even “canada” I get a list of all 48 posts on the site. When I said autocompleting categories I meant autocompleting listings within a category. And in fact it does autocomplete listing categories such as “photovoltaics” one of the sub(?) categories of the “solar installer” CPT although clicking this brings me to a page with no results, even though this is the default category for all solar isntallers.

    I believe Paolo above noticed an error and hopefully pursing this will solve my problems.

    I am aware there is no map widget on search gd search.

    If you are searching on gd home which is /hub on my site and working then I am very confused. For me it doesn’t matter if I’m logged in or not.

    Really need help with this one as it was working fine before.

    #341192

    Tom Rendle
    Buyer
    Post count: 46

    If you type solar and you see the utility scale installs popping up these aren’t solar installers, they are the “completed systems” cpt. In fact, this may be why you’re confused, searching solar seems to pull 28 results which is not all of them, but there is still content here that shouldn’t be here. It is pulling any post with solar in it without looking at the post type.

    #341193

    Paolo
    Site Admin
    Post count: 31206

    Is it maybe browser related too? I see everything Tom says on Firefox. I haven’t tested with Chrome nor Edge/Safari.

    I’m 100% sure there is a JS error that is breaking the combined script generated by GD Booster.

    Kiran will enlighten us all as soon as he comes back online 🙂

Viewing 15 posts - 1 through 15 (of 35 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount