Site logo

[Support request] Query Loop Include Post No Results

Home Forums Support [Support request] Query Loop Include Post No Results

Home Forums Support Query Loop Include Post No Results

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #2400564
    Ian

    When using the Query Loop to Include Posts, I cannot locate a few specific posts when searching for title or url keywords or post ID. Have opened up a ticket with web host and they do not see any php or memory errors. Never ran into this before even on very large sites. Any ideas on how I can target posts to display in the Query Loop when a search cannot locate them?

    #2400678
    Ying
    Staff
    Customer Support

    Hi Ian,

    Can you make sure you enter the full title of the post when trying to search?

    It will return No search result if it actually returns a lot of posts, so that the editor doesn’t crash.

    #2400687
    Ian

    Interesting. I am getting No options as a return. Is that a clue?

    #2400689
    Ian

    By the way, I have tried searching for the exact title, exact URL without hyphens etc…

    #2400766
    Fernando
    Customer Support

    Hi Ian,

    For reference, can you share the link to the site in question?

    And, can you provide a name of a specific post we can try searching?

    You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #2400826
    Ian

    Sounds good. I have provided the creds in the private info area.

    #2400837
    Fernando
    Customer Support

    I see. It’s most likely because of your AJAX search plugin. Was it working before?

    If you disable it, does the Search functionality work?

    If so, it might be best to reach out to the support of this plugin for assistance with regards to this.

    #2400845
    Ian

    I am thinking along those lines that something is limiting the search in the loop. I have a site with over 1000 posts and it finds the proper one very easily.

    The staging site actually do not have the search plugins activated. The site is already running only bare minimum plugins as a test, I only ran GP Premium, GB and GB Pro and still not working. Do you think it could be a memory limit issue at the web host?

    #2400855
    Fernando
    Customer Support

    I see. I actually wasn’t able to check the staging site. I was only able to test the live site’s search functionality.

    To clarify, the search functionality doesn’t work in the staging site as well?

    We might need to recheck to re-access the issue.

    #2400857
    Ian

    Let me provide the staging access here.

    #2400858
    Fernando
    Customer Support

    Thank you. The search functionality seems to be working as expected in the staging site.

    Are you encountering issues here as well?

    #2400868
    Ian

    It’s the search function in the Loop when trying to use “Include Posts”. Were you able to include the “40000” post?

    #2400948
    Fernando
    Customer Support

    I see. Yes, having that many posts may result in “Timeouts” when loading something in the Backend.

    In Tools > Site Health > Info > Server, what value is PHP Time limit? You may need to increase this with the amount of Posts you have.

    Let us know.

    #2401918
    Ian

    Here are the settings. These seem fairly high already. Which one(s) do you think we need to ask the web host to increase so we can test?

    PHP max input variables: 10000
    PHP time limit: 600
    PHP memory limit: 1024M
    Max input time: 60
    Upload max filesize: 640M
    PHP post max size: 1024M

    #2402048
    Ying
    Staff
    Customer Support

    Hi Ian,

    When I tried to search with the full title of the 2 posts in WP posts, one returns 161 results, and the other returns 22 results.
    https://www.screencast.com/t/kNpfCnYLtF

    I could be wrong, but I think that might be the reason, also the 2 posts are pretty old.

    I’ll have Tom have a look, it’s an odd one.

Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.