In case the Drupal autoload registry gets corrupted, the field_collection module complicates rebuilding the registry because:
* it defines the FieldCollectionItemEntity class in its module file
* this class extends the Entity class
* the Entity class can not be found yet when the module file gets included while rebuilding the registry

To solve this, the FieldCollectionItemEntity should be moved to its own include file, this file needs to be mentioned in files[] in the module's .info file and then it gets dynamically loaded by Drupals autoloader.

Comments

Saaj’s picture

Priority: Normal » Major
Status: Active » Needs review
StatusFileSize
new33.54 KB

Here is my first attempt at a patch!

I created the patch following what Cyberwolf has stated.

kristofferwiklund’s picture

Issue summary: View changes
StatusFileSize
new35.38 KB

Re-rolled to the latest code-base. Otherwise it works great.

  • jmuzz committed de13dae on 7.x-1.x authored by Saaj
    Issue #1662710 by Saaj, kristofferwiklund: move...
jmuzz’s picture

Status: Needs review » Fixed

Thanks!

I wasn't sure if the patch would have the most recent edits so I cut and pasted the class myself. Let me know if I'd have missed something by doing this.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.