Invalid argument supplied for foreach()
mdowsett - February 25, 2009 - 06:15
| Project: | RSVP |
| Version: | 6.x-2.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I upgraded from v1 to v2 and I get this error when I view an event.
warning: Invalid argument supplied for foreach() in /home/dowsett/public_html/sites/default/modules/rsvp/rsvp.functions.inc on line 2215.
#1
Check in the header which version your rsvp.functions.inc file has and let me know new version number.
I believe I found the problem and will make a check-in soon.
I assume you work with an existing invitation that did already exist in RSVP v1. If that is the case, please edit the invitation, go into expert mode, and make sure that you have selected a theme and template. Then store the invitation.
Then try again.
Thanks,
Ulf
#2
Version...is this what you are after?
// $Id: rsvp.functions.inc,v 1.3.2.3 2009/02/16 08:46:36 ulf1 Exp $
Expert Mode: I don't even see anything about 'expert mode' in the event edit page...you did assume right tho, I was looking at an existing event that was used with RSVP v1
I created a new event as well, and didn't see any 'expert mode' settings...
#3
#4
Thanks for the version information.
The invalid argument line indeed refers to a missing theme/stylesheet in the invitations database record.
Whenever you edit an existing RSVP, you should see a link in the top right corner labeled "[Basic options|Extended options]" that you can use to switch between basic and expert mode.
So if you edit your existing RSVP (The link in the address bar should look like "rsvp/RID/edit") you should see the option link in the right upper corner of the invitation.
However, if you create a new Invitation from scratch, the [Basic options|Extended options] is not visible. You will only see Title, eventually the Startdate field and the Invitation Message.
You have to store the invitation and close it, and then later edit the invitation to see the [Basic options|Extended options] link. (The link in the address bar should look like "rsvp/RID/edit")
Thanks,
Ulf
#5
After reading twice I understand the problem.
To find the Basic/Extended link, you have to edit the invitation, and not the event node. If you view the event node, you will find an "invitations tab at the top that will direct you to the invitation, and there should be an "View Invitation" link at the bottom of the event node.
~
Ulf
#6
#7
thanks for putting in the effort to understanding my issues.
I went and edited the existing invite, found the 'extended options' and edited them...but after saving, I still had the error. I then went back in to the extended options, changed NOTHING, DIDN'T save and the error was gone.
Maybe it was a cache thing...but it seems to work now.
I must say, I'm REALLY impressed with what you've done with the module. VERY robust, lots of options, but still ways to keep it simple. nice job.
I think it's better than Facebook's events and even better than Evite.
#8
#9
#10
Automatically closed -- issue fixed for 2 weeks with no activity.