Closed (duplicate)
Project:
Drupal core
Version:
7.12
Component:
page.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Feb 2012 at 13:16 UTC
Updated:
18 Nov 2012 at 22:28 UTC
Jump to comment: Most recent file
I have created a content type called gaglaugh and given it some fields that one can be able to add to it.all the contents i have added to my site are of the gaglaugh type.But when i want to add a new content of the type basic page , which i want to use for my front page , the site detects the change and brings a fatal error.Unless i consistently use the gaglaugh content type, i cannot create content of another content type....
Fatal error: Cannot access empty property in C:\xampp\htdocs\gaggers\modules\field\field.attach.inc on line 325
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | viewsAggregation6a.png | 3.25 KB | Pimmy |
| #5 | viewsAggregation7a.png | 3.1 KB | Pimmy |
| #5 | viewsAggregation5a.png | 5.44 KB | Pimmy |
Comments
Comment #1
marcingy commentedPlease provide steps to recreate starting with install, and a list of modules that you have enabled - I can run a site with multiple content types without issue.
Comment #2
Pimmy commentedI get the same problem since I've upgraded Drupal from 7.10 to 7.12 and Views to 7.x-3.3. I believe the problem is caused by the Views 7.x-3.3 module.
I've tried this patch with no success: http://drupal.org/node/1392128
I get the error when I try to display a view which has three content types in the filtering criteria.
I hope this helps.
Best Regards,
Pimmy
Comment #3
Pimmy commentedAfter further testing found that this happens exactly when I enable Views Aggregation: http://drupal.org/node/1463500
And what fixed the problem for me (not really, but the error at least does not appear) is this: http://drupal.org/node/1461536
Cheers,
Pimmy
Comment #4
marcingy commentedComment #5
Pimmy commentedHi Marcingy,
I believe the issue is easy to replicate following the steps here: http://drupal.org/node/1463500.
Simplified steps:

1. Create content types CT1 and CT2:
2. Create a view aggregated by SUM() for Value1 and Value2:

3. The preview/open of this aggregated view results in the error in question:
Fatal error: Cannot access empty property in ~\modules\field\field.attach.inc on line 3254. If you apply the workaround from here: http://drupal.org/node/1461536, the error would disappear, however the aggregation of the view would be still broken - the column for Value2 will show zero for all items:

What is causing the problem is the fact that CT2 does not have an entry for 'House C'.
This might be the wrong component to post this issue, but please redirect it to the appropriate group if this is the case. This is a serious problem and I've spent two weeks trying to workaround it without any success. Please do not close this ticket without at least providing some feedback.
Thank you very much,
Pimmy
Comment #6
Pimmy commentedAnother place where the same problem is being reported: http://drupal.org/node/1461536
Comment #7
marcingy commentedThis is a duplicate of #1461536: Fatal error when using aggregation and a field is not attached to all entities in the view.