I am not able as user 1 to access the 'Extend -> Update' or 'Extend -> Install new module' pages (I can, however, access the 'Extend -> Uninstall' page). This has only started happening in the last few days.The message I get is:
Access denied
You are not authorized to access this page.
I am on a Drupal 9.4.8 distro running on a Siteground remote server. This has only started happening in the last few days.
I looked at this page which had some helpful suggestions:
Not able to access "Updates" page logged in as admin user
I have so far tried:
- setting allow_authorize_operations to True in settings.php,
- rebuilding permissions under "/admin/reports/status/rebuild"
- and clearing cache with drush cr.
None of the above resolved the problem so I am still looking for a solution.
The log messages are:
Path: /admin/modules/install. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 118 of /[site_root]/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).
and:
Path: /admin/modules/update. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 118 of /[site_root]/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).
I would appreciate any help/advice with debugging this.