Live site on shared hosting, with Drupal 8.5.3, PHP 7.2, in Safari, Firefox, and Chrome the above-mentioned error appears when users try to register and/or try to reset their password, and/or try to login.
Users do receive a confirmation email, but after clicking on link in email the above mentioned error appears again.
I changed PHP to version 5.6, as well as version 7.1, but error stays.
In Chrome registered user after refreshing page has logged in.
In Firefox refreshing page does not help. Same error appears.
----------------------------------------------------
The recent log messages shows the following:
Type: php
Date: Thursday, 24 mei 2018
User: Visitor
Locatie: http://sjulleksounds.nl/user/password
Doorverwijzer: http://sjulleksounds.nl/user/password
In the log is the following message:
Message User error: Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it. in Drupal\Core\EventSubscriber\RedirectResponseSubscriber->checkRedirectUrl() (regel 85 van /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php) #0 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/includes/bootstrap.inc(582): _drupal_error_handler_real(256, 'Redirects to ex...', '/home/sjullekso...', 85, Array) #1 [internal function]: _drupal_error_handler(256, 'Redirects to ex...', '/home/sjullekso...', 85, Array) #2 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php(85): trigger_error('Redirects to ex...', 256) #3 [internal function]: Drupal\Core\EventSubscriber\RedirectResponseSubscriber->checkRedirectUrl(Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #4 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #5 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/vendor/symfony/http-kernel/HttpKernel.php(191): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.response', Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent)) #6 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/vendor/symfony/http-kernel/HttpKernel.php(260): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Form\EnforcedResponse), Object(Symfony\Component\HttpFoundation\Request), 1) #7 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/vendor/symfony/http-kernel/HttpKernel.php(79): Symfony\Component\HttpKernel\HttpKernel->handleException(Object(Drupal\Core\Form\EnforcedResponseException), Object(Symfony\Component\HttpFoundation\Request), 1) #8 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #9 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #10 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #11 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #13 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #14 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/core/lib/Drupal/Core/DrupalKernel.php(664): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /home/sjulleksounds.nl/public_html/sjulleksounds.nl/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #17 {main}.