• When using this plugin and I navigate to my search page (/s=) I get a
    Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /wp-includes/meta.php on line 1064

    This error happens about 30% of the time.
    Other times the page loads successfully, but loads very slowly around 5 seconds.

    When I disable the plugin the error goes away and the page loads quickly.

    Another odd issue with it is this error only happens when not logged in.
    If I am logged in as an Administrator and I have the plugin enabled then the search page still loads fine, but I am assuming that is because the plugin doesn’t track logged in users.

    PS. This seemed to only happen after updating to WP 5.7
    Before 5.7 I never got an error, but the page still loaded slowly.
    I always thought it was due to the amount of posts, but now I know it is not.

    I have 3619 results on my search page that span 5 different post_types and I am paginating them at 10 per page.
    I am using php 7.4
    I have increased my PHP memory limit and the issue still occurs.
    I have disabled all other plugins and the error still happens.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author braekling

    (@braekling)

    Did you try to disable tracking of search requests in the plugin’s tracking settings? Maybe this is a workaround, and if this will solve the issue, I can have a closer look at the related code to identify the issue’s cause.

    Thread Starter GeddeDev

    (@ggedde)

    Sorry, we recently removed the plug-in and are using just the js script now. I don’t have time now to go back and test it. Sorry.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Search Allowed memory exhausted’ is closed to new replies.