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.

CommentFileSizeAuthor
#7 entity_update.patch1.41 KBfago

Comments

zabelc’s picture

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

ipsec’s picture

subscribe

pgrond’s picture

Yep, 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.

peterpoe’s picture

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

BeaPower’s picture

From the line - module_load_include('inc', 'entity', 'views/handlers/entity_views_field_handler_helper'); remove inc?

kaizerking’s picture

same here
Fatal error: Class 'EntityFieldHandlerHelper' not found in /hsphere/local/home/..../modules/entity/views/entity.views.inc on line 134

fago’s picture

Status: Active » Fixed
StatusFileSize
new1.41 KB

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

tabestan’s picture

That patch did not work for me.

In module/entity

sudo patch < entity_update.patch 
patching file entity.install
patching file entity.views.inc
Hunk #1 FAILED at 93.
1 out of 1 hunk FAILED -- saving rejects to file entity.views.inc.rej

Edit: updating to the latest dev release today solved it for me.
Thanks a lot.

zabelc’s picture

I'll second Tabestan: the latest dev works fine.

Status: Fixed » Closed (fixed)

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