Answers.Body: <p>Did you back up your database before the update (as suggested) - can you find 'name' = 'metric' in your civicrm_option_value table?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-12T23:14:37.420Z
Answers.Text: I did back it up. And I will check that table.
Answers.UserDisplayName: JRB
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-12T23:21:50.010Z
Answers.Text: No, there is no Metric record.
Answers.UserDisplayName: JRB
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-19T20:10:20.327Z
Answers.Text: So can I assume this field should =have been added?  Is there some reason the upgrade script would not have updated  the database?
Answers.UserDisplayName: JRB
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-22T17:56:51.540Z
Answers.Text: 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
Answers.UserDisplayName: Lesley Evensen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-23T19:53:59.297Z
Answers.Text: And now there's another version released! So do I stay put and fix? Or upgrade and hope it fixes it?
Answers.UserDisplayName: JRB
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-26T11:41:15.657Z
Answers.Text: Yes, there 24 entries similar to: {"metric":"in","width":7.25,"height":10.5}
Answers.UserDisplayName: JRB
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-26T11:46:12.643Z
Answers.Text: And the ';is_show-location' is NULL.
Answers.UserDisplayName: JRB
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-11T21:40:49.930Z
Answers.LastActivityDate: 2015-06-11T21:40:49.930Z
Answers.UserDisplayName: Lesley Evensen
Body: <p>Recently created an event and started adding registrants. When I add a new registrant these errors appear:</p>
  
  <p>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).</p>
  
  <p>I recently updated to 4.6.3 but it all seems to be working otherwise. Suggestions?</p>
  
Tags: <civievent>
Title: Errors Adding Registrant
ThreadText: # Errors Adding Registrant
  
  (Asked by: username_0 on 2015-06-11)
  
  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?
  
  **Tags:** civievent
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-06-11. Score: 2
  
  Did you back up your database before the update (as suggested) - can you find 'name' = 'metric' in your civicrm\_option\_value table?
  
  > **Comments:**
  > **username_0**: I did back it up. And I will check that table.  
  > **username_0**: No, there is no Metric record.  
  > **username_0**: So can I assume this field should =have been added?  Is there some reason the upgrade script would not have updated  the database?  
  > **username_1**: 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  
  > **username_0**: And now there's another version released! So do I stay put and fix? Or upgrade and hope it fixes it?  
  > **username_0**: Yes, there 24 entries similar to: {"metric":"in","width":7.25,"height":10.5}  
  > **username_0**: And the ';is_show-location' is NULL.  
  
  ---
  
  