I get this when trying to run views.

Fatal error: Call to a member function has_path() on a non-object in /var/webs/ted/sites/all/modules/views/includes/plugins.inc on line 649
'
I am using 6.x-2.0-rc1 and the latest nightly build of drupal per instructions on cck and views.

How it occurs. Go to site building click on views and poof it goes plooy. I have done update.php. It was working with beta4.

Comments

merlinofchaos’s picture

As a workaround, change line 649 of includes/plugins.inc to read like this:

        if (!empty($display->handler) && $display->handler->has_path()) {

I'm not sure why this is happening for you, though. It suggests maybe one of your views is corrupt/has a bad display.

ctmiller’s picture

That worked thanks a bunch.

merlinofchaos’s picture

Status: Active » Fixed

I committed that fix to CVS as well.

grub3’s picture

Same problem. This was a blocking problem for RC1. Could you publish a new RC to reflect changes?

Anonymous’s picture

Status: Fixed » Closed (fixed)

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