I got this error in my linkit module, i tracked it down to where it renders the form:

change:

print theme('linkit_dashboard', array('form' => render(drupal_get_form('_linkit_form'))));

to

$_form = drupal_get_form('_linkit_form');
print theme('linkit_dashboard', array('form' => render($_form)));

That fixed the error for me

Comments

anon’s picture

Thanks for the code, I will test this later today.

Marked #1083992: warning in linkit_dashboard_page() as duplicated.

anon’s picture

Status: Needs review » Fixed

Thanks for reporting and providing code to this issue.

This is now commited to 7.x.1.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

skilip’s picture

Status: Closed (fixed) » Active

This bug still exists.

anon’s picture

Status: Active » Closed (duplicate)

There is a new issue about this, with a patch so I will mark this as dublicate for #1291694: Pass by reference