Support » Plugin: ACF: Better Search » Plugin doesn’t show any results

  • Resolved zygwak

    (@zygwak)


    Hello there,

    I’m having a hard time trying to fix a problem with ACF search. I’m working on woocommerce store previously set-up by someone else and quite neglected. Upon trying to search anything, the store returns this prompt:

    Oops! That page can’t be found.
    It looks like nothing was found at this location. Maybe try one of the links below or a search?

    Szukaj:
    Szukaj …
    When autocomplete results are available use up and down arrows to review and enter to go to the desired page. Touch device users, explore by touch or with swipe gestures.
    Most Used Categories
    Brak kategorii
    Archiwa
    Try looking in the monthly archives. πŸ™‚

    I’ve tried running a Lite mode, then adding Incorrect mode, nothing seems to work, BUT one time the search actually returned the results as expected (on lite mode) – and then stopped working again. πŸ™

    Can you please help me figure out what to do? Cheers!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @zygwak,

    Thank you for your message.

    Please read this thread:
    https://wordpress.org/support/topic/admin-backend-woo-product-search/

    Thank you @mateuszgbiorczyk. Does the info in the link mean the search won’t return any results even upon searching the product name? Or that it won’t return results upon searching amongst custom fields?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    The plugin is not compatible with WooCommerce, so the product search functions as the default WooCommercework. The plugin does not affect them in any way.

    Thank you for your response, but it seems the problem lays elsewhere. I managed to make one positive search by inputting only two letters: “BE” (and it only worked once…). It returned this page URL:
    http://skorpion.info.pl/wyszukiwanie/?phrase=be
    Upon changing “be” to anything else, the search results work just fine (well it searches the description too, but still – it does work):
    http://skorpion.info.pl/wyszukiwanie/?phrase=pojemnik
    Can you think of anything?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    I will try to help you, but I need some extra things from you:

    1. Screenshot of your search results (entire browser window).
    2. SQL query displayed after change in plugin code (https://gbiorczyk.pl/img/8jYkbzF.png) when you try to search for something.
    3. ID of post you want to find.
    4. Screenshot of the edit page of the post you want to find.
    5. Database dump (only table wp_posts and wp_postmeta tables). Please delete private data from it, if any.
    6. Screenshot of the plugin settings page.

    zygwak

    (@zygwak)

    Before I start collecting this data, I stumbled upon something – may be worthwile and save some time.

    That input tag is marked with ID searcPhrase – when I manually change it via console to searchPhrase, the search goes on… almost well – it then proceeds to URL:
    http://skorpion.info.pl/wyszukiwanie/?phrase=
    But, as you can see, the “phrase” is empty, so it returns all products in the store.

    Should I fetch that data you asked for, or does this novum change anything?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Are you sure the problem is with my plugin?

    zygwak

    (@zygwak)

    I can’t be sure – if I were, I think I could manage to fix it πŸ˜‰

    Well it seems someone who implemented it before me made some kind of mistake. Let’s say I fix that spelling mistake and find the place, where searcPhrase is stored and change it to searchPhrase. How can I ensure the phrase is then correctly inputted into search results URL?

    EDIT – I changed searcPhrase to searchPhrase and it doesn’t give that error page no more, but it still doesn’t store the inputted text in the URL.

    • This reply was modified 2 months ago by zygwak.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Please refer to the plugin description, there you will find information on how the plugin works. For testing, disable the plugin and use the post titles. How it will work then test the search among the phrases in the ACF fields.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.