Drupal 7.0 release running.
PHP 5.2.14/Mysql 5.1.44

Installed Views. Enabled Views.

When I went to run www.mysite.com/update.php it said:

"An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows.
Path: http://www.mysite.com/update.php?id=1122&op=do StatusText: OK ResponseText:
Fatal error: Call to undefined function _drupal_initialize_schema() in
/users/home/me/mysite.com/web/public/sites/all/modules/views/views.install on line 277"

See attached screen capture for the update screen.

CommentFileSizeAuthor
#10 1108932.patch506 bytesdawehner
#9 views.install.patch1.08 KBwardv
issue.png108.1 KBslimandslam
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Closed (duplicate)

Why would core run views_update_6000(), this really confused me.

Did you jumped from drupal5 to drupal7?

In general this seems to be a duplicate of #765364: views module Update field .views_display
There the update functions will get updated/removed because we don't need them here anymore.

slimandslam’s picture

The database is an updated D6 so it might have some old stuff in it, but, if I ever had the views module installed before, it must have been years ago. I don't know why the D7 views module is updating anything.

slimandslam’s picture

slimandslam’s picture

Status: Closed (duplicate) » Active

I don't see that this is a duplicate of the indicated issue. Please address THIS error message.

You call a function, _drupal_initialize_schema(), that does not exist anywhere in Drupal 7.

bojanz’s picture

@dereine
Before upgrading to D7, you need to have the latest version of D6 + contrib modules, right?
So why are we even keeping the D6 code in there?

dawehner’s picture

I'm not sure anymore but afaik we wanted to require 6.x-2.x-11/12 before the update so we can remove a bunch of update functions.

merlinofchaos’s picture

Status: Active » Fixed

If you never had Views installed on D6, you don't need the update code to run. I recommend you skip the update.php stuff, disable the views module, uninstall it using the modules admin, and then re-enable it. That should get rid of all of the update issues for you.

Status: Fixed » Closed (fixed)

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

wardv’s picture

Version: 7.x-3.0-beta3 » 7.x-3.1
Status: Closed (fixed) » Active
FileSize
1.08 KB

This bug should not have been closed, it still exists.

The comment in #7 does not help if you ever had views enabled in D5 or D6. In that case, you really need to run the updates.

I've attached a patch that removes the problematic updates (only) for people in this situation. It fixed the problems for us.

dawehner’s picture

Status: Active » Needs review
FileSize
506 bytes

You know posting a patch somehow should use the rules of drupal codestyle etc. Sorry but these are sort of required.

Here is a proper patch for this issue.

dawehner’s picture

Status: Needs review » Fixed

Just committed that patch

Status: Fixed » Closed (fixed)

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