Database error produced in QuickBlockContent->accessBlock

Created on 16 May 2022, over 2 years ago
Updated 27 February 2023, over 1 year ago

Problem/Motivation

We get the next error when we use this module


TypeError: PDOStatement::fetchAll(): Argument #2 must be of type int, string given in PDOStatement->fetchAll() (line 2299 of /app/docroot/includes/database/database.inc).

this error is caused next code

$authorized_rids = db_select('block_role', 'br')
      ->fields('br', array('rid'))
      ->condition('module', $module, '=')
      ->condition('delta',  $delta,  '=')
      ->execute()
      ->fetchCol('rid');

fetchCol method supports only integer arguments

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇺🇦Ukraine shkiper

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.71.5 2024