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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error on 3.3.6 with Update Participant Status action off participant results
Pages: [1]

Author Topic: Error on 3.3.6 with Update Participant Status action off participant results  (Read 1981 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Error on 3.3.6 with Update Participant Status action off participant results
July 26, 2011, 02:55:11 pm
I've got a 3.3.6 installation and when using the Update Participant Status action after using "Find Participants" I get a nonrecoverable error.

Quote
Sorry. A non-recoverable error has occurred.
ufGroupId is missing

We are not in a position to upgrade to 3.4 yet, so I would like to identify if this is a bug with a patch, and if so, backport that patch.  I looked on JIRA Issue Tracker for about 20 minutes but couldn't locate a bug that seemed similar to this one.

Any pointers to a applicable patch?  Thanks.


Code: [Select]
backTrace

/home/nonprofitoregon/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 270
/home/nonprofitoregon/public_html/sites/all/modules/civicrm/CRM/Event/Form/Task/Batch.php, fatal, 108
/home/nonprofitoregon/public_html/sites/all/modules/civicrm/CRM/Event/Form/Task/ParticipantStatus.php, buildQuickForm, 65
/home/nonprofitoregon/public_html/sites/all/modules/civicrm/CRM/Core/Form.php, buildQuickForm, 326
/home/nonprofitoregon/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php, buildForm, 99
/home/nonprofitoregon/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/nonprofitoregon/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/nonprofitoregon/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 284
/home/nonprofitoregon/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 219
/home/nonprofitoregon/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 355
, civicrm_invoke,
/home/nonprofitoregon/public_html/includes/menu.inc, call_user_func_array, 349
/home/nonprofitoregon/public_html/index.php, menu_execute_active_handler, 17
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error on 3.3.6 with Update Participant Status action off participant results
July 27, 2011, 04:44:43 am
Can you check if you are able to replicate it on http://crm33.demo.civicrm.org

Kurund
Found this reply helpful? Support CiviCRM

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Error on 3.3.6 with Update Participant Status action off participant results
July 27, 2011, 10:04:17 am
I cannot replicate it on the 3.3 demo.  Could it have something to do with a custom field set that it has been disabled?   That is the only thing we have done recently to change our installation.

Update: Nope, enabling the custom fields didn't fix anything.   Any ideas what this error means? 

I've tried disabling custom modules, and all the custom CiviCRM code on this site, with no fix either.
« Last Edit: July 27, 2011, 11:38:18 am by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error on 3.3.6 with Update Participant Status action off participant results
July 27, 2011, 11:24:22 am
Stuart - Looks like an upgrade issue. The error is being thrown because the expected reserved profile with 'name' = 'participant_status' is not present in that database. This reserved profile was added in 3.0 alpha1 for upgraded sites - check lines 118 - 129 in CRM/Upgrade/Incremental/sql/3.0.alpha1.mysql.tpl in 3.3 (or any version >= 3.0 alpha 1). BTW I used the backtrace (notably the 2 and 3rd lines) to jump into the code and see where things were breaking down.

I suspect that the other upgrades in that file might not have been executed either altho can't be sure. :-( I would at least scan the file and check for other changes.

The code for this specific insert is below (you'll need to remove the smarty {localize} tags to run this).

Code: [Select]
    -- add a profile for CRM-4323
    BEGIN;
        INSERT INTO civicrm_uf_group
            (name,                 group_type,    {localize field='title'}title{/localize},  is_reserved)
        VALUES
            ('participant_status', 'Participant', {localize}'Participant Status'{/localize}, 1);
        SELECT @ufgid := id FROM civicrm_uf_group WHERE name = 'participant_status';
        INSERT INTO civicrm_uf_field
            (uf_group_id, field_name,              is_required, is_reserved, {localize field='label'}label{/localize},  field_type)
        VALUES
            (@ufgid,      'participant_status_id', 1,           1,           {localize}'Participant Status'{/localize}, 'Participant');
    COMMIT;
Protect your investment in CiviCRM by  becoming a Member!

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Error on 3.3.6 with Update Participant Status action off participant results
July 27, 2011, 11:41:09 am
That's interesting, cause this site has only been upgraded twice. It started at 3.2beta, then 3.2.3, then 3.3.6.   

I'll get into the database and try to find what might be missing.  Thanks.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Error on 3.3.6 with Update Participant Status action off participant results
July 27, 2011, 12:03:55 pm
This is the exact series of queries I ran, and it appears to fix the issue.  Thanks so much Dave.  I learned quite a few things, and I will review the upgrade file and see if anything else was missed.  I'm scratching my head as to why this query was not run if it was included in 3.0 alpha.  The site started as 3.2 beta so this should have been in the database.  I'll post an update if I find more useful info.

Code: [Select]
        INSERT INTO civicrm_uf_group
            (name,group_type,title,is_reserved)
        VALUES
            ('participant_status','Participant','Participant Status', 1);
        SELECT @ufgid := id FROM civicrm_uf_group WHERE name = 'participant_status';
        INSERT INTO civicrm_uf_field
            (uf_group_id, field_name,is_required,is_reserved,label,field_type)
        VALUES
            (@ufgid,'participant_status_id',1,1,'Participant Status','Participant');

Try CiviTeacher: the online video tutorial CiviCRM learning library.

drifteaur

  • I’m new here
  • *
  • Posts: 3
  • Karma: 2
Re: Error on 3.3.6 with Update Participant Status action off participant results
July 08, 2014, 07:46:12 am
I've had the same error, running a (hungarian) localized CiviCRM. In my case, the "name" column of the "participant status" group was localized, and this caused the error. This is what I ran that helped:

update civicrm_uf_group set name='participant_status' where id=3;

Replace '3' with the ID of your participant status group.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error on 3.3.6 with Update Participant Status action off participant results

This forum was archived on 2017-11-26.