Problem/Motivation

When i enable this module i now have 2 additional actions on the VBO field for the People view:
- Edit user
- Modify field values

The first does nothing as far as i can see. The second (which i have used successfully on nodes) generates this error:

InvalidArgumentException: Field is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of core\lib\Drupal\Core\Entity\ContentEntityBase.php).

[EDIT] - first part of this is fixed in the -dev version of VBO.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

liquidcms created an issue. See original summary.

Graber’s picture

Status: Active » Closed (duplicate)

Duplicate. It was solved on the VBO side as well (check out the latest dev version).

Graber’s picture

Status: Closed (duplicate) » Active

Ahh, sorry, please update the issue title and description so it's about the InvalidArgumentException only. The double fields issue is solved.

liquidcms’s picture

Title: Doesn't work for users. » When bulk updating users i get: InvalidArgumentException: Field is unknown.
Issue summary: View changes
sada1988’s picture

im into the same even with dev version modules, is there any update for this?

Modify field values part still fail with same symptoms.

gbyte’s picture

gbyte’s picture

Assigned: Unassigned » gbyte

gbyte’s picture

Version: 8.x-2.5 » 8.x-2.x-dev
Assigned: gbyte » Unassigned
Status: Active » Needs review

Please review, thanks!

marcoka’s picture

Is there a patch because i have this problem too. Can not mass edit user fields.

The latest VBO dev doesnt fix it, but introduces new problems liek "ArgumentCountError: Too few arguments to function Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager::__construct(), 4 passed in.."

gbyte’s picture

@marcoka You can get the patch by adding .patch to the merge request or the commit URL, in this case: https://git.drupalcode.org/project/views_bulk_edit/-/merge_requests/6.patch.

marcoka’s picture

Thank you for that patch link and the hint.
Applied it, worked. Then i mass edited 8000 user with a custom int filed and set it to a value of 10. All worked fine.

markdc’s picture

I was having this same issue with the Commerce product entity. This patch solved the problem. Thanks @gbyte. Happy bulk editing, all.

extect’s picture

Status: Needs review » Reviewed & tested by the community
Related issues: +#3186232: InvalidArgumentException: Field is unknown, when entity does not have revisions

This fixes the issue for me as well. Thank you @gbyte.

Lukas von Blarer’s picture

The MR solves the issue for me.

lubwn’s picture

Patch from #11 solved an issue for me! thank you very much. Please commit this to a release updating users or user-related entities is very handy.

  • gbyte committed 9b08806 on 8.x-2.x
    Issue #3189117 by gbyte, liquidcms, Graber: Fix InvalidArgumentException...
Graber’s picture

Status: Reviewed & tested by the community » Fixed

Thank you all, merged.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.