<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ken,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm not an expert on PHP, but it sounds like your
array contains no objects, making it an empty variable (which makes php think it
wasn't an array in the first place).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It says it cannot find the session-array
element of the skin search path. I think that because you say it works fine
if process.php is loaded first, it means that your session does not find its way
into the second page. Make sure you have the session ID as a form variable in
your discover.phtml, because cwc2buttonCache.php uses session.php, which
requires the session ID to run. Perhaps your sessionID does not find its way
into process.php.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@maptools.org">chameleon-bounces@maptools.org</A>
[mailto:chameleon-bounces@maptools.org] On Behalf Of Ken Sanderson<BR>Sent: 7
December 2004 08:42<BR>To: Chameleon<BR>Subject: [Chameleon] Button errors with
popups</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>I am having a problem with popups and the buttonizer.</DIV>
<DIV> </DIV>
<DIV>I have a widget (discover) that creates a popup and loads
<BR>(discover.phtml), works fine. The the form in discover.phtml submits to
<BR>a new page (process.php) which in turn draws another form based on the
<BR>info submitted from discover.phtml.</DIV>
<DIV> </DIV>
<DIV>For some reason discover.phtml works fine, however process.php errors
<BR>out when it trys to draw the buttons with the following errors:</DIV>
<DIV> </DIV>
<DIV>Warning: array_reverse(): The argument should be an array in
<BR>R:\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 162</DIV>
<DIV> </DIV>
<DIV>Warning: Invalid argument supplied for foreach() in
<BR>R:\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 162</DIV>
<DIV> </DIV>
<DIV>Warning: array_reverse(): The argument should be an array in
<BR>R:\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 179</DIV>
<DIV> </DIV>
<DIV>Warning: Invalid argument supplied for foreach() in
<BR>R:\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 179</DIV>
<DIV> </DIV>
<DIV>If I switch the pages around and load process.php first it draws the
<BR>buttons fine, so it has something to do with being the second one to be
<BR>loaded in the popup window. Anyone have thoughts on why this is
occuring?</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Ken</DIV>
<DIV> </DIV>
<DIV>_______________________________________________<BR>Chameleon mailing
list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></DIV>
<DIV> </DIV>
<DIV> </DIV></FONT>
<DIV><FONT face=Arial size=2>JACOB DELFOS<BR>SPATIAL INFORMATION
ANALYST<BR>Maunsell Australia Pty Ltd<BR>629 Newcastle Street, WA 6007<BR>PO Box
81, WA 6902<BR>Leederville <BR>Western Australia<BR>ABN 20 093 846
925</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Tel + 61 8 9281
6185<BR>Fax + 61 8 9281 6297<BR><A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A></FONT></DIV></BODY></HTML>