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):

Comments

bernardopaulino created an issue. See original summary.

bernardopaulino’s picture

Here is a patch that should fix the error.

  • bernardopaulino committed 0433eaf6 on 8.x-1.x
    Issue #3328303 by bernardopaulino: Fix TypeError Argument get title.
    
bernardopaulino’s picture

Assigned: Unassigned » bernardopaulino
Status: Active » Fixed

Issue has been fixed in release 8.x-1.4

bernardopaulino’s picture

Status: Fixed » Closed (fixed)