Le 31/01/2011 14:21, Pierre-Damien GATOUILLAT a écrit :
> Hi,
>
> I just made a new install of a debian squeeze, then aptitude install
> mysql-server, then aptitude install jffnms. Configured base settings,
> add a customer and a zone. When I add a host, I can't select the zone or
> AD Default Customer or AutoDiscovery policy because there is nothing in
> the list ! Datas in database are good. I think about a problem with php
> but can't figure about what exactly ?
>
> Thanks.
> Pierre-Damien
>

It seems the errors comes from gui.controls.inc.php. And mainly PHP 5.3 
or its configuration on Debian.
I try to reactivate some default or deprecated value in php.ini 
(error_reporting, register_long_arrays, variables_order, ...), but no 
chance for now.

apache errors :
[Mon Jan 31 18:54:29 2011] [error] [client 192.168.1.12] PHP Warning:  
call_user_func_array() expects parameter 2 to be array, null given in 
/usr/share/jffnms/lib/gui.controls.inc.php on line 31, referer: 
http://192.168.1.101/jffnms/admin/adm/adm_standard.php?admin_structure=hosts
[Mon Jan 31 18:54:29 2011] [error] [client 192.168.1.12] PHP Warning:  
Invalid argument supplied for foreach() in 
/usr/share/jffnms/lib/gui.controls.inc.php on line 40, referer: 
http://192.168.1.101/jffnms/admin/adm/adm_standard.php?admin_structure=hosts

I have activated debug ($obj_params) on line 30, in 
gui.controls.inc.php. The browser says me "

Array
(
     [0] =>
     [1] =>  2
)

"
The 2nd argument to call_user_func_array() is $obj_params, so it seems to be an 
array !

I change this 2nd parameter with array(0, 2) and it works...

Finally, I think PHP<  5.3 didn't care about an empty array and I write :

//debug ($obj);
     //debug ($obj_params);
     is_array($obj_params)
         ? $obj_data = call_user_func_array(array(&$obj,'get_all'),$obj_params)
         : $obj_data = call_user_func_array(array(&$obj,"get_all"),array(NULL, 
NULL));

     //debug ($obj_data);


If someone has an other idea...

Pierre-Damien


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to