View query not built

Created on 5 June 2021, over 3 years ago
Updated 7 May 2024, 7 months ago

Problem/Motivation

This is similar to [!2923621]. The error is:

Error: Call to a member function addMetaData() on string in /var/www/html/docroot/core/modules/views/src/Plugin/views/query/Sql.php

🐛 Bug report
Status

Postponed: needs info

Version

3.0

Component

Core

Created by

🇵🇪Peru krystalcode

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.

  • 🇻🇳Vietnam phthlaap

    I have same issue, the step is:
    - Step 1: Check to the checkbox Select / deselect all results
    - Step 2: Select an action
    - Step 3: Apply to selected items
    - Step 4: The form Action will be executed on all items in the view.
    - Step 5: Click Execute action
    => Batch process will start then show the error message "Call to a member function addMetaData() on string...."

    Applied the patch and it is working now.

  • Status changed to RTBC over 1 year ago
  • Status changed to Postponed: needs info 7 months ago
  • 🇵🇱Poland Graber

    Can we check if the view has been built (if (!$this->view->built))?

    BTW.. I cannot reproduce this locally now, created 100 articles using devel_generate and saved them all on a standard content view with VBO field in place of the core bulk operations field, batching off, no error.

Production build 0.71.5 2024