While installing my site, it produces this notice:

Notice: Object of class BoxEntity could not be converted to int in _menu_navigation_links_rebuild() (line 2811 of [webroot]/includes/menu.inc).

This seems to be related to the way the hook_menu passess the page argument to the call back function entity_boxes_form_wrapper in entity_boxes.admin.inc.

foreach (entity_boxes_get_types() as $type) {
     $items[$this->path . '/add/' . $type->type] = array(
       'title' => 'Add ' . $type->label,
       'page callback' => 'entity_boxes_form_wrapper',
       <strong>'page arguments' => array(entity_boxes_create(array('type' => $type->type))),</strong>
       'access callback' => 'entity_boxes_access',
       'access arguments' => array('edit', 'edit ' . $type->type),
       'file' => 'entity_boxes.admin.inc',
       'file path' => drupal_get_path('module', $this->entityInfo['module'])
     );
   }

Now the page arguments passes an array with an object, which is responsible for the error.
A quick solution is to create a dispatcher function that receives the entity type, and creates the object, taking the role of calling the form wrapper function then:

function entity_boxes_form_dispatcher($entity_boxes_type) {
  $entity_boxes = entity_boxes_create( array( 'type' => $entity_boxes_type, ));
  return entity_boxes_form_wrapper(array($entity_boxes));
}

Comments

fxarte’s picture

This a quick patch implementing these changes that stop the errors dring install.
Here is also a a reference that may shed some light into this issue: http://drupal.org/node/972536