Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292997

Modules not loaded when they ought to be loaded

$
0
0

Spinning this issue off from: http://drupal.org/node/1806334#comment-7159034

Trying to wrap up issue http://drupal.org/node/1806334 - Don't know how to summarize this so I'm just quoting the entire comment that originated this issue.

+++ b/core/lib/Drupal/Core/Extension/ModuleHandler.php
@@ -234,6 +234,8 @@ public function getHookInfo() {
+ // Make sure that the modules are loaded before checking.
+ $this->reload();

It does not really look like we got to the bottom of why modules are suddenly not loaded when they ought to be loaded.

I additionally do not understand why this calls into reload() instead of loadAll().

We definitely need to change this into loadAll(), and we should also figure out why this is suddenly necessary, as it should not be necessary — instead, there's likely a race condition or bogus/incomplete procedure elsewhere in the code that needs to be fixed.

http://drupal.org/node/1806334#comment-7159394

Actually loadAll() wont work, because $this->loaded is TRUE..
This is not a problem when using module_enable() because it explicitly calls load() on the new enabled module:
So if you manually update the moduleList somewhere in your code, you *must* call load or reload methods if you want the new hooks from this module to be available..

http://drupal.org/node/1806334#comment-7160804

1) the problem only exists in the installer


Viewing all articles
Browse latest Browse all 292997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>