CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • Completing a poll, visiting the poll again with checksum generates an error
Pages: [1]

Author Topic: Completing a poll, visiting the poll again with checksum generates an error  (Read 599 times)

slamorte

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.4.4-14+deb7u8
Completing a poll, visiting the poll again with checksum generates an error
April 03, 2014, 11:18:13 am
I have a poll I set up for our union membership. Members receive a Mailing with a CiviPetition link with checksum and cid that auto-fills their contact profile for them. Then they can answer and submit the poll. All good so far.

But if they visit the poll a second time via the checksum link they get the "You have already signed this petition" screen and a big screen-full of red errors:

Code: [Select]
    Notice: Undefined offset: 53 in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 2260 of /home/members/rutgersaaupaft/sites/rutgersaaup.org/web/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php).
    Notice: Undefined offset: 52 in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 2260 of /home/members/rutgersaaupaft/sites/rutgersaaup.org/web/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php).
    Notice: Undefined offset: 54 in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 2260 of /home/members/rutgersaaupaft/sites/rutgersaaup.org/web/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php).
    Notice: Undefined offset: 53 in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 2260 of /home/members/rutgersaaupaft/sites/rutgersaaup.org/web/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php).
    Notice: Undefined offset: 52 in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 2260 of /home/members/rutgersaaupaft/sites/rutgersaaup.org/web/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php).
    Notice: Undefined offset: 54 in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 2260 of /home/members/rutgersaaupaft/sites/rutgersaaup.org/web/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php).

Removing the checksum allows them to revisit the poll's "You have already signed this petition" page without the errors.

http://rutgersaaup.org/civicrm/petition/sign?sid=7&cs=80c3a7ab01b11278ef2763963f179ad4_1396362469_168&cid=17871

http://rutgersaaup.org/civicrm/petition/sign?sid=7&cid=17871

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Completing a poll, visiting the poll again with checksum generates an error
April 03, 2014, 06:28:08 pm
Notice errors are undesirable because they suggest the code could be improved but do not necessarily indicate a problem - you should ensure notice errors are not displayed on production sites -I think you are on drupal so something like this might help

http://drupal.stackexchange.com/questions/15415/how-do-i-silence-php-errors
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

slamorte

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.4.4-14+deb7u8
Re: Completing a poll, visiting the poll again with checksum generates an error
April 15, 2014, 10:50:37 pm
Thanks Eileen. I turned errors off.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • Completing a poll, visiting the poll again with checksum generates an error

This forum was archived on 2017-11-26.