A series of updates, ever lates Views dev, causes a Class 'views_handler_field_entity' not found fatal error
The update sequence below - even with a ridiculous amount of cache clears - cannot run over the new Views-3.x-dev code. (Error at bottom.) However i did confirm that registry_rebuild() in a bootstrapped test.php can restore the site at least.
The solution in this place is just to do a deployment, which is due anyway, before beginning on the Continuum branch - the first two updates, anyhow, run fine on the more stable release candidate 1 Views, and then when the code is updated the final update also runs fine. I don't like it but there's nothing blocking about this.
<?php
/**
* Implements hook_update_N().
*
* Revert all content-related features, necessary for using correct view mode.
*/
function sdl_update_7005() {
cache_clear_all();
cache_clear_all();
sdl_features_revert(array('feature_about', 'feature_awards', 'feature_events', 'feature_news', 'feature_people', 'feature_projects', 'feature_frontend'));
cache_clear_all();
cache_clear_all();
}
/**
* Implements hook_update_N().
*
* Disable no-longer-used migration modules.
*/
function sdl_update_7006() {
cache_clear_all();
cache_clear_all();
module_disable(array('sdl_migrate', 'TYPO3_migrate', 'migrate'));
cache_clear_all();
cache_clear_all();
}
/**
* Implements hook_update_N().
*
* Enable the continuum feature.
*/
function sdl_update_7007() {
cache_clear_all();
cache_clear_all();
module_enable(array('views_load_more', 'feature_continuum'));
cache_clear_all();
}
?>
The error.
ben@ubuntu:~/code/sdl (continuum *)$ rake db:sync_from_live
(in /home/ben/code/sdl)
Do you really want to drop all tables? (y/n): y
Modification time of local dump file /tmp/sdl.sql is less than 24 [warning]
hours old. Use the --no-cache option to force a refresh.
You will destroy data from sdl and replace with data from simone.mayfirst.org/drupal-sdl-stage.
You might want to make a backup first, using the sql-dump command.
Do you really want to continue? (y/n): y
The following updates are pending:
sdl module :
7005 - Implements hook_update_N(). Revert all content-related features, necessary for using correct view mode.
7006 - Implements hook_update_N(). Disable no-longer-used migration modules.
7007 - Implements hook_update_N(). Enable the continuum feature.
Do you wish to run all pending updates? (y/n): y
The external command could not be executed due to an application [error]
error.
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Class 'views_handler_field_entity' not found in
/home/ben/code/sdl/web/sites/all/modules/contrib/views/modules/node/views_handler_field_node_link.inc,
line 5
Output from failed command : [error]
Fatal error: Class 'views_handler_field_entity' not found in
/home/ben/code/sdl/web/sites/all/modules/contrib/views/modules/node/views_handler_field_node_link.inc
on line 5
Call Stack:
0.0035 401628 1. {main}()
/home/ben/workspace/drush/drush.php:0
0.0591 2318112 2. drush_main()
/home/ben/workspace/drush/drush.php:41
0.6266 8707836 3. drush_dispatch()
/home/ben/workspace/drush/drush.php:101
0.6267 8708088 4. call_user_func_array()
/home/ben/workspace/drush/includes/command.inc:214
0.6267 8708340 5. drush_command()
/home/ben/workspace/drush/includes/command.inc:0
0.6288 8714524 6. _drush_invoke_args()
/home/ben/workspace/drush/includes/command.inc:806
0.6412 8745132 7. call_user_func_array()
/home/ben/workspace/drush/includes/command.inc:134
0.6412 8745384 8. drush_core_updatedb_batch_process()
/home/ben/workspace/drush/includes/command.inc:0
0.6612 9122384 9. _update_batch_command()
/home/ben/workspace/drush/commands/core/core.drush.inc:697
3.9792 39944732 10. drush_batch_command()
/home/ben/workspace/drush/commands/core/drupal/update.inc:254
3.9814 39998248 11. _drush_batch_command()
/home/ben/workspace/drush/includes/batch.inc:68
3.9824 40003260 12. _drush_batch_worker()
/home/ben/workspace/drush/commands/core/drupal/batch.inc:96
3.9850 40088540 13. call_user_func_array()
/home/ben/workspace/drush/commands/core/drupal/batch.inc:143
3.9850 40088580 14. drush_update_do_one()
/home/ben/workspace/drush/commands/core/drupal/batch.inc:0
3.9852 40089968 15. sdl_update_7005()
/home/ben/workspace/drush/commands/core/drupal/update.inc:74
3.9898 40091988 16. sdl_features_revert()
/home/ben/code/sdl/web/profiles/sdl/sdl.install:406
5.3238 44055548 17. features_revert()
/home/ben/code/sdl/web/profiles/sdl/sdl.install:613
5.3238 44055624 18. _features_restore()
/home/ben/code/sdl/web/sites/all/modules/contrib/features/features.module:719
5.3327 44057820 19. features_invoke()
/home/ben/code/sdl/web/sites/all/modules/contrib/features/features.module:704
5.3328 44058324 20. call_user_func_array()
/home/ben/code/sdl/web/sites/all/modules/contrib/features/features.module:411
5.3328 44058640 21. node_features_revert()
/home/ben/code/sdl/web/sites/all/modules/contrib/features/features.module:0
5.4231 44043784 22. menu_rebuild()
/home/ben/code/sdl/web/sites/all/modules/contrib/features/includes/features.node.inc:113
5.4270 44044532 23. menu_router_build()
/home/ben/code/sdl/web/includes/menu.inc:2590
5.6200 45262184 24. drupal_alter()
/home/ben/code/sdl/web/includes/menu.inc:2630
5.6209 45266008 25. views_menu_alter()
/home/ben/code/sdl/web/includes/module.inc:1004
7.1675 61223404 26. view->execute_hook_menu()
/home/ben/code/sdl/web/sites/all/modules/contrib/views/views.module:344
7.1675 61223448 27.
views_plugin_display_page->execute_hook_menu()
/home/ben/code/sdl/web/sites/all/modules/contrib/views/includes/view.inc:1203
7.1676 61224516 28. view->init_handlers()
/home/ben/code/sdl/web/sites/all/modules/contrib/views/plugins/views_plugin_display_page.inc:57
7.1691 61225424 29. view->_init_handler()
/home/ben/code/sdl/web/sites/all/modules/contrib/views/includes/view.inc:501
7.1691 61225468 30. views_plugin_display->get_handlers()
/home/ben/code/sdl/web/sites/all/modules/contrib/views/includes/view.inc:586
7.1743 61296768 31. views_get_handler()
/home/ben/code/sdl/web/sites/all/modules/contrib/views/plugins/views_plugin_display.inc:840
7.1744 61296812 32. _views_prepare_handler()
/home/ben/code/sdl/web/sites/all/modules/contrib/views/views.module:1136
7.1744 61297400 33. _views_create_handler()
/home/ben/code/sdl/web/sites/all/modules/contrib/views/includes/handlers.inc:66
7.1744 61297444 34. class_exists()
/home/ben/code/sdl/web/sites/all/modules/contrib/views/includes/handlers.inc:22
7.1744 61297776 35. drupal_autoload_class()
/home/ben/code/sdl/web/includes/bootstrap.inc:0
7.1744 61297852 36. _registry_check_code()
/home/ben/code/sdl/web/includes/bootstrap.inc:2627
7.1759 61306392 37.
require_once('/home/ben/code/sdl/web/sites/all/modules/contrib/views/modules/node/views_handler_field_node_link_edit.inc')
/home/ben/code/sdl/web/includes/bootstrap.inc:2702
7.1759 61306712 38. drupal_autoload_class()
/home/ben/code/sdl/web/includes/bootstrap.inc:0
7.1759 61306788 39. _registry_check_code()
/home/ben/code/sdl/web/includes/bootstrap.inc:2627
7.1769 61322412 40.
require_once('/home/ben/code/sdl/web/sites/all/modules/contrib/views/modules/node/views_handler_field_node_link.inc')
/home/ben/code/sdl/web/includes/bootstrap.inc:2702
Finished performing updates. [ok]
Comments
Cheers... +1 for the drush ev
Cheers...
+1 for the drush ev 'registry_rebuild();'
Post new comment