Recently created an event and started adding registrants. When I add a new registrant these errors appear:

Notice: Undefined index: is_show_location in CRM_Event_Form_Participant->postProcess() (line 1516 of /home/*****/www/www/sites/all/modules/civicrm/CRM/Event/Form/Participant.php). Notice: Undefined index: metric in CRM_Core_BAO_PdfFormat::retrieve() (line 309 of /home/*****/www/www/sites/all/modules/civicrm/CRM/Core/BAO/PdfFormat.php). Notice: Undefined index: metric in CRM_Core_BAO_PdfFormat::retrieve() (line 309 of /home/*****/www/www/sites/all/modules/civicrm/CRM/Core/BAO/PdfFormat.php).

I recently updated to 4.6.3 but it all seems to be working otherwise. Suggestions?


Did you back up your database before the update (as suggested) - can you find 'name' = 'metric' in your civicrm_option_value table?

  • I did back it up. And I will check that table. – JRB Jun 12 '15 at 23:14
  • No, there is no Metric record. – JRB Jun 12 '15 at 23:21
  • So can I assume this field should =have been added? Is there some reason the upgrade script would not have updated the database? – JRB Jun 19 '15 at 20:10
  • I'm sorry that should be 'value' in civicrm_option_value (ie, select value from civicrm_option_value where value like "%metric%"), there are a number of those for sizing the Pdf report - but your trace also says the field 'is_show_location' is undefined @ line 1516 in Participant.php. It doesn't make sense offhand as 'is_show_location' which is a FK to location for the show. In your 4.6.3 database, your civicrm_event table should have a field 'is_show_location', is that defined? I would imagine it is - it's referenced in 4.6.4 – Lesley Evensen Jun 22 '15 at 17:56
  • And now there's another version released! So do I stay put and fix? Or upgrade and hope it fixes it? – JRB Jun 23 '15 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.