I am trying to:
Run Toolset Maps without issue. Our site recently crashed requiring a full restore. The only error we can track through the entire thing is this (below). The pages that we had trouble with were all pages where a map view was embedded.
Link to a page where the issue can be seen:
Please set to private before we share links.
I expected to see:
No Errors
Instead, I got:
[28-Sep-2020 23:03:50 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 10485760 bytes) in /home/site/live.site.com/wp-content/plugins/toolset-maps/includes/toolset-common-functions.php on line 1226
This is the only error that's been showing and it's been showing for several days. It may be related to the crash, it may not be, but in any case we'd like to get it sorted. What's really strange is that we have a test site and a live site, both running the same versions and this is only occurring on the live site.
Have you tried increasing the PHP memory limits on the server? The error states that the server ran out of allocated memory while performing some task (which at the time was from Maps).
The amount you need to allocate is very much dependent on the size of the site, the number and type of plugins currently active etc., so any requirement (as listed at https://toolset.com/toolset-requirements/) is very much a minimum, and the actual requirements may be rather higher on real world sites.
I have checked the debug information you provided above, the "MemoryLimit" setting is 256M, and your website is using lots of plugins, so it is not enough.
2) Dashboard-> Toolset-> Settings, click link "Toolset Debug Information and Troubleshooting ", search and find the setting "MemoryLimit", make sure it does take effect in your website.
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/.../wp-content/plugins/toolset-maps/includes/toolset-common-functions.php on line 1227
Need some more advice on this one.
Perhaps just some understanding of how the plugin works...
What could be causing this issue...
Ideas for how we can fix it without just endlessly increasing the memory allowance?
This error was hitting every two minutes (so probably everytime the map was being used).