Answers.Body: <p>You could just remove the <code>protected $_id = NULL;</code> line in <a href="https://github.com/compucorp/civibooking/blob/v1.5.3/CRM/Admin/Form/Resource.php#L41" rel="nofollow noreferrer">uploads/civicrm/ext/uk.co.compucorp.civicrm.booking/CRM/Admin/Form/Resource.php</a>, since it's defined in the base class as public.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-24T13:35:27.007Z
Answers.LastActivityDate: 2020-05-24T13:35:27.007Z
Answers.UserDisplayName: Demerit
Body: <p>Civicrm 5.25.0 and Wordpress 5.3.3</p>
  
  <p>When I go to Add a Resource I get</p>
  
  <p>Fatal error: Access level to CRM_Admin_Form_Resource::$_id must be public (as in class CRM_Admin_Form) in xxx/uploads/civicrm/ext/uk.co.compucorp.civicrm.booking/CRM/Admin/Form/Resource.php on line 40</p>
  
  <p>Is there a way around it?</p>
  
Tags: <wordpress><civibooking>
Title: CiviBooking Wordpress Error on Adding Resouces
ThreadText: # CiviBooking Wordpress Error on Adding Resouces
  
  (Asked by: username_0 on 2020-05-24)
  
  Civicrm 5.25.0 and Wordpress 5.3.3
  
  When I go to Add a Resource I get
  
  Fatal error: Access level to CRM\_Admin\_Form\_Resource::$\_id must be public (as in class CRM\_Admin\_Form) in xxx/uploads/civicrm/ext/uk.co.compucorp.civicrm.booking/CRM/Admin/Form/Resource.php on line 40
  
  Is there a way around it?
  
  **Tags:** wordpress, civibooking
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-05-24. Score: 2
  
  You could just remove the `protected $_id = NULL;` line in [uploads/civicrm/ext/uk.co.compucorp.civicrm.booking/CRM/Admin/Form/Resource.php](https://github.com/compucorp/civibooking/blob/v1.5.3/CRM/Admin/Form/Resource.php#L41), since it's defined in the base class as public.
  
  
  ---
  
  