Cannot assign array to property

Created on 14 May 2024, about 2 months ago

Problem/Motivation

Hi,

I'm not using Commerce but I just want to replicate the same table. One column is grouped and compressed, another is tallied and another is summed.

Problem is whenever I added "Tally members *", I got this error:

TypeError: Cannot assign array to property Drupal\views\Plugin\views\field\FieldPluginBase::$last_render of type Drupal\Component\Render\MarkupInterface|string|null in Drupal\views_aggregator\Plugin\views\style\Table->executeAggregationFunctions() (line 540 of /var/www/html//web/modules/contrib/views_aggregator/src/Plugin/views/style/Table.php).

Because of this error, I had to change from tally to enumerate (without the count number, which is not the expected outcome).

Noteworthy:
If I remove the count column and leave the tally column, the same error was thrown. It seems like I cannot use the tally function.

I believe this is related to closed issue at https://www.drupal.org/project/views_aggregator/issues/2283279 🐛 Sum and Average don't work on Drupal Commerce Views Fixed .

Kind regards,
Amal.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇲🇾Malaysia amal.bukhari

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024