WP Search Allowed memory exhausted
-
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 1064This 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
- The topic ‘WP Search Allowed memory exhausted’ is closed to new replies.