[support] (panels, ctools & contact form) - Invalid argument supplied for foreach()

brendan, fresh-off.com hello at fresh-off.com
Thu Dec 31 20:02:19 UTC 2009


Happy New Year List!

 

I've taken over my contact page using Panels so that I can get two contact
forms side by side (one "general" and the other for work enquiries).  

On this page: http://alpha.fresh-off.com/contact   I'm getting the following
error:

 

warning: Invalid argument supplied for foreach() in
/home/freshoff/railsapp/public/alpha/sites/all/modules/ctools/plugins/conten
t_types/node/node.inc on line 46.

 

 

Searching around Drupal.org, I found this patch:






Index: ctools/page_manager/plugins/tasks/contact_site.inc

===================================================================

--- ctools/page_manager/plugins/tasks/contact_site.inc       (revision 522)

+++ ctools/page_manager/plugins/tasks/contact_site.inc       (working copy)

@@ -73,7 +73,7 @@

 

   ctools_include('context');

   ctools_include('context-task-handler');

-  $output = ctools_context_handler_render($task, '', array(), '');

+  $output = ctools_context_handler_render($task, '', array(), array());

   if ($output !== FALSE) {

     return $output;

   }

 

 

But it didn't seem to have any effect.  Any suggestions? 

 

 

-----

brendan, fresh-off.com

Creative Direction & Consultation: Web | Print | Brand

 

http://fresh-off.com

hello at fresh-off.com

206.328.1067

seattle.usa





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20091231/da386d0a/attachment.html 


More information about the support mailing list