views:

47

answers:

0

When I try to save or delete the view this message appears ... when deleting the error is in function delete(), when saving the error is in function validate().

I'm trying to get answer for 2 days already, browsing the drupal forum etc.

I cannot get the solution.

I'M STUCK! I cannot continue my work! IT'S HELL! People THANK YOU!

EDIT: I'm using Drupal 6.19, Views modul 6.x-2.11

EDIT: posting code

/**
 * Validate that a view is complete and whole.
 */
function views_ui_edit_view_form_validate($form, &$form_state) {
  // Do not validate cancel or delete or revert.
  if (empty($form_state['clicked_button']['#value']) || $form_state['clicked_button']      
     ['#value'] != t('Save')) {
    return;
 }

  $errors = $form_state['view']->validate(); /*LINE 912 ERROR HERE*/
  if ($errors !== TRUE) {
    foreach ($errors as $error) {
      form_set_error('', $error);
  }
 }
}

The error is on line 912