My site has recently been experiencing the 'White screen' and I've gone through a whole checklist of things to try and fix it. In the PHP error logs I'm getting the 'allowed memory size exhausted'. Following the usual troubleshooting steps, i've attempted to disable plugins to find the one causing the error, and everything seems to fix as soon as i disable Toolset Types. I've got two pages which use a Toolset view (search field), and when I have Types enabled those pages show a white screen, whilst all the pages without any toolset views show perfectly fine. As soon as i disable Types the pages load fine again, however the search function is obviously broken. This is quite a problem as a lot of the site functionality relies on custom field content, so disabling Types long-term isn't really a solution. Is there any way to resolve this?
What is the link to your site?
hidden link
(site is currently in maintenance mode whilst the error persists)
Thank you for contacting us and I'd be happy to assist.
The Toolset Types plugin is the main plugin that manages the custom post types, custom fields, and custom taxonomies that you've registered on the website. This is why the website needs more memory when it is activated.
We recommend at least 128M of PHP Memory Limit and for a website with many custom post types, custom fields, and custom taxonomies, it is better to increase it to 256M or an even higher value.
I hope this helps and please let me know how it goes.
Thanks for getting back to me so quickly. The PHP memory limit was already set to 256M, and unfortunately that's as high as my hosting provider goes, but from what I read that seems like it should be more than enough to handle most of what's going on with my site, however the issue has been pretty persistent since recent updates.
Unfortunately the main error message I get is "PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 172032 bytes) in Unknown on line 0" so i can't really pinpoint which exact file is causing the issue, and the occasional other alternate error messages read "PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /usr/..../wp-includes/meta.php on line 1190" which i believe is a WordPress core file, so there's not much I can investigate there.
It seems disabling Toolset Types OR Toolset Blocks both resolve the issue, but since the two plugins are both pretty core to the websites functionality it also really isn't an option to leave either disabled, hence my problem. If there's any other information you need to better help diagnose the issue though please let me know.
To troubleshoot this further, I'll need to see how different Toolset elements are set up in the admin area.
Can you please share temporary admin login details, in reply to this message? And, If you've noticed that the out-of-memory errors are experienced usually on any particular page or section, do let me know about that too.
I'll also need your permission to download a clone/snapshot of the website, in case it needs to be investigated on a different server.
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
I looked into the issue you described above, and—to cut to the chase—it seems you have a fairly large complex site (an e-commerce membership site) for which you need more server resources than typical sites. As well as improving the available server resources, you should probably look into the caching solutions available that should help speed up your site.
Navigating the back end of your site I noticed it was very sluggish. When I went to Tools > Site Health I couldn't even switch to the Info tab. I tried manually uploading a plugin so that I could take a copy for debugging, and it couldn't complete the process of adding a plugin that way. That isn't related to Toolset in particular, and is a reflection of server stress more generally.
I did manage to install a copy of your site locally, but on my local server I had to raise the available memory (to 512) as well as max_execution_time to be able to complete the installation.
Visiting the architect search page on the front end with the Query Monitor plugin active I could see that the server itself was taking about 17s to generate a response. There was one slow query, although slow in this case is trivial in the context of the overall load time. In any case you should be able to prevent that slow query by changing the custom search setting for the View shown in my screenshot (note, it says it has a performance impact when active).
I deactivated the non-Toolset plugins on the site and the load time for the architect search page dropped sharply, to 2.5s.
It's not obvious that any one plugin is causing the problem, rather than it being a reflection of the size and complexity of your site.
If the maximum memory available from the host is 256M you will need to discuss with them releasing more memory. Depending on how busy your site is you are likely to need at least double that.