I get this log message on a content type not using maxlengths and a site runned with the module domain access not working well since this message came up - what is going wrong here? -
Notice: Undefined variable: elements in maxlength_js_field_attach_form() (line 73 of /drupal7/sites/all/modules/maxlength_js/maxlength_js.module).

Comments

jm.federico’s picture

Status: Active » Fixed

Its been fixed in dev since May 29

Status: Fixed » Closed (fixed)

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

87surendra’s picture

Its happening because there elements value is not set.
I resolve this error by add this line

if(isset($elements)){
_maxlength_js_children($form, $elements);
}