Under my installation, if I just create a new View of type Node (as well as a few other types I tried), and add one field, and click "save", i get to a "Page not found" page, and the view is not listed in build/views.

Comments

goron’s picture

More info: I am using Drupal 6.20, on a medium-size site with many other modules enabled. I'm assuming there is some incompatibility with another module, since this problem does not occur on a fresh install.

I was also getting an error after I installed the dev version of Views 3 about a foreach() argument. There is a patch suggested for this here: http://drupal.org/node/1082322. After applying the patch, I still get to a "page not found" page after saving a view, but now I also get a message that: "The view browse_listings has been saved". But still, there is no record of the view in build/views.

Any idea what could be causing this, or what module the incompatibility is with?

dawehner’s picture

In general the drop is moving very fast at the moment.

So better try to get the latest version(next day dev version) again, and see whether it's still happening

goron’s picture

So I can confirm this i still happening with the latest (Apr 19) dev version.

1. I enable Views 3.x-dev (on a site with many other modules installed)
2. I create a new Node view and add Node:Title field
3. I click "Save" (the View name is browse_listings)
4. The next page I arrive at is the edit page for the view I just created (admin/build/views/edit/browse_listings), but all I see is "Page not found". Also on this page is a message saying "The view browse_listings has been created". And an error:

user warning: Unknown column 'human_name' in 'field list' query: INSERT INTO views_view (name, description, tag, base_table, human_name, core) VALUES ('browse_listings', '', '', 'node', 'Browse Listings', 6) in [...]sites/all/modules/views/includes/view.inc on line 1856.

Any suggestions on debugging this? Anyone else experiencing this?

merlinofchaos’s picture

If you don't have the human_name column, you must run update.php

goron’s picture

Thanks. I thought I did, but I will try again and report back.

goron’s picture

Status: Active » Fixed

My issue is solved. My apologies, I just applied the dev update incorrectly.

Thanks for your help.

Status: Fixed » Closed (fixed)

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

maddentim’s picture

Status: Closed (fixed) » Active

Hello, I had the same issue here. I have been having an unrelated problem with views_slideshow and am trying out views_slideshow 3.x which requires views 3. I upgraded both on my dev machine and ran drush updb, but it did not find any updates to apply. However, couldn't get any view edits to save. I found this issue and checked my views_view table and sure enough, no human_name column. Tried updb again, but nothing. I ended up "drush pm-uninstalling views" and then enabling again and the fields were added... Not sure why the table updates didn't happen with the drush updb. It's my understanding that that is the same as running /update.php.

dawehner’s picture

Here is the reason for this problem: 6012 is missed in 6.x-2.x

maddentim’s picture

I see. That's not so cool. I abandoned the particular tangent I was on so this isn't a bigissue for me at the moment. I'll keep it in mind for the next time I need to upgrade views from 2 to 3.

sunshinee’s picture

I ran into this problem, too. If it helps anyone else, you can run update.php the old-fashioned way, but select the Views 6012 update manually.

Martin.Schwenke’s picture

Can someone please describe how to run update.php "the old-fashioned way"?

My site seemed fine after upgrade though, surprisingly, the views upgrade didn't cause any (or a significant number of?) database updates. After trying to edit a view and trying to save, the site is hose:

PHP Fatal error: Call to a member function access() on a non-object in .../modules/views-7.x-3.0-rc1/includes/view.inc on line 317

No backup, because I don't usually backup my database before editing a view... :-(

Time to try hacking the database by hand...

Martin.Schwenke’s picture

OK, back in business after installing the current dev version instead of rc1 and heading to .../update.php

Tino’s picture

Version: 6.x-3.x-dev » 6.x-2.3
Priority: Normal » Critical

I cannot save new, duplicated or imported views anymore. Views sais it is saved, but the page is not found afterwards, neither does the newly created view appear in the list.

On this perticular site I'm working with Views 6.x-2.13. I updated to a more recent version of views before, but rolled back because certain views I built did not work anymore: the ones involving the signup module. Signup links/buttons did not show up anymore so I had to downgrade to 2.13. It is a pretty complex website so I am very anxious about upgrading again. Maybe something went wrong in the process of upgrading and downgrading...

What can I do to fix this so I can add views again?

Tino’s picture

Priority: Critical » Normal

Found a way to fix the views. Now they also work for 6.x-2.16. Had to uncheck "Do not rewrite when empty" on certain fields, which is a new setting in 2.16.
Must have had something to do with upgrading and rolling back again. Sorry for the confusion.

rfay’s picture

(D7 #fail) Somewhere along the line a hook_update_N() was missed; I had this as well (on a site that had a long, pre-D7 release history). There are no updates remainting to be applied, but I have this problem.

I had to do this to fix it

ALTER TABLE `views_view` ADD COLUMN `human_name` VARCHAR(255) NULL  default '';
ALTER TABLE `views_view` ADD COLUMN `core` INT(11) DEFAULT 0;
dzigman’s picture

I also replaced Views 2.x with Views 3.x and found after updating to 3.x, no views were being saved. After a running update.php with 6012 views are now being saved. Thanks, all for posting the fix. (I'm running Drupal 6.x)

TravisJohnston’s picture

Hello,

I am having the same issue. Out of nowhere my views started to not save, only new ones. I have 2.16 installed on D6.

Though I am not getting a table error, only Page Not Found when I go to save a new view. I am not moving to Views 3.x though.

I see people mentioning to run update with 6012 but I am not sure how to do that specifically. I can drush run updates but how do I specify 6012?

TravisJohnston’s picture

nvm got it. Using Drush to update doesn't give you an easy option to select versions. Im sure it does, but i couldn't find it.

So i ran site.com/update.php and selected 6013 since 6012 wasn't available on the list and it worked.

Seijun’s picture

There is also no 6012 for me. I am on 6010, and 6011 and 6013 are available. Should I choose 6011 or 6013?

TravisJohnston’s picture

Hello Seijun,

Same as #19, I didn't see it either and just grabbed 6013 and it worked fine

chustedde’s picture

Status: Active » Reviewed & tested by the community

The issue was also solved for me by running update 6013. It seems like this has worked for everyone who has tried it, so that's good news.

chustedde’s picture

It appears you must manually select Views 6013 each time you run update.php, or the problem reoccurs.

ShooterMG’s picture

I can confirm that manually selecting 6013 from update.php does indeed solve the problem for me.

dawehner’s picture

Status: Reviewed & tested by the community » Active

RTBC means that there is a patch, I can't find one of those here :)

phanophite’s picture

Running update.php and selecting views version 6013 manually worked for our site as well.

ErwinROw’s picture

Issue summary: View changes

Hi all, this is an old post but I have this problem too. But where can I select 6013 manually ? Do I need to install something first ? Don't know how to update manually :-( And I can't find it. Please help because I can't save changes in the views. I sarted from drupal 6, upgraded it to drupal 7.44 and fixed a few problems, but this issue is hard for me. thank you

davidjguru’s picture

Hi, I was working on a D6 site with the same issue and #24 or #26 works fine for me.
Lot of thanks!!! :-)

Chris Matthews’s picture

Status: Active » Closed (outdated)

The Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue