I'm running the current dev version of entity (packaged 2011-11-03), and it's causing a fatal bootstrap error:
- Fatal error: Class 'EntityFieldHandlerHelper' not found in ~/public_html/sites/all/modules/entity/views/entity.views.inc on line 134
EntityFieldHandlerHelper is defined in views/handlers/entity_views_field_handler_helper.inc, and this file appears to be loaded in entity.info. I've tried putting that file before and after views/entity.views.inc; but in either case it still cannot find the class.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | entity_update.patch | 1.41 KB | fago |
Comments
Comment #1
zabelc commentedBit of an update: I was able to get rid of the error, but only by removing entity.views.inc from entity.info, *and* by deleting the entity.views.inc file. I would have thought the first would have prevented the file from being read, but I had to perform the second as well.
Comment #2
ipsec commentedsubscribe
Comment #3
pgrond commentedYep, having the same problem. Did a quick fix with
module_load_include('inc', 'entity', 'views/handlers/entity_views_field_handler_helper');just before the EntityFieldHandlerHelper gets called.But I don't know much about the internals of the Entity API module, so I'm am not sure where this should be done, and if this is the right solution.
Comment #4
peterpoe commentedSame problem. I found that after applying the solution in #3, if you flush the cache you can remove the hack and the problem won't reappear.
Comment #5
BeaPower commentedFrom the line - module_load_include('inc', 'entity', 'views/handlers/entity_views_field_handler_helper'); remove inc?
Comment #6
kaizerking commentedsame here
Fatal error: Class 'EntityFieldHandlerHelper' not found in /hsphere/local/home/..../modules/entity/views/entity.views.inc on line 134
Comment #7
fagoouch yet another registry update problem.
Looks like views-data is rebuilt on update.php via a theme() call before update.php can run. I've added a workaround to load the class manually in that case + an update routine to trigger rebuilding the registry. See attached patch.
Committed. Please test.
Comment #8
tabestan commentedThat patch did not work for me.
In module/entity
Edit: updating to the latest dev release today solved it for me.
Thanks a lot.
Comment #9
zabelc commentedI'll second Tabestan: the latest dev works fine.