If Project module is upgraded with missing Views or Views is disabled it need to try to enable Views and if this fails it must fail the upgrade hooks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dww’s picture

Status: Active » Closed (works as designed)

dependencies[] = views

Core doesn't handle new dependencies particularly gracefully, but that's core's problem, not Project*'s.

hass’s picture

Title: Project need to enable Views or fail » Project need to enable Views on upgrades
Version: 6.x-1.0-alpha5 » 6.x-1.x-dev
Status: Closed (works as designed) » Needs review
FileSize
866 bytes

That's correct, but it could have not installed under D5 and in the upgrade process a user is not able to enable the views module.

Here is a patch that enables views as the very first step on the upgrade.

hass’s picture

Status: Needs review » Needs work

This causes a lot of errors about missing views cache tables. No idea why.

hass’s picture

Title: Project need to enable Views on upgrades » Enabling views in an update hook of project causes several errors
Project: Project » Views (for Drupal 7)
Version: 6.x-1.x-dev » 6.x-3.x-dev
Component: Releases » Miscellaneous
Category: bug » support

Moving to views queue to get some feedback from them why enabling views in a module update hook causes below errors + hundreds of others:

user warning: Table 'cache_views' doesn't exist query: TRUNCATE TABLE cache_views in includes\cache.inc on line 175.
user warning: Table 'views_view' doesn't exist query: SELECT DISTINCT v.* FROM views_view v in sites\all\modules\views\includes\view.inc on line 1620.
user warning: Table 'cache_views' doesn't exist query: SELECT data, created, headers, expire, serialized FROM cache_views WHERE cid = 'views_default_views_index:de' in includes\cache.inc on line 27.
user warning: Table 'cache_views' doesn't exist query: SELECT data, created, headers, expire, serialized FROM cache_views WHERE cid = 'unpack_options:b308bb1982bd3f45353aed85bd55eb92:de' in includes\cache.inc on line 27.

... UPDATE ...
MustangGB’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)