0 like 0 dislike
25 views
asked in PHP by (5.8k points)

PHP Fatal error: Out of memory (allocated) (tried to allocate 4096 bytes) in /sites/site.loc/www/script.php on line, referer...

PHP error out of memory, allocated...
Out of memory (allocated) (tried to allocate bytes)...

How to decide PHP out of memory error?

Your answer

Try to answer the question as detailed as possible.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

0 like 0 dislike
answered by (5.8k points)

You need increase value memory_limit in php.ini file:

; Resource Limits
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M ; Maximum amount of memory a script may consume (8MB)

Related questions

0 like 0 dislike
1 answer 35 views
0 like 0 dislike
1 answer 2 views
0 like 0 dislike
1 answer 31 views
0 like 0 dislike
1 answer 28 views
asked Oct 10, 2018 in PHP by Pantycle_Genefanty (5.8k points)
0 like 0 dislike
1 answer 20 views
0 like 0 dislike
1 answer 38 views
0 like 0 dislike
1 answer 11 views
0 like 0 dislike
1 answer 18 views
0 like 0 dislike
1 answer 17 views
0 like 0 dislike
1 answer 20 views
...