Groups not setting things on hosts.
-
Running 8347 on Fedora 21,
I’m trying to assign an image via groups, and AD Settings via groups - it’s not working. Settings are not being set on the individual hosts.
When I try to do this, these errors spam the Apache error logs:
[Thu Jun 30 14:48:03.103306 2016] [:error] [pid 3529] [client 10.2.3.170:51747] PHP Warning: array_walk() expects parameter 1 to be array, boolean given in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 119 [Thu Jun 30 14:48:02.581157 2016] [:error] [pid 7727] [client 10.2.4.38:50538] PHP Warning: array_walk() expects parameter 1 to be array, boolean given in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 119, referer: http://10.2.1.11/fog/management/index.php?node=task&sub=active [Thu Jun 30 14:47:59.032873 2016] [:error] [pid 3381] [client 10.2.3.62:55578] PHP Warning: array_combine(): Both parameters should have an equal number of elements in /var/www/html/fog/lib/fog/fogbase.class.php on line 261 [Thu Jun 30 14:47:59.028428 2016] [:error] [pid 3381] [client 10.2.3.62:55578] PHP Warning: array_walk() expects parameter 1 to be array, boolean given in /var/www/html/fog/lib/fog/fogpage.class.php on line 847 [Thu Jun 30 14:47:59.028411 2016] [:error] [pid 3381] [client 10.2.3.62:55578] PHP Warning: array_combine(): Both parameters should have an equal number of elements in /var/www/html/fog/lib/fog/fogbase.class.php on line 261 [Thu Jun 30 14:47:59.028311 2016] [:error] [pid 3381] [client 10.2.3.62:55578] PHP Warning: PDOStatement::execute(): Error reading result set's header in /var/www/html/fog/lib/db/pdodb.class.php on line 169 [Thu Jun 30 14:47:59.028285 2016] [:error] [pid 3381] [client 10.2.3.62:55578] PHP Warning: PDOStatement::execute(): MySQL server has gone away in /var/www/html/fog/lib/db/pdodb.class.php on line 169
-
This is because of bad data in your location plug. Nothing you did, but a script that I removed a while ago in the /var/www/fog/lib/plugins/location/hooks directory.
The current listing of core location hooks are:
[root@mastaweb hooks]# ls -l total 28 -rw-r--r--. 1 apache apache 1639 Jun 30 19:08 addlocationgroup.hook.php -rw-r--r--. 1 apache apache 5572 Jun 30 19:08 addlocationhost.hook.php -rw-r--r--. 1 apache apache 1222 Jun 30 19:08 addlocationmenuitem.hook.php -rw-r--r--. 1 apache apache 1348 Jun 30 19:08 addlocationtasks.hook.php -rw-r--r--. 1 apache apache 353 Jun 30 19:08 addlocationtype.hook.php -rw-r--r--. 1 apache apache 3552 Jun 30 19:08 changeitems.hook.php
Remove the conflicting files and you should have better luck.
-
@Tom-Elliott Possibly related to my issues? https://forums.fogproject.org/topic/7960/r8333-unable-to-set-host-location-location-plugin
-
@Tom-Elliott this is a stand alone server, I’m not using the location plugin.
-
Ok, just got a moment to mess with this. Instead of hunting down said files - I just deleted
/var/www/html/fog
recursively and then updated the server with the latest trunk.It appears fixed.
-
This is fixed - just confirmed it.