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

Comments

marcingy’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Please 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.

Pimmy’s picture

I 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

Pimmy’s picture

After 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

marcingy’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
Pimmy’s picture

StatusFileSize
new5.44 KB
new3.1 KB
new3.25 KB

Hi 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:
Content types with data

2. Create a view aggregated by SUM() for Value1 and Value2:
Desired Aggregation View

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 325

4. 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:
Broken Aggregation View

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

Pimmy’s picture

Status: Closed (fixed) » Active

Another place where the same problem is being reported: http://drupal.org/node/1461536

marcingy’s picture