UPnp Broken in 1.2.3-RC2 built on Wed Aug 12 08:34:03 EDT 2009 ?
When i try to enable UPnP in the latest build i get the following error:
Warning: Invalid argument supplied for foreach() in /usr/local/pkg/miniupnpd.inc on line 36 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/miniupnpd.inc:36) in /usr/local/www/pkg_edit.php on line 35
The pointy hat goes to me on that one. When I added some code to handle traffic shaping in UPnP recently I forgot to test if an array actually existed before accessing it.
I'll try to work up a fix shortly.
I fixed it in 2.0, and submitted a patch for approval for 1.2.x.
In the meantime, as an interim fix, you could just run through the shaper config and then disable the shaper when finished and it will then have a valid array to parse. (Ugly, yes, but it will make things work for now…)
Should hopefully be in by tomorrow.
The fix for this has been committed.