Call to undefined function _project_get_vid() in sites\all\modules\project\views\plugins\project_plugin_argument_validate_project_type_term.inc on line 67

When saving the Project content after editing, the PHP error appears. saying the above error.

Comments

eabquina’s picture

Component: Projects » Issues

Found out that this only happens when I turn on the project issue tracker module. Still testing if could be related to some Project Issue Tracker - Views set-up

eabquina’s picture

Project: Project » Project issue tracking
Version: 7.x-2.x-dev » 7.x-2.0-unstable1

Moving to Project Issue Tracking after test that this only happens when it is activated.

1) Create a new Project while the Issue Tracker module is on
2) Error Appears as mentioned...

eabquina’s picture

Update:

As a workaround, I commented out line 67 project_plugin_argument_validate_project_type_term, I havent tested this thoroughly what will be the negative impact

For now I can start saving Project content with this...

Does anyone know if _project_get_vid is a deprecated function? (class project_plugin_argument_validate_project_type_term extends views_plugin_argument_validate)

drumm’s picture

Yes, _project_get_vid() is deprecated.

In Drupal 6, project types were taxonomy. In Drupal 7 they are now separate node types. (Project type as in Module/Theme/Distribution on Drupal.org.)

Most sites will just have one node type used for projects, so commenting out is a decent short-term fix. It looks like the remaining calls to this can be removed from Views-related code and likely simplify them.

dww’s picture

Version: 7.x-2.0-unstable1 » 7.x-2.0-alpha1
Assigned: Unassigned » dww

Working on this at the DrupalCon LA sprint.

dww’s picture

Project: Project issue tracking » Project
Component: Issues » Views integration

Actually, all of this is from legacy views support in Project module itself that was never fully ported to D7.

  • dww committed 108037a on 7.x-2.x
    [#2429601] views_css_safe() is dead, use drupal_clean_css_identifier()
    
dww’s picture

Status: Active » Fixed

I pushed a commit that rips out a ton of deprecated and useless code. I also started fixing the default project_overview view that we ship for sites not using project_solr and friends for project browsing.

  • dww committed 0aa44f0 on 7.x-2.x
    [#2429601] Removed a lot of deprecated project taxonomy Views...
eabquina’s picture

Thanks a lot! Looks good!

Status: Fixed » Closed (fixed)

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