Hello,

when you go on admin/structure/types/manage/product/subpages/add page, you got that error on the top of the page.

To reproduce

  1. Install Vanilla Drupal 7
  2. Install Entity Reference
  3. Install node subpages
  4. Try to add a new subpage to one of your content type
CommentFileSizeAuthor
#1 entityreference_2314339.patch243 bytesdtamajon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dtamajon’s picture

FileSize
243 bytes

I found the same problem, and it is given because $element is not set. I have added a simple check to avoid returning $element if not set.

dtamajon’s picture

dtamajon’s picture

Status: Active » Closed (duplicate)