Roots Discourse

Out of memory issues when running Thrive Architect on Sage

Has any one experienced php out of memory issues when running Thrive Architect plugin with Sage?

Errors for me no matter how much RAM I give it. I know that the plugin runs on non Sage setups, trying to find out if this was a Sage specific issue.

Not sure what you mean by giving RAM, I assume you mean in your virtual machine something along those lines. You can increase how much memory a PHP process can use in php.ini

Sorry made it unclear, yes I upped php’s memory limit all the way to 1Gb, still did not work.

What are the errors you’re seeing?

Seeing error 500 in the browser.

This is the error I am seeing on the server.

2018/10/31 10:20:01 [error] 4737#4737: *851115 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 16384 bytes) in /srv/www/project/releases/20181031091603/web/app/themes/sage/vendor/illuminate/view/Engines/PhpEngine.php on line 35
PHP message: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 200704 bytes) in /srv/www/project/releases/20181031091603/web/wp/wp-includes/functions.php on line 3743
PHP message: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 200704 bytes) in Unknown on line 0" while reading response header from upstream, client: 162.158.154.142, server: website.com, request: "GET /?page_id=4895&tve=true&tcbf=3f361a2b3e HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm-wordpress.sock:", host: "website.com", referrer: ["https://website.com/wp/wp-admin/post.php?post=4895&action=architect&tve=false"](https://website.com/wp/wp-admin/post.php?post=4895&action=architect&tve=false)

I use Thrive plugins. Did you find a way to fix this?

nope, just ditched the plugin

Aha, OK. I’m going to try loading my Thrive plugins via composer…

Bump your PHP memory/execution time related settings. If you’re using Trellis, this is how you’d do it:

1 Like

Hi Ben, yes remember raising it to silly levels, over 1GB, still did not help. Have to admin I did not play with execution time, but then if it takes minutes to load a page, there is something inherently wrong.