I just upgraded my Drupal site to Project 1.0-alpha4, and now whenever I try to click on the node page for a project, I get the error:

Fatal error: Call to a member function preview() on a non-object in /var/www/modules/project/release/project_release.module on line 1189

I am using PHP 5.3, if that makes a difference.

Comments

bdragon’s picture

Seeing this myself. It's accompanied by the views going missing in my test install.

bdragon’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

Oh ho ho, I think I see what's going on here.

This should knock out that nasty little bug.

bdragon’s picture

Title: Fatal error: Call to a member function preview() » Views go missing if hook_views_default_views() is called multiple times
Version: 6.x-1.0-alpha4 » 6.x-1.x-dev
Assigned: Unassigned » bdragon
Priority: Normal » Critical

Twiddling the issue fields.

bdragon’s picture

Also, uh, that was patch for project_issue, not project. The same bug is occuring in both modules.

Funnily enough, the patch actually applies here as well if you type in the correct filename ;)

Here's the one for Project.

dww’s picture

Status: Needs review » Fixed

Yup, tested, and confirmed. However, you missed the default views from project/package/views/project_package.views_default.inc and project/release/views/project_release.views_default.inc. I fixed those, too. Committed to HEAD. Also committed the fix for project_issue (after cleaning up the formatting of the code comment a bit) -- see also #716756: issue views broken with latest Views 6.x-2 ...

Thanks, bdragon!

Status: Fixed » Closed (fixed)

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