kanduvisla/statusfield — Issue #2: Missing argument 1 for __construct after upgrade to 2.2.5
Author: bewildergeist
Created: 2012-01-11 22:50:59+00:00
State: open

After upgrading Symphony to 2.2.5, I get the following error when trying to access any of my sections. Cleary the __construct() needs to be called with a reference to a parent, but I'm not PHP-knowledgeable enough to fix it, unfortunately.

Missing argument 1 for Field::__construct(), called in /Users/dan/Sites/site.dev/extensions/statusfield/fields/field.status.php on line 6 and defined
/Users/dan/Sites/site.dev/symphony/lib/toolkit/class.field.php line 158

153	*
154	* @param mixed $parent
155	* The class that created this Field object, usually the FieldManager,
156	* passed by reference.
157	*/
158	public function __construct(&$parent){
159	$this->_Parent = $parent;
160	$this->_engine = Symphony::Engine();
161	$this->_handle = (strtolower(get_class($this)) == 'field' ? 'field' : strtolower(substr(get_class($this), 5)));
162	$this->Database = Symphony::Database();