Download & Extend

Fatal error: Call to undefined function content_types_install()

Project:Fivestar
Version:6.x-1.19
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Issue tags:CCK, Fivestar, relationships, views, votingapi

Issue Summary

When trying to add the Node:Vote Results relationship in Views, I was getting an ajax error.

After turning off Javascript on views and trying to add the relationship again, the following error appeared:

Fatal error: Call to undefined function content_types_install() in sites/all/modules/fivestar/fivestar.module on line 1801

I guess this is because I don't have CCK installed. However CCK is not required since I'm only using the fivestar widget not the fivestar rating field with axis etc.

Comments

#1

yeap.. i also having this same problem.

what i remember is i clear views cache under tools then facing this problem concurrently.

#2

I have the exact same issue! Just managed to fixed it :) See below post

#3

Status:active» fixed

FIXED:
I guessed we're all wrong, CCK is REQUIRED! I went to http://drupal.org/project/cck and installed CCK and the issue is fixed. :)

#4

Status:fixed» closed (fixed)

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

#5

Status:closed (fixed)» active

this worked for me also. CCK is REQUIRED!

#6

We should simply skip over that function call with an if module_exists('content') {. It does not need to be run if CCK is not installed.

#7

Status:active» needs review

Here is a patch

AttachmentSizeStatusTest resultOperations
fivestar-618734.patch1.94 KBIgnoredNoneNone

#8

Works for me

#9

Had the same issue. The patch worked for me.
It has also fixed AJAX error.

#10

I'm surprised this hasn't been fixed yet.

The patch worked for me.

nobody click here