[1.3.0-RC-9] Debug mode menu option causes input/output error


  • Moderator

    Server
    • Version: 1.3.0-RC9
    • OS: Centos 7
    Description

    When you list debug mode as a default item on the fog menu, boot.php gives input output error.

    Checking boot.php manually, nearly all information, except

    set fog-ip 192.168.1.154
    set fog-webroot fog
    set boot-url http://${fog-ip}/${fog-webroot}
    

    is missing.

    Here’s some apache logs:

    [Mon Sep 05 15:17:08.567338 2016] [:error] [pid 12379] [client 192.168.1.189:14976] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/html/fog/lib/fog/bootmenu.class.php on line 1053
    [Mon Sep 05 15:17:08.567395 2016] [:error] [pid 12379] [client 192.168.1.189:14976] PHP Fatal error: Uncaught exception 'Exception' with message 'Key must be a string or index' in /var/www/html/fog/lib/fog/fogbase.class.php:720\nStack trace:\n#0 /var/www/html/fog/lib/fog/bootmenu.class.php(952): FOGBase->arrayInsertAfter(2, Array, 'extra', 'param extraargs...')\n#1 /var/www/html/fog/lib/fog/bootmenu.class.php(1051): BootMenu->menuOpt(Object(PXEMenuOptions), 'mode=onlydebug')\n#2 [internal function]: BootMenu->{closure}(Object(PXEMenuOptions))\n#3 /var/www/html/fog/lib/fog/bootmenu.class.php(1053): array_map(Object(Closure), Array)\n#4 /var/www/html/fog/lib/fog/bootmenu.class.php(208): BootMenu->printDefault()\n#5 [internal function]: BootMenu->__construct(Object(Host))\n#6 /var/www/html/fog/lib/fog/fogbase.class.php(376): ReflectionClass->newInstance(Object(Host))\n#7 /var/www/html/fog/service/ipxe/boot.php(36): FOGBase::getClass('BootMenu', Object(Host))\n#8 {main}\n thrown in /var/www/html/fog/lib/fog/fogbase.class.php on line 720
    [Mon Sep 05 15:17:42.133556 2016] [:error] [pid 12353] [client 192.168.1.189:24270] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/html/fog/lib/fog/bootmenu.class.php on line 1053
    [Mon Sep 05 15:17:42.133616 2016] [:error] [pid 12353] [client 192.168.1.189:24270] PHP Fatal error: Uncaught exception 'Exception' with message 'Key must be a string or index' in /var/www/html/fog/lib/fog/fogbase.class.php:720\nStack trace:\n#0 /var/www/html/fog/lib/fog/bootmenu.class.php(952): FOGBase->arrayInsertAfter(2, Array, 'extra', 'param extraargs...')\n#1 /var/www/html/fog/lib/fog/bootmenu.class.php(1051): BootMenu->menuOpt(Object(PXEMenuOptions), 'mode=onlydebug')\n#2 [internal function]: BootMenu->{closure}(Object(PXEMenuOptions))\n#3 /var/www/html/fog/lib/fog/bootmenu.class.php(1053): array_map(Object(Closure), Array)\n#4 /var/www/html/fog/lib/fog/bootmenu.class.php(208): BootMenu->printDefault()\n#5 [internal function]: BootMenu->__construct(Object(Host))\n#6 /var/www/html/fog/lib/fog/fogbase.class.php(376): ReflectionClass->newInstance(Object(Host))\n#7 /var/www/html/fog/service/ipxe/boot.php(36): FOGBase::getClass('BootMenu', Object(Host))\n#8 {main}\n thrown in /var/www/html/fog/lib/fog/fogbase.class.php on line 720
    

  • Senior Developer

    Found and fixed. Will be available for RC 10. Sorry it was left unknowingly.


 

477
Online

41.4k
Users

11.8k
Topics

112.1k
Posts