Background of the issue:
I am trying to access the homepage of my site, but sometimes (once every month or more) I encounter a fatal error. The issue is resolved temporarily by renaming the sitepress-multilingual-cms folder, renaming it back, and reactivating the plugin. The error can be seen on the homepage: hidden link
Symptoms:
I am seeing a fatal error in the server log: 'Uncaught Error: Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached'. Additionally, there are PHP warnings about undefined array keys 'width' and 'height' in media.php.
Questions:
How can I prevent the fatal error from occurring on the homepage?
What causes the 'Maximum call stack size' error and how can it be fixed?