Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Apr 2013 at 06:45 UTC
Updated:
29 Jul 2014 at 22:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerLet's see whether this breaks something.
Comment #3
dawehnerThis patch seems to fix the problem.
Comment #4
ParisLiakos commentedThis is weird
related #1888734: Get rid of all 'bootstrap' hooks
Comment #5
ParisLiakos commentedthis is because
_system_update_bootstrap_statustriggers module handler's hook info rebuild first, and, well this happens before kernel being rebuilt, which means that new namespaces/classes provided by enabled module is not available in the hook_info invocationwhile update bootstraps are gonna be removed, this could still happen sometime, so i think that we should have a test for this
Comment #6
dawehnerI tried to write a test for that (see patch), though I realized that simpletest loads all classes into an autoloader somehow, see simpletest_classloader_register().
Comment #7
dawehnerAnother issue I have seen with this can be seen on http://qa.drupal.org/pifr/test/510073
There is an exception thrown which is caused by the following backtrace.
module_enable(array('rdf'))
Drupal::service('theme.registry')->reset();
...
views_theme()
...
field_views_data()
...
entity_get_bundles()
...
rdf_mapping_load_multiple()
The problem now is that module_enable() first resets the theme and then installs the schema.
Comment #8
ParisLiakos commentedno tests then:(
simpletest just loads everything:/
well lets get #3 in for now
Comment #9
ParisLiakos commentedreuploading the correct patch to avoid confusion
Comment #10
alexpottCommitted 7a53837 and pushed to 8.x. Thanks!
Comment #11
olli commentedClosed duplicate #1968090: During installation the moduleHandler calls hook_hook_info without having the classloader setup properly.
While trying to write a test (for a same fix as here) I noticed that after moving the function below updateModules(), hook_info is not invoked during module_enable anymore.
Comment #12.0
(not verified) commentedblub