After applying the Patch from #2, this error is gone, but a new error appeared for D9.5.10 with latest dev version of Alinks:
TypeError: Drupal\alinks\AlinkPostRenderer::__construct(): Argument #1 ($entity_type_manager) must be of type Drupal\Core\Entity\EntityTypeManagerInterface, Drupal\Core\Render\Markup given, called in /modules/alinks/src/AlinkPostRenderer.php on line 289 in Drupal\alinks\AlinkPostRenderer->__construct() (line 79 of /modules/alinks/src/AlinkPostRenderer.php)
Any ideas?
- First commit to issue fork.
- @eeyorr opened merge request.
same as #12 on Drupal 10.1.6
upgrade bug severity to critical since website becomes inaccessible with this error.
- Status changed to Needs work
about 1 year ago 10:39am 23 November 2023 okay, so I fixed the security error by changing AlinkPostRenderer.php a little:
TrustedCallbackInterface
... use Drupal\Core\Security\TrustedCallbackInterface; ... class AlinkPostRenderer implements TrustedCallbackInterface { public static function trustedCallbacks() { return ['postRender']; }
the security error goes away.
the problem is, the module still doesn't work after these changes !
no keywords are being replaced.what seems to be the problem ?
resolved in https://www.drupal.org/project/alinks/issues/3412674 📌 New 2.x Dev Version Active
- Status changed to Fixed
11 months ago 8:01am 18 January 2024 Automatically closed - issue fixed for 2 weeks with no activity.