Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
Fatal error: Cannot make static method CRM_Core_DAO::fields() non static in class CDM_DAO_Item in /home/eros/public_html/hedone.us/public/sites/all/civicrm_extensions/dlobo-org.civicrm.module.cividiscount-5f105ae/CDM/DAO/Item.php on line 367
function &fields()
static function &fields()
function getTableName()
static function getTableName()
Fatal error: Class 'CDM_BAO_Item' not found in /home/eros/public_html/hedone.us/public/sites/all/modules/civicrm/CRM/Admin/Form.php(67) : eval()'d code on line 1
Index: CRM/Admin/Form.php===================================================================--- CRM/Admin/Form.php (revision 41658)+++ CRM/Admin/Form.php (working copy)@@ -58,12 +58,16 @@ * * @var string */- protected $_BAOName; function preProcess() {+ protected $_BAOName;++ function preProcess() { $this->_id = $this->get('id'); $this->_BAOName = $this->get('BAOName'); $this->_values = array(); if (isset($this->_id)) { $params = array('id' => $this->_id);+ // this is needed if the form is outside the CRM name space+ require_once (str_replace('_', DIRECTORY_SEPARATOR, $this->_BAOName) . ".php"); eval($this->_BAOName . '::retrieve( $params, $this->_values );'); } }@@ -80,6 +84,7 @@ if (isset($this->_id) && empty($this->_values)) { $this->_values = array(); $params = array('id' => $this->_id);+ require_once (str_replace('_', DIRECTORY_SEPARATOR, $this->_BAOName) . ".php"); eval($this->_BAOName . '::retrieve( $params, $this->_values );'); } $defaults = $this->_values;
Fatal error: Cannot make static method CRM_Core_DAO::fields() non static in class CDM_DAO_Track in /home/eros/public_html/hedone.us/public/sites/all/civicrm_extensions/dlobo-org.civicrm.module.cividiscount-5f105ae/CDM/DAO/Track.php on line 296