Problem/Motivation

If you try to reindex the backlinks in admin/config/content/backlinks there's a php error:

Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (regel 141 van web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

Access checking must be explicitly specified on content entity queries.

Steps to reproduce

  1. Go to admin/config/content/backlinks
  2. Check some content types
  3. Hit re-index button

Proposed resolution

Add ->accessCheck(FALSE) to query's in BacklinksScanBatch.php

Remaining tasks

Create MR (i'll try to fix it today but last hours before vacation).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Groendijk created an issue. See original summary.

groendijk’s picture

Assigned: groendijk » Unassigned
Status: Active » Needs review
groendijk’s picture

Issue summary: View changes

matej.lehotsky’s picture

Status: Needs review » Fixed
matej.lehotsky’s picture

Status: Fixed » Closed (fixed)
groendijk’s picture

Thanks for fast merging!

groendijk’s picture