We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!

Answered Fatal error?

    • 7527
    • 437 Posts
    Hi, All of a sudden one of my pages has suddenly stopped loading and started showing this error:

    Fatal error: Out of memory (allocated 66060288) (tried to allocate 65484 bytes) in /homepages/10/d568633693/htdocs/core/cache/includes/elements/modsnippet/47.include.cache.php on line 70


    Tried again and got this code:
    Fatal error: Out of memory (allocated 66060288) (tried to allocate 114688 bytes) in /homepages/10/d568633693/htdocs/core/cache/includes/elements/modsnippet/47.include.cache.php on line 382


    Not sure what the problem is?

    This question has been answered by BobRay. See the first response.

      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 41255
      • 19 Posts
      If you have access to php.ini you can consider to increase the memory allocated for PHP.
      The memory limit is specified in the following line:

      memory_limit = 128M

      Restart apache after editing php.ini.

      Read also: http://php.net/manual/en/ini.core.php#ini.memory-limit
        • 7527
        • 437 Posts
        The only php.ini file I have is in my root and has a single line:

        date.timezone = Europe/London


        Is it just a simple case of adding
        memory_limit = 128M
        underneath it?

        Thanks
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk
          • 41255
          • 19 Posts
          I guess you're on shared hosting. I don't know if it will work.

          What is the current value in phpinfo()? (via Manage > Reports > System Info)
            • 7527
            • 437 Posts
            It states 120M...
              www.PawsForWildlife.co.uk
              www.Borntobrick.co.uk
              • 41255
              • 19 Posts
              Delete all files in the cache folder manually: /core/cache/

              If it doesn't help I will advise to contact your hosting provider about the memory limit.
              • discuss.answer
                • 3749
                • 24,544 Posts
                The most common cause of that is a recursion somewhere. Most often, a page contains a tag for an aggregating snippet (e.g., getResources or pdoResources) that includes that page in it's collection (launching itself again and again).

                BTW, do you have the ControlErrorLog extra installed? That once caused a recursion for me, though it only did it for a short period.
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 7527
                  • 437 Posts
                  I dont think so BobRay. I had a called that chose parents as '[[*id]], I changed this to an ID number instead and it seemed to resolve the issue. Thank you all for the info
                    www.PawsForWildlife.co.uk
                    www.Borntobrick.co.uk
                    • 3749
                    • 24,544 Posts
                    That would do it. smiley
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting