2

I'm suddenly having issues with multiple Craft builds on my local dev environment.

Basically, everything else is working fine but when I edit a field the page breaks. It appears to only be displaying the form with any html, head or body tags. I installed a fresh copy and the issue also occurs on that build. I'm thinking it could be an issue with my version of MAMP or perhaps it's a known issue. Any ideas?

  • If you check your browser's console, are you getting any errors? – Brad Bell Nov 15 '14 at 2:59
  • I saw this one error. Failed to load resource: net::ERR_CACHE_MISS but that doesn't appear to be associated with this problem. That error doesn't show up in other browsers. – Mike McCarron Nov 15 '14 at 3:01
  • I think that's coming from the AdBlock extension in Chrome. Click on the resources tab and check the response of a CSS or JS file. Is it normal? – Brad Bell Nov 15 '14 at 3:05
  • There are no resources being loaded because the page lacks an html, body, and head tags etc. It starts with a form tag. – Mike McCarron Nov 15 '14 at 3:07
  • I just found this at the bottom of the source code. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /Users/###/###/craft/app/vendor/twig/twig/lib/Twig/Node/Module.php on line 244. – Mike McCarron Nov 15 '14 at 3:09
2

Looks like PHP is running out of memory. You can edit your php.ini file's memory_limit setting to something higher than 32M, which is probably what it's set to right now. Bump it up to 64M or 128M and restart Apache and you should be set.

| improve this answer | |
  • Thank you. That's exactly what it was. I appreciate your help! – Mike McCarron Nov 15 '14 at 3:14
  • Awesome... no worries! – Brad Bell Nov 15 '14 at 3:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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