I get this error after activating the module:

Notice: Undefined index: #validate in fapi_validation_form_alter() (line 7 of /home/example/public_html/sites/all/modules/fapi_validation/fapi_validation.module).

I'm using a fresh install of Drupal 7, with the following modules - Views, Entity, Pathauto, Token, Organic Groups, CTools.

Comments

mdshields’s picture

I fixed it. Please do the following to fix this error:

1. open the file ...sites\all\modules\fapi_validation\fapi_validation.module (Save a backup copy of this file)
2. go to line 7 or the line that states: "if (!is_array($form['#validate'])) {"
3. update that line to replace with:
if (!isset($form['#validate']) || !is_array($form['#validate'])) {
4. Save the file change.
5. Refresh your caches.

timofey’s picture

That fixed it!

pedrofaria’s picture

Status: Active » Closed (fixed)

Thanks... committed!