"access denied" warning

Created on 27 February 2025, 3 months ago

Watchdog is filled with log entries that state:

User: Anonymous (not verified)
Location: https://domain.com/sitewide_alert/load

Message: Path: /sitewide_alert/load. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: The 'view published sitewide alert entities' permission is required. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 117 of /var/www/public_html/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

πŸ› Bug report
Status

Active

Version

3.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States carsonw

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

Comments & Activities

  • Issue created by @carsonw
  • πŸ‡ΊπŸ‡ΈUnited States carsonw
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    If you have the perm shut off for anonymous users, the site will likely try to hit the endpoint to get the data for the alerts, but will not have access to it.
    There are likely two solutions:

    1. If everyone should be able to see the alert, make sure you grant "view published sitewide alert entities" to anonymous users.
    2. If anon users should not see the alerts, then make sure the block perms are not set to show to anon users.
Production build 0.71.5 2024