I've done numerous searches and found some people with the same issue but nothing has helped. I'm hosted on GoDaddy's Grow Business hosting and installed Magento 2.2.4 through their cPanel. Everything has been working great. If I pull up phpinfo() I see it has a local memory limit of 756M (the minimum) and a master value of 512M.
Now I'm trying to install an extension through the Web Setup Wizard. When it runs the Readiness check it errors out that memory is only 512M. If I put in debug statements in the PHP readiness check scripts I see that ini_get('memory_limit')
is, indeed, 512M. But I can't find ANYTHING in the file system that's doing this. I tried putting a PHP.ini in the /setup folder, no help. I tried putting an ini setting in the .htaccess in the bin/magento
folder, no help. Finally, to get around this issue, I simply modified the core PhpReadinessCheck.php (I know, I know, it's temporary). Where it checks if the value is high enough, I just put another block that sets the value, then checks again.
if ($currentMemoryInteger > 0
&& $this->dataSize->convertSizeToBytes($currentMemoryLimit)
< $this->dataSize->convertSizeToBytes($minimumRequiredMemoryLimit)
) {
//set to 756M
ini_set('memory_limit', $minimumRequiredMemoryLimit);
}
Has anyone else run into this issue? Is there a better fix?