I have a view with aggregation enabled.
When I add a text handler to the 'no results' section, I first get aggregation options for it (!? which seems a bit weird!) and then this error:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/config-item-group/node_views_sport/entity_view_1/empty/area
StatusText: OK
ResponseText:
( ! ) Fatal error: Call to a member function init() on a non-object in /Users/joachim/Sites/greaves-drupal/sites/all/modules/contrib/views/includes/admin.inc on line 4352
Call Stack
#TimeMemoryFunctionLocation
10.0043702808{main}( )../index.php:0
20.466619296992menu_execute_active_handler( )../index.php:21
30.480721426944call_user_func_array
( )../menu.inc:503
40.480721427752views_ui_ajax_form( )../menu.inc:0
50.483721557968views_ajax_form_wrapper( )../admin.inc:2881
60.483921560176drupal_build_form( )../ajax.inc:219
70.504322467696drupal_process_form( )../form.inc:364
80.506222517272form_execute_handlers( )../form.inc:844
90.506222520824views_ui_standard_submit( )../form.inc:1430
100.506222521072views_ui_config_item_group_form_submit( )../admin.inc:2529
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1359342.patch | 1.65 KB | dawehner |
Comments
Comment #1
dawehnerHere is a patch for that. Thanks for reporting this issue, quite funny that noone saw that before.
Comment #2
perumal.karthi commentedI am having a similar issue with Views with aggregation enabled.
Details of the issue:
I have two content types - Bill Entry, Customer walk-ins
Bill Entry: I have two fields Bill date and Bill amount.
Customer Walk-in: Date and Number of customer walk-in for the day.
Now, I am able to see SUM, AVG bill amount for the day with aggregation enabled in Views, once I include "Content:Customer_walkin" field I get the following error, and nothing shows up.
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /customer/views/ajax
StatusText: OK
ResponseText:
Fatal error: Cannot access empty property in C:\xampp\htdocs\customer\modules\field\field.attach.inc on line 314
Comment #3
dawehnerCommitted this patch to 7.x-3.x and 6.x-3.x
@perumal.karthi
The underlying php error message is totally different, so this doesn't belong to that issue,
so marked this issue as fixed.
Comment #5
David_Rothstein commentedFor the "Fatal error: Cannot access empty property" problem, see #1461536: Fatal error when using aggregation and a field is not attached to all entities in the view