- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 12:45pm 16 January 2023 - 🇵🇰Pakistan hmdnawaz
I'm getting the following error with the patches in # 6 and 7.
TypeError: Drupal\broken_link\EventSubscriber\BrokenLinkSubscriber::handleBrokenLink(): Argument #1 ($event) must be of type Symfony\Contracts\EventDispatcher\Event, Symfony\Component\HttpKernel\Event\ExceptionEvent given in Drupal\broken_link\EventSubscriber\BrokenLinkSubscriber->handleBrokenLink() (line 44 of modules/contrib/broken_link/src/EventSubscriber/BrokenLinkSubscriber.php).
What can be the reason?
Hi,
I think it's because a subscriber with the "kernel.exception" event should use Symfony\Component\HttpKernel\Event\ExceptionEvent instead of Symfony\Contracts\EventDispatcher\Event and according to this page → using Symfony\Contracts\EventDispatcher\Event can lead to fatal errors.
In addition,$exception = $event->getException();
should be replaced by$exception = $event->getThrowable();
in BrokenLinkSubscriber.php line 45 because the method getException () is deprecated since symfony 4 and trigger a fatal error in D10.
I worked on a patch and it seems to work on my local D10 environment.- Status changed to RTBC
over 1 year ago 8:39am 24 July 2023 - 🇲🇽Mexico manoxs Guadalajara
Hi,
I found the same issue mentioned on: PHP8.1: Deprecated function: trim() 🐛 PHP8.1: Deprecated function: trim() RTBC merging the fix in here
- First commit to issue fork.
- 🇵🇰Pakistan hmdnawaz
The patch in #10 does not apply to the latest version.
Here is the new patch.
- @tonibarbera opened merge request.
- First commit to issue fork.
- 🇩🇪Germany vistree
Can MR from #15 be merged - or are there outstanding problems?
- 🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺
Can this be merged to add Drupal 10 support?
Drupal 9 is not supported anymore and consequently making this module deprecated for the time being. We currently have to rely on a fork and it would be great to come back to a regular workflow depending on drupal.org.
- 🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺
Bumping priority since Drupal 9 reached end of life.
- 🇩🇪Germany vistree
Can someone explain why the D10 compatibility patch is not merged? Are there outstanding problems?