FOG Project

    • Register
    • Login
    • Search
    • Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Solved PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (Fog 1.2.0 missing FOG_MEMORY_LIMIT)

    FOG Problems
    2
    5
    1907
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lastchance12 last edited by lastchance12

      Fog 1.2.0/Kernel 3.14.2

      I am currently getting the below error every time I try and run a report for user login hist. I read many posts where Fog Settings/General Settings/FOG_MEMORY_LIMIT resolves this issue, but i do not have that option. Is there a work arround for this?

      Thanks,
      Chance

      [Mon Feb 29 13:47:54.355826 2016] [:error] [pid 17786] [client x.x.x.x:xxxxx] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /var/www/fog/lib/fog/FOGBase.class.php on line 53, referer: http://fogserver/fog/management/index.php?node=report

      0_1456772629445_upload-4775fb5e-2490-4faa-87e3-09bbaa018350

      1 Reply Last reply Reply Quote 0
      • L
        lastchance12 @Wayne Workman last edited by

        @Wayne-Workman
        Ubuntu 14.04.2 LTS
        Fog 1.2.0

        1 Reply Last reply Reply Quote 1
        • Wayne Workman
          Wayne Workman @lastchance12 last edited by

          @lastchance12 What operating system and version?

          Also, glad you got it working.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          L 1 Reply Last reply Reply Quote 0
          • L
            lastchance12 last edited by

            That was the fix. I just came back to post that I changed the php.ini file to 1024M, rebooted and it loaded the user login hist. For anyone else with this issue the file is located in /etc/php5/apache2 and I had to change permissions before making the change. Thanks for your help Wayne.

            Wayne Workman 1 Reply Last reply Reply Quote 1
            • Wayne Workman
              Wayne Workman last edited by

              1.2.0 doesn’t have that I think. But you can still change it manually.

              Edit php.ini
              Search memory_limit in your php.ini, and change the value of it. If there is no memory_limit found, add the following line at the end of php.ini
              memory_limit = 128M ;

              Change the 128M to your needs

              Save file and then Restart Apache.

              Resource used:
              http://tutorials.hostucan.net/how-to-increase-php-memory-limit/

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              1 Reply Last reply Reply Quote 2
              • 1 / 1
              • First post
                Last post

              145
              Online

              10.2k
              Users

              16.3k
              Topics

              149.9k
              Posts

              Copyright © 2012-2020 FOG Project