When you click the deny button, you get:
warning: Invalid argument supplied for foreach() in ../modules/volunteer/volunteer.module on line 517.
civcrm 1.2
latest volunteer cvs
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | screenshot8.jpeg | 25.08 KB | Amazon |
| #11 | screenshot6.jpeg | 46.7 KB | Amazon |
Comments
Comment #1
killes@www.drop.org commentedDid you assign a civicrm group for volunteers? Did you create a civicrm profile for volunteers?
Comment #2
killes@www.drop.org commentedI've tried it on my test install and ai cannot reproduce it.
Comment #3
onionweb commentedYes I have the groups, profiles and fields defined correctly. An email field is set up with the correct parameters. However it is not visible to logged-in users when volunteering, which perhaps is as intended.
CRM 1.2
mySQL 4.0.x
php 4.3.x
Comment #4
barik commentedI also encounter this error when attempting to volunteer as an anonymous user. This occurs with PHP 4.3, Drupal 4.6.3, and CiviCRM 1.2.
warning: Invalid argument supplied for foreach() in /home/barik/public_html/drupal/modules/volunteer/volunteer.module on line 517.
In the volunteer_mail function, cid is blank.
This then causes $volunteer to return crm_core_error, and that's the end of that.
Comment #5
barik commentedAfter further investigation, I believe that the error you are seeing is due to not updating the volunteer.mysql database table. The schema has changed. Applying the new volunteer database schema has eliminated these errors.
Comment #6
Amazon commentedJust tested CivicSpace 0.8.2 and got the following error: warning: Invalid argument supplied for foreach() in /Users/kieran/Sites/trunk/modules/volunteer/volunteer.module on line 850.
warning: Cannot modify header information - headers already sent by (output started at /Users/kieran/Sites/trunk/includes/common.inc:384) in /Users/kieran/Sites/trunk/includes/common.inc on line 192.
Checked the database schema and had this:mysql> desc volunteer;
+-------------------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+------------------+------+-----+---------+-------+
| nid | int(10) unsigned | | PRI | 0 | |
| wanted | int(3) | YES | | 2 | |
| uid | int(11) | YES | | NULL | |
| message_approve | text | YES | | NULL | |
| message_deny | text | YES | | NULL | |
| message_wait | text | YES | | NULL | |
| message_reminder | text | YES | | NULL | |
| message_follow_up | text | YES | | NULL | |
+-------------------+------------------+------+-----+---------+-------+
8 rows in set (0.00 sec)
mysql> desc volunteer_contact_event;
+-----------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+------------------+------+-----+---------+-------+
| cid | int(10) unsigned | | PRI | 0 | |
| timestamp | int(10) unsigned | | | 0 | |
| rating | int(2) | YES | | NULL | |
| comments | text | YES | | NULL | |
| nid | int(10) unsigned | | PRI | 0 | |
| stage | int(2) unsigned | YES | | NULL | |
+-----------+------------------+------+-----+---------+-------+
6 rows in set (0.00 sec)
Comment #7
Amazon commentedThe database schema above is the same as what's in the MySQL file: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/volunteer/vol...
Comment #8
Amazon commentedHowever it is not visible to logged-in users when volunteering, which perhaps is as intended.
-correct we use the email from the user profile automatically so the user does not need to configure it.
Comment #9
Amazon commentedvolunteer/question_coordinator/1/3
confirmed this error:
warning: Invalid argument supplied for foreach() in /Users/kieran/Sites/trunk/modules/volunteer/volunteer.module on line 540.
warning: Cannot modify header information - headers already sent by (output started at /Users/kieran/Sites/trunk/includes/common.inc:384) in /Users/kieran/Sites/trunk/includes/common.inc on line 192.
When I click on deny volunteer.
Kieran
Comment #10
Amazon commentedI did get the email indicating the event was full however.
Thanks for volunteering for new event. Unfortunately the event is full. Please check back for other events.
-admin
http://localhost/~kieran/trunk
Comment #11
Amazon commentedHere's the error image despite the fact that it works.
Comment #12
Amazon commentedWhen I deny it works, but I get an error page
Here is a screen shot of the second time I went back through the pages
In this image you see denied only once, but the first time I went back there was two messages.
Comment #13
Amazon commentedNow fixed.
Comment #14
Amazon commented