Adding a task gives 500 Select::accessCheck() error in console.

Created on 28 November 2024, about 1 month ago

Problem/Motivation
Adding a task gives 500 Select::accessCheck() error in browser console.

Steps to reproduce:

  1. Add a task to a project.
  2. Look in the console for /burndown/api/task/get_relationships/
The website encountered an unexpected error. Try again later.
Error: Call to undefined method Drupal\mysql\Driver\Database\mysql\Select::accessCheck() in Drupal\burndown\Entity\Task->getRelationshipReferences() (line 562 of modules/contrib/burndown/src/Entity/Task.php).
Drupal\burndown\Controller\TaskController->getRelationships()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
....

The class path web/modules/contrib/burndown/src/Entity/Task.php and below is the code issue.

  public function getRelationshipReferences() {
       .......

    $result = $query
      ->accessCheck(FALSE) <----- This is the issue
      ->execute();

Similar issue in Burndown queue
https://www.drupal.org/project/burndown/issues/3355056 🐛 Select::accessCheck() in Drupal\burndown\Services\TaskIdService->getIncrementedId() Fixed

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia purencool

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

Comments & Activities

Production build 0.71.5 2024