A Day in the Life of a Developer
14 Apr
Currently BackendPro 0.6.1 dosn’t support PHP5 officaly but there is some things you can do to patch it so it will work. When trying to run BackendPro on PHP5 you will most likely be hit by the following errors.
Assigning by Reference in Loader.php line 414
Message: Assigning the return value of new by reference is deprecated
Filename: libraries/Loader.php
Line Number: 414
This can be fixed by opening application/libraries/Loader.php and going to line 414. Replace the line
$CI->dbutil =& new $class();
with the following
$CI->dbutil = new $class();
Function ereg_replace has been deprecated in libraries/Preference_form.php
Find line 100 and the code:
$this->field[$field]['label'] = ucwords(ereg_replace(‘_’,’ ‘,$field));
Replace the line with the following
$this->field[$field]['label'] = ucwords(preg_replace(‘/_/’,’ ‘,$field));
Call-time pass-by-reference has been deprecated in access_control/resources.php line 42
Find line 43 and the code:
$offset = $this->access_control_model->buildPrettyOffset(&$obj,$tree);
Replace the line with the following:
$offset = $this->access_control_model->buildPrettyOffset($obj,$tree);