stray renderRoot()

LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break. in Drupal\Core\Render\Renderer->renderRoot() (line 138 

Rebuilding the cache fixed it.

This only showed up when viewing the page as an anonymous user.

Update Drupal to 8.8.1 from 8.7.3

First, see what might be in the way of the update

composer prohibits drupal/core:8.8.1
drupal/core    8.8.1  requires          typo3/phar-stream-wrapper (^3.1.3)              
drupal/drupal  -      requires          typo3/phar-stream-wrapper (^2.1.1)              
drupal/core    8.8.1  requires          doctrine/annotations (^1.4)                     
drupal/drupal  -      does not require  doctrine/annotations (but v1.2.7 is installed) 

So, I tried

Drupal drush updb gives asset_injector error for normalizeUri

When I update the database with

drush8 updb

I’m getting

Call to undefined method Drupal\Core\StreamWrapper\StreamWrapperManager::normalizeUri() in /var/www/devcourts4sports/modules/contrib/asset_injector/asset_injector.install on line 16

Which says “When using drupal 8.7 or earlier please use version 2.4 of this module”

Drupal 8 recover after composer update

I ran a composer update

composer update --dry-run
composer update

There were lots of projects to be updated.

I had a db back and a configuration export just in case.

The site did not come back up.

I checked the apache error logs for the site and found that there was an error with menu_trail_by_path discussed here:

Missing required keys (core) in

Drupal 8

Clear the cache

drush8 cr


Drupal\Core\Extension\InfoParserException: Missing required keys (core) in modules/contrib/masquerade/ in

Found this

Edited the file and added

core: 8.x

to end

This allowed the drush cr to complete



Subscribe to Blogs