Problem/Motivation

Got error 'PHP message: Error: Call to a member function getEntityTypeId() on string in /jails/site50019/var/www/public/drupal/modules/contrib/language_switcher_browser/src/EventSubscriber/LanguageRedirectionSubscriber.php on line 104 #0 [internal function]: Drupal\language_switcher_browser\EventSubscriber\LanguageRedirectionSubscriber->onRequest()

Steps to reproduce

Actually if you visit an node revision page. The routematch node parameter is a string. This causes the error.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Eugen Zerr created an issue. See original summary.

eugen zerr’s picture

Status: Active » Needs review

Hi!

I added the sanity check :)
Thx 4 your contribution!

Greetings