Blogs

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 

https://www.drupal.org/project/asset_injector/issues/3100231

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:

https://www.drupal.org/project/menu_trail_by_path/issues/2914746

Missing required keys (core) in masquerade.info.yml

Drupal 8

Clear the cache

drush8 cr

got

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

Found this

https://www.drupal.org/project/fac/issues/2835071

Edited the masquerade.info.yml file and added

core: 8.x

to end

This allowed the drush cr to complete

 

Pages

Subscribe to Blogs