symphonycms/symphony-2 — Issue #1061: Cannot create new event (fatal error)
Author: nickdunn
Created: 2012-03-05 16:37:57+00:00
State: open

Integration branch. Created a section with a text field inside. Went to create an event for this section.

Argument `$value` is not of type `string`, given `integer`.
/Users/nick.dunn/Sites/symphony-2/symphony/lib/toolkit/class.general.php line 1363

1358	throw new InvalidArgumentException(__('Enforced type `%1$s` for argument `$%2$s` does not match any known variable types.', array($param['type'], $name)));
1359	}
1360
1361	// validate variable type
1362	if( !call_user_func($validator, $param['var']) ){
1363	throw new InvalidArgumentException(__('Argument `$%1$s` is not of type `%2$s`, given `%3$s`.', array($name, $param['type'], gettype($param['var']))));
1364	}
1365
1366	}
1367	}