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

    5040 - PHP Fatal error: Call to undefined method StorageGroup::getSetting()

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    3
    5
    1.7k
    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.
    • TrevelyanT
      Trevelyan
      last edited by

      After updating, I now see this in the apache log (clients sit waiting to check in)

      [Thu Oct 22 09:42:54.973919 2015] [:error] [pid 7483] [client 10.240.11.209:43438] PHP Fatal error:  Call to undefined method StorageGroup::getSetting() in /var/www/html/fog/lib/fog/StorageGroup.class.php on line 46
      
      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Should be solved.

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • G
          g.chanaud
          last edited by

          I doesn’t see it fixed in the repo.
          So here is the quickfix if you need to deploy some images right now (i was in this case after upgrading to trunk…)

          In fogproject/packages/web/lib/fog/StorageGroup.class.php
          On line 46 :

          'typeID'=>explode(',',$this->getSetting('FOG_USED_TASKS')),
          

          Should be :

          'typeID'=>explode(',',$this->FOGCore->getSetting('FOG_USED_TASKS')),
          
          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott @g.chanaud
            last edited by

            @g.chanaud just because you don’t see it doesn’t mean it isn’t fixed. I moved the get setting and set setting so I don’t have to call them through fogcore

            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • TrevelyanT
              Trevelyan
              last edited by

              Fixed
              But new issue now - maybe better for another thread - php requests are slow to load now (including /fog/service/ipxe/boot.php - which sometimes times out)

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

              146

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project