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.

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...

  • 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

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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