Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2011 at 06:56 UTC
Updated:
13 Dec 2011 at 16:33 UTC
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
Comment #1
dawehnerThis 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.
Comment #2
giorgosk@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
Comment #3
Wappie08 commentedI was running into the same fatal error after updating to latest dev today.. but after "drush cc all" the error disappeared.
Greetings Wappie
Comment #4
dawehnerIf you update views by just override the files you definitive make it wrong :)
Comment #5
giorgosk@dereine
what do you mean ?
I override files and update.php
what else is there to update ?
Comment #6
johnvExperienced 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.
Comment #7
damiandab commentedthe same error, atfer I updated ctools from rc1 to latest dev, and than views from rc1 to latest dev :(
Comment #8
bojanz commentedEither 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.
Comment #9
Yuri commentedI 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.
Comment #10
patoshi commentedconfirmed ... clear cache made the error go away.
Comment #11
boran commentedI 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.
Comment #12
boran commentedNote: does not happen with 7.x-3.0-rc1
Comment #13
jmpatricio commentedI 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
Comment #14
thiagomoraesp commentedSame 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 =(
Comment #15
thiagomoraesp commentedI uninstalled and installed it again directon the database and now it's working fine ;)
Comment #16
dawehnerI'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.
Comment #17
tlangston commented+1
Comment #18
davidwhthomas commentedSame error, but
drush cc registryprior todrush updbfixed the issue.Perhaps the update hook to clear the registry first.
UPDATE:
Here's an example to require class registry cache clear first.
Comment #20
iwerksom commentedI 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
Comment #21
chiddy249 commentedJust 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:
Was only able to access site after reverting to 7.x-3.0-rc1 and clearing caches.