[Chameleon] Button errors with popups
Ken Sanderson
ken at rockies.ca
Mon Dec 6 21:27:28 EST 2004
And you were both 100% correct. I am not the greatest with sessions and
that obvious idea totally didnt cross mine mind as I assumed that the
new windows would inherit from the parent.
At any rate, got it working, many thanks.
Ken
Paul Spencer wrote:
> passing the sid was my first guess too :)
>
> Jacob Delfos wrote:
>
>> Ken,
>>
>> 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).
>>
>> 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.
>>
>> regards,
>>
>> Jacob
>>
>> -----Original Message-----
>> From: chameleon-bounces at maptools.org
>> <mailto:chameleon-bounces at maptools.org>
>> [mailto:chameleon-bounces at maptools.org] On Behalf Of Ken Sanderson
>> Sent: 7 December 2004 08:42
>> To: Chameleon
>> Subject: [Chameleon] Button errors with popups
>>
>>
>> I am having a problem with popups and the buttonizer.
>>
>> I have a widget (discover) that creates a popup and loads
>> (discover.phtml), works fine. The the form in discover.phtml submits to
>> a new page (process.php) which in turn draws another form based on the
>> info submitted from discover.phtml.
>>
>> For some reason discover.phtml works fine, however process.php errors
>> out when it trys to draw the buttons with the following errors:
>>
>> Warning: array_reverse(): The argument should be an array in
>> R:\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 162
>>
>> Warning: Invalid argument supplied for foreach() in
>> R:\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 162
>>
>> Warning: array_reverse(): The argument should be an array in
>> R:\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 179
>>
>> Warning: Invalid argument supplied for foreach() in
>> R:\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 179
>>
>> If I switch the pages around and load process.php first it draws the
>> buttons fine, so it has something to do with being the second one to be
>> loaded in the popup window. Anyone have thoughts on why this is occuring?
>>
>> Thanks,
>>
>> Ken
>>
>> _______________________________________________
>> Chameleon mailing list
>> Chameleon at lists.maptools.org <mailto:Chameleon at lists.maptools.org>
>> http://lists.maptools.org/mailman/listinfo/chameleon
>>
>>
>> JACOB DELFOS
>> SPATIAL INFORMATION ANALYST
>> Maunsell Australia Pty Ltd
>> 629 Newcastle Street, WA 6007
>> PO Box 81, WA 6902
>> Leederville
>> Western Australia
>> ABN 20 093 846 925
>>
>> Tel + 61 8 9281 6185
>> Fax + 61 8 9281 6297
>> jacob.delfos at maunsell.com <mailto:jacob.delfos at maunsell.com>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Chameleon mailing list
>> Chameleon at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/chameleon
>
>
More information about the Chameleon
mailing list