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

    Solved Default Item on PXE boot menu does not work

    Bug Reports
    5
    8
    1236
    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.
    • D
      dvchuyen last edited by

      My fog server ignores the default item setting, it always boots to local disk.
      I’m using Fog trunk 7380
      Thanks!

      1 Reply Last reply Reply Quote 0
      • Tom Elliott
        Tom Elliott @Sebastian Roth last edited by

        @Sebastian-Roth To help, it was the array causing the issue directly.

        The FOG Controller tests if the data it’s receiving is numeric or an array. Because the getSubObjectID’s always returns an array, the is_array portion of the FOGController constructor was taking over. This was passing to the setQuery method.

        The setQuery method is only meant to work on associative array’s where the left side are the relevant table/key information and the right side is the values that correspond to those keys. The getSubObjectID doesn’t send the keys to work again, just the array of data.

        The fix, for what it’s worth, was to simply add @max(self::getSubObjectIDs('PxeMenuOptions',array('default'=>1))) to the getter on the bootmenu page.

        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 1
        • S
          Sebastian Roth Moderator last edited by Sebastian Roth

          Thanks Tom! I played with that code for an hour or so yesterday but couldn’t get my head around it. The data array in the result was always empty which didn’t make any sense from my point of view. You know all that PHP code heaps better than I do - well you wrote most (if not all) of it! 🙂

          @dvchuyen Can you please upgrade to the very latest version and let us know if things are working for you as well.

          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

          Tom Elliott 1 Reply Last reply Reply Quote 0
          • Tom Elliott
            Tom Elliott last edited by

            Found, confirmed, fixed, and pushed. Thanks for reporting.

            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
            • Wayne Workman
              Wayne Workman last edited by

              Moved to bugs.

              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 0
              • S
                Sebastian Roth Moderator last edited by

                Confirmed. Need to look into this…

                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
                • D
                  dvchuyen @Quazz last edited by

                  @Quazz The default item for local disk was unchecked automatically when I selected Quick Image
                  http://i.imgur.com/ubFGbF7.png

                  1 Reply Last reply Reply Quote 0
                  • Q
                    Quazz Moderator last edited by

                    Did you uncheck default item for local disk?

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

                    148
                    Online

                    10.4k
                    Users

                    16.4k
                    Topics

                    150.5k
                    Posts

                    Copyright © 2012-2023 FOG Project