i get this error when saving a node that contains an embedded view having aggregation -- simple column sum.

The website encountered an unexpected error. Please try again later.
Error: Call to undefined function template_preprocess_views_view_table() in template_preprocess_views_aggregator_results_table() (line 173 of modules\contrib\views_aggregator\views_aggregator.module).

i have a WORKAROUND to fix the error -

by disabling cache on that view

- then everything works fine..... hmmm...

CommentFileSizeAuthor
#11 error-when-saving-3101004-11.patch462 bytesdotpex
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

bmustafa created an issue. See original summary.

jordik’s picture

Can you please provide some details about your view setup?
How is the view embedded in the node?

jordik’s picture

Assigned: Unassigned » jordik
Priority: Critical » Major
Status: Active » Needs work
bmustafa’s picture

i am using very standardized EVA module approach (filtering contents of referenced view entities against ID of host entity).
all default settings as per normal EVA module operation procedures.

bmustafa’s picture

My guts feeling is that there is a race situation, whereby the white-screen happens when the page trying to load the view and the cache is not yet built or locked in between ... just a hunch...

jordik’s picture

Priority: Major » Normal
jordik’s picture

Status: Needs work » Postponed (maintainer needs more info)
jordik’s picture

Can you please provide detailed steps for reproducing this issue?

joachim’s picture

I saw this error as well, with a view shown in an EVA.
A cache clear fixed it.
I'm afraid I can't explain how to reproduce it, it just showed up!

jordik’s picture

i get this error when saving a node that contains an embedded view having aggregation -- simple column sum.

As far as I know, EVAs are shown on node displays, not on forms. How are you saving a node?

dotpex’s picture

Version: 8.x-1.x-dev » 2.0.1
StatusFileSize
new462 bytes

After cache clear if you go to view page with node that have EVA aggregated view attached and then go to same node you got an error.

joachim’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

Fixes the problem. Thanks!

tr’s picture

Assigned: jordik » Unassigned

Phpstan doesn't like this either. It doesn't know where to look for the template:
Function template_preprocess_views_view_table not found.

I guess @JordiK isn't working on this anymore?
I'll take a look and see if we can get this into 2.0/2.1

tr’s picture

Version: 2.0.1 » 2.1.x-dev
joachim’s picture

Latest patch doesn't apply. Made an MR with the same change.