Fatal error: Class 'views_handler_field_entity' not found in \views\modules\node\views_handler_field_node_link.inc on line 5

I get this fatal error on every page when putting latest dev

as soon as I put the RC1 version then errors disappear

I have entity,entity_translation latest dev installed
and I have tried to clear caches numerous times (emptying cache tables when I can't access the site)

is this problem specific to my site ?
I have seen #1262858: PHP Fatal error: Class 'views_handler_field_entity' not found but its specific to Views More and does not contain any info that could lead to a resolution

Comments

dawehner’s picture

This seems to be some kind of caching issue, it definitive works fine here.
Can you try to rebuild the registry for example by running update.php?

Additional please have a look whether the file in in views/handlers.

giorgosk’s picture

Status: Active » Postponed (maintainer needs more info)

@dereine all the files are in place and had run update.php numerous times with no luck

Its a very strange bug

a few days ago problem was solved with RC1 after running update.php
and then extracting the latest DEV on top of it and running update.php

but for a strange reason it reappeared yesterday

I did this again and it seems to work fine but I have the feeling it might reappear

Wappie08’s picture

I was running into the same fatal error after updating to latest dev today.. but after "drush cc all" the error disappeared.

Greetings Wappie

dawehner’s picture

If you update views by just override the files you definitive make it wrong :)

giorgosk’s picture

@dereine
what do you mean ?
I override files and update.php
what else is there to update ?

johnv’s picture

Experienced the same error. Error does not appear on /admin page (or any page without a Views View)
@GiorgosK, simply copying the new files to the old directory is the wrong way. It might be that some files do not exist anymore in the newer version. So, first remove directory or remove all files from GIT/SVN; then copy the new files and do a chck-in of the files.
After that, my error has gone. Also, I upgraded to latest dev-version of CTools module. And, don't forget to run /update.php and clear caches

PS. You changed the status in #2. This status makes the issue go out of dereines queue, since maintainer is waiting on someone else. So, if above solves your problem, you may set status to Fixed, else to Active again.

damiandab’s picture

Status: Postponed (maintainer needs more info) » Active

the same error, atfer I updated ctools from rc1 to latest dev, and than views from rc1 to latest dev :(

bojanz’s picture

Status: Active » Fixed

Either the file doesn't exist, in which case you did the install / update wrong, or the class registry cache wasn't cleared, which happens when you do drush cc all, or go to devel/cache/clear/all, enable/disable a module (submit the admin/modules page).

Don't see anything we can do here.

Yuri’s picture

I updated to the latest dev by only replacing the views directory with the new one. Didn't touch the modules page.
Then I got this error message. update.php did not work but simply clearing the cache and the error went away.

patoshi’s picture

confirmed ... clear cache made the error go away.

boran’s picture

I get this on 7.x dev with D7.8, in a very specific situation.
Edit the view, site the page page type to mini - apply all - save

Clearing the cache does not help.
Is it preferable I open a separate issue? Its the exact same error message.

boran’s picture

Status: Fixed » Active

Note: does not happen with 7.x-3.0-rc1

jmpatricio’s picture

Category: support » bug

I have updated today to the 7.x-3.0-rc3 version and I had this issue....
With previous rc I hadn't that error.

the log /var/log/apache2/error.log says:

[Thu Nov 17 14:11:18 2011] [error] PHP Fatal error: Class 'views_handler_field_entity' not found in /home/www/public_html/sites/all/modules/views/modules/node/views_handler_field_node_link.inc on line 5

thiagomoraesp’s picture

Same here, i updated the views and the error appears, and now i cant open my site, and can use Drush to try to fix it =(

thiagomoraesp’s picture

I uninstalled and installed it again directon the database and now it's working fine ;)

dawehner’s picture

Status: Active » Fixed

I'm 100% sure that there is some issue with rebuilding the registry. Once this is done the error with not exist anymore.
Try to clear cache etc.

tlangston’s picture

+1

davidwhthomas’s picture

Same error, but drush cc registry prior to drush updb fixed the issue.

Perhaps the update hook to clear the registry first.

UPDATE:

Here's an example to require class registry cache clear first.

/**
 * Clear class registry
 */
function example_update_7006() {
  registry_rebuild();
}

/**
 * hook_update_dependencies
 */
function example_update_dependencies(){
  $dependencies['views'][7300] = array(
    'scmp_views' => 7006,
  );
  return $dependencies;
}

Status: Fixed » Closed (fixed)

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

iwerksom’s picture

I recently encountered the error described in this node. I updated from views-7.x-3.0-rc1 to views-7.x-3.0-rc3.
For all of you who dont use Drush/Git access you should flush all cache before uploading views-7.x-3.0-rc3. and again after.
That worked for me.
yourdomain.com/flush-cache?/destination=somepage

chiddy249’s picture

Just tried updating to views-7.x-3.0-rc3 from 7.x-3.0-rc1 as well. Received the above error while running update.php .

Was not able to access any pages which contained views and attempting to clear caches via the admin interface only produced White Screen of Death. Running drush cc all also produced the same error:

PHP Fatal error:  Class 'views_handler_field_entity' not found in /home/www/public_html/profiles/openpublic/modules/contrib/views/modules/node/views_handler_field_node_link.inc on line 5
Drush command terminated abnormally due to an unrecoverable error.   [error]
Error: Class 'views_handler_field_entity' not found in
/home/www/public_html/profiles/openpublic/modules/contrib/views/modules/node/views_handler_field_node_link.inc, line 5

Was only able to access site after reverting to 7.x-3.0-rc1 and clearing caches.