When I go to create a new content type I get
Fatal error: Unsupported operand types in /var/www/[sitename]/sites/all/modules/weight/weight.module on line 786
I debugged this to realise it is because I have a content type called 'range' which is causing lines 243 - 249 to act strangely and pass $range as an array instead of '20' which it should.
<?php
$settings = _weight_get_settings($form['#node_type']->type);
if (isset($settings['range'])) {
$range = $settings['range'];
}
else {
$range = 20;
}
?>
I am not really sure how to go about fixing this as possibly _weight_get_settings should return false if there is no default settings, or maybe there should be a check somewhere before that to see if this is a new content type? If you can point me in the write direction I can attempt a patch.
Comments
Comment #2
davisbenThis has been fixed and committed to 7.x-2.x.