- 🇮🇳India bharath-kondeti Hyderabad
This is not reproducible. Can we close this issue as this is raised for Drupal 8 version and sharethis module no longer supports D8 version.
Receiving the following errors after enabling the module in Drupal 8.
#12 indicates the issue leading to the error.
Disabled sharethis module and the errors stops appearing.
Notice: Array to string conversion in Drupal\Core\Template\AttributeArray->__toString() (line 74 of /home/mysite/public_html/core/lib/Drupal/Core/Template/AttributeArray.php)
#0 /home/mysite/public_html/core/includes/bootstrap.inc(600): _drupal_error_handler_real(8, 'Array to string...', '/home/mysite/...', 74, Array)
#1 [internal function]: _drupal_error_handler(8, 'Array to string...', '/home/mysite/...', 74, Array)
#2 /home/mysite/public_html/core/lib/Drupal/Core/Template/AttributeArray.php(74): implode(' ', Array)
#3 /home/mysite/public_html/core/lib/Drupal/Core/Template/AttributeValueBase.php(53): Drupal\Core\Template\AttributeArray->__toString()
#4 /home/mysite/public_html/core/lib/Drupal/Core/Template/Attribute.php(317): Drupal\Core\Template\AttributeValueBase->render()
#5 /home/mysite/public_html/core/lib/Drupal/Core/Render/Element/HtmlTag.php(88): Drupal\Core\Template\Attribute->__toString()
#6 [internal function]: Drupal\Core\Render\Element\HtmlTag::preRenderHtmlTag(Array)
#7 /home/mysite/public_html/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(100): call_user_func_array(Array, Array)
#8 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(781): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'silenced_deprec...', 'Drupal\\Core\\Ren...')
#9 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(372): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array)
#10 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender(Array, false)
#11 /home/mysite/public_html/core/lib/Drupal/Core/Template/TwigExtension.php(501): Drupal\Core\Render\Renderer->render(Array)
#12 /home/mysite/public_html/sites/default/files/php/twig/5eff7fe68010a_sharethis-block.html.twig_vF3X9nANeAY1CP8voKzV6xpq1/fkrhfnf1GjJplJb5768E3EUT8vVsC87XB8D_5nTEJ6Q.php(63): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#13 /home/mysite/public_html/vendor/twig/twig/src/Template.php(455): __TwigTemplate_3960a3c1e1726dd6990c08ceaaa0c65667e3b1b43f83f5b84ec839c8b5d8c149->doDisplay(Array, Array)
#14 /home/mysite/public_html/vendor/twig/twig/src/Template.php(422): Twig\Template->displayWithErrorHandling(Array, Array)
#15 /home/mysite/public_html/vendor/twig/twig/src/Template.php(434): Twig\Template->display(Array)
#16 /home/mysite/public_html/core/themes/engines/twig/twig.engine(64): Twig\Template->render(Array)
#17 /home/mysite/public_html/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('modules/contrib...', Array)
#18 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(431): Drupal\Core\Theme\ThemeManager->render('sharethis_block', Array)
#19 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender(Array, false)
#20 /home/mysite/public_html/core/lib/Drupal/Core/Template/TwigExtension.php(501): Drupal\Core\Render\Renderer->render(Array)
#21 /home/mysite/public_html/sites/default/files/php/twig/5eff7fe68010a_block.html.twig_80sxWpyC9Vz-xHFeYdRJsVItW/3-WhbJFVtU5u90h_1x0hUD12yUTgAVC_ZmEvjX6ZB8c.php(101): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#22 /home/mysite/public_html/vendor/twig/twig/src/Template.php(216): __TwigTemplate_996a221a40e869eca9ccf6cea8eac387949fcd742659f1c07053acd8a00777da->block_content(Array, Array)
#23 /home/mysite/public_html/sites/default/files/php/twig/5eff7fe68010a_block.html.twig_80sxWpyC9Vz-xHFeYdRJsVItW/3-WhbJFVtU5u90h_1x0hUD12yUTgAVC_ZmEvjX6ZB8c.php(86): Twig\Template->displayBlock('content', Array, Array)
#24 /home/mysite/public_html/vendor/twig/twig/src/Template.php(455): __TwigTemplate_996a221a40e869eca9ccf6cea8eac387949fcd742659f1c07053acd8a00777da->doDisplay(Array, Array)
#25 /home/mysite/public_html/vendor/twig/twig/src/Template.php(422): Twig\Template->displayWithErrorHandling(Array, Array)
#26 /home/mysite/public_html/vendor/twig/twig/src/Template.php(434): Twig\Template->display(Array)
#27 /home/mysite/public_html/core/themes/engines/twig/twig.engine(64): Twig\Template->render(Array)
#28 /home/mysite/public_html/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/custom/r...', Array)
#29 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(431): Drupal\Core\Theme\ThemeManager->render('block', Array)
#30 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender(Array, true)
#31 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(156): Drupal\Core\Render\Renderer->render(Array, true)
#32 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}()
#33 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(157): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#34 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(171): Drupal\Core\Render\Renderer->renderPlain(Array)
#35 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(658): Drupal\Core\Render\Renderer->renderPlaceholder('
#36 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(543): Drupal\Core\Render\Renderer->replacePlaceholders(Array)
#37 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender(Array, true)
#38 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(144): Drupal\Core\Render\Renderer->render(Array, true)
#39 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}()
#40 /home/mysite/public_html/core/lib/Drupal/Core/Render/Renderer.php(145): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#41 /home/mysite/public_html/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(282): Drupal\Core\Render\Renderer->renderRoot(Array)
#42 /home/mysite/public_html/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(131): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->renderPlaceholders(Object(Drupal\Core\Render\HtmlResponse))
#43 /home/mysite/public_html/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#44 [internal function]: Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#45 /home/mysite/public_html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#46 /home/mysite/public_html/vendor/symfony/http-kernel/HttpKernel.php(191): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.response', Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent))
#47 /home/mysite/public_html/vendor/symfony/http-kernel/HttpKernel.php(173): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Render\HtmlResponse), Object(Symfony\Component\HttpFoundation\Request), 1)
#48 /home/mysite/public_html/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#49 /home/mysite/public_html/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#50 /home/mysite/public_html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#51 /home/mysite/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(191): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#52 /home/mysite/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#53 /home/mysite/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#54 /home/mysite/public_html/modules/contrib/advban/src/AdvbanMiddleware.php(57): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#55 /home/mysite/public_html/core/modules/ban/src/BanMiddleware.php(50): Drupal\advban\AdvbanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#56 /home/mysite/public_html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#57 /home/mysite/public_html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#58 /home/mysite/public_html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#59 /home/mysite/public_html/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#60 /home/mysite/public_html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#61 {main}
Needs review
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This is not reproducible. Can we close this issue as this is raised for Drupal 8 version and sharethis module no longer supports D8 version.