Magento – Fatal error: Allowed memory size of 805306368 bytes exhausted

apachemagento2memoryPHPwamp

I installed Magento on WAMP Server and I have PHP Fatal error:

  Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 262144 bytes)

I tried to increase memory_limit to 1G in:

1) Wamp Server -> PHP -> php.ini

2) .htaccess in magento root folder

3) .user.ini in magento root folder

but it still doesnt work.

I also tried

  ini_set('memory_limit', '2048M');

in php file but it doesnt affect memory limit to.

When I run phpinfo() in magento root folder it shows
memory limit master value 1G but local value still 768M.

How can I force magento to increase that memory limit?

Best Answer

Just clear "Var" folder in magento root directory, then Delete all files from static folder except .htaccess file. Please dont delete .htaccess file in static folder. You can find Static folder in magento root directory "pub" folder.

Then restart your server once.

You site will come back.

Thanks

Related Topic