We are using 4.3.2 version of the module in one of our sites .

We need to use the file ConfigureAction.php for one a rejection request flow in the site , thus while trying to trigger the same , its throwing the below error in Kibana and the flow breaks.

Error: Cannot modify readonly property Drupal\pfecmarketingchops_course\Form\RejectionForm::$tempStoreFactory in Drupal\views_bulk_operations\Form\ConfirmAction->__construct() (line 30 of /site-archive/pfecmarketingchops-1737441397/app/modules/contrib/views_bulk_operations/src/Form/ConfirmAction.php).

Similar issue has been resolved for src/Form/ConfirmAction.php which suggests we require dependency trait to use the readonly variables defined.

CommentFileSizeAuthor
#8 3501102-6.patch749 bytesnishavaghela
#5 3501102-5.patch778 bytesnishavaghela
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:

Comments

nishavaghela created an issue. See original summary.

patelh84 made their first commit to this issue’s fork.

nishavaghela changed the visibility of the branch 3501102-cannot-modify-readonly to hidden.

nishavaghela changed the visibility of the branch 3501102-cannot-modify-readonly to active.

nishavaghela’s picture

StatusFileSize
new778 bytes

I am adding this patch to resolve above issue . Please help me validate the same.

arunsahijpal’s picture

Status: Active » Needs review

I've checked it on my local and assure that the error is resolved by the above patch/MR.

nishavaghela’s picture

Status: Needs review » Active
StatusFileSize
new749 bytes
yasminorj’s picture

Status: Active » Needs review

I've updated the status to 'Needs Review' for the patch from #8.

serhii shandaliuk’s picture

Issue tags: -Novice +ContributionWeekend2025 WarsawContributionWeekend2025

I'm currently working on this.

serhii shandaliuk’s picture

Status: Needs review » Reviewed & tested by the community

Looks like you are trying to use the contrib form and remove readonly parameters. This could lead to unexpected behavior. I've tried to reproduce it on my local but it works well for me before patch applying.

graber made their first commit to this issue’s fork.

graber’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

quietone’s picture

Issue tags: -ContributionWeekend2025 WarsawContributionWeekend2025 +WarsawContributionWeekend2025