On a fresh install no content created (blank slate) I get this error before creating any content. Once I have content the error goes away. I know this is a rare setup it just took me a bit of work trying to get it working without error before i realized to just create a page. I added the error message I got below.
Warning: strlen() expects parameter 1 to be string, array given in bootstrap_barrio_preprocess_page_title() (line 226 of themes/bootstrap_barrio/bootstrap_barrio.theme).
bootstrap_barrio_preprocess_page_title(Array, 'page_title', Array)
Drupal\Core\Theme\ThemeManager->render('page_title', Array)
Drupal\Core\Render\Renderer->doRender(Array, )
Drupal\Core\Render\Renderer->render(Array)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1)
__TwigTemplate_4c69e5991f3e160b935047dfe4777706db635ab67265fa6f4ec5c39794e17709->block_content(Array, Array)
Twig_Template->displayBlock('content', Array, Array)
__TwigTemplate_4c69e5991f3e160b935047dfe4777706db635ab67265fa6f4ec5c39794e17709->doDisplay(Array, Array)
Twig_Template->displayWithErrorHandling(Array, Array)
Twig_Template->display(Array)
Twig_Template->render(Array)
twig_render_template('themes/bootstrap_barrio/templates/block/block.html.twig', Array)
Drupal\Core\Theme\ThemeManager->render('block', Array)
Drupal\Core\Render\Renderer->doRender(Array)
Drupal\Core\Render\Renderer->doRender(Array, )
Drupal\Core\Render\Renderer->render(Array)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1)
__TwigTemplate_4eda0ce75fcd4d7c7bfea8acfbaae4f24ee45e1495f6c6cfc1fc2dfc1d49ff2b->block_content(Array, Array)
Twig_Template->displayBlock('content', Array, Array)
__TwigTemplate_4eda0ce75fcd4d7c7bfea8acfbaae4f24ee45e1495f6c6cfc1fc2dfc1d49ff2b->doDisplay(Array, Array)
Twig_Template->displayWithErrorHandling(Array, Array)
Twig_Template->display(Array)
Twig_Template->render(Array)
twig_render_template('themes/bootstrap_barrio/templates/layout/page.html.twig', Array)
Drupal\Core\Theme\ThemeManager->render('page', Array)
Drupal\Core\Render\Renderer->doRender(Array, )
Drupal\Core\Render\Renderer->render(Array)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1)
__TwigTemplate_df05244faca2f5ca5a1365e71348b8af3ab67d4d2e64686c649ed6460e498bf3->doDisplay(Array, Array)
Twig_Template->displayWithErrorHandling(Array, Array)
Twig_Template->display(Array)
Twig_Template->render(Array)
twig_render_template('themes/bootstrap_barrio/templates/layout/html.html.twig', Array)
Drupal\Core\Theme\ThemeManager->render('html', Array)
Drupal\Core\Render\Renderer->doRender(Array, )
Drupal\Core\Render\Renderer->render(Array)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1)
Stack\StackedHttpKernel->handle(Object, 1, 1)
Drupal\Core\DrupalKernel->handle(Object)
Comments
Comment #2
hatuhay commentedCannot reproduce
Comment #3
staulien commentedAfter some more testing i found that this only showed up when the page did not have a title. For example my front page when i first created it I didn't put a title and i got this message. Once I put a title on it worked without error. The front page was being created by the frontpage view which for some reason is empty on default install.
Comment #4
staulien commentedMore playing around i continue getting the error. It is not only on front page i created a completely blank view (screenshot attached)
I have one basic page that is set to published and promote to front page.
The page shows up but the title of the page is H2. The only other title section of the page shows up like this:
If I put a title in the view or not I still get the error message.
If i go to the page directly via node/1 i don't get the message and i get the following in the same title section above:
I went looking for the template that creates this section but I can't seem to find the exact section broken out into a seperate template file and I am still learning twig so I may have completely missed it.
I hope this helps!
Comment #5
aangel commentedI'm seeing this with a fresh install of 4.5, as well.
Comment #7
hatuhay commentedComment #8
hatuhay commented