Solve PHP issue Allowed memory size of 134217728 bytes exhausted (tried to allocate 282624 bytes)

When you are working with large loop, Image Processing or PDF creation in PHP. That need lots of memory at runtime and you can get the error.

Allowed memory size of 134217728 bytes exhausted (tried to allocate 282624 bytes)

This error occur because your Default php.ini memory_limit is 128 MB.

To solve this error follow the steps:

1. Open active php.ini file.

2. Find the line memory_limit = 128M in the php.ini file.

3. Change it to 1024MB or according to your need of memory.

4. Save and restart Apache or PHP FPM server which you are using.

Keywords: