close

[Solved] Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) Laravel

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) Laravel in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) Laravel Error Occurs?

Today I get the following error Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) Laravel in php.

How To Solve Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) Laravel Error ?

  1. How To Solve Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) Laravel Error ?

    To Solve Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) Laravel Error I had this problem when trying to resize a CMYK jpeg using the Intervention / gd library. I had to increase the memory_limit.

  2. Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) Laravel

    To Solve Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) Laravel Error I had this problem when trying to resize a CMYK jpeg using the Intervention / gd library. I had to increase the memory_limit.

Solution 1


You can try editing /etc/php5/fpm/php.ini:

; Old Limit
; memory_limit = 512M

; New Limit
memory_limit = 2048M

You may need to restart nginx:

sudo systemctl restart nginx

You may also have an infinite loop somewhere. Can you post the code you’re calling?

Solution 2

I had this problem when trying to resize a CMYK jpeg using the Intervention / gd library. I had to increase the memory_limit.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment