I added a few usernames to the box of attendees to be sent to for an existing event.

While it apparently did send the invites, and added the users to the "no response" list, it also generated this warning:

warning: Invalid argument supplied for foreach() in rsvp.module on line 695.

perhaps similar to a problem found in an older version on a different line, but would like to see if there is a patch for this error on 5.x-1.2 version.

thanks

Comments

nicholas llewellyn’s picture

I believe I am using 5.x-1.3 as I downloaded in Jan 2008.

I am receiving the same message when sending to email addresses and site users by name, the emails do not come through.

warning: Invalid argument supplied for foreach() in
/mounted-storage/home15b/sub002/sc17453-URRL/****.co.uk/modules/rsvp/rsvp.module
on line 695.

rsvp.module

694.  //get header row
695.  foreach ($attendee as $key => $value) {
696.    if (in_array( $key, $field_list ))
697.      $header[]  = $key;
698.  }

I hope someone can suggest a solution.

nicholas llewellyn’s picture

Just looking at the syntax, is this something to do with requiring a key+value. Like CCK Integer, dropdown:

Key:Value
0:Lowest Score
5:Avarage Score
9:highest Score

So might be that the filed requesting names/addresses needs a similar input format. Something like:

Key:Value
Example Name:Example@emailaddress.com
Example Name2:Example@emailaddress2.co.uk

Or am I just waffeling on about nothing in particular, making things up in my head?

owahab’s picture

Version: 5.x-1.2 » 5.x-1.3
Assigned: Unassigned » owahab

Will give this some eye balls and see what caused the error.

jwilson3’s picture

oahab, thank you sincerely for looking into this. new to drupal and php, and feeling oh so helpless... moving along the learning curve at the pace of a tortuga here.

anxiously awaiting your reply...

James

jwilson3’s picture

in testing this further, i can no longer duplicate the error. very strange because i did nothing out of the ordinary to get the original error.

my client will be using the rsvp feature quite heavily so i must test this more to figure out how i got this error in order to prove any fix has actually fixed it.

nicholas llewellyn’s picture

Strange, the fault seems to have dissapeared for me as well.

Might be an 'after installation' issue...

owahab’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Enlightening-Times’s picture

warning: Invalid argument supplied for foreach() in /mounted-storage/home122c/sub002/sc15742-ELWM/enlighteningtimes.co.uk/community/includes/common.inc on line 789.

I have encountered this same error with the invites yesterday!
any suggestions would be helpful as I am no expert with php???!!!!

:) Jade