In some websites, I am getting the following error when running drush cron:
[error] TypeError: Argument 2 passed to Drupal\Core\Controller\TitleResolver::getTitle() must be an instance of Symfony\Component\Routing\Route, null given, called in /app/web/modules/contrib/openfed_social/src/Plugin/Block/OpenfedSocialBlock.php on line 46 in Drupal\Core\Controller\TitleResolver->getTitle() (line 50 of /app/web/core/lib/Drupal/Core/Controller/TitleResolver.php) #0 /app/web/modules/contrib/openfed_social/src/Plugin/Block/OpenfedSocialBlock.php(46): Drupal\Core\Controller\TitleResolver->getTitle(Object(Symfony\Component\HttpFoundation\Request), NULL)
#1 /app/web/modules/contrib/openfed_social/src/Plugin/Block/OpenfedSocialBlock.php(29):
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | openfed_social-type-error-argument-get-title-3328303-2.patch | 1.13 KB | bernardopaulino |
Comments
Comment #2
bernardopaulino commentedHere is a patch that should fix the error.
Comment #4
bernardopaulino commentedIssue has been fixed in release 8.x-1.4
Comment #5
bernardopaulino commented