Hello,

I'm running Drupal 6.14 and views 6.x-2.8 and I cannot save any views. I can open the Views administration page, create a view, and then click "save", but when I go to the list of Views, the view that I just "saved" does not show up and all my work is erased.

The views module is the only module running in my installation, as I've tried to weed out a conflict from another, so apparently, there is no conflict with other modules. I have no errors in my php error logs or my apache error logs. I upgraded to Drupal 6.15 and that didn't help.

What is even more weird is that on my local test machine it works fine. When I upload to my hosting provider (Godaddy, using Linux and apache) this exact same setup doesn't work.

Any thoughts as to why this is happening and how to fix it?

Thanks,
Blue

PS another bug was submitted about a year ago, but the issue was closed with no resolution. Hopefully this is happening to someone else who has been able to fix it.

Comments

Stomper’s picture

No solution but I am having the same issues also. I am running 6.14 too but Views 6x 2.7. Have yet to upgrade to 6.15.

I created a view shell saved it, and changes were reflected in related page. Logged out, logged back in, made a series of changes. Saved the view, went to list, view was still there. Clicked "Edit" to see if changes remained, they did but the changes were not being reflected in related page.

Is it a cache issue? Views cache? How do I clear cache?

Anyways, logged out thinking that would clear cache. Logged back in, checked Views, view still was listed but all of the latest changes were gone.

@blue, I also had previous issues of creating views, saving it, but have them not show up on the Views list. It's very picky, sometimes it will let be create/save/and work otherwise no success.

Have you had any recent luck?

Thanks

josh waihi’s picture

Component: Miscellaneous » Code
Priority: Normal » Critical

@blue, your issue sound related to your hosting environment, Drupal (especially with views) is a high memory user, when php segfaults or runs out of memory, often no message will display - especially in a production environment where error diplaying is turned off. I'd suggest replicating the production environment in you dev or local environment.

I too am having problem where I've recently upgraded to 2.8 and am getting the following error when I try to save an existing view:

Fatal error: Call to a member function validate() on a non-object in /home/josh/projects/tikirau/modules/acquia/views/includes/admin.inc on line 895

It is failing at this function:

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

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

$form_state['view'] is loaded when the form is build but when the form is submitted, the form is not rebuilt, it is pulled from the cache. The issue here maybe that the view because it is an object is not being stored correctly. I'm not sure, but I dumped the value of $form_state['value'] and it was null.

As this is breaking functionality, I'm bumping this issue up to critical.

josh waihi’s picture

turns out my issue was with the form module. I disabled it and every worked fine.

Stomper’s picture

Yeah, my solution was a simple solution. Basically I was not reading the warning prompts. I was excluding all fields from displaying. This is impossible and not permitted, thus I could not save the view.

As long as at least one of my fields was no excluded from the display, the view would save.

All's well.

dawehner’s picture

Status: Active » Fixed

I guess the problem was form module.

Status: Fixed » Closed (fixed)

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

adanelova’s picture

I have the exact problem as #2. But I cannot disable Form module ... you mean webform right? I have only webform module, no form module.... I'm using the module on web.
Did it worked for you when disabling and than enabling again?

I'M IN HELL! ICANNOT SAVE ANYTHING, I cannot continue my work!

Thanks guys

adanelova’s picture

dawehner’s picture

#7
No we mean the the form module http://drupal.org/project/form

This error here is on thousands issues already. As you can read on http://drupal.org/node/571990

If you have a "An error occurred at /admin/build/views/" error please first the following steps.

    Enable php errors and log them. There might be some, you have to report them!
    Disable jquery_ui / jquery_update if you have enabled them to find out whether they cause the problem
    Disable secure_pages module to find out whether this is the cause of the problem