Closed (fixed)
Project:
Form API Validation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2011 at 02:11 UTC
Updated:
25 Mar 2011 at 00:12 UTC
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
Comment #1
mdshields commentedI 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.
Comment #2
timofey commentedThat fixed it!
Comment #3
pedrofaria commentedThanks... committed!