Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file_replace module not enabled but required by many other modules #264

Open
mjordan opened this issue Jun 14, 2022 · 0 comments
Open

file_replace module not enabled but required by many other modules #264

mjordan opened this issue Jun 14, 2022 · 0 comments

Comments

@mjordan
Copy link
Contributor

mjordan commented Jun 14, 2022

In development branch, at 606a321.

The file_replace module is not enabled during build. Yet it is required by a whole bunch of modules (which for some reason indicate they are disabled):

file_replace

Enabling it via the GUI works but also results in a WSOD (watchdog error below), and enabling it via drush does enable it, but produces this:

mark@user-ThinkPad-X1-Carbon-6th:~/hacking/isle-dc$ docker-compose exec -T drupal with-contenv bash -lc "drush en -y file_replace"
 [warning] array_key_exists() expects parameter 2 to be array, bool given ContentTranslationHandler.php:271
 [warning] array_key_exists() expects parameter 2 to be array, bool given ContentTranslationHandler.php:271
 [warning] array_key_exists() expects parameter 2 to be array, bool given ContentTranslationHandler.php:271
 [warning] array_key_exists() expects parameter 2 to be array, bool given ContentTranslationHandler.php:271
 [warning] array_key_exists() expects parameter 2 to be array, bool given ContentTranslationHandler.php:271
 [warning] array_key_exists() expects parameter 2 to be array, bool given ContentTranslationHandler.php:271
 [warning] array_key_exists() expects parameter 2 to be array, bool given ContentTranslationHandler.php:271
 [warning] array_key_exists() expects parameter 2 to be array, bool given ContentTranslationHandler.php:271

In DefaultTableMapping.php line 391:
                                                                      
  Table information not available for the 'field_coordinates' field.  
                                                                      

pm:enable [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--notify [NOTIFY]] [--xh-link XH-LINK] [--] <command> [<modules>]...

When enabling file_replace via the GUI, I think this is the watchdog error (it is the most recent entry):

Notice: unserialize(): Error at offset 12100 of 72069 bytes in Drupal\Component\Serialization\PhpSerialize::decode() (line 21 of /var/www/drupal/web/core/lib/Drupal/Component/Serialization/PhpSerialize.php)

#0 /var/www/drupal/web/core/includes/bootstrap.inc(600): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /var/www/drupal/web/core/lib/Drupal/Component/Serialization/PhpSerialize.php(21): unserialize()
#3 /var/www/drupal/web/core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php(79): Drupal\Component\Serialization\PhpSerialize::decode()
#4 /var/www/drupal/web/core/lib/Drupal/Core/KeyValueStore/StorageBase.php(35): Drupal\Core\KeyValueStore\DatabaseStorage->getMultiple()
#5 /var/www/drupal/web/core/lib/Drupal/Core/Entity/EntityFieldManager.php(470): Drupal\Core\KeyValueStore\StorageBase->get()
#6 /var/www/drupal/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(208): Drupal\Core\Entity\EntityFieldManager->getActiveFieldStorageDefinitions()
#7 /var/www/drupal/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(156): Drupal\Core\Entity\Sql\SqlContentEntityStorage->__construct()
#8 /var/www/drupal/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php(285): Drupal\Core\Entity\Sql\SqlContentEntityStorage::createInstance()
#9 /var/www/drupal/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php(274): Drupal\Core\Entity\EntityTypeManager->createHandlerInstance()
#10 /var/www/drupal/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php(208): Drupal\Core\Entity\EntityTypeManager->getHandler()
#11 /var/www/drupal/web/modules/contrib/islandora/modules/islandora_breadcrumbs/src/IslandoraBreadcrumbBuilder.php(43): Drupal\Core\Entity\EntityTypeManager->getStorage()
#12 /var/www/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drupal\islandora_breadcrumbs\IslandoraBreadcrumbBuilder->__construct()
#13 /var/www/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(173): Drupal\Component\DependencyInjection\Container->createService()
#14 /var/www/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(434): Drupal\Component\DependencyInjection\Container->get()
#15 /var/www/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(273): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#16 /var/www/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(173): Drupal\Component\DependencyInjection\Container->createService()
#17 /var/www/drupal/web/core/modules/system/src/Plugin/Block/SystemBreadcrumbBlock.php(63): Drupal\Component\DependencyInjection\Container->get()
#18 /var/www/drupal/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\system\Plugin\Block\SystemBreadcrumbBlock::create()
#19 /var/www/drupal/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(76): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
#20 /var/www/drupal/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(62): Drupal\Component\Plugin\PluginManagerBase->createInstance()
#21 /var/www/drupal/web/core/modules/block/src/BlockPluginCollection.php(57): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin()
#22 /var/www/drupal/web/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(80): Drupal\block\BlockPluginCollection->initializePlugin()
#23 /var/www/drupal/web/core/modules/block/src/BlockPluginCollection.php(45): Drupal\Component\Plugin\LazyPluginCollection->get()
#24 /var/www/drupal/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(83): Drupal\block\BlockPluginCollection->get()
#25 /var/www/drupal/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(99): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration()
#26 /var/www/drupal/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(55): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId()
#27 /var/www/drupal/web/core/modules/block/src/BlockPluginCollection.php(34): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct()
#28 /var/www/drupal/web/core/modules/block/src/Entity/Block.php(156): Drupal\block\BlockPluginCollection->__construct()
#29 /var/www/drupal/web/core/modules/block/src/Entity/Block.php(145): Drupal\block\Entity\Block->getPluginCollection()
#30 /var/www/drupal/web/core/modules/block/src/BlockAccessControlHandler.php(118): Drupal\block\Entity\Block->getPlugin()
#31 /var/www/drupal/web/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php(105): Drupal\block\BlockAccessControlHandler->checkAccess()
#32 /var/www/drupal/web/core/lib/Drupal/Core/Entity/EntityBase.php(370): Drupal\Core\Entity\EntityAccessControlHandler->access()
#33 /var/www/drupal/web/core/modules/block/src/BlockRepository.php(56): Drupal\Core\Entity\EntityBase->access()
#34 /var/www/drupal/web/core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php(137): Drupal\block\BlockRepository->getVisibleBlocksPerRegion()
#35 /var/www/drupal/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(259): Drupal\block\Plugin\DisplayVariant\BlockPageVariant->build()
#36 /var/www/drupal/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(117): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
#37 /var/www/drupal/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#38 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#39 /var/www/drupal/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#40 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(156): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#41 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#42 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle()
#43 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle()
#44 /var/www/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#45 /var/www/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#46 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle()
#47 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#48 /var/www/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#49 /var/www/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle()
#50 /var/www/drupal/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#51 {main}
@mjordan mjordan changed the title file_replace module not enabled file_replace module not enabled but required by many other modules Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant