So indeed an error 500 was being thrown, but it was not a direct “syntax” issue persay.
@jjacobs provided me with:
[Thu Jan 26 14:33:59.112512 2017] [php7:error] [pi d 23964] [client 10.62.122.9:54522] PHP Fatal error: Uncaught Exception: Too ma ny MACs in /var/www/fog/lib/client/registerclient.class.php:100\nStack trace:\n# 0 /var/www/fog/lib/fog/fogpage.class.php(2701): RegisterClient->json()\n#1 /var/ www/fog/lib/fog/fogpage.class.php(262): FOGPage->requestClientInfo()\n#2 /var/ww w/fog/lib/fog/processlogin.class.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.p hp(406): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/ind ex.php(29): FOGBase::getClass(‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/f og/lib/client/registerclient.class.php on line 100
[Thu Jan 26 14:34:00.277606 2017] [php7:error] [pid 24798] [client 10.52.225.22: 60380] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/c lient/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpag e.class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.class .php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.cl ass.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__c onstruct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->new InstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClass (‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient. class.php on line 100
[Thu Jan 26 14:34:01.817646 2017] [php7:error] [pid 24693] [client 10.52.97.18:4 9655] PHP Fatal error: Uncaught Error: Call to a member function isValid() on n ull in /var/www/fog/lib/client/registerclient.class.php:67\nStack trace:\n#0 /va r/www/fog/lib/fog/fogpage.class.php(2701): RegisterClient->json()\n#1 /var/www/f og/lib/fog/fogpage.class.php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog /lib/fog/processlogin.class.php(57): FOGPage->__construct(’’)\n#3 [internal func tion]: ProcessLogin->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(40 6): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.ph p(29): FOGBase::getClass(‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/li b/client/registerclient.class.php on line 67
[Thu Jan 26 14:34:14.930038 2017] [php7:error] [pid 24797] [client 10.62.115.239 :55222] PHP Fatal error: Uncaught Error: Call to a member function isValid() on null in /var/www/fog/lib/client/registerclient.class.php:67\nStack trace:\n#0 / var/www/fog/lib/fog/fogpage.class.php(2701): RegisterClient->json()\n#1 /var/www /fog/lib/fog/fogpage.class.php(262): FOGPage->requestClientInfo()\n#2 /var/www/f og/lib/fog/processlogin.class.php(57): FOGPage->__construct(’’)\n#3 [internal fu nction]: ProcessLogin->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php( 406): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index. php(29): FOGBase::getClass(‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/ lib/client/registerclient.class.php on line 67
[Thu Jan 26 14:34:25.060571 2017] [php7:error] [pid 23964] [client 10.52.225.8:5 5053] PHP Fatal error: Uncaught Error: Call to a member function isValid() on n ull in /var/www/fog/lib/client/registerclient.class.php:67\nStack trace:\n#0 /va r/www/fog/lib/fog/fogpage.class.php(2701): RegisterClient->json()\n#1 /var/www/f og/lib/fog/fogpage.class.php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog /lib/fog/processlogin.class.php(57): FOGPage->__construct(’’)\n#3 [internal func tion]: ProcessLogin->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(40 6): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.ph p(29): FOGBase::getClass(‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/li b/client/registerclient.class.php on line 67
[Thu Jan 26 14:34:31.481057 2017] [php7:error] [pid 24795] [client 10.52.48.27:6 0003] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/cl ient/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpage .class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.class. php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.cla ss.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__co nstruct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->newI nstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClass( ‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient.c lass.php on line 100
[Thu Jan 26 14:34:44.043988 2017] [php7:error] [pid 24795] [client 10.52.225.1:5 2387] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/cl ient/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpage .class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.class. php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.cla ss.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__co nstruct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->newI nstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClass( ‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient.c lass.php on line 100
[Thu Jan 26 14:34:46.877791 2017] [php7:error] [pid 24798] [client 10.52.225.4:5 8369] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/cl ient/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpage .class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.class. php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.cla ss.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__co nstruct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->newI nstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClass( ‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient.c lass.php on line 100
[Thu Jan 26 14:34:48.411504 2017] [php7:error] [pid 24693] [client 10.52.33.123: 56726] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/c lient/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpag e.class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.class .php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.cl ass.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__c onstruct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->new InstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClass (‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient. class.php on line 100
[Thu Jan 26 14:35:07.054702 2017] [php7:error] [pid 24693] [client 10.62.118.222 :54653] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/ client/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpa ge.class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.clas s.php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.c lass.php(57): FOGPage->construct(’’)\n#3 [internal function]: ProcessLogin-> construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->ne wInstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClas s(‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient .class.php on line 100
What this is showing is there’s already a specified number of MAC addresses associated to the host.
I’ve modified the code base to return the error as expected instead of throwing the error into the “Fatal 500” zone.