Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1540673 bytes) in /home/appdev/glicious/Nutrition.php on line 41

If you haven't noticed, 134217728 is two orders of magnitude greater than 1540673.

share|improve this question
add comment

1 Answer 1

up vote 18 down vote accepted

The first number is the maximum amount you can allocate, the second is the amount you attempted to allocate that bumped you over the edge. You could have had (first number - 1) bytes allocated already...

share|improve this answer
    
Aaah okay thanks for clarifying that. The message is a bit misleading /= –  David Cowden Jun 18 '12 at 5:06
    
Totally, lame error message. Yay PHP? :) –  Bill Weiss Jun 18 '12 at 15:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.