- πΊπ¦Ukraine AstonVictor
It was fixed in 4.0.x branch. Please, update the module.
- Status changed to Fixed
9 months ago 2:26pm 5 March 2024 Automatically closed - issue fixed for 2 weeks with no activity.
Warning appears on every page where tagadelic is displayed since Drupal 9 upgrade
Warning: Invalid argument supplied for foreach() in Drupal\tagadelic\TagadelicCloudTaxonomy->createTags() (line 51 of /docroot/modules/contrib/tagadelic/src/TagadelicCloudTaxonomy.php)
#0 /docroot/core/includes/bootstrap.inc(346): _drupal_error_handler_real(2, 'Invalid argumen...', '/mnt/www/html/o...', 51)
#1 /docroot/modules/contrib/tagadelic/src/TagadelicCloudTaxonomy.php(51): _drupal_error_handler(2, 'Invalid argumen...', '/mnt/www/html/o...', 51, Array)
#2 /docroot/modules/contrib/tagadelic/src/TagadelicCloudBase.php(51): Drupal\tagadelic\TagadelicCloudTaxonomy->createTags(Array)
#3 /docroot/modules/contrib/tagadelic/src/Plugin/Block/TagadelicBlock.php(52): Drupal\tagadelic\TagadelicCloudBase->getTags()
#4 /docroot/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\tagadelic\Plugin\Block\TagadelicBlock::create(Object(Drupal\Core\DependencyInjection\Container), Array, 'tagadelic_block', Array)
#5 /docroot/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(76): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('tagadelic_block', Array)
#6 /docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(62): Drupal\Component\Plugin\PluginManagerBase->createInstance('tagadelic_block', Array)
#7 /docroot/core/modules/block/src/BlockPluginCollection.php(57): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin('tagadelic_block')
#8 /docroot/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(80): Drupal\block\BlockPluginCollection->initializePlugin('tagadelic_block')
#9 /docroot/core/modules/block/src/BlockPluginCollection.php(45): Drupal\Component\Plugin\LazyPluginCollection->get('tagadelic_block')
#10 /docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(83): Drupal\block\BlockPluginCollection->get('tagadelic_block')
#11 /docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(99): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration(Array)
#12 /docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(55): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId('tagadelic_block', Array)
#13 /docroot/core/modules/block/src/BlockPluginCollection.php(34): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct(Object(Drupal\Core\Block\BlockManager), 'tagadelic_block', Array)
#14 /docroot/core/modules/block/src/Entity/Block.php(156): Drupal\block\BlockPluginCollection->__construct(Object(Drupal\Core\Block\BlockManager), 'tagadelic_block', Array, 'tagadelictagclo...')
#15 /docroot/core/modules/block/src/Entity/Block.php(145): Drupal\block\Entity\Block->getPluginCollection()
#16 /docroot/core/modules/block/src/BlockViewBuilder.php(96): Drupal\block\Entity\Block->getPlugin()
#17 /docroot/core/modules/block/src/BlockViewBuilder.php(158): Drupal\block\BlockViewBuilder::buildPreRenderableBlock(Object(Drupal\block\Entity\Block), Object(Drupal\Core\Extension\ModuleHandler))
#18 [internal function]: Drupal\block\BlockViewBuilder::lazyBuilder('tagadelictagclo...', 'full', NULL)
#19 /docroot/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array)
#20 /docroot/core/lib/Drupal/Core/Render/Renderer.php(772): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #lazy_bu...', 'exception', 'Drupal\\Core\\Ren...')
#21 /docroot/core/lib/Drupal/Core/Render/Renderer.php(342): Drupal\Core\Render\Renderer->doCallback('#lazy_builder', Array, Array)
#22 /docroot/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Render\Renderer->doRender(Array)
#23 /docroot/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#24 /docroot/core/lib/Drupal/Core/Template/TwigExtension.php(463): Drupal\Core\Render\Renderer->render(Array)
#25 /php_storage/twig/b309fef/sitename/twig/61b7d91982bb2_page.html.twig_6tpn3G2eTO8kY6U9HJ5UIO96Q/-81IG4Ihm1QdcxjZHzfy1eowEsO9rd_kRvldNYXplUs.php(119): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#26 /vendor/twig/twig/src/Template.php(405): __TwigTemplate_a5a818d65dea75429f8cf1edf65390dc09178f0e1269879c04e9a1f189cf0dd4->doDisplay(Array, Array)
#27 /vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#28 /vendor/twig/twig/src/Template.php(390): Twig\Template->display(Array)
#29 /docroot/core/themes/engines/twig/twig.engine(55): Twig\Template->render(Array)
#30 /docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/themename/temp...', Array)
#31 /docroot/core/lib/Drupal/Core/Render/Renderer.php(422): Drupal\Core\Theme\ThemeManager->render('page', Array)
#32 /docroot/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#33 /docroot/core/lib/Drupal/Core/Template/TwigExtension.php(463): Drupal\Core\Render\Renderer->render(Array)
#34 /php_storage/twig/b309fef/sitename/twig/61b7d91982bb2_html.html.twig_spUP2yyoqEx4S0KlnqnVmW__5/BT5MElIYtLucXT58q8EWQZwoms2whi67FA9QNkaOoBM.php(176): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#35 /vendor/twig/twig/src/Template.php(405): __TwigTemplate_1f17c174af1c211e280fa86c9f1f8c7e5fe7aaa326fb122ad691b4376576289a->doDisplay(Array, Array)
#36 /vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#37 /vendor/twig/twig/src/Template.php(390): Twig\Template->display(Array)
#38 /docroot/core/themes/engines/twig/twig.engine(55): Twig\Template->render(Array)
#39 /docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/themename/temp...', Array)
#40 /docroot/core/lib/Drupal/Core/Render/Renderer.php(422): Drupal\Core\Theme\ThemeManager->render('html', Array)
#41 /docroot/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#42 /docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(162): Drupal\Core\Render\Renderer->render(Array)
#43 /docroot/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#44 /docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(163): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#45 /docroot/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#46 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#47 /docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#48 /vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#49 /vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#50 /docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#51 /docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#52 /docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#53 /docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#54 /docroot/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#55 /docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#56 /docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#57 /vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#58 /docroot/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#59 /docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#60 {main}
Upgrade a site to Drupal 9 with tagadelic already installed and added to pages via a block
Fixed
4.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
It was fixed in 4.0.x branch. Please, update the module.
Automatically closed - issue fixed for 2 weeks with no activity.