- Issue created by @anaconda777
- 🇫🇮Finland anaconda777
Was able to fix this with ChatGPT
Just change ( modules/contrib/legal/src/EventSubscriber/LegalNavigationLock.php) the
use Drupal\Core\Http\RequestStack;
to
use Symfony\Component\HttpFoundation\RequestStack;and
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
to
use Symfony\Component\HttpKernel\Event\RequestEvent;and line 109:
should be like this:
public function onKernelRequestLockNavigation(RequestEvent $event): void {Thanks again for chatgpt, dont have time to make patch sorry
- First commit to issue fork.
- Assigned to bharath-kondeti
- 🇬🇧United Kingdom robert castelo
There is no file modules/contrib/legal/src/EventSubscriber/LegalNavigationLock.php in the 3.0.2 release.
Have you perhaps applied a patch that adds that file?
- Status changed to Postponed: needs info
7 months ago 12:32pm 10 June 2024 - 🇮🇳India bharath-kondeti Hyderabad
The patch file is already fixed in this issue https://www.drupal.org/project/legal/issues/2897486#comment-15572202 🐛 Don't log out users who do not accept the T&C Needs review .
- Status changed to Closed: won't fix
7 months ago 12:50pm 10 June 2024 - 🇬🇧United Kingdom robert castelo
OK, so the issue is a patch has been applied and now that patch throws an error with the latest release.
The release is working fine.
- 🇫🇮Finland anaconda777
Oh sorry, it was indeed a old version and its patch. I think I didnt apply it to this version, maybe
after composer install that file still stayed there...