The PHP notice is:

Notice: Undefined index: #prefix in TemplateApiInputTypeController->addStuffToElement() (line 146 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc).
Notice: Undefined index: #suffix in TemplateApiInputTypeController->addStuffToElement() (line 147 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc).
Notice: Undefined index: #prefix in TemplateApiInputTypeController->addStuffToElement() (line 146 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc).
Notice: Undefined index: #suffix in TemplateApiInputTypeController->addStuffToElement() (line 147 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc).
Notice: Undefined index: #prefix in TemplateApiInputTypeController->addStuffToElement() (line 146 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc).
Notice: Undefined index: #suffix in TemplateApiInputTypeController->addStuffToElement() (line 147 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc).
Notice: Undefined index: #prefix in TemplateApiInputTypeController->addStuffToElement() (line 146 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc).
Notice: Undefined index: #suffix in TemplateApiInputTypeController->addStuffToElement() (line 147 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc).
Notice: Undefined index: #prefix in TemplateApiInputTypeController->addStuffToElement() (line 146 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc).
Notice: Undefined index: #suffix in TemplateApiInputTypeController->addStuffToElement() (line 147 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc).
Recoverable fatal error: Argument 3 passed to TemplateApiInputTypeController::getForm() must be an instance of Template, none given, called in C:\wamp\www\learn\sites\all\modules\template_field\template_api\plugins\input_types\vertical_tabs.inc on line 20 and defined in TemplateApiInputTypeController->getForm() (line 127 of C:\wamp\www\learn\sites\all\modules\template_field\template_api\includes\input_type.inc)

There is an assumption that the form elements '#prefix' and '#suffix' has been previously set which is not the case.


      $element[$element_key]['#prefix'] .= '<div class="template-input ' . $element_id . '">';
      $element[$element_key]['#suffix'] = '</div>' . $element[$element_key]['#suffix'];

Comments

indytechcook’s picture

Status: Fixed » Closed (fixed)

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