On Sat, Jun 05, 2010 at 08:42:13PM +1000, Craig Small wrote:
> On Fri, Jun 04, 2010 at 11:58:03AM -0700, Eric Wheeler wrote:
> > It is not clear to me what would cause an empty zone list. Does anyone
> > have an idea here?
OK, I think I can see why it happens.
Assuming this is the problem you're seeing that I was.....
This was quite hard to find. During the long drawn-out process I
forgave every thing that gdb (C language debugger) ever did wrong to me.
It was that bad.
The problem I saw was several, about half, of the drop-down boxes in the
admin screens had no entries in them. The hosts table for the zones was
the one first mentioned but it happened in many other places.
The fix is in lib/gui.controls.php in the select_custom() function.
Around line 30 you will see:
$obj_data = call_user_func_array(array(&$obj,"get_all"),$obj_params);
It basically gives you a list of items that fills in the select list,
all in $obj_data.
$obj_params is usually NULL. PHP didn't really seem to mind this, until
recently (around version 5.3). Then PHP decided that if $obj_params was
not an array, then it would return FALSE and not your list of items.
No items means nothing in the drop-down boxes.
The fix is to brute-force ensure the $obj_params is an array, above the
line given put this:
if (!is_array($obj_params)) $obj_params = array();
That fixed it for me.
Strangely enough, it was fixed in the next version as it was giving a
warning.
- Craig
--
Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5
http://www.enc.com.au/ csmall at : enc.com.au
http://www.debian.org/ Debian GNU/Linux, software should be Free
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users