Both Bootstrap & Subtheme completely blank, no error codes, no admin toolbar, just a blank page.... there should be content, if I look up source code, I can see my content, but I get only blank pages..... and what interesting - if I log out from Admin, I can see Bootstrap website.... log in - blank.... Cache flushing & cache emptying in MySQL didn't help.... Fresh install (without 3rd partie modules or other themes) - the same result....

How I discovered that?!

- Actually, I was using all the same Bootstrap & Subtheme & modules on several websites.... including Admin Toolbar module and Toolbar Themes module...

Today I decided to Uninstall Toolbar Themes module.... and - I discovered Bootstrap is all blank... I installed back Toolbar Themes module - Bootstrap showing up & working.... First, I thought something with Toolbar Themes.... but - then I did fresh test installs several times, as soon as I install Bootstrap - it goes blank..... However - when I log out - Bootstrap works... but not for admin logged in.

Comments

ZambalaRed created an issue. See original summary.

zambalared’s picture

Issue summary: View changes
zambalared’s picture

Issue summary: View changes
zambalared’s picture

Update:

After more testing, it seems that Bootstrap was working with 8x 3.17 version, but gets Blank after update to 3.x dev version....

and Blank - now I switched on Max Error reporting, now the page is not Blank, but with Error Massege below:

The website encountered an unexpected error. Please try again later.
Error: Call to a member function getPluginId() on null in Drupal\bootstrap\ThemeSettings->__construct() (line 69 of themes/bootstrap/src/ThemeSettings.php).

Drupal\bootstrap\ThemeSettings->__construct(Object) (Line: 752)
Drupal\bootstrap\Theme->settings() (Line: 539)
Drupal\bootstrap\Theme->getSetting('schemas') (Line: 200)
Drupal\bootstrap\Theme->__construct(Object, Object) (Line: 657)
Drupal\bootstrap\Bootstrap::getTheme('bootstrap', Object) (Line: 373)
Drupal\bootstrap\Theme->getAncestry() (Line: 767)
Drupal\bootstrap\Theme->subthemeOf('bootstrap') (Line: 196)
Drupal\bootstrap\Theme->__construct(Object, Object) (Line: 657)
Drupal\bootstrap\Bootstrap::getTheme() (Line: 1218)
Drupal\bootstrap\Bootstrap::initialize() (Line: 31)
include_once('/home2/user/name.com/themes/bootstrap/bootstrap.theme') (Line: 145)
Drupal\Core\Extension\Extension->load() (Line: 35)
twig_init(Object)
call_user_func('twig_init', Object) (Line: 144)
Drupal\Core\Theme\ThemeInitialization->loadActiveTheme(Object) (Line: 74)
Drupal\Core\Theme\ThemeInitialization->initTheme('samir') (Line: 406)
Drupal\Core\Theme\ThemeManager->initTheme(Object) (Line: 96)
Drupal\Core\Theme\ThemeManager->getActiveTheme() (Line: 43)
Drupal\Core\Cache\Context\ThemeCacheContext->getContext(NULL) (Line: 118)
Drupal\Core\Cache\Context\CacheContextsManager->convertTokensToKeys(Array) (Line: 307)
Drupal\Core\Render\RenderCache->createCacheID(Array) (Line: 66)
Drupal\Core\Render\RenderCache->get(Array) (Line: 109)
Drupal\Core\Render\PlaceholderingRenderCache->get(Array) (Line: 263)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

zambalared’s picture

...

Anatoliy Vorobyov’s picture

If you see white page but source code show your content, then page is not blank. You should check styles, js or other errors or elements that can show white space and hide real content.

Anatoliy Vorobyov’s picture

Everything works fine. Tried fresh Drupal installation(drupal-8-7-0-beta1) and latest Bootstrap(8.x-3.x-dev).

markhalliwell’s picture

Status: Active » Closed (cannot reproduce)

Try rebuilding caches and/or config.

garrettw’s picture

Cache rebuild fixed this error for me.

andileco’s picture

I also get this problem. If I uncheck the aggregate CSS and JS checkboxes on the Performance page, then things seem fine. But if I have them checked, my main menu disappears. Same error in my dblog as #4. I noticed this when updating from 3.16.0 => 3.20.0.

joseph.olstad’s picture

I get this same error as described in the issue summary when updating bootstrap from 3.19 to 3.21

cache rebuild doesn't help.

I have a sub theme based on the starterkit, possibly broken because it was based off of an older version of starterkit..

joseph.olstad’s picture

StatusFileSize
new885 bytes

here is a patch that fixes the problem for me.

joseph.olstad’s picture

Status: Closed (cannot reproduce) » Needs review
bhumikavarshney’s picture

Status: Needs review » Reviewed & tested by the community

Hi @joseph.olstad.
Thanks the above patch works fine for me

markhalliwell’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.