(i originally added this to issue https://drupal.org/node/1418324 because the symptoms were identical, have realized now that the fix given there didn't work and that the root cause is probably different, though maybe quite similar in nature)
i am getting the error:
Fatal error: Cannot access empty property in ...../modules/field/field.attach.inc on line 324
This error (displaying on some of the pages containing MERCI calendars) started after upgrading Calendar to the latest dev version (at least i think that's when it started, i am not the only developer working on this site), and then it remained even after reverting back to Calendar 7.x-3.4 Have also tried the latest dev version of Date and MERCI modules, and it hasn't fixed it.
i checked my node table as recommended in https://drupal.org/comment/6317892#comment-6317892 (at first, i was assuming that issue was EXACTLY the same as what i was experiencing, now i am realizing it's the same symptoms but a different cause) and note that because we don't know which field is actually giving the error, i also checked the language of all field values from tables starting with field_data_field_merci_ and ALL of them that had any rows were set to "und", none were empty.
so... similar symptom, possibly different cause?
i am running Drupal core 7.23, have tried both version 7.x-2.0 and 7.x-2.x-dev (from Dec 4, 2013) of MERCI and the same error is occuring. have also upgrated to latest dev release of Calendar and Date, doesn't help.
also... i put in a debug statement right before the place where it crashes in field.attach.inc, and the field giving the "cannot access empty property" is field_merci_date ... so i believe the issue originates within the MERCI module, and it's not the language field in existing data in table field_data_field_merci_date, as i said above i checked that table already and language is set to "und" on all rows.
so now what?
Comments
Comment #1
earthangelconsulting CreditAttribution: earthangelconsulting commentedto clarify, i checked with the other developer and this error started when they installed MERCI, and therefore the Calendar upgrade i tried had nothing to do with it.
Comment #2
darrick CreditAttribution: darrick commentedWhat calendar pages do you get this error? Is it only on pages of calendars provided by the merci module? If so which merci modules are installed?
Comment #3
earthangelconsulting CreditAttribution: earthangelconsulting commentedmodules installed: merci, merci calendar view, merci inventory, merci permissions, merci ui
my mistake Darrick, i am actually experiencing three different errors to do with MERCI (one on the default calendar views "reservation/week" etc., one on entering reservations, and one on the home page) and i falsely reported this error as being on the default calendar views.
this error i mention above is actually appearing on blocks that display a view that i think the other developer created (probably based on a default view from MERCI), displaying just the title and date for nodes of type "Reservation". the code for the view is below.
try displaying the Studio A or Studio B block displays, and you will see what i mean!
Comment #4
darrick CreditAttribution: darrick commentedI wasn't able to import this. Look into why you have both a field_date and field_merci_date. I tested a fresh install of MERCI and didn't see any issues.