SQLSTATE[42S22]: Column not found:

Created on 17 August 2023, over 1 year ago

Problem

column not found error occurred

Steps to reproduce

1) install the module and go to the /allcontent path
2) select Vocabulary and filter it
3) we'll get an error :-
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'n.uid' in 'on clause': SELECT COUNT(*) AS "expression" FROM (SELECT 1 AS "expression" FROM "taxonomy_index" "ti" INNER JOIN "node_field_data" "nfd" ON nfd.nid = ti.nid INNER JOIN "users_field_data" "u" ON n.uid=u.uid WHERE ("ti"."tid" = :db_condition_placeholder_0) AND ("title" = :db_condition_placeholder_1)) "subquery"; Array ( [:db_condition_placeholder_0] => 0 [:db_condition_placeholder_1] => article ) in Drupal\filter_term\Controller\DefaultController->content() (line 64 of modules\filter_term\src\Controller\DefaultController.php).

Proposed resolution

I have resolved this issue by adding some changes in DefaultController.php file.

Remaining tasks

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India sonam_sharma

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

Comments & Activities

Production build 0.71.5 2024