Show encountered an unexpected error instead of 404

Created on 18 March 2019, over 5 years ago
Updated 13 June 2023, about 1 year ago

After enabled the module and rename user path (only user path), it works perfectly when browsing with new path.
However, when browsing /user, I'm getting the below error:-

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">InvalidArgumentException</em>: Source path  has to start with a slash. in <em class="placeholder">Drupal\Core\Path\AliasManager-&gt;getAliasByPath()</em> (line <em class="placeholder">186</em> of <em class="placeholder">core/lib/Drupal/Core/Path/AliasManager.php</em>). <pre class="backtrace">Drupal\system\Plugin\Condition\RequestPath-&gt;evaluate() (Line: 74)
Drupal\Core\Condition\ConditionManager-&gt;execute(Object) (Line: 84)
Drupal\Core\Condition\ConditionPluginBase-&gt;execute() (Line: 26)
Drupal\block_visibility_groups\GroupEvaluator-&gt;resolveConditions(Object, &#039;and&#039;) (Line: 65)
Drupal\block_visibility_groups\GroupEvaluator-&gt;evaluateGroup(Object) (Line: 67)
Drupal\block_visibility_groups\Plugin\Condition\ConditionGroup-&gt;evaluate() (Line: 74)
Drupal\Core\Condition\ConditionManager-&gt;execute(Object) (Line: 84)
Drupal\Core\Condition\ConditionPluginBase-&gt;execute() (Line: 26)
Drupal\block\BlockAccessControlHandler-&gt;resolveConditions(Array, &#039;and&#039;) (Line: 116)
Drupal\block\BlockAccessControlHandler-&gt;checkAccess(Object, &#039;view&#039;, Object) (Line: 105)
Drupal\Core\Entity\EntityAccessControlHandler-&gt;access(Object, &#039;view&#039;, Object, 1) (Line: 365)
Drupal\Core\Entity\Entity-&gt;access(&#039;view&#039;, NULL, 1) (Line: 56)
Drupal\block\BlockRepository-&gt;getVisibleBlocksPerRegion(Array) (Line: 137)
Drupal\block\Plugin\DisplayVariant\BlockPageVariant-&gt;build() (Line: 259)
Drupal\Core\Render\MainContent\HtmlRenderer-&gt;prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer-&gt;renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber-&gt;onViewRenderArray(Object, &#039;kernel.view&#039;, Object)
call_user_func(Array, Object, &#039;kernel.view&#039;, Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher-&gt;dispatch(&#039;kernel.view&#039;, Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 2) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 2, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 2, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 2, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 2, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 2, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 2, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 2, 1) (Line: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 2) (Line: 166)
Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber-&gt;makeSubrequest(Object, &#039;/node/119&#039;, 404) (Line: 119)
Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber-&gt;makeSubrequestToCustomPath(Object, &#039;/node/119&#039;, 404) (Line: 81)
Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber-&gt;on404(Object) (Line: 109)
Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase-&gt;onException(Object, &#039;kernel.exception&#039;, Object)
call_user_func(Array, Object, &#039;kernel.exception&#039;, Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher-&gt;dispatch(&#039;kernel.exception&#039;, Object) (Line: 228)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleException(Object, Object, 1) (Line: 79)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
</pre>

We should be getting 404 instead of the above error right?
FYI, caches cleared. Drupal version 8.6.9

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡²πŸ‡ΎMalaysia hunchang

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024