0

Using Drupal 8.9.13. I cannot seem to make the site I am building functional with the Domain suite of modules installed. Symptoms: After installing and enabling the Domain module, the site generates a general error when I log in. There is an error in the dblog:

TypeError: Argument 1 passed to Drupal\Core\Plugin\Context\ContextHandler::Drupal\Core\Plugin\Context{closure}() must implement interface Drupal\Core\Plugin\Context\ContextInterface, null given in Drupal\Core\Plugin\Context\ContextHandler->Drupal\Core\Plugin\Context{closure}() (line 76 of C:\Users\eugene\Sites\acquia\newfaces\web\core\lib\Drupal\Core\Plugin\Context\ContextHandler.php)

I narrowed it down to some kind of conflict between Layout builder module and Domain module. If either one is uninstalled, the error is gone. When Layout builder is uninstalled I can create domain records and then re-enable Layout builder. At this point there will be no errors.

When I continue to enable other modules in the domain suite, they seem to install fine, until I install Domain Source module. It seems to be in some conflict with the rules module. I cannot view user profile, including my own with the error indicating that memory of 512M is exhausted (no error in the dblog). Uninstalling either modules removes the error condition.

Please help. I don't see any similar issues here.

10
  • Did you try to set memory_limit = 1G in php.ini. Maybe you make some debugging output that is so memory greedy? Apr 9, 2021 at 17:47
  • It seems it does not matter what the setting is. It started as 256M, I increased it to 512
    – Eugene K
    Apr 9, 2021 at 18:03
  • It does matter but you should investigate what the reason for high memory consumtion is. Apr 9, 2021 at 18:21
  • I did increase memory limit to1024M. When I attempt to browse to my own user page I get the following errors: Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in C:\Users\eugene\Sites\acquia\newfaces\web\core\lib\Drupal\Core\Routing\CompiledRoute.php on line 162 Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in C:\Users\eugene\Sites\acquia\newfaces\web\core\lib\Drupal\Core\Database\Connection.php on line 1051
    – Eugene K
    Apr 10, 2021 at 4:25
  • Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in C:\Users\eugene\Sites\acquia\newfaces\web\core\includes\errors.inc on line 26 Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in Unknown on line 0
    – Eugene K
    Apr 10, 2021 at 4:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.