Answers.Body: <p>Update to the latest version of civicrm_entity</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-13T04:01:11.297Z
Answers.Text: Bingo. Upgrade to 7.x-2.0-beta1 for civicrm_entity fixed this issue. Upgrade to Civi 4.6.6 fixed a related issue with viewing participants of 'Registered' status.
Answers.UserDisplayName: Phil Hart
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-10T04:45:15.943Z
Answers.LastActivityDate: 2015-08-10T04:45:15.943Z
Answers.UserDisplayName: eileen
Answers.Body: <p>I'm on the Drupal 6 version of 4.6.7 and also cannot delete an event registrant. Also get the spinning wheel.</p>
  
  <p>This is my error: </p>
  
  <pre><code>Fatal error: require_once(): Failed opening required 'api/v2/Participant.php' (include_path='/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/civiexportexcel/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/nz.co.fuzion.civitoken/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/orgdedupe/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/com.pogstone.contenttokens/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/nz.co.fuzion.extendedreport-master/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/com.pogstone.fancytokens-3.2/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/org.civicrm.module.cividiscount-3.0/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/com.pogstone.fancysearches-master/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/noverwrite-master/:/home/purcosa/public_html/sites/default/files/civicrm/custo in /home/purcosa/public_html/sites/all/modules/ckeditor_link/civievent_discount/civievent_discount.admin.inc on line 764
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-28T14:37:23.977Z
Answers.LastActivityDate: 2015-08-28T14:37:23.977Z
Answers.UserDisplayName: Davy Ivins
Answers.Body: <p>This could be a JavaScript error. Perhaps something conflicting. If there is nothing in your server logs you could try opening your web browser's development console (normally F12) and then run through the process. Do you see any JS errors reported there?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-07T15:23:39.463Z
Answers.LastActivityDate: 2015-08-07T15:23:39.463Z
Answers.UserDisplayName: John
Body: <p>I am trying to delete several event registrations from an event, but each time I try with any of the contacts it fails. I get a pop-up warning that any corresponding payment transactions will be deleted and I click the tick/delete button but then I just get the spinning Civi logo and the webpage hangs like that.</p>
  
  <p>The event registrations were created using a webform registering multiple people (parent and children) for the event at once. I turned on logging errors to the Drupal logs but there is nothing appearing there. When I refresh the webpage the participant listing is the same as before.</p>
  
  <p>I can edit the participants and change their status to cancelled but cannot delete the registration. We're on Civi 4.6.5 and Drupal 7 with CiviHosting.</p>
  
  <p>EDIT: I get this error message following @petednz advice:</p>
  
  <p>Fatal error: Class name must be a valid object or a string in /home/../www/www/includes/common.inc on line 7963</p>
  
  <p>Line 7963 is in bold below:</p>
  
  <p>/**<br>
   * Gets the entity controller for an entity type.<br>
   *<br>
   * @return DrupalEntityControllerInterface<br>
   *   The entity controller object for the specified entity type.<br>
   */<br>
  function entity_get_controller($entity_type) {<br>
    $controllers = &amp;drupal_static(<strong>FUNCTION</strong>, array());<br>
    if (!isset($controllers[$entity_type])) {<br>
      $type_info = entity_get_info($entity_type);<br>
      $class = $type_info['controller class'];<br>
      <strong>$controllers[$entity_type] = new $class($entity_type);</strong><br>
    }<br>
    return $controllers[$entity_type];<br>
  }  </p>
  
  <p>This Drupal post is another recent user with error at the same line but different situation:</p>
  
  <p><a href="https://www.drupal.org/node/2509746" rel="nofollow">Viewing entity results in Fatal error: Class name must be a valid object or a string</a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-07T05:12:37.747Z
Comments.Text: Not so much as an answer but some more useful info. if you right click on the delete link and instead open the screen as a page instead of a pop up, I can see Fatal error: Class name must be a valid object or a string in <oursite>/includes/common.inc on line 796
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-08T07:30:16.203Z
Comments.Text: Thanks. Have updated the description above with the problem code.
Comments.UserDisplayName: Phil Hart
Tags: <civievent>
Title: can't delete Event Registration - web page hangs with spinning logo
ThreadText: # can't delete Event Registration - web page hangs with spinning logo
  
  (Asked by: username_0 on 2015-08-06)
  
  I am trying to delete several event registrations from an event, but each time I try with any of the contacts it fails. I get a pop-up warning that any corresponding payment transactions will be deleted and I click the tick/delete button but then I just get the spinning Civi logo and the webpage hangs like that.
  
  The event registrations were created using a webform registering multiple people (parent and children) for the event at once. I turned on logging errors to the Drupal logs but there is nothing appearing there. When I refresh the webpage the participant listing is the same as before.
  
  I can edit the participants and change their status to cancelled but cannot delete the registration. We're on Civi 4.6.5 and Drupal 7 with CiviHosting.
  
  EDIT: I get this error message following @petednz advice:
  
  Fatal error: Class name must be a valid object or a string in /home/../www/www/includes/common.inc on line 7963
  
  Line 7963 is in bold below:
  
  /\*\*  
  \* Gets the entity controller for an entity type.  
  \*  
  \* @return DrupalEntityControllerInterface  
  \* The entity controller object for the specified entity type.  
  \*/  
  function entity\_get\_controller($entity\_type) {  
  $controllers = &drupal\_static(**FUNCTION**, array());  
  if (!isset($controllers[$entity\_type])) {  
  $type\_info = entity\_get\_info($entity\_type);  
  $class = $type\_info['controller class'];  
  **$controllers[$entity\_type] = new $class($entity\_type);**  
  }  
  return $controllers[$entity\_type];  
  }
  
  This Drupal post is another recent user with error at the same line but different situation:
  
  [Viewing entity results in Fatal error: Class name must be a valid object or a string](https://www.drupal.org/node/2509746)
  
  **Tags:** civievent
  
  > **Comments:**
  > **username_1**: Not so much as an answer but some more useful info. if you right click on the delete link and instead open the screen as a page instead of a pop up, I can see Fatal error: Class name must be a valid object or a string in <oursite>/includes/common.inc on line 796  
  > **username_0**: Thanks. Have updated the description above with the problem code.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2015-08-10. Score: 2 | Accepted answer
  
  Update to the latest version of civicrm\_entity
  
  > **Comments:**
  > **username_0**: Bingo. Upgrade to 7.x-2.0-beta1 for civicrm_entity fixed this issue. Upgrade to Civi 4.6.6 fixed a related issue with viewing participants of 'Registered' status.  
  
  ---
  
  ### Answer by username_3 on 2015-08-28. Score: 0
  
  I'm on the Drupal 6 version of 4.6.7 and also cannot delete an event registrant. Also get the spinning wheel.
  This is my error: 
  Fatal error: require_once(): Failed opening required 'api/v2/Participant.php' (include_path='/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/civiexportexcel/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/nz.co.fuzion.civitoken/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/orgdedupe/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/com.pogstone.contenttokens/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/nz.co.fuzion.extendedreport-master/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/com.pogstone.fancytokens-3.2/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/org.civicrm.module.cividiscount-3.0/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/com.pogstone.fancysearches-master/:/home/purcosa/public_html/sites/default/files/civicrm/custom_extensions/noverwrite-master/:/home/purcosa/public_html/sites/default/files/civicrm/custo in /home/purcosa/public_html/sites/all/modules/ckeditor_link/civievent_discount/civievent_discount.admin.inc on line 764
  
  
  ---
  
  ### Answer by username_4 on 2015-08-07. Score: 0
  
  This could be a JavaScript error. Perhaps something conflicting. If there is nothing in your server logs you could try opening your web browser's development console (normally F12) and then run through the process. Do you see any JS errors reported there?
  
  
  ---
  
  